:root {
    --blue: #0B3D91;
    --blue-dark: #061E45;
    --blue-mid: #123B73;
    --blue-soft: #EAF1FF;
    --gold: #D4AF37;
    --gold-soft: #FFF6D8;
    --white: #FFFFFF;
    --bg: #F4F7FB;
    --text: #172033;
    --muted: #667085;
    --border: #DFE7F2;
    --success: #16A34A;
    --success-soft: #DCFCE7;
    --warning: #F59E0B;
    --warning-soft: #FEF3C7;
    --danger: #DC2626;
    --danger-soft: #FEE2E2;
    --purple: #7C3AED;
    --purple-soft: #F3E8FF;
    --cyan: #0891B2;
    --cyan-soft: #CFFAFE;
    --radius: 24px;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 34px 90px rgba(15, 23, 42, 0.16);
    --sidebar-width: 280px;
}

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 28%), radial-gradient(circle at bottom left, rgba(11, 61, 145, 0.07), transparent 30%), var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

    button:disabled {
        cursor: not-allowed;
        opacity: 0.58;
        transform: none !important;
    }

.material-symbols-rounded {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.hidden {
    display: none !important;
}

/* =========================
   LAYOUT
========================= */

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.student-main {
    min-width: 0;
    padding: 28px;
    overflow: hidden;
}

.activities-content {
    display: grid;
    gap: 24px;
}

/* =========================
   SIDEBAR
========================= */

.student-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), transparent 32%), linear-gradient(180deg, var(--blue-dark), #08295C);
    color: var(--white);
    padding: 22px;
    display: flex;
    flex-direction: column;
    z-index: 80;
    overflow-y: auto;
}

    .student-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .student-sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
    }

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 34px;
}

    .sidebar-brand > span {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        background: var(--gold);
        color: var(--blue-dark);
        display: grid;
        place-items: center;
        font-size: 31px;
        box-shadow: 0 14px 34px rgba(212, 175, 55, 0.24);
        flex: 0 0 auto;
    }

    .sidebar-brand strong,
    .sidebar-brand small {
        display: block;
    }

    .sidebar-brand strong {
        font-size: 18px;
        line-height: 1.15;
    }

    .sidebar-brand small {
        color: #CBD5E1;
        font-size: 13px;
        margin-top: 3px;
        line-height: 1.35;
    }

.sidebar-nav {
    display: grid;
    gap: 9px;
}

    .sidebar-nav a {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #E5E7EB;
        font-weight: 850;
        transition: 0.2s ease;
    }

        .sidebar-nav a:hover,
        .sidebar-nav a.active {
            background: rgba(255, 255, 255, 0.13);
            color: var(--white);
            transform: translateX(3px);
        }

        .sidebar-nav a.active {
            box-shadow: inset 4px 0 0 var(--gold);
        }

    .sidebar-nav span {
        color: var(--gold);
    }

.sidebar-backdrop {
    display: none;
}

/* =========================
   MOBILE TOPBAR
========================= */

.mobile-topbar {
    display: none;
    margin-bottom: 20px;
}

.mobile-menu-button {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
}

.mobile-brand,
.mobile-back {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 950;
}

.mobile-brand {
    color: var(--blue-dark);
}

.mobile-back {
    background: var(--white);
    color: var(--blue);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* =========================
   BOTONES / LINKS
========================= */

.primary-link,
.ghost-link,
.refresh-button,
.btn,
.course-action {
    min-height: 46px;
    padding: 0 15px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 950;
    transition: 0.2s ease;
}

    .primary-link,
    .btn-primary,
    .course-action.primary {
        background: var(--blue);
        color: var(--white);
        box-shadow: 0 14px 32px rgba(11, 61, 145, 0.22);
    }

        .primary-link:hover,
        .btn-primary:hover,
        .course-action.primary:hover {
            background: var(--blue-dark);
            transform: translateY(-2px);
        }

    .ghost-link,
    .refresh-button,
    .btn-outline,
    .course-action.secondary {
        background: var(--blue-soft);
        color: var(--blue);
    }

        .ghost-link:hover,
        .refresh-button:hover,
        .btn-outline:hover,
        .course-action.secondary:hover {
            background: #DCEAFF;
            transform: translateY(-2px);
        }

    .course-action.registered {
        background: var(--success-soft);
        color: #166534;
    }

        .course-action.registered:hover {
            transform: none;
        }

/* =========================
   LOCKED STATE
========================= */

.locked-state {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
}

.locked-card {
    width: min(560px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow-strong);
    text-align: center;
}

    .locked-card > span {
        color: var(--gold);
        font-size: 64px;
    }

    .locked-card h2 {
        color: var(--blue-dark);
        font-size: 34px;
        margin: 14px 0 10px;
        letter-spacing: -0.035em;
    }

    .locked-card p {
        color: var(--muted);
        line-height: 1.7;
        margin-bottom: 22px;
    }

/* =========================
   HERO
========================= */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy {
    position: relative;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.24), transparent 26%), linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

    .hero-copy::before {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -110px;
        width: 280px;
        height: 280px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

.hero-kicker,
.section-label,
.modal-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-label {
    background: var(--blue-soft);
    color: var(--blue);
}

.modal-kicker {
    background: transparent;
    color: var(--gold);
    padding: 0;
}

.hero-copy h1 {
    position: relative;
    max-width: 840px;
    margin: 20px 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-copy p {
    position: relative;
    max-width: 760px;
    color: #D8E2F0;
    line-height: 1.75;
}

.hero-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* =========================
   STUDENT CARD
========================= */

.student-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.student-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: var(--gold);
    color: var(--blue-dark);
    display: grid;
    place-items: center;
    box-shadow: 0 18px 40px rgba(212, 175, 55, 0.24);
}

    .student-avatar span {
        font-size: 42px;
    }

.student-card small {
    display: block;
    color: var(--muted);
    font-weight: 850;
}

.student-card > div > strong {
    display: block;
    color: var(--blue-dark);
    font-size: 20px;
    line-height: 1.25;
    margin-top: 4px;
}

.student-mini-grid {
    display: grid;
    gap: 10px;
}

    .student-mini-grid article {
        min-width: 0;
        padding: 14px;
        border-radius: 18px;
        background: var(--bg);
        border: 1px solid var(--border);
    }

    .student-mini-grid span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .student-mini-grid strong {
        display: block;
        margin-top: 6px;
        color: var(--blue-dark);
        font-size: 14px;
        overflow-wrap: anywhere;
    }

/* =========================
   STATS
========================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: 0.22s ease;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-strong);
    }

    .stat-card > span {
        width: 58px;
        height: 58px;
        flex: 0 0 auto;
        border-radius: 20px;
        display: grid;
        place-items: center;
        background: var(--blue-soft);
        color: var(--blue);
        font-size: 34px;
    }

    .stat-card.success > span {
        background: var(--success-soft);
        color: #166534;
    }

    .stat-card.warning > span {
        background: var(--warning-soft);
        color: #92400E;
    }

    .stat-card.danger > span {
        background: var(--danger-soft);
        color: #991B1B;
    }

    .stat-card small {
        display: block;
        color: var(--muted);
        font-weight: 850;
    }

    .stat-card strong {
        display: block;
        color: var(--blue-dark);
        font-size: 34px;
        line-height: 1;
        margin-top: 8px;
    }

/* =========================
   ALERTAS
========================= */

.page-alert,
.modal-alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 850;
    line-height: 1.6;
    border: 1px solid transparent;
}

    .page-alert.success,
    .modal-alert.success {
        background: var(--success-soft);
        color: #166534;
        border-color: rgba(22, 163, 74, 0.18);
    }

    .page-alert.error,
    .modal-alert.error {
        background: var(--danger-soft);
        color: #991B1B;
        border-color: rgba(220, 38, 38, 0.18);
    }

    .page-alert.info,
    .modal-alert.info {
        background: var(--blue-soft);
        color: var(--blue);
        border-color: rgba(11, 61, 145, 0.16);
    }

/* =========================
   PANEL / CATÁLOGO
========================= */

.catalog-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

    .panel-header h2 {
        color: var(--blue-dark);
        font-size: 28px;
        letter-spacing: -0.035em;
        line-height: 1.08;
        margin-top: 10px;
    }

    .panel-header p {
        color: var(--muted);
        margin-top: 6px;
        line-height: 1.6;
    }

.catalog-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 240px;
    gap: 16px;
    align-items: center;
    margin-top: 4px;
}

.search-box {
    min-height: 52px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

    .search-box span {
        color: var(--blue);
    }

    .search-box input {
        border: none;
        outline: none;
        background: transparent;
        width: 100%;
        color: var(--text);
        font-weight: 750;
    }

        .search-box input::placeholder {
            color: #98A2B3;
        }

.sort-select {
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 14px;
    background: var(--bg);
    color: var(--blue-dark);
    font-weight: 850;
    outline: none;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.filter-pill {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--blue-dark);
    border: 1px solid var(--border);
    font-weight: 900;
    transition: 0.2s ease;
}

    .filter-pill:hover,
    .filter-pill.active {
        background: var(--blue);
        color: var(--white);
        border-color: var(--blue);
    }

.result-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-weight: 850;
}

    .result-line span {
        color: var(--gold);
    }

    .result-line strong {
        color: var(--blue-dark);
    }

/* =========================
   CARDS DE ACTIVIDAD
========================= */

.courses-grid,
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.course-card,
.activity-card {
    min-width: 0;
    background: linear-gradient(180deg, #F8FAFC, #F4F7FB);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: 0.22s ease;
}

    .course-card:hover,
    .activity-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-strong);
        background: var(--white);
    }

.course-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.course-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--gold-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

    .course-icon span {
        font-size: 32px;
    }

.badge-stack {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.badge {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 950;
    text-transform: capitalize;
    line-height: 1.1 !important;
    white-space: nowrap;
}

    .badge.publicada,
    .badge.registro_abierto,
    .badge.registered,
    .badge.confirmado,
    .badge.registrado,
    .badge.activo {
        background: var(--success-soft);
        color: #166534;
    }

    .badge.borrador,
    .badge.pending,
    .badge.registro_cerrado,
    .badge.lista_espera {
        background: var(--warning-soft);
        color: #92400E;
    }

    .badge.en_curso {
        background: var(--cyan-soft);
        color: #155E75;
    }

    .badge.finalizada,
    .badge.completado {
        background: var(--blue-soft);
        color: var(--blue);
    }

    .badge.cancelada,
    .badge.cancelado,
    .badge.rechazada,
    .badge.rechazado,
    .badge.archivada,
    .badge.error,
    .badge.full {
        background: var(--danger-soft);
        color: #991B1B;
    }

.course-card h3 {
    color: var(--blue-dark);
    font-size: 21px;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.course-card p {
    color: var(--muted);
    line-height: 1.6;
}

.course-meta {
    display: grid;
    gap: 9px;
    margin-top: auto;
}

    .course-meta div {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text);
        font-weight: 780;
        font-size: 14px;
    }

    .course-meta span {
        color: var(--blue);
        font-size: 21px;
    }

/* =========================
   CAPACIDAD
========================= */

.capacity-box {
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid var(--border);
}

.capacity-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

    .capacity-row strong {
        color: var(--blue-dark);
    }

.capacity-track {
    overflow: hidden;
    height: 9px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--blue-soft);
}

.capacity-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--gold));
    transition: width 0.35s ease;
}

/* =========================
   ACCIONES ACTIVIDAD
========================= */

.course-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.course-action {
    min-height: 44px;
    width: 100%;
}

/* =========================
   SKELETON / EMPTY
========================= */

.skeleton-card {
    min-height: 320px;
    border-radius: 22px;
    background: linear-gradient(90deg, #EEF3FA 25%, #F7FAFF 40%, #EEF3FA 60%);
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
    border: 1px solid var(--border);
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.empty-state {
    margin-top: 24px;
    padding: 42px 20px;
    border-radius: 24px;
    text-align: center;
    background: var(--bg);
    border: 1px dashed var(--border);
}

    .empty-state span {
        font-size: 52px;
        color: var(--gold);
    }

    .empty-state h3 {
        margin: 10px 0 6px;
        color: var(--blue-dark);
        letter-spacing: -0.02em;
    }

    .empty-state p {
        color: var(--muted);
    }

/* =========================
   MODAL
========================= */

.confirm-modal {
    width: min(760px, calc(100% - 32px));
    border: none;
    border-radius: 30px;
    padding: 0;
    background: transparent;
    margin: auto;
}

    .confirm-modal::backdrop {
        background: rgba(8, 31, 69, 0.74);
        backdrop-filter: blur(8px);
    }

.confirm-card {
    position: relative;
    background: var(--white);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border);
    max-height: calc(100vh - 42px);
    overflow-y: auto;
}

    .confirm-card::-webkit-scrollbar {
        width: 9px;
    }

    .confirm-card::-webkit-scrollbar-thumb {
        background: #CBD5E1;
        border-radius: 999px;
    }

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    transition: 0.2s ease;
    z-index: 2;
}

    .modal-close:hover {
        background: var(--blue);
        color: var(--white);
        transform: rotate(90deg);
    }

.confirm-card h2 {
    font-size: clamp(30px, 5vw, 46px);
    color: var(--blue-dark);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 14px 52px 10px 0;
}

.modal-description {
    color: var(--muted);
    line-height: 1.7;
}

.confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

    .confirm-grid article {
        min-width: 0;
        padding: 14px;
        border-radius: 18px;
        display: flex;
        gap: 10px;
        background: var(--bg);
        border: 1px solid var(--border);
    }

        .confirm-grid article > span {
            color: var(--blue);
        }

    .confirm-grid small {
        display: block;
        color: var(--muted);
        font-weight: 900;
    }

    .confirm-grid strong {
        display: block;
        margin-top: 4px;
        color: var(--blue-dark);
        overflow-wrap: anywhere;
    }

.confirm-payment-box {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
    display: flex;
    gap: 12px;
    color: #8A5A00;
    background: var(--gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.26);
}

    .confirm-payment-box > span {
        color: var(--gold);
        font-size: 32px;
    }

    .confirm-payment-box strong {
        display: block;
    }

    .confirm-payment-box p {
        margin: 4px 0 0;
        line-height: 1.6;
    }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
    .courses-grid,
    .activities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .student-card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .student-mini-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .student-sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        width: var(--sidebar-width);
        transition: 0.25s ease;
    }

        .student-sidebar.open {
            left: 0;
        }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(8, 31, 69, 0.52);
        backdrop-filter: blur(4px);
        z-index: 70;
    }

        .sidebar-backdrop.show {
            display: block;
        }

    .student-main {
        padding: 18px;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 65;
        min-height: 64px;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        backdrop-filter: blur(16px);
        background: rgba(244, 247, 251, 0.88);
    }

    .catalog-tools {
        grid-template-columns: 1fr;
    }

    .panel-header {
        display: grid;
    }

    .refresh-button {
        width: fit-content;
    }
}

@media (max-width: 680px) {
    .student-main {
        padding: 14px;
    }

    .hero-copy,
    .student-card,
    .catalog-panel,
    .confirm-card,
    .locked-card {
        border-radius: 22px;
    }

    .hero-copy {
        padding: 24px;
    }

        .hero-copy h1 {
            font-size: clamp(30px, 11vw, 42px);
        }

    .hero-actions,
    .modal-actions {
        display: grid;
    }

    .primary-link,
    .ghost-link,
    .btn,
    .refresh-button {
        width: 100%;
    }

    .student-card {
        display: flex;
    }

    .student-mini-grid,
    .stats-grid,
    .courses-grid,
    .activities-grid,
    .confirm-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 18px;
    }

    .course-card,
    .activity-card {
        padding: 18px;
    }

    .filter-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-pill {
        width: 100%;
    }
}

@media (max-width: 420px) {
    :root {
        --sidebar-width: 260px;
    }

    .student-main {
        padding: 12px;
    }

    .hero-copy,
    .catalog-panel {
        padding: 18px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .mobile-brand {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-back {
        padding: 0 11px;
    }

    .confirm-card h2 {
        margin-right: 42px;
    }
}

/* =========================
   MOTION SAFE
========================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
