/**
 * ==============================================================================
 * VIDYORIC PLATFORM — MASTER DESIGN SYSTEM & STUDYDECKS STYLING
 * Brand Colors: Royal Navy (#012B5A), Metallic Gold (#BD9B61)
 * Typography: Outfit (Display & Headings), Inter (Body & UI)
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Brand Authority Palette */
    --color-brand-navy: #012B5A;
    --color-brand-navy-dark: #001833;
    --color-brand-navy-light: #0A3D78;
    --color-brand-navy-hero: #071E3D;
    --color-brand-gold: #BD9B61;
    --color-brand-gold-light: #EBD7B0;
    --color-brand-gold-dark: #9A7B45;

    /* Base Surfaces */
    --color-surface-light: #F8FAFC;
    --color-surface-white: #FFFFFF;
    --color-surface-muted: #F1F5F9;
    --color-surface-dark: #0B132B;

    /* Text Colors */
    --color-text-main: #0F172A;
    --color-text-muted: #64748B;
    --color-text-inverted: #F8FAFC;
    --color-text-gold: #BD9B61;

    /* 5 Master Learning Track Accents */
    --track-academic: #2563EB;
    --track-academic-glow: rgba(37, 99, 235, 0.25);
    --track-junior: #F59E0B;
    --track-junior-glow: rgba(245, 158, 11, 0.25);
    --track-skills: #10B981;
    --track-skills-glow: rgba(16, 185, 129, 0.25);
    --track-special-care: #8B5CF6;
    --track-special-glow: rgba(139, 92, 246, 0.25);
    --track-mindset: #EC4899;
    --track-mindset-glow: rgba(236, 72, 153, 0.25);

    /* SM-2 Recall Actions */
    --sm2-again: #EF4444;
    --sm2-hard: #F97316;
    --sm2-good: #3B82F6;
    --sm2-easy: #10B981;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Elevations & Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(1, 43, 90, 0.08);
    --shadow-lg: 0 16px 36px rgba(1, 43, 90, 0.12);
    --shadow-hero: 0 25px 60px -15px rgba(0, 0, 0, 0.4);

    --header-height: 76px;
    --bottom-nav-height: 64px;
}

/* Base Reset & Core Typography */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-surface-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Poppins', sans-serif;
    color: var(--color-brand-navy);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Marathi / Devanagari Dedicated Typography: Poppins
   Native geometric sans-serif by Indian Type Foundry with Devanagari glyphs
   ========================================================================== */
[lang="mr"],
[data-deck-lang="mr"],
[data-medium="marathi"],
.deck-marathi,
.lang-mr,
.marathi-text,
.marathi-font {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

[lang="mr"] h1, [lang="mr"] h2, [lang="mr"] h3, [lang="mr"] h4, [lang="mr"] h5, [lang="mr"] h6,
[data-deck-lang="mr"] h1, [data-deck-lang="mr"] h2, [data-deck-lang="mr"] h3, [data-deck-lang="mr"] h4, [data-deck-lang="mr"] h5, [data-deck-lang="mr"] h6,
.deck-marathi h1, .deck-marathi h2, .deck-marathi h3, .deck-marathi h4, .deck-marathi h5, .deck-marathi h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

/* Ensure heading contrast on dark/navy containers and modal headers */
[style*="background: #012B5A"] h1,
[style*="background: #012B5A"] h2,
[style*="background: #012B5A"] h3,
[style*="background: #012B5A"] h4,
[style*="background:#012B5A"] h1,
[style*="background:#012B5A"] h2,
[style*="background:#012B5A"] h3,
[style*="background:#012B5A"] h4,
[style*="background: linear-gradient"] h1,
[style*="background: linear-gradient"] h2,
[style*="background: linear-gradient"] h3,
[style*="background: linear-gradient"] h4,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4 {
    color: #FFFFFF;
}

a {
    color: var(--color-brand-navy);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-brand-gold-dark);
}

/* ==============================================================================
   HEADER (StudyDecks Clean White Design)
   ============================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
}

.header-inner {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-brand-navy);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-name span {
    color: var(--color-brand-gold);
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

/* Header Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-brand-navy);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2.5px;
    background-color: var(--color-brand-navy);
    border-radius: var(--radius-full);
}

/* Navigation Mega Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    padding: 0.4rem 0;
    text-decoration: none;
}

.nav-dropdown-btn:hover {
    color: var(--color-brand-navy);
}

.nav-dropdown-btn .dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn .dropdown-arrow,
.nav-dropdown.open .nav-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 480px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px -5px rgba(7, 30, 61, 0.15), 0 0 1px 1px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 1rem;
}

.nav-dropdown:hover .mega-dropdown-menu,
.nav-dropdown:focus-within .mega-dropdown-menu,
.nav-dropdown.open .mega-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mega-track-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.mega-track-item:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateX(3px);
}

.mega-track-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.mega-track-info {
    flex: 1;
    min-width: 0;
}

.mega-track-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-brand-navy);
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.mega-track-desc {
    font-size: 0.76rem;
    color: #64748B;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-dropdown-footer {
    border-top: 1px solid #F1F5F9;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.mega-dropdown-footer a:hover {
    color: var(--color-brand-gold-dark) !important;
}

/* Mobile Tracks Subgroup in Drawer */
.mobile-tracks-group {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.75rem 0;
}

.mobile-tracks-heading {
    padding: 0.25rem 1.5rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 0.05em;
}

.mobile-tracks-sublinks {
    display: flex;
    flex-direction: column;
}

.mobile-track-sublink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1.5rem 0.55rem 2rem;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-track-sublink:hover {
    background: #EDF2F7;
    color: var(--color-brand-navy);
}

/* Header User / Action Area */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.sparks-badge {
    background: #FFFBEB;
    border: 1px solid rgba(189, 155, 97, 0.45);
    color: var(--color-brand-gold-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.user-menu-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-brand-navy);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    border-radius: var(--radius-full);
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    text-decoration: none;
    outline: none;
}

.user-menu-pill:hover,
.user-menu-dropdown:hover .user-menu-pill,
.user-menu-dropdown.open .user-menu-pill {
    background: #EFF6FF;
    border-color: #BFDBFE;
    box-shadow: 0 2px 8px rgba(1, 43, 90, 0.08);
}

.user-dropdown-arrow {
    font-size: 0.72rem;
    color: #64748B;
    transition: transform 0.2s ease;
    margin-left: 0.15rem;
}

.user-menu-dropdown:hover .user-dropdown-arrow,
.user-menu-dropdown.open .user-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-brand-navy);
}

/* Hover bridge to keep dropdown open during mouse travel */
.user-menu-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 0.75rem;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 290px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 40px -6px rgba(1, 43, 90, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1060;
}

.user-menu-dropdown:hover .user-dropdown-menu,
.user-menu-dropdown:focus-within .user-dropdown-menu,
.user-menu-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.75rem;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 0.5rem;
}

.user-dropdown-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-brand-navy);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(1, 43, 90, 0.2);
}

.user-dropdown-meta {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-weight: 700;
    color: var(--color-brand-navy);
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.76rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-sparks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFBEB;
    border: 1px solid rgba(189, 155, 97, 0.35);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.user-dropdown-sparks-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand-gold-dark);
}

.user-dropdown-sparks-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: #012B5A;
    background: #BD9B61;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.user-dropdown-sparks-btn:hover {
    opacity: 0.9;
}

.user-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-brand-navy);
    transition: background 0.15s ease;
}

.user-dropdown-item:hover {
    background: #F8FAFC;
}

.user-dropdown-icon {
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.user-dropdown-desc {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 1px;
}

.user-dropdown-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 0.35rem 0;
}

.user-dropdown-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #DC2626;
    font-size: 0.86rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.user-dropdown-logout-btn:hover {
    background: #FEF2F2;
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-brand-gold);
    color: var(--color-brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.badge-role {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}

.badge-role.student {
    background: #DBEAFE;
    color: #1D4ED8;
}

.badge-role.creator {
    background: #FEF3C7;
    color: #B45309;
}

.badge-role.admin {
    background: #FEE2E2;
    color: #B91C1C;
}

/* ==============================================================================
   RESPONSIVE HEADER & MOBILE DRAWER NAVIGATION
   ============================================================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.mobile-menu-btn .bar {
    width: 20px;
    height: 2px;
    background-color: var(--color-brand-navy);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-btn.active .bar-1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .bar-3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer & Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 30, 61, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #FFFFFF;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
    background: #F1F5F9;
    color: var(--color-brand-navy);
}

.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.mobile-drawer-sparks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: #FFFBEB;
    border-bottom: 1px solid #FEF3C7;
    font-size: 0.88rem;
    color: #92400E;
    font-weight: 600;
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.5rem;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.85rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #F1F5F9;
    color: var(--color-brand-navy);
    border-left-color: var(--color-brand-navy);
}

.mobile-nav-link .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-link .nav-label {
    flex: 1;
}

.mobile-nav-link .nav-chip {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 99px;
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 700;
}

.mobile-nav-link .nav-chip.gold {
    background: #FFFBEB;
    color: #B45309;
}

.mobile-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.4;
}

.btn:active {
    transform: scale(0.98);
}

.btn-navy-pill {
    background: var(--color-brand-navy);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(1, 43, 90, 0.25);
}

.btn-navy-pill:hover {
    background: var(--color-brand-navy-light);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(1, 43, 90, 0.35);
}

.btn-gold-pill {
    background: #C69A52;
    color: #012B5A;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(198, 154, 82, 0.35);
}

.btn-gold-pill:hover {
    background: #D4AF37;
    color: #001833;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 154, 82, 0.45);
}

.btn-translucent-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-weight: 600;
}

.btn-translucent-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ==============================================================================
   DEEP ROYAL NAVY HERO CANVAS
   ============================================================================== */
.hero-canvas {
    background: radial-gradient(circle at 80% 20%, #0E3666 0%, #071E3D 60%, #031226 100%);
    color: #FFFFFF;
    padding: 5rem 2rem 5.5rem;
    position: relative;
    overflow: hidden;
}

.hero-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(189, 155, 97, 0.4);
    color: var(--color-brand-gold-light);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
}

.hero-pill-badge span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-brand-gold);
}

.hero-title {
    font-size: clamp(2.6rem, 4.8vw, 4.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-gold-text {
    color: #D4AF37;
    background: linear-gradient(135deg, #EBD7B0 0%, #D4AF37 50%, #C69A52 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #CBD5E1;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.hero-search-bar {
    background: #FFFFFF;
    border-radius: var(--radius-full);
    padding: 0.4rem 0.5rem 0.4rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 560px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: #94A3B8;
    padding-top: 2rem;
    margin: 3.5rem auto 0;
    width: 100%;
    max-width: 1380px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-trust-item strong {
    color: #E2E8F0;
}

/* Hero Right: Mac-Style Interactive Card Widget */
.hero-preview-window {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-hero);
    position: relative;
    padding: 1.5rem;
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.25rem;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dot.red {
    background: #EF4444;
}

.window-dot.yellow {
    background: #F59E0B;
}

.window-dot.green {
    background: #10B981;
}

.window-breadcrumb {
    font-size: 0.8rem;
    color: #CBD5E1;
    font-weight: 600;
}

.mock-card-body {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: var(--color-text-main);
    box-shadow: var(--shadow-md);
}

.mock-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.mock-katex-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.mock-formula {
    font-family: 'KaTeX_Main', 'Cambria Math', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.mock-formula-caption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.mock-step-pills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.mock-step-pill {
    padding: 0.45rem 0.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    background: #F1F5F9;
    color: #64748B;
}

.mock-step-pill.active {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FCD34D;
}

/* Floating Window Badges */
.floating-chip {
    position: absolute;
    background: #0B1E36;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.floating-chip.top-right {
    top: -24px;
    right: -24px;
}

.floating-chip.bottom-left {
    bottom: -24px;
    left: -24px;
}

.chip-icon {
    font-size: 1.3rem;
}

.chip-text-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
}

.chip-text-sub {
    font-size: 0.72rem;
    color: var(--color-brand-gold-light);
}

/* ==============================================================================
   SECTION 1: 4-STEP COGNITIVE ARCHITECTURE
   ============================================================================== */
.method-section {
    padding: 6rem 2rem;
    background: var(--color-surface-white);
}

.section-container {
    max-width: 1380px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 4rem;
}

.section-badge-tag {
    display: inline-block;
    color: var(--color-brand-gold-dark);
    background: #FFFBEB;
    border: 1px solid rgba(189, 155, 97, 0.3);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--color-brand-navy);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.section-main-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.steps-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-method-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.step-method-card:hover {
    background: #FFFFFF;
    box-shadow: var(--shadow-lg);
    border-color: rgba(1, 43, 90, 0.2);
    transform: translateY(-4px);
}

.step-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.step-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.step-card-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #CBD5E1;
}

.step-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.75rem;
}

.step-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex: 1;
}

.step-card-pill {
    font-size: 0.8rem;
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==============================================================================
   SECTION 2: INTERACTIVE LIVE DECK SIMULATOR
   ============================================================================== */
.simulator-section {
    padding: 6rem 2rem;
    background: #F1F5F9;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.sim-window {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid #CBD5E1;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sim-window-top {
    background: #F8FAFC;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sim-tab-btn {
    background: transparent;
    border: 1px solid #CBD5E1;
    color: #64748B;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-tab-btn:hover {
    background: #F1F5F9;
    color: var(--color-brand-navy);
}

.sim-tab-btn.active {
    background: var(--color-brand-navy);
    color: #FFFFFF;
    border-color: var(--color-brand-navy);
    box-shadow: 0 2px 8px rgba(1, 43, 90, 0.25);
}

.sim-pane {
    display: none;
    animation: fadeInPane 0.25s ease-out;
}

.sim-pane.active {
    display: block;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Player Mock */
.sim-video-box {
    background: #000E21;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid #1E3A5F;
}

.sim-video-viewport {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0B2B52 0%, #031429 100%);
    position: relative;
    color: #FFFFFF;
    cursor: pointer;
}

.sim-video-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-brand-gold);
    color: var(--color-brand-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 24px rgba(189, 155, 97, 0.6);
    transition: transform 0.2s;
}

.sim-video-play-btn:hover {
    transform: scale(1.08);
}

.sim-video-bar {
    background: rgba(0, 14, 33, 0.95);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-timeline {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
}

.sim-timeline-fill {
    width: 48%;
    height: 100%;
    background: var(--color-brand-gold);
    border-radius: 2px;
}

.sim-timestamps-row {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.sim-timestamp-chip {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: var(--color-brand-navy);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.sim-timestamp-chip:hover {
    background: #E2E8F0;
    border-color: var(--color-brand-gold);
}

/* Quiz Option Styles */
.sim-quiz-option {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.sim-quiz-option:hover {
    border-color: var(--color-brand-navy);
    background: #F8FAFC;
}

.sim-quiz-option.correct {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
    font-weight: 700;
}

.sim-quiz-option.incorrect {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}


.sim-content-box {
    padding: 2.25rem;
}

.flashcard-3d-wrap {
    perspective: 1000px;
    height: 280px;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.flashcard-3d-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-3d-card.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.flashcard-back {
    transform: rotateY(180deg);
    background: #FAF5FF;
    border-color: #D8B4FE;
}

.sm2-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
}

.btn-sm2 {
    border: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 0.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: transform 0.15s;
}

.btn-sm2:hover {
    transform: translateY(-2px);
}

/* Why This Method Delivers 2.5x Higher Retention */
.retention-box-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.retention-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.retention-icon {
    font-size: 1.4rem;
}

.retention-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-brand-navy);
    margin-bottom: 0.25rem;
}

.retention-sub {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==============================================================================
   SECTION 3: 5 MASTER LEARNING TRACKS SHOWCASE
   ============================================================================== */
.tracks-showcase-section {
    padding: 6rem 2rem;
    background: var(--color-surface-white);
}

.tracks-flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.track-showcase-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.75rem;
    border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.track-showcase-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.track-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.track-showcase-card.academic::before {
    background: var(--track-academic);
}

.track-showcase-card.junior::before {
    background: var(--track-junior);
}

.track-showcase-card.skills::before {
    background: var(--track-skills);
}

.track-showcase-card.special-care::before {
    background: var(--track-special-care);
}

.track-showcase-card.mindset::before {
    background: var(--track-mindset);
}

.track-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-block;
    align-self: flex-start;
    margin-top: 1rem;
}

.track-showcase-card.academic .track-card-badge {
    background: #EFF6FF;
    color: var(--track-academic);
}

.track-showcase-card.junior .track-card-badge {
    background: #FFFBEB;
    color: var(--track-junior);
}

.track-showcase-card.skills .track-card-badge {
    background: #ECFDF5;
    color: var(--track-skills);
}

.track-showcase-card.special-care .track-card-badge {
    background: #FAF5FF;
    color: var(--track-special-care);
}

.track-showcase-card.mindset .track-card-badge {
    background: #FDF2F8;
    color: var(--track-mindset);
}

/* ==============================================================================
   SECTION 4: CALL TO ACTION BANNER & FAQ
   ============================================================================== */
.cta-banner-wrap {
    padding: 4rem 2rem 6rem;
    background: var(--color-surface-white);
}

.cta-box-card {
    background: radial-gradient(circle at 75% 25%, #0E3666 0%, #071E3D 65%, #031226 100%);
    border-radius: var(--radius-2xl);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #FFFFFF;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 25px 60px -10px rgba(1, 43, 90, 0.4);
    border: 1px solid rgba(189, 155, 97, 0.4);
}

.cta-box-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-box-sub {
    font-size: 1.15rem;
    color: #CBD5E1;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* ==============================================================================
   PREMIUM FAQ ACCORDION COMPONENT (Homepage & All 5 Track Landings)
   ============================================================================== */

.faq-section,
.track-faq-section {
    padding: 5rem 1.5rem;
    background: #F8FAFC;
    position: relative;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Base FAQ Card */
.faq-item,
details.faq-item {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.faq-item:hover,
details.faq-item:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

/* Open State Accentuation */
details.faq-item[open],
.faq-item.open {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

/* Question Summary / Bar */
.faq-question,
summary.faq-question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
    padding: 1.25rem 1.6rem !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    cursor: pointer;
    user-select: none;
    list-style: none !important;
    outline: none !important;
    transition: color 0.18s ease;
    margin: 0;
    background: transparent;
}

summary.faq-question::-webkit-details-marker,
summary.faq-question::marker {
    display: none !important;
}

.faq-question:hover,
summary.faq-question:hover {
    color: #2563EB !important;
}

details.faq-item[open]>summary.faq-question,
.faq-item.open>.faq-question {
    color: #1D4ED8 !important;
}

/* Circular Rotating Chevron Indicator */
.faq-icon-chevron {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.faq-question:hover .faq-icon-chevron,
summary.faq-question:hover .faq-icon-chevron {
    background: #EFF6FF;
    color: #2563EB;
}

details.faq-item[open]>summary.faq-question .faq-icon-chevron,
.faq-item.open>.faq-question .faq-icon-chevron {
    background: #2563EB;
    color: #FFFFFF;
    transform: rotate(180deg);
}

/* Fallback chevron icon for markup without .faq-icon-chevron element */
details.faq-item:not(:has(.faq-icon-chevron)) summary.faq-question::after,
div.faq-item:not(:has(.faq-icon-chevron)) .faq-question:not(:has(span:last-child:not(:first-child)))::after {
    content: '▾';
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

details.faq-item[open]:not(:has(.faq-icon-chevron)) summary.faq-question::after {
    background: #2563EB;
    color: #FFFFFF;
    transform: rotate(180deg);
}

/* FAQ Answer Content */
.faq-answer {
    padding: 0 1.6rem 1.4rem !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    border-top: 1px solid #F1F5F9;
    padding-top: 0.85rem !important;
}

/* Ensure answer is visible when details is open */
details.faq-item .faq-answer {
    display: block !important;
    animation: faqSlideFade 0.22s ease;
}

div.faq-item .faq-answer {
    display: none;
}

div.faq-item.open .faq-answer {
    display: block !important;
    animation: faqSlideFade 0.22s ease;
}

@keyframes faqSlideFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Site Footer */
.site-footer {
    background: #001833;
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--color-brand-gold);
}

.footer-bottom {
    max-width: 1380px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748B;
}

/* Mobile Sticky Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.bottom-nav-items {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-around;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748B;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.2rem;
}

.bottom-nav-link.active,
.bottom-nav-link:hover {
    color: var(--color-brand-navy);
}

/* Responsive Design System */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet & Small Desktop (<= 992px) */
@media (max-width: 992px) {
    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .site-header {
        padding: 0 1.5rem;
    }
}

/* Tablet (<= 768px) */
@media (max-width: 768px) {
    .header-desktop-only {
        display: none !important;
    }

    .site-header {
        padding: 0 1.25rem;
        height: 66px;
    }

    .hero-canvas {
        padding: 3.5rem 1.25rem 4rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .hero-trust-metrics {
        gap: 1.25rem;
        padding-top: 1.5rem;
        margin: 2.5rem auto 0;
        font-size: 0.84rem;
    }

    .hero-preview-window {
        max-width: 100%;
        margin-top: 1rem;
    }

    .method-section,
    .simulator-section,
    .tracks-showcase-section,
    .cta-banner-section {
        padding: 4rem 1.25rem;
    }

    .sim-content-box {
        padding: 1.5rem 1.25rem;
    }

    .sim-tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0.35rem;
        gap: 0.35rem;
    }

    .sim-tab-btn {
        flex: 0 0 auto;
        padding: 0.55rem 0.9rem;
        font-size: 0.82rem;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Devices (<= 640px) */
@media (max-width: 640px) {
    .steps-cards-grid {
        grid-template-columns: 1fr;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding-bottom: calc(var(--bottom-nav-height) + 1.25rem);
    }

    .floating-chip {
        display: none;
    }

    .cta-banner-box {
        padding: 3rem 1.5rem;
    }

    .cta-btn-row {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Narrow Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .site-header {
        padding: 0 1rem;
        height: 62px;
    }

    .brand-logo-img {
        height: 30px;
    }

    .brand-tagline {
        display: none;
    }

    .sparks-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.82rem;
        gap: 0.3rem;
    }

    .hero-search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-xl);
        padding: 0.75rem 1rem;
        gap: 0.6rem;
    }

    .hero-search-bar input {
        width: 100%;
    }

    .hero-search-bar .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-cta-row .btn {
        width: 100%;
        justify-content: center;
    }

    .sm2-action-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .flashcard-3d-wrap {
        height: 310px;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 1.25rem;
    }
}

/* ==============================================================================
   LEGAL & TRUST DOCUMENTS RESPONSIVE LAYOUT
   ============================================================================== */
.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .legal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==============================================================================
   GLOBAL FORM CONTROLS & INPUT SYSTEM (STUDYDECKS DESIGN SPEC)
   ============================================================================== */
.form-group {
    margin-bottom: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin: 0;
    user-select: none;
}

.form-label-hint {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #94A3B8;
}

/* Universal Input Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
.form-input {
    width: 100%;
    box-sizing: border-box;
    background-color: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    color: #0F172A;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    outline: none;
}

/* Hover state */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
textarea:hover,
.form-input:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

/* Focus state with brand navy ring */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
.form-input:focus {
    background-color: #FFFFFF;
    border-color: #012B5A;
    box-shadow: 0 0 0 4px rgba(1, 43, 90, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Placeholder */
input::placeholder,
textarea::placeholder,
.form-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Browser Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #F8FAFC inset !important;
    -webkit-text-fill-color: #0F172A !important;
    border-color: #CBD5E1 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Custom Styled Select */
select,
.form-select {
    width: 100%;
    box-sizing: border-box;
    background-color: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 2.75rem 0.85rem 1.15rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    color: #0F172A;
    line-height: 1.5;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.15rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

select:hover,
.form-select:hover {
    border-color: #CBD5E1;
    background-color: #FFFFFF;
}

select:focus,
.form-select:focus {
    background-color: #FFFFFF;
    border-color: #012B5A;
    box-shadow: 0 0 0 4px rgba(1, 43, 90, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Password Input with Toggle Button */
.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap .form-input {
    padding-right: 2.75rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #012B5A;
}

/* ==============================================================================
   AUTH MINIMAL HEADER & CANVAS (STUDYDECKS EXACT MATCH)
   ============================================================================== */
.auth-minimal-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.auth-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-auth-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-back-home:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: #012B5A;
    transform: translateX(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-main-canvas {
    min-height: calc(100vh - 140px);
    background: radial-gradient(ellipse at 50% 0%, rgba(189, 155, 97, 0.08) 0%, rgba(1, 43, 90, 0.03) 40%, #F8FAFC 100%);
    padding: 3rem 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-minimal-footer {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #94A3B8;
    background: #FFFFFF;
    border-top: 1px solid #F1F5F9;
}

/* ==============================================================================
   AUTH CARD & DEMO ROLE SWITCHER (STUDYDECKS AESTHETIC)
   ============================================================================== */
.auth-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(1, 43, 90, 0.09), 0 10px 20px -5px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
}

/* Top Golden Shimmer Accent */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #012B5A 0%, #BD9B61 50%, #012B5A 100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    letter-spacing: 0.02em;
}

.auth-badge-pill.gold {
    background: rgba(189, 155, 97, 0.12);
    color: #8F7239;
    border: 1px solid rgba(189, 155, 97, 0.28);
}

.auth-badge-pill.navy {
    background: rgba(1, 43, 90, 0.08);
    color: #012B5A;
    border: 1px solid rgba(1, 43, 90, 0.18);
}

.auth-title {
    font-size: 1.85rem;
    color: #012B5A;
    font-weight: 800;
    margin-bottom: 0.45rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.auth-subtitle {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Primary Auth Submit Button */
.btn-auth-submit {
    width: 100%;
    background: #012B5A;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0.92rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(1, 43, 90, 0.22);
    margin-top: 1.35rem;
}

.btn-auth-submit:hover {
    background: #001B3A;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(1, 43, 90, 0.32);
    color: #FFFFFF;
}

.btn-auth-submit:active {
    transform: translateY(0);
}

/* 1-Click Instant Demo Role Testing Section */
.demo-switcher-section {
    margin-top: 1.85rem;
    padding-top: 1.65rem;
    border-top: 1px dashed #E2E8F0;
    text-align: center;
}

.demo-section-header {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D97706;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.demo-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.demo-role-card {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.demo-role-card:hover {
    border-color: #BD9B61;
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(189, 155, 97, 0.16);
    color: inherit;
}

.demo-role-icon {
    font-size: 1.35rem;
    margin-bottom: 0.1rem;
}

.demo-role-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #012B5A;
}

.demo-role-hint {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 500;
}

.demo-section-footer {
    font-size: 0.74rem;
    color: #94A3B8;
}

/* Trust Badges Under Card */
.auth-trust-badges {
    margin-top: 1.75rem;
    text-align: center;
}

.auth-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: #64748B;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.auth-trust-sub {
    font-size: 0.78rem;
    color: #94A3B8;
    margin: 0;
}

/* Role Selector Grid in Registration */
.role-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.role-option-card {
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 1rem;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    user-select: none;
}

.role-option-card:hover {
    border-color: #BD9B61;
    background: #FFFBEB;
}

.role-option-card:has(input[type="radio"]:checked) {
    border-color: #012B5A;
    background: rgba(1, 43, 90, 0.04);
    box-shadow: 0 0 0 1px #012B5A;
}

.role-option-card input[type="radio"] {
    accent-color: #012B5A;
    margin-top: 3px;
    width: 1.1rem;
    height: 1.1rem;
}

.role-option-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #012B5A;
    margin-bottom: 0.2rem;
}

.role-option-desc {
    font-size: 0.78rem;
    color: #64748B;
    line-height: 1.4;
}

@media (max-width: 540px) {
    .auth-card {
        padding: 2.25rem 1.5rem;
        border-radius: 18px;
    }

    .role-selector-grid {
        grid-template-columns: 1fr;
    }

    .demo-role-grid {
        grid-template-columns: 1fr;
    }

    .demo-role-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .demo-role-hint {
        margin-left: auto;
    }
}

/**
 * ==============================================================================
 * DYNAMIC THEME ENGINE & TOKENS (TASK-201 & TASK-206)
 * Modes: academic_latex, media_first, roadmap, calm_accessible, read_listen
 * ==============================================================================
 */

[data-theme="academic_latex"] {
    --track-accent: #2563EB;
    --track-accent-glow: rgba(37, 99, 235, 0.25);
    --track-bg-subtle: #EFF6FF;
    --track-border: #BFDBFE;
    --track-font-heading: 'Outfit', sans-serif;
    --track-radius: 16px;
}

[data-theme="media_first"] {
    --track-accent: #F59E0B;
    --track-accent-glow: rgba(245, 158, 11, 0.25);
    --track-bg-subtle: #FFFBEB;
    --track-border: #FDE68A;
    --track-font-heading: 'Outfit', sans-serif;
    --track-radius: 24px;
}

[data-theme="roadmap"] {
    --track-accent: #10B981;
    --track-accent-glow: rgba(16, 185, 129, 0.25);
    --track-bg-subtle: #ECFDF5;
    --track-border: #A7F3D0;
    --track-font-heading: 'JetBrains Mono', monospace;
    --track-radius: 12px;
}

[data-theme="calm_accessible"] {
    --track-accent: #8B5CF6;
    --track-accent-glow: rgba(139, 92, 246, 0.25);
    --track-bg-subtle: #FAF5FF;
    --track-border: #DDD6FE;
    --track-font-heading: 'Inter', sans-serif;
    --track-radius: 18px;
    letter-spacing: 0.015em;
}

[data-theme="read_listen"] {
    --track-accent: #EC4899;
    --track-accent-glow: rgba(236, 72, 153, 0.25);
    --track-bg-subtle: #FDF2F8;
    --track-border: #FBCFE8;
    --track-font-heading: 'Outfit', serif;
    --track-radius: 16px;
}

/**
 * ==============================================================================
 * BESPOKE TRACK LANDING PAGES (TASK-206)
 * ==============================================================================
 */

.track-landing-hero {
    color: #FFFFFF;
    padding: 4.5rem 2rem 5.5rem;
    position: relative;
    overflow: hidden;
}

.academic-hero {
    background: radial-gradient(circle at 80% 20%, #0E3666 0%, #071E3D 60%, #031226 100%);
}

.junior-hero {
    background: radial-gradient(circle at 80% 20%, #4D3300 0%, #291B00 60%, #140E00 100%);
}

.skills-hero {
    background: radial-gradient(circle at 80% 20%, #064E3B 0%, #022C22 60%, #011612 100%);
}

.special-care-hero {
    background: radial-gradient(circle at 80% 20%, #3B1B66 0%, #210F3A 60%, #11071F 100%);
}

.mindset-hero {
    background: radial-gradient(circle at 80% 20%, #581C3F 0%, #351026 60%, #1A0713 100%);
}

.track-hero-container {
    max-width: 1380px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.track-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.track-badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.track-badge-pill {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.track-age-pill,
.track-curriculum-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.track-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.3rem, 4.8vw, 3.5rem);
    font-weight: 800;
    line-height: 1.18;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.text-accent-academic {
    color: #60A5FA;
}

.text-accent-junior {
    color: #FBBF24;
}

.text-accent-skills {
    color: #34D399;
}

.text-accent-special {
    color: #C084FC;
}

.text-accent-mindset {
    color: #F472B6;
}

.track-hero-desc {
    color: #CBD5E1;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 620px;
}

.track-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-primary-academic {
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-academic:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
    color: #FFFFFF;
}

.btn-primary-junior {
    background: #F59E0B;
    color: #031226;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-junior:hover {
    background: #D97706;
    color: #031226;
    transform: translateY(-2px);
}

.btn-primary-skills {
    background: #10B981;
    color: #031226;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-skills:hover {
    background: #059669;
    color: #031226;
    transform: translateY(-2px);
}

.btn-primary-special {
    background: #8B5CF6;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-special:hover {
    background: #7C3AED;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-primary-mindset {
    background: #EC4899;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.85rem 1.8rem;
    border-radius: 99px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: all 0.25s ease;
}

.btn-primary-mindset:hover {
    background: #DB2777;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.track-hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-mini-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.trust-icon {
    color: #34D399;
    font-weight: bold;
}

/* Mac-Style Preview Window for Tracks */
.mac-preview-card {
    background: #0B132B;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mac-window-bar {
    background: #060B1A;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-dots {
    display: flex;
    gap: 6px;
    margin-right: 1rem;
}

.mac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #FF5F56;
}

.dot-yellow {
    background: #FFBD2E;
}

.dot-green {
    background: #27C93F;
}

.mac-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #CBD5E1;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mac-step-badge {
    background: #2563EB;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.mac-preview-body {
    padding: 1.75rem;
    background: #071224;
}

.preview-deck-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.deck-subject-tag {
    background: #1E293B;
    color: #60A5FA;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.deck-level-tag {
    background: rgba(255, 255, 255, 0.06);
    color: #94A3B8;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.deck-retention-rate {
    color: #34D399;
    font-weight: 600;
    margin-left: auto;
}

.formula-caption {
    font-size: 0.82rem;
    color: #94A3B8;
    margin-bottom: 0.5rem;
}

.katex-rendered-box {
    background: #030814;
    border: 1px solid #1E293B;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.formula-math {
    font-family: 'KaTeX_Main', 'Cambria Math', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #60A5FA;
}

.katex-rendered-box .katex {
    color: #93C5FD;
    font-size: 1.35rem;
}

.katex-rendered-box .katex-display {
    margin: 0;
}

.exam-trap-callout {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.trap-icon {
    font-size: 1.25rem;
}

.trap-text {
    font-size: 0.82rem;
    color: #FECACA;
    line-height: 1.5;
}

.preview-action-row {
    margin-top: 1.25rem;
}

.preview-launch-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.preview-launch-btn:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    color: #FFFFFF;
}

/* Junior Hero Preview */
.junior-interactive-card {
    background: #1A1305;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.junior-sound-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #FDE68A;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.junior-emoji-showcase {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.emoji-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.tile-icon {
    font-size: 2.5rem;
}

.tile-word {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.junior-cheer-box {
    background: rgba(16, 185, 129, 0.15);
    color: #6EE7B7;
    padding: 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skills Terminal Preview */
.dark-terminal-body {
    background: #050B14;
}

.code-terminal-block {
    background: #03070E;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.code-kw {
    color: #F472B6;
    font-weight: 600;
}

.code-str {
    color: #34D399;
}

.code-fn {
    color: #60A5FA;
}

.code-type {
    color: #FBBF24;
}

.code-dec {
    color: #C084FC;
}

.code-cmt {
    color: #64748B;
    font-style: italic;
}

/* Special Care Calm Preview */
.calm-content-box {
    background: #140A26;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.calm-affirmation-badge {
    color: #DDD6FE;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.calm-steps-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calm-step-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: #E2E8F0;
    font-size: 0.88rem;
}

.calm-step-item .step-num {
    background: #8B5CF6;
    color: #FFFFFF;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Mindset Book Preview */
.mindset-book-card {
    background: #1F0716;
    border: 1px solid rgba(236, 72, 153, 0.25);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.book-quote-box {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}

.quote-mark {
    position: absolute;
    left: -0.25rem;
    top: -0.5rem;
    font-size: 2rem;
    color: #EC4899;
    opacity: 0.5;
}

.quote-text {
    color: #FCE7F3;
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.5;
}

.habit-loop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.loop-pill {
    background: rgba(236, 72, 153, 0.12);
    color: #FBCFE8;
    font-size: 0.78rem;
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.audio-mini-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EC4899;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-track-info {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
}

.audio-title {
    color: #FFFFFF;
    font-weight: 600;
}

.audio-time {
    color: #94A3B8;
}

/* Breadcrumb Strip */
.track-breadcrumb-bar {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.85rem 2rem;
}

.track-breadcrumb-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748B;
}

.track-breadcrumb-inner a {
    color: var(--color-brand-navy);
    font-weight: 600;
    text-decoration: none;
}

.track-breadcrumb-inner .sep {
    color: #94A3B8;
}

.track-breadcrumb-inner .current {
    font-weight: 700;
}

/* Filter Pill Bar */
.board-selector-strip {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 1.15rem 2rem;
}

.board-strip-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.board-strip-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
}

.board-pill-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.board-pill {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.board-pill:hover,
.board-pill.active {
    background: var(--color-brand-navy);
    color: #FFFFFF;
    border-color: var(--color-brand-navy);
}

/* Syllabus Decks Catalog */
.track-syllabus-section {
    padding: 4.5rem 2rem;
    background: #F8FAFC;
}

.track-section-container {
    max-width: 1380px;
    margin: 0 auto;
}

.section-header-block {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-brand-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: #64748B;
    font-size: 1.05rem;
    line-height: 1.6;
}

.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.75rem;
}

.academic-deck-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.academic-deck-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(1, 43, 90, 0.08);
    border-color: #CBD5E1;
}

.junior-card-border:hover {
    border-color: #F59E0B;
}

.skills-card-border:hover {
    border-color: #10B981;
}

.special-card-border:hover {
    border-color: #8B5CF6;
}

.mindset-card-border:hover {
    border-color: #EC4899;
}

.deck-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.deck-type-pill {
    background: #EFF6FF;
    color: #2563EB;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.deck-grade-badge {
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 600;
}

.deck-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.deck-description {
    color: #64748B;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.deck-stats-bar {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    padding-top: 0.85rem;
    border-top: 1px solid #F1F5F9;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.deck-footer-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-price-tag.free-tag {
    background: #ECFDF5;
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.deck-cta-btn {
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.15rem;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.deck-cta-btn.btn-academic {
    background: #2563EB;
    color: #FFFFFF;
}

.deck-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pedagogy Deep-Dive Section */
.pedagogy-deepdive-section {
    padding: 5rem 2rem;
    background: #FFFFFF;
}

.pedagogy-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.pedagogy-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.pedagogy-box:hover {
    border-color: #CBD5E1;
    transform: translateY(-3px);
}

.pedagogy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pedagogy-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.5rem;
}

.pedagogy-desc {
    color: #64748B;
    font-size: 0.88rem;
    line-height: 1.6;
}



/* Bottom Conversion Banner */
.track-conversion-banner {
    padding: 4.5rem 2rem;
    color: #FFFFFF;
    text-align: center;
}

.academic-banner {
    background: #031226;
}

.junior-banner {
    background: #1C1200;
}

.skills-banner {
    background: #022018;
}

.special-care-banner {
    background: #17092B;
}

.mindset-banner {
    background: #260A1D;
}

.banner-inner {
    max-width: 780px;
    margin: 0 auto;
}

.banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.banner-desc {
    color: #CBD5E1;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/**
 * ==============================================================================
 * UNIFIED DYNAMIC DECK STUDY PLAYER STYLING (TASK-301)
 * ==============================================================================
 */

.deck-study-wrapper {
    background: #0B132B;
    min-height: 100vh;
    color: #F8FAFC;
    padding-bottom: 90px;
}

.deck-study-topbar {
    background: #071E3D;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.deck-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.deck-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 1rem;
}

.deck-back-link {
    color: #CBD5E1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.deck-back-link:hover {
    color: #FFFFFF;
}

.current-subject {
    color: #94A3B8;
}

.deck-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.deck-badges-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.deck-track-tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.deck-board-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.deck-free-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.deck-main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
}

.deck-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.deck-xp-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.xp-icon {
    font-size: 1.25rem;
}

.xp-info {
    display: flex;
    flex-direction: column;
}

.xp-label {
    font-size: 0.68rem;
    color: #94A3B8;
    text-transform: uppercase;
}

.xp-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #FBBF24;
}

.deck-time-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #CBD5E1;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Progress bar */
.deck-progress-container {
    margin-bottom: 1.5rem;
}

.deck-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #CBD5E1;
    margin-bottom: 0.4rem;
}

.deck-progress-track {
    background: rgba(255, 255, 255, 0.12);
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
}

.deck-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* Step switcher tabs */
.deck-step-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.step-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94A3B8;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    text-align: left;
}

.step-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.step-tab-btn.active {
    background: #031226;
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.step-tab-icon {
    font-size: 1.35rem;
}

.step-tab-text {
    display: flex;
    flex-direction: column;
}

.step-tab-num {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #64748B;
    font-weight: 700;
}

.step-tab-btn.active .step-tab-num {
    color: #CBD5E1;
}

.step-tab-name {
    font-size: 0.88rem;
    font-weight: 700;
}

.step-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-left: auto;
}

/* Deck Workspace */
.deck-workspace-container {
    max-width: 1240px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.step-main-card {
    background: #071E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
}

.step-sidebar-card {
    background: #071E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 1rem;
}

/* Video Mockup */
.video-mock-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-screen-canvas {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
}

.video-watermark {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.video-center-controls {
    text-align: center;
    margin: auto 0;
}

.video-play-big {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.video-play-big:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.video-overlay-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.video-bottom-hud {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #CBD5E1;
}

.hud-timeline {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    overflow: hidden;
}

.hud-fill {
    height: 100%;
}

.step-card-footer {
    padding: 1.5rem;
    background: #061833;
}

.lesson-summary-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.4rem;
}

.lesson-summary-text {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chapter-time {
    font-weight: 700;
    font-family: monospace;
}

.chapter-name {
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-xp-toast {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #CBD5E1;
    line-height: 1.5;
}

/* Notes Reader & Highlighters */
.notes-header-bar {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.notes-step-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.notes-headline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
}

.highlighter-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
}

.hl-label {
    font-size: 0.75rem;
    color: #94A3B8;
}

.hl-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.hl-dot:hover {
    transform: scale(1.2);
}

.hl-dot.active {
    border-color: #FFFFFF;
}

.hl-yellow {
    background: #FACC15;
}

.hl-green {
    background: #4ADE80;
}

.hl-pink {
    background: #F472B6;
}

.hl-blue {
    background: #60A5FA;
}

.notes-body-content {
    padding: 1.75rem;
}

.sub-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #CBD5E1;
    margin-bottom: 0.75rem;
}

.katex-note-card {
    background: #030C1A;
    border: 1px solid #1E293B;
    border-radius: 10px;
    padding: 1.15rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'KaTeX_Main', serif;
    font-size: 1.35rem;
    color: #60A5FA;
}

.points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #E2E8F0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.point-bullet {
    font-size: 1.25rem;
    line-height: 1;
}

.exam-trap-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 1.15rem;
}

.trap-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F87171;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.trap-body {
    color: #FECACA;
    font-size: 0.88rem;
    line-height: 1.6;
}

.notes-margin-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.margin-tip-box {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #94A3B8;
}

.margin-tip-box strong {
    color: #FFFFFF;
    display: block;
    margin-bottom: 0.25rem;
}

/* Flashcards 3D Scene */
.flashcard-workspace {
    max-width: 740px;
    margin: 0 auto;
}

.flashcard-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.fc-state-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-weight: 700;
}

.fc-counter {
    color: #94A3B8;
}

.flashcard-scene {
    width: 100%;
    min-height: 340px;
    perspective: 1200px;
    cursor: pointer;
    margin-bottom: 2rem;
}

.flashcard-cube {
    width: 100%;
    min-height: 340px;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flashcard-cube.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.flashcard-front {
    background: #e9eff7;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.flashcard-back {
    background: #FAF5FF;
    border: 2px solid #10B981;
    transform: rotateY(180deg);
}

.face-tag {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

.fc-prompt-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.45;
    text-align: center;
    margin: auto 0;
}

.fc-answer-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #FFFFFF;
    margin: auto 0;
}

.fc-hint-callout {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: #FDE68A;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.face-footer {
    text-align: center;
}

.flip-hint {
    font-size: 0.78rem;
    color: #94A3B8;
}

/* SM-2 Buttons Grid */
.sm2-actions-bar {
    background: #071E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.sm2-prompt {
    font-size: 0.85rem;
    font-weight: 600;
    color: #CBD5E1;
    display: block;
    margin-bottom: 1rem;
}

.sm2-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.btn-sm2 {
    border: none;
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.btn-sm2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sm2-rating-title {
    font-weight: 800;
    font-size: 0.95rem;
}

.sm2-interval {
    font-size: 0.72rem;
    opacity: 0.85;
}

.btn-sm2-again {
    background: #DC2626;
    color: #FFFFFF;
}

.btn-sm2-hard {
    background: #EA580C;
    color: #FFFFFF;
}

.btn-sm2-good {
    background: #2563EB;
    color: #FFFFFF;
}

.btn-sm2-easy {
    background: #059669;
    color: #FFFFFF;
}

.sm2-toast {
    margin-top: 1rem;
    background: #064E3B;
    border: 1px solid #10B981;
    color: #6EE7B7;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: fadeIn 0.2s ease;
}

/* Quiz Workspace */
.quiz-workspace {
    max-width: 820px;
    margin: 0 auto;
}

.quiz-card {
    background: #071E3D;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.25rem;
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.quiz-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.quiz-xp-badge {
    color: #FBBF24;
    font-weight: 700;
    font-size: 0.85rem;
}

.quiz-question-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.45;
    margin-bottom: 1.75rem;
}

.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.quiz-option-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.option-text {
    font-size: 0.95rem;
    color: #E2E8F0;
    line-height: 1.5;
    flex-grow: 1;
}

.quiz-option-item.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
}

.quiz-option-item.correct .option-letter {
    background: #10B981;
}

.quiz-option-item.incorrect {
    background: rgba(239, 68, 68, 0.15);
    border-color: #EF4444;
}

.quiz-option-item.incorrect .option-letter {
    background: #EF4444;
}

.quiz-remediation {
    background: #030E1F;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    animation: fadeIn 0.2s ease;
}

.remediation-header {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.remediation-desc {
    color: #CBD5E1;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Floating Bottom Controls */
.deck-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(7, 30, 61, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    z-index: 100;
}

.deck-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-step-pill-indicator {
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 600;
}

.deck-step-pill-indicator strong {
    color: #FFFFFF;
}

/* Responsive Media Queries */
@media (max-width: 980px) {
    .track-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .step-content-grid {
        grid-template-columns: 1fr;
    }

    .deck-step-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .deck-header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sm2-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deck-step-tabs {
        grid-template-columns: 1fr;
    }
}