/* =============================================================================
   MPSC ABHYAS ACADEMY - Clean White Educational Portal Design System
   Package: com.mpscabhyas.in | Official Portal: mpscabhyas.in
   Features: Proportioned Typography, Responsive Container, Anti-Overlap Layout
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,600,0,0');

:root, [data-theme="dark"] {
    /* Pure OLED Black & Slate Palette matching Android App Theme (Default Theme) */
    --bg-page: #07080C; /* DarkBackground */
    --bg-white: #10121A; /* DarkSurface */
    --bg-surface-subtle: #12141D; /* DarkCardSurface */
    --bg-surface-muted: #161924; /* DarkSurfaceElevated */
    --hero-bg: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(7, 8, 12, 1) 75%);

    /* High-contrast Borders matching Android DarkBorder */
    --border-light: #232738;
    --border-subtle: #1A1D2B;
    --border-hover: #38BDF8;

    /* Theme Primary Accent Colors */
    --gold-primary: #F59E0B; /* GoldPrimary */
    --gold-light: #FDE68A; /* AmberLight */
    --gold-bg: rgba(245, 158, 11, 0.14);
    --gold-border: rgba(245, 158, 11, 0.40);

    --navy-primary: #38BDF8; /* CyanAccent */
    --navy-dark: #F8FAFC; /* TextPrimary */
    --navy-light: #7DD3FC;
    --navy-bg: rgba(56, 189, 248, 0.12);
    --navy-border: rgba(56, 189, 248, 0.32);

    --emerald-success: #10B981; /* EmeraldSuccess */
    --emerald-bg: rgba(16, 185, 129, 0.14);
    --emerald-border: rgba(16, 185, 129, 0.32);

    --coral-danger: #F43F5E; /* CoralNotice */
    --coral-bg: rgba(244, 63, 94, 0.14);
    --coral-border: rgba(244, 63, 94, 0.32);

    --purple-accent: #A855F7; /* PurpleAccent */
    --purple-bg: rgba(168, 85, 247, 0.14);
    --purple-border: rgba(168, 85, 247, 0.32);

    /* Typography Colors matching Android TextPrimary / TextSecondary / TextMuted */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-light: #475569;
    --text-on-gold: #090A0F;

    /* Typography Families */
    --font-sans: 'Noto Sans Devanagari', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Depth Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.75);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.65);
}

[data-theme="light"] {
    /* Clean Light Educational Portal Palette (Optional Light Mode) */
    --bg-page: #F4F6FA;
    --bg-white: #FFFFFF;
    --bg-surface-subtle: #EBF0F8;
    --bg-surface-muted: #E2E8F0;
    --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #EEF2F6 100%);

    --border-light: #E2E8F0;
    --border-subtle: #CBD5E1;
    --border-hover: #94A3B8;

    --gold-primary: #D97706;
    --gold-light: #F59E0B;
    --gold-bg: #FEF3C7;
    --gold-border: #FCD34D;

    --navy-primary: #1E3A8A;
    --navy-dark: #0F172A;
    --navy-light: #2563EB;
    --navy-bg: #EFF6FF;
    --navy-border: #BFDBFE;

    --emerald-success: #059669;
    --emerald-bg: #ECFDF5;
    --emerald-border: #A7F3D0;

    --coral-danger: #DC2626;
    --coral-bg: #FEF2F2;
    --coral-border: #FECACA;

    --purple-accent: #7C3AED;
    --purple-bg: #F5F3FF;
    --purple-border: #DDD6FE;

    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --text-on-gold: #FFFFFF;

    /* Depth Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 3px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 16px -3px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Standardized responsive container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* View Sections Base */
.view-section {
    padding-top: 16px;
    padding-bottom: 36px;
}

/* =============================================================================
   TOP UTILITY ANNOUNCEMENT BAR (Clean & Compact)
   ============================================================================= */

.top-utility-bar {
    background: #0F172A;
    color: #F8FAFC;
    font-size: 0.74rem;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.utility-announcement {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.utility-badge {
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.utility-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    color: #94A3B8;
    flex-wrap: wrap;
}

.utility-visitor-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 2px 8px;
    border-radius: 999px;
    color: #38BDF8;
    font-size: 0.70rem;
    font-weight: 600;
}

.utility-visitor-pill strong {
    color: #F8FAFC;
    font-family: var(--font-mono);
}

.pulse-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
    display: inline-block;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-social-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-social-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #CBD5E1;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
}

.top-social-link.tg:hover { background: rgba(34, 158, 217, 0.2); border-color: #229ED9; color: #38BDF8; }
.top-social-link.wa:hover { background: rgba(37, 211, 102, 0.2); border-color: #25D366; color: #4ADE80; }
.top-social-link.yt:hover { background: rgba(239, 68, 68, 0.2); border-color: #EF4444; color: #F87171; }
.top-social-link.ig:hover { background: rgba(236, 72, 153, 0.2); border-color: #EC4899; color: #F472B6; }

.utility-links a:hover {
    color: #FFFFFF;
}

/* =============================================================================
   MAIN CLEAN WHITE NAVBAR (Compact, No Overlap)
   ============================================================================= */

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 12px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    min-width: 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid var(--border-light);
    object-fit: cover;
    background: var(--bg-surface-subtle);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.brand-name {
    font-size: 1.14rem;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.badge-academy {
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.brand-subtext {
    font-size: 0.70rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Nav Menu Links (Desktop - Strictly No Icons, Clean Typography, No Boxes) */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    flex-shrink: 1;
    overflow: visible !important;
}

.nav-item {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 10px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: color 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.nav-item:hover {
    color: var(--gold-primary);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-item.active {
    color: var(--gold-primary);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 800;
}

/* Nav Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Top Nav Exam Dropdown Selector (Inline, never full-screen modal) */
.top-nav-exam-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.top-nav-exam-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-subtle);
    border: 1.5px solid var(--border-subtle);
    padding: 6px 12px;
    height: 36px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.top-nav-exam-pill:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    transform: translateY(-0.5px);
}

.top-nav-exam-pill .exam-pill-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.top-nav-exam-pill .exam-pill-text {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-nav-exam-pill .exam-pill-arrow {
    font-size: 0.68rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.top-nav-exam-pill:hover .exam-pill-arrow {
    color: var(--gold-primary);
}

.top-nav-exam-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    max-width: 92vw;
    max-height: 480px;
    overflow-y: auto;
    background: var(--bg-surface-elevated, #0F121C);
    border: 1px solid var(--border-light, #232738);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    z-index: 1050;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: examDropdownFadeIn 0.15s ease-out;
}

[data-theme="light"] .top-nav-exam-dropdown {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

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

.top-nav-exam-dropdown.hidden {
    display: none !important;
}

.exam-dropdown-search-wrap {
    position: sticky;
    top: 0;
    background: inherit;
    padding-bottom: 6px;
    z-index: 2;
    border-bottom: 1px solid var(--border-light, #232738);
    margin-bottom: 4px;
}

.exam-dropdown-search {
    width: 100%;
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-light, #232738);
    background: var(--bg-surface-subtle, #161926);
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
}

[data-theme="light"] .exam-dropdown-search {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

.exam-group-header {
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 8px 3px 8px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exam-group-header.gold { color: var(--gold-primary, #F59E0B); }
.exam-group-header.blue { color: #60A5FA; }
.exam-group-header.green { color: #34D399; }
.exam-group-header.orange { color: #FB923C; }

.exam-parent-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light, #232738);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

[data-theme="light"] .exam-parent-toggle-btn {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #0F172A;
}

.exam-parent-toggle-btn:hover {
    border-color: var(--gold-primary, #F59E0B);
}

.exam-parent-toggle-btn .arrow-icon {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.exam-parent-toggle-btn.open .arrow-icon {
    transform: rotate(180deg);
}

.exam-sub-exams-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 10px;
    border-left: 2px solid var(--border-light, #232738);
    margin: 4px 0 4px 6px;
}

.exam-sub-exams-container.hidden {
    display: none !important;
}

.exam-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    outline: none;
    font-family: inherit;
    color: var(--text-primary, #F8FAFC);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.exam-dropdown-item:hover {
    background: rgba(56, 189, 248, 0.08);
}

.exam-dropdown-item.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.exam-dropdown-item.active .exam-dropdown-name {
    color: var(--gold-primary, #F59E0B);
    font-weight: 800;
}

.exam-item-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.exam-dropdown-name {
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-dropdown-sub {
    font-size: 0.69rem;
    color: var(--text-muted, #64748B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.exam-dropdown-check {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gold-primary, #F59E0B);
    margin-left: 10px;
    flex-shrink: 0;
}

/* Top Nav Exam Dropdown Selector - Natural Dropdown Look (Not a button) */
.top-nav-exam-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 2px 14px 2px 4px;
    height: 30px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-nav-exam-select-wrap:hover,
.top-nav-exam-select-wrap:focus-within {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .top-nav-exam-select-wrap:hover,
[data-theme="dark"] .top-nav-exam-select-wrap:focus-within {
    background: rgba(255, 255, 255, 0.06);
}

.top-nav-exam-select-wrap .exam-select-icon {
    font-size: 0.85rem;
    line-height: 1;
    margin-right: 4px;
    pointer-events: none;
    flex-shrink: 0;
}

.top-nav-exam-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 12px 0 0;
    margin: 0;
    height: 100%;
    max-width: 125px;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 2;
}

.top-nav-exam-select-wrap .exam-select-arrow {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.74rem;
    color: var(--text-muted, #64748b);
    pointer-events: none;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.top-nav-exam-select-wrap:hover .exam-select-arrow,
.top-nav-exam-select-wrap:focus-within .exam-select-arrow {
    color: var(--gold-primary, #d97706);
    transform: translateY(-50%) translateY(1px);
}

.top-nav-exam-select option {
    background: var(--bg-surface, #ffffff);
    color: var(--text-primary, #0f172a);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 12px;
}

.exam-target-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.exam-target-pill:hover {
    background: var(--bg-surface-muted);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2px;
    height: 36px;
    box-sizing: border-box;
}

.lang-btn {
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.lang-btn.active {
    background: var(--gold-primary);
    color: #090A0F;
    font-weight: 800;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.theme-toggle-btn:hover {
    border-color: var(--gold-primary);
    background: var(--gold-bg);
    transform: rotate(15deg);
}

.pro-pass-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.76rem;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pro-pass-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

/* Header Login / Register Button & User Menu (Matching Android GoldPrimary) */
.btn-top-login-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F59E0B;
    background-image: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #090A0F;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    padding: 7px 16px;
    height: 34px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
    user-select: none;
    text-decoration: none;
}

.btn-top-login-register:hover {
    background-image: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
    color: #000000;
}

.btn-top-login-register:active {
    transform: scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-top-login-register .btn-login-text-full {
    display: inline;
}

.btn-top-login-register .btn-login-text-short {
    display: none;
}

/* Dark theme support for Login / Register button (matching Android app GoldPrimary) */
[data-theme="dark"] .btn-top-login-register {
    background-color: #F59E0B;
    background-image: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #090A0F;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .btn-top-login-register:hover {
    background-image: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55);
    color: #090A0F;
}

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    color: var(--navy-primary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-login-header:hover {
    background: var(--navy-primary);
    color: #FFFFFF;
    border-color: var(--navy-primary);
}

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

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    background: var(--bg-white);
    border-color: var(--navy-primary);
}

.user-avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--navy-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-display-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy-dark);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-card {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 250px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: fadeIn 0.15s ease-out;
}

.user-dropdown-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.user-dropdown-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.user-dropdown-email {
    font-size: 0.72rem;
    color: var(--text-muted);
    word-break: break-all;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 7px 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
}

.user-dropdown-item:hover {
    background: var(--bg-surface-subtle);
    color: var(--navy-primary);
}

.user-dropdown-item.logout {
    color: var(--coral-danger);
    border-top: 1px solid var(--border-light);
    margin-top: 2px;
    padding-top: 8px;
}

.user-dropdown-item.logout:hover {
    background: var(--coral-bg);
}

.btn-install-app {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-install-app:hover {
    background: var(--bg-white);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.mobile-hamburger {
    display: none;
    font-size: 1.3rem;
    color: var(--text-primary);
    padding: 4px 8px;
    line-height: 1;
}

/* Authentication Modal (Login / Sign Up) */
.auth-modal-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    padding: 0;
    text-align: left;
}

.auth-modal-header {
    background: var(--bg-surface-subtle);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-tabs-row {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.auth-tab-btn.active {
    color: var(--navy-primary);
    border-bottom-color: var(--navy-primary);
    background: var(--navy-bg);
}

.auth-form-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-input-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.auth-input-field {
    width: 100%;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input-field:focus {
    border-color: var(--navy-primary);
    background: var(--bg-surface-muted);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.auth-error-msg {
    background: var(--coral-bg);
    border: 1px solid var(--coral-border);
    color: var(--coral-danger);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.auth-success-msg {
    background: var(--emerald-bg);
    border: 1px solid var(--emerald-border);
    color: var(--emerald-success);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

/* Auth Context Alert Banner (e.g. Locked Test) */
.auth-context-alert {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #B45309;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 18px 0;
    border-radius: var(--radius-sm);
    line-height: 1.4;
}

[data-theme="dark"] .auth-context-alert {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.4);
    color: #FBBF24;
}

.auth-context-alert.hidden {
    display: none !important;
}

.auth-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Timed Free Usage Alert Banner */
.auth-context-alert.auth-timed-free-alert {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(245, 158, 11, 0.12));
    border: 1.5px solid #25D366;
    color: #065F46;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-sm, 8px);
}
[data-theme="dark"] .auth-context-alert.auth-timed-free-alert {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.22), rgba(245, 158, 11, 0.18));
    border-color: #25D366;
    color: #34D399;
}

/* WhatsApp QR Authentication Component */
.wa-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #128C7E;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
    text-align: center;
    width: fit-content;
}

[data-theme="dark"] .wa-live-pill {
    background: rgba(37, 211, 102, 0.16);
    color: #25D366;
}

.pulse-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    display: inline-block;
    animation: waPulseDot 1.6s infinite ease-in-out;
}

@keyframes waPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); transform: scale(0.95); }
    70% { box-shadow: 0 0 0 7px rgba(37, 211, 102, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); transform: scale(0.95); }
}

.wa-qr-clean-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 0;
}

.wa-scan-prompt-wrap {
    margin-bottom: 14px;
}

.wa-scan-prompt-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wa-scan-prompt-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wa-qr-card-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.wa-qr-box {
    width: 210px;
    height: 210px;
    background: #FFFFFF !important;
    border: 2px solid var(--border-light);
    border-radius: 14px;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wa-qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: #FFFFFF;
}

.wa-qr-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #25D366;
    font-size: 1.8rem;
    border-radius: 12px;
    z-index: 2;
    transition: opacity 0.2s ease;
}

.wa-qr-spinner.hidden {
    display: none !important;
}

.wa-qr-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #25D366;
    font-size: 1.35rem;
    pointer-events: none;
    z-index: 3;
}

.wa-polling-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding: 6px 14px;
    background: var(--bg-surface-subtle);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.wa-actions-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.btn-wa-refresh-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wa-refresh-icon:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--navy-primary);
}

.btn-whatsapp-direct-small {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: #25D366;
    color: #FFFFFF !important;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-direct-small:hover {
    background: #1EBE5D;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* =============================================================================
   HERO / BANNER SECTION (Proportioned, Crisp White Educational Banner)
   ============================================================================= */

.hero-section {
    padding: 24px 0 20px;
    background: var(--hero-bg);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.hero-left-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.hero-title span {
    color: var(--gold-primary);
}

.hero-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-action:hover {
    background: #B45309;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn-secondary-action:hover {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
    background: var(--navy-bg);
}

.hero-trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hero Right: Live Countdown Card (Clean White, Compact) */
.hero-countdown-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-countdown-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), #2563EB, var(--emerald-success));
}

.countdown-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.exam-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--navy-primary);
    font-weight: 700;
    font-size: 0.76rem;
}

.streak-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 0.74rem;
}

.countdown-digits-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.days-number {
    font-family: var(--font-mono);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1;
}

.days-unit {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.countdown-exam-date {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.date-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.date-val {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--navy-dark);
}

/* Daily Momentum Progress */
.study-goal-section {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}

.study-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 5px;
}

.goal-label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--emerald-success);
    font-weight: 700;
}

.goal-val {
    color: var(--emerald-success);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.72rem;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-surface-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #2563EB);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================================
   KEY STATS COUNTER STRIP (Compact Cards)
   ============================================================================= */

.stats-counter-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.stat-counter-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.stat-counter-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-border);
}

.stat-counter-card-visitor {
    border-color: rgba(56, 189, 248, 0.3);
}

.stat-counter-card-visitor:hover {
    border-color: #38BDF8;
}

.stat-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-icon-blue { background: var(--navy-bg); color: var(--navy-primary); border: 1px solid var(--navy-border); }
.stat-icon-gold { background: var(--gold-bg); color: var(--gold-primary); border: 1px solid var(--gold-border); }
.stat-icon-green { background: var(--emerald-bg); color: var(--emerald-success); border: 1px solid var(--emerald-border); }
.stat-icon-purple { background: var(--purple-bg); color: var(--purple-accent); border: 1px solid var(--purple-border); }
.stat-icon-cyan { background: rgba(56, 189, 248, 0.15); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.35); }

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.2;
}

.stat-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================================================
   STUDY PILLARS GRID (Clean White Cards)
   ============================================================================= */

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-view-all {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-light);
    cursor: pointer;
}
.section-view-all:hover {
    text-decoration: underline;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.pillar-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}

.pillar-card:hover {
    transform: translateY(-2px);
    border-color: var(--navy-light);
    box-shadow: var(--shadow-hover);
}

.pillar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pillar-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pillar-tag {
    font-size: 0.66rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.tag-gold {
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
}

.tag-emerald {
    background: var(--emerald-bg);
    color: var(--emerald-success);
    border: 1px solid var(--emerald-border);
}

.tag-cyan {
    background: var(--navy-bg);
    color: var(--navy-primary);
    border: 1px solid var(--navy-border);
}

.pillar-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 2px;
}

.pillar-title-en {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.pillar-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* =============================================================================
   QUESTION OF THE DAY (आजचा प्रश्न - Compact)
   ============================================================================= */

.qotd-container {
    background: var(--bg-white);
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: 0 2px 12px rgba(217, 119, 6, 0.06);
    position: relative;
    margin: 22px 0;
}

.qotd-badge {
    position: absolute;
    top: -10px;
    left: 18px;
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

.qotd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.qotd-subject {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.qotd-stats {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.qotd-text {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 14px;
    line-height: 1.55;
}

.qotd-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.qotd-opt-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    min-height: 48px;
    touch-action: manipulation;
}

.qotd-opt-item:hover {
    border-color: var(--navy-light);
    background: var(--bg-surface-muted);
}

.qotd-opt-item.selected {
    border-color: var(--navy-primary);
    background: var(--navy-bg);
}

.qotd-opt-item.correct {
    border-color: var(--emerald-success) !important;
    background: var(--emerald-bg) !important;
    color: var(--emerald-success);
}

.qotd-opt-item.wrong {
    border-color: var(--coral-danger) !important;
    background: var(--coral-bg) !important;
    color: var(--coral-danger);
}

.qotd-opt-letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.qotd-opt-text {
    flex: 1;
}

.qotd-solution-panel {
    background: var(--emerald-bg);
    border: 1px solid var(--emerald-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 12px;
    animation: fadeIn 0.25s ease-out;
}

.sol-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--emerald-success);
    margin-bottom: 3px;
    text-transform: uppercase;
}

.sol-title {
    font-weight: 800;
    color: var(--emerald-success);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.sol-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* =============================================================================
   CURRENT AFFAIRS CARDS (Clean White, Balanced)
   ============================================================================= */

.affairs-reel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.affair-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.affair-card:hover {
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.affair-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.affair-category {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--navy-primary);
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    padding: 2px 6px;
    border-radius: 3px;
}

.affair-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.affair-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.affair-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 10px;
}

.affair-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}

.bookmark-btn {
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.2s;
}

.bookmark-btn:hover {
    color: var(--gold-primary);
}

.bookmark-btn.saved {
    color: var(--gold-primary);
}

/* =============================================================================
   PRO PASS PROMOTION BANNER (Crisp Clean White Card, Scaled Down)
   ============================================================================= */

.pro-banner-card {
    background: var(--bg-white);
    border: 1.5px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.12);
}

.pro-banner-info {
    max-width: 620px;
}

.pro-banner-tag {
    display: inline-block;
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pro-banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.pro-banner-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pro-banner-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.pro-price {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold-primary);
}

.pro-old-price {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* =============================================================================
   PYP SECTION & CARDS
   ============================================================================= */

.filter-pills-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.filter-pill {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    white-space: nowrap;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-sm);
}

.filter-pill:hover {
    color: var(--navy-dark);
    border-color: var(--border-subtle);
}

.filter-pill.active {
    background: var(--navy-dark);
    color: #FFFFFF;
    border-color: var(--navy-dark);
}

.search-box-row {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 9px 14px 9px 36px;
    font-size: 0.86rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-icon-pos {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* PYP Toolbar & Stage Switcher (Clean, Minimalist, No Messy Chips) */
.pyp-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.pyp-stage-toggle {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface-subtle);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    gap: 2px;
}

.pyp-stage-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pyp-stage-btn:hover {
    color: var(--text-primary);
}

.pyp-stage-btn.active {
    background: var(--bg-white);
    color: var(--navy-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

.pyp-search-wrap {
    position: relative;
    flex: 1;
    max-width: 360px;
    min-width: 240px;
}

.pyp-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.pyp-search-field {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 0.82rem;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.pyp-search-field:focus {
    border-color: var(--navy-primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* PYP Cards List & Card Redesign */
.pyp-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pyp-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--navy-primary);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pyp-card:hover {
    border-color: var(--navy-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pyp-card.pyp-cat-group_c { border-left-color: #2563EB; }
.pyp-card.pyp-cat-group_b { border-left-color: #D97706; }
.pyp-card.pyp-cat-rajyaseva { border-left-color: #7C3AED; }

.pyp-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pyp-meta-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pyp-badge-year {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(217, 119, 6, 0.1);
    color: var(--gold-primary);
    border: 1px solid rgba(217, 119, 6, 0.25);
    white-space: nowrap;
}

.pyp-badge-cat {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563EB;
    border: 1px solid rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.pyp-badge-cat.pyp-badge-group_b {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.pyp-badge-cat.pyp-badge-rajyaseva {
    background: rgba(124, 58, 237, 0.08);
    color: #7C3AED;
    border-color: rgba(124, 58, 237, 0.2);
}

.pyp-badge-stage {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.pyp-badge-advt {
    font-family: var(--font-mono, monospace);
    font-size: 0.70rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-surface-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.pyp-badge-size {
    font-size: 0.70rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-surface-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.pyp-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.4;
    word-break: break-word;
}

.pyp-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-pyp-preview {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    color: var(--navy-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-pyp-preview:hover {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.btn-pyp-download {
    background: var(--gold-primary);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
    white-space: nowrap;
}

.btn-pyp-download:hover {
    background: #B45309;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

@media (max-width: 640px) {
    .pyp-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    .pyp-search-wrap {
        max-width: 100%;
    }
    .pyp-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    .pyp-actions-row {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .btn-pyp-preview,
    .btn-pyp-download {
        flex: 1;
        justify-content: center;
    }
}

/* =============================================================================
   TEST SERIES & CBT SIMULATOR (Scaled Down)
   ============================================================================= */

/* Single Horizontal Line with Left-Aligned Text Tabs: Mock Tests, PYP Tests & Custom Tests */
.test-tabs-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 24px;
    border-bottom: 2px solid var(--border-light);
    margin-top: 14px;
    margin-bottom: 20px;
    padding: 0 4px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.test-tabs-header-bar::-webkit-scrollbar {
    display: none;
}

.test-tab-text-btn {
    position: relative;
    padding: 10px 4px 12px;
    background: none;
    border: none;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px; /* Sits directly on top of the horizontal line */
    border-bottom: 2.5px solid transparent;
}

.test-tab-text-btn:hover {
    color: var(--text-primary);
}

.test-tab-text-btn.active {
    color: var(--gold-primary);
    font-weight: 800;
    border-bottom-color: var(--gold-primary);
}

.test-tab-text-btn .test-tab-count {
    font-size: 0.74rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    line-height: 1.2;
    transition: all 0.2s ease;
}

.test-tab-text-btn.active .test-tab-count {
    background: var(--gold-subtle);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--gold-dark);
}

/* Horizontal Sub-Tabs for Stage Selection (All, Prelims, Mains) */
.stage-tabs-header-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: -6px;
    margin-bottom: 18px;
    padding: 2px 2px 6px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stage-tabs-header-bar::-webkit-scrollbar {
    display: none;
}

.stage-tab-text-btn {
    background: none;
    border: none;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 2px;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.stage-tab-text-btn:hover {
    color: var(--text-primary);
}

.stage-tab-text-btn.active {
    color: var(--navy-primary);
    font-weight: 800;
}

.stage-tab-text-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--navy-primary);
    border-radius: 2px;
}

/* 3-Column Tab Menu in Test Series (Preserved for compatibility) */
.test-series-menu-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 20px;
}

.test-menu-col-btn {
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.test-menu-col-btn:hover {
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.test-menu-col-btn.active {
    border-color: var(--gold-primary);
    background: var(--bg-surface-subtle);
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.15);
}

.test-menu-col-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: var(--gold-primary);
}

.test-col-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.test-menu-col-btn.active .test-col-icon {
    background: var(--gold-bg);
    border-color: var(--gold-border);
    transform: scale(1.05);
}

.test-col-info {
    flex: 1;
    min-width: 0;
}

.test-col-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}

.test-menu-col-btn.active .test-col-title {
    color: var(--gold-primary);
}

.test-col-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3-Column Test Series Grid */
.test-series-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.test-series-grid .test-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.test-series-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.test-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}

.test-card:hover {
    border-color: var(--navy-border);
    box-shadow: var(--shadow-md);
}

.test-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.test-order-badge {
    background: var(--navy-bg);
    color: var(--navy-primary);
    font-size: 0.72rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.test-order-badge.order-badge-pyp {
    background: var(--gold-bg);
    color: var(--gold-dark);
}

.test-order-badge.order-badge-subject {
    background: #f5f3ff;
    color: #6d28d9;
}

.test-order-badge.order-badge-section {
    background: #f0fdfa;
    color: #0d9488;
}

.test-order-badge.order-badge-topic {
    background: #eff6ff;
    color: #2563eb;
}

[data-theme="dark"] .test-order-badge.order-badge-subject {
    background: rgba(109, 40, 217, 0.22);
    color: #c4b5fd;
}

[data-theme="dark"] .test-order-badge.order-badge-section {
    background: rgba(13, 148, 136, 0.22);
    color: #5eead4;
}

[data-theme="dark"] .test-order-badge.order-badge-topic {
    background: rgba(37, 99, 235, 0.22);
    color: #93c5fd;
}

.test-status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
}

.status-free {
    background: var(--emerald-bg);
    color: var(--emerald-success);
    border: 1px solid var(--emerald-border);
}

.status-locked {
    background: var(--coral-bg);
    color: var(--coral-danger);
    border: 1px solid var(--coral-border);
}

.test-title {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.test-chips-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.badge-chip {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.badge-chip.cyan { color: var(--navy-primary); background: var(--navy-bg); border-color: var(--navy-border); }
.badge-chip.gold { color: var(--gold-primary); background: var(--gold-bg); border-color: var(--gold-border); }
.badge-chip.emerald { color: var(--emerald-success); background: var(--emerald-bg); border-color: var(--emerald-border); }
.badge-chip.purple { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
[data-theme="dark"] .badge-chip.purple { color: #c4b5fd; background: rgba(109, 40, 217, 0.18); border-color: rgba(167, 139, 250, 0.3); }
.badge-chip.muted { color: var(--text-muted); }

.test-attempt-summary {
    background: var(--emerald-bg);
    border: 1px solid var(--emerald-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #166534;
    font-weight: 700;
    margin-bottom: 12px;
}

.test-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-start-test {
    flex: 1;
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 9px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
    white-space: nowrap;
}

.btn-start-test:hover {
    background: #B45309;
}

.btn-review-test {
    flex: 1;
    background: var(--bg-white);
    border: 1px solid var(--navy-primary);
    color: var(--navy-primary);
    font-size: 0.84rem;
    font-weight: 800;
    padding: 9px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-review-test:hover {
    background: var(--navy-bg);
}

/* =============================================================================
   MOCK EXAM MODAL (CLEAN OFFICIAL MPSC CBT INTERFACE)
   ============================================================================= */

.exam-modal-fullscreen {
    position: fixed;
    inset: 0;
    background: var(--bg-page);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.exam-modal-header {
    background: #FFFFFF;
    color: #0F172A;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    min-height: 52px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .exam-modal-header {
    background: #0B0E17;
    color: #F8FAFC;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cbt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cbt-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cbt-exam-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
    line-height: 1.25;
}

[data-theme="dark"] .cbt-exam-title {
    color: #F8FAFC;
}

.cbt-exam-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .cbt-exam-subtitle {
    color: #94A3B8;
}

.btn-cbt-exit-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: #1E293B;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-cbt-exit-top:hover {
    background: #E2E8F0;
    color: #0F172A;
}

[data-theme="dark"] .btn-cbt-exit-top {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
}

[data-theme="dark"] .btn-cbt-exit-top:hover {
    background: rgba(255, 255, 255, 0.16);
}

.cbt-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.exam-timer-pill {
    font-family: var(--font-mono);
    font-size: 0.94rem;
    font-weight: 800;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-exam-submit-top {
    background: var(--emerald-success);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-exam-submit-top:hover {
    opacity: 0.9;
}

.exam-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: var(--bg-page);
    position: relative;
    height: calc(100vh - 52px);
    max-height: calc(100vh - 52px);
}

/* Left Workspace: Contains scrollable question card + pinned bottom bar */
.exam-workspace-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    height: 100%;
}

.exam-question-area {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-white);
    margin: 12px 12px 0 12px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-light);
    border-bottom: none;
    box-shadow: var(--shadow-sm);
}

.exam-q-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    gap: 10px;
}

.exam-q-text {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.55;
    margin-bottom: 18px;
}

.exam-q-text .q-en-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.exam-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.exam-option-card {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 48px;
    touch-action: manipulation;
}

.exam-option-card:hover {
    border-color: var(--navy-light);
    background: var(--navy-bg);
}

.exam-option-card.selected-option {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
}
.exam-option-card.selected-option .option-radio-bullet {
    background: var(--navy-primary);
    color: #FFFFFF;
    border-color: var(--navy-primary);
}

.exam-option-card.correct-option {
    background: var(--emerald-bg) !important;
    border-color: var(--emerald-success) !important;
}
.exam-option-card.correct-option .option-radio-bullet {
    background: var(--emerald-success);
    color: #FFFFFF;
    border-color: var(--emerald-success);
}

.exam-option-card.wrong-option {
    background: var(--coral-bg) !important;
    border-color: var(--coral-danger) !important;
}
.exam-option-card.wrong-option .option-radio-bullet {
    background: var(--coral-danger);
    color: #FFFFFF;
    border-color: var(--coral-danger);
}

.option-radio-bullet {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    flex-shrink: 0;
}

.option-body .opt-mr {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.option-body .opt-en {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Exam Right Palette Sidebar - Extends 100% height to the bottom on desktop */
.exam-palette-sidebar {
    width: 290px;
    background: var(--bg-white);
    border-left: 1px solid var(--border-light);
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    flex-shrink: 0;
    box-shadow: -2px 0 6px rgba(0, 0, 0, 0.03);
}

.palette-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.palette-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.palette-btn.current {
    box-shadow: 0 0 0 2px var(--navy-primary);
}

.palette-btn.answered {
    background: var(--emerald-success);
    color: #FFFFFF;
    border-color: var(--emerald-success);
}

.palette-btn.not-answered {
    background: var(--coral-danger);
    color: #FFFFFF;
    border-color: var(--coral-danger);
}

.palette-btn.reviewed {
    background: var(--purple-accent);
    color: #FFFFFF;
    border-color: var(--purple-accent);
}

/* Exam Bottom Bar: Positioned inside Left Workspace with 'पुढील' button on its right side */
.exam-bottom-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-top: 1px solid var(--border-subtle);
    margin: 0 12px 12px 12px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.cbt-action-controls {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-light);
    flex-wrap: wrap;
}

.cbt-action-controls button {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
}

/* Desktop: Center Talika button hidden because question palette is permanently visible on right */
.btn-mobile-palette-toggle {
    display: none !important;
}

@media (max-width: 920px) {
    .exam-question-area {
        margin: 8px 8px 0 8px;
        padding: 14px;
    }

    .exam-bottom-bar {
        margin: 0 8px 8px 8px;
        padding: 8px 12px;
    }

    /* Mobile: Show Center Talika button */
    .btn-mobile-palette-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        font-size: 0.8rem;
        font-weight: 700;
        padding: 8px 12px;
        white-space: nowrap;
    }
}

.btn-palette-close-mobile {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}

.exam-palette-backdrop {
    display: none;
}

@media (max-width: 920px) {
    .btn-palette-close-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-muted);
        transition: background 0.15s ease;
    }

    .btn-palette-close-mobile:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--text-primary);
    }

    .exam-palette-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(2px);
        z-index: 2010;
        transition: opacity 0.25s ease;
    }

    .exam-palette-backdrop.hidden {
        display: none !important;
    }

    .exam-palette-sidebar {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: 72vh;
        background: #0d121f;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: none;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.75);
        z-index: 2020;
        transform: translateY(100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 16px 18px;
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .exam-palette-sidebar.palette-drawer-open {
        transform: translateY(0);
    }
}

/* =============================================================================
   SHIMMER SKELETON LOADING EFFECTS (Like Android Native App)
   ============================================================================= */

@keyframes shimmerWave {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(226, 232, 240, 0.6) 25%, 
        rgba(241, 245, 249, 0.95) 37%, 
        rgba(226, 232, 240, 0.6) 63%
    );
    background-size: 200% 100%;
    animation: shimmerWave 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(30, 41, 59, 0.6) 25%, 
        rgba(51, 65, 85, 0.85) 37%, 
        rgba(30, 41, 59, 0.6) 63%
    );
    background-size: 200% 100%;
}

.skeleton-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    min-height: 140px;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
}

.skeleton-line.title {
    height: 20px;
    width: 70%;
}

.skeleton-line.subtitle {
    height: 12px;
    width: 45%;
}

.skeleton-line.full {
    width: 100%;
}

.skeleton-pill {
    height: 24px;
    width: 80px;
    border-radius: var(--radius-full);
}

.skeleton-btn {
    height: 38px;
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
    width: 100%;
}

/* =============================================================================
   RESULT CARD MODAL (Clean White)
   ============================================================================= */

.result-card-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.result-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
}

/* Enhanced Full-Screen PDF Viewer Modal */
.pdf-viewer-modal-box {
    max-width: 960px !important;
    width: 95% !important;
    max-height: 92vh !important;
    height: 88vh;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-surface) !important;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    flex-wrap: wrap;
}

.pdf-viewer-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.pdf-viewer-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.pdf-viewer-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pdf-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.pdf-close-btn:hover {
    background: #EF4444;
    color: #FFF;
    border-color: #EF4444;
}

.pdf-viewer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    background: var(--bg-navy-deep);
}

.pdf-reading-sheet {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    color: var(--text-primary);
}

.filter-chip {
    transition: all 0.2s ease;
}
.filter-chip:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.filter-chip.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

.paper-sheet-header {
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.paper-emblem {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.paper-org-name {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.paper-exam-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 6px 0 12px 0;
}

.paper-meta-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.p-pill {
    font-size: 0.76rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--text-secondary);
}

.paper-notice-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.notice-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.paper-notice-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.paper-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.paper-section-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.section-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.section-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.paper-download-banner {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.result-trophy-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 12px;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.result-score-highlight {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-primary);
    margin: 6px 0;
}

.result-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.result-stat-tile {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 6px;
}

.stat-tile-val {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
}

.stat-tile-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* =============================================================================
   APP DOWNLOAD SHOWCASE BANNER (Before Footer)
   ============================================================================= */

.app-download-showcase-section {
    padding: 60px 0 20px;
    background: transparent;
}

.app-showcase-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    padding: 48px 48px 0 48px;
    overflow: hidden;
    position: relative;
}

.app-showcase-content {
    padding-bottom: 48px;
    z-index: 2;
}

.app-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #B45309;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F59E0B;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
    display: inline-block;
}

.app-showcase-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy-dark, #0F172A);
    line-height: 1.25;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.app-showcase-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2563EB;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

.app-showcase-desc {
    font-size: 0.94rem;
    color: var(--text-secondary, #475569);
    line-height: 1.65;
    margin: 0 0 20px 0;
    max-width: 580px;
}

.app-showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-showcase-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary, #1E293B);
    line-height: 1.45;
}

.feat-check-icon {
    width: 18px;
    height: 18px;
    color: #10B981;
    flex-shrink: 0;
    margin-top: 2px;
}

.app-showcase-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.store-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
}

.store-badge-btn.google-play {
    background: #000000;
    color: #ffffff;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.store-badge-btn.google-play:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.store-badge-btn.web-pwa {
    background: #ffffff;
    color: var(--navy-dark, #0F172A);
    border: 1.5px solid var(--border-medium, #cbd5e1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.store-badge-btn.web-pwa:hover {
    border-color: #2563EB;
    color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.store-badge-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-badge-texts {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}

.store-badge-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.store-badge-main {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.app-showcase-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted, #64748B);
}

.trust-stars {
    color: #F59E0B;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* Phones Mockup Visual Right Column */
.app-showcase-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 420px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: absolute;
    width: 220px;
    transition: transform 0.3s ease;
}

.phone-back {
    left: 20px;
    bottom: -15px;
    z-index: 1;
    transform: scale(0.92) rotate(-4deg);
    opacity: 0.9;
}

.phone-front {
    right: 20px;
    bottom: -10px;
    z-index: 2;
    transform: scale(1) rotate(2deg);
}

.app-showcase-card:hover .phone-back {
    transform: scale(0.94) rotate(-6deg) translateX(-8px);
}

.app-showcase-card:hover .phone-front {
    transform: scale(1.02) rotate(0deg) translateY(-6px);
}

.phone-chassis {
    background: #0B0F19;
    border-radius: 32px 32px 0 0;
    padding: 10px 10px 0 10px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 3px solid #1E293B;
    border-bottom: none;
    position: relative;
}

.phone-speaker {
    width: 44px;
    height: 4px;
    background: #334155;
    border-radius: 3px;
    margin: 2px auto 8px;
}

.phone-screen {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #000;
    height: 380px;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.phone-floating-pill {
    position: absolute;
    top: 50px;
    left: -24px;
    background: #0F172A;
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    animation: floatBadge 3.5s ease-in-out infinite;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px #10B981;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* =============================================================================
   DARK THEME: APP DOWNLOAD SHOWCASE BANNER
   ============================================================================= */
[data-theme="dark"] .app-showcase-card {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="dark"] .app-showcase-title {
    color: #f8fafc;
}

[data-theme="dark"] .app-showcase-subtitle {
    color: #60a5fa;
}

[data-theme="dark"] .app-showcase-desc {
    color: #94a3b8;
}

[data-theme="dark"] .app-showcase-features li {
    color: #e2e8f0;
}

[data-theme="dark"] .app-showcase-features li strong {
    color: #f8fafc;
}

[data-theme="dark"] .app-showcase-badge {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

[data-theme="dark"] .store-badge-btn.web-pwa {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .store-badge-btn.web-pwa:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #60a5fa;
    color: #60a5fa;
}

[data-theme="dark"] .app-showcase-trust {
    color: #94a3b8;
}

[data-theme="dark"] .app-showcase-trust strong {
    color: #f1f5f9;
}

/* Mobile & Tablet Responsive Adjustments */
@media (max-width: 991px) {
    .app-showcase-card {
        grid-template-columns: 1fr;
        padding: 36px 24px 0 24px;
        gap: 24px;
        text-align: center;
    }

    .app-showcase-content {
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .app-showcase-title {
        font-size: 1.65rem;
    }

    .app-showcase-features {
        align-items: flex-start;
        text-align: left;
    }

    .app-showcase-actions {
        justify-content: center;
    }

    .app-showcase-trust {
        justify-content: center;
    }

    .app-showcase-visual {
        min-height: 320px;
        overflow: hidden;
    }

    .phone-mockup-wrapper {
        height: 320px;
        max-width: 360px;
    }

    .phone-mockup {
        width: 175px;
    }

    .phone-back {
        left: 15px;
    }

    .phone-front {
        right: 15px;
    }

    .phone-screen {
        height: 300px;
    }

    .phone-floating-pill {
        left: -10px;
        top: 30px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .app-download-showcase-section {
        padding: 36px 0 10px;
    }

    .app-showcase-card {
        border-radius: 18px;
        padding: 24px 16px 0 16px;
    }

    .app-showcase-title {
        font-size: 1.35rem;
    }

    .app-showcase-subtitle {
        font-size: 0.9rem;
    }

    .app-showcase-actions {
        width: 100%;
        flex-direction: column;
    }

    .store-badge-btn {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup-wrapper {
        height: 280px;
        max-width: 320px;
    }

    .phone-mockup {
        width: 150px;
    }

    .phone-back {
        left: 10px;
    }

    .phone-front {
        right: 10px;
    }

    .phone-screen {
        height: 260px;
    }
}

/* =============================================================================
   CLEAN EDTECH FOOTER (Compact & Proportioned)
   ============================================================================= */

.app-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 36px 0 20px;
    margin-top: auto;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 24px;
}

.footer-col-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-links-list a:hover {
    color: var(--navy-primary);
}

.social-icons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.social-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.social-icon-btn.tg:hover {
    border-color: #229ED9;
    color: #38BDF8;
    background: rgba(34, 158, 217, 0.14);
}

.social-icon-btn.wa:hover {
    border-color: #25D366;
    color: #4ADE80;
    background: rgba(37, 211, 102, 0.14);
}

.social-icon-btn.yt:hover {
    border-color: #FF0000;
    color: #F87171;
    background: rgba(255, 0, 0, 0.14);
}

.social-icon-btn.ig:hover {
    border-color: #EC4899;
    color: #F472B6;
    background: rgba(236, 72, 153, 0.14);
}

/* Footer Visitor Counter Box */
.footer-visitor-box {
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: inline-block;
}

.footer-visitor-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-visitor-counter-wrap {
    display: flex;
    gap: 4px;
    align-items: center;
}

.digit-box {
    min-width: 24px;
    height: 30px;
    padding: 0 4px;
    background: #05070A;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #F59E0B;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.footer-bottom-row {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* =============================================================================
   MOBILE NAVIGATION & DRAWER
   ============================================================================= */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 6px 10px;
    justify-content: space-around;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-nav-btn .icon {
    font-size: 1.15rem;
}

.mobile-nav-btn.active {
    color: var(--navy-primary);
    font-weight: 700;
}

/* Mobile Side Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    z-index: 10001;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.mobile-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-drawer .nav-item {
    padding: 11px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border: none !important;
}

.mobile-drawer .nav-item:hover,
.mobile-drawer .nav-item.active {
    color: var(--navy-primary);
    background: var(--navy-bg) !important;
    font-weight: 700;
}

/* =============================================================================
   NEW SERVICES & BLUEPRINT STYLES (My Tests, 3-Tier Plans, App Box, Testimonials)
   ============================================================================= */

/* 1. Create Custom Test Hero Card (#view-mytests) */
.create-test-hero-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.create-test-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-accent), var(--navy-light), var(--gold-primary));
}

.create-test-hero-content {
    flex: 1;
}

.create-test-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--purple-bg);
    color: var(--purple-accent);
    border: 1px solid #DDD6FE;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.create-test-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 4px 0 8px 0;
}

.create-test-hero-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 12px;
}

.create-test-hero-limits {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.btn-create-test-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-accent);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-create-test-hero:hover {
    background: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* 2. Three-Tier Subscription Pricing Cards */
.pricing-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 14px;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border: 2px solid var(--gold-primary);
    background: var(--gold-bg);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.18);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
}

.pricing-card-header {
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 8px 0 6px 0;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.pricing-amount {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--navy-dark);
}

.pricing-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-old-amount {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 4px;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
}

/* 3. Mobile App Experience Feature Box */
.app-experience-box {
    background: linear-gradient(135deg, var(--bg-surface-subtle) 0%, var(--navy-bg) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

.app-experience-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.app-exp-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.app-exp-point .exp-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* 4. Testimonials & Student Reviews */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-rating {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #F59E0B;
}

.testimonial-text {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 14px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-bg);
    color: var(--navy-primary);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.author-name {
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--navy-dark);
}

.author-exam {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 5. Subscription Modal Tier Selector */
.sub-tier-box {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    cursor: pointer;
    background: var(--bg-white);
    transition: all 0.2s ease;
}

.sub-tier-box:hover {
    border-color: var(--gold-primary);
}

.sub-tier-box.active-tier {
    border: 2px solid var(--gold-primary);
    background: var(--gold-bg);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

/* 6. Quick Service Pill & Review Buttons */
.quick-service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.quick-service-pill:hover {
    border-color: var(--navy-primary);
    background: var(--navy-bg);
    transform: translateY(-1px);
}

.btn-review-test {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-review-test:hover {
    background: var(--bg-surface-muted);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* =============================================================================
   STUDY SUITE (Consolidated Subjects, Topics, Notes & Practice Bank)
   ============================================================================= */

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--gold-primary);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-action:hover:not(:disabled) {
    background: #B45309;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    color: var(--navy-dark);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-secondary-action:hover:not(:disabled) {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

/* 1. Subjects Grid */
.study-subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.study-subject-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.study-subject-card:hover {
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 26px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

.study-subject-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.study-subject-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.study-subject-card:hover .study-subject-icon-box {
    transform: scale(1.08);
}

.study-subject-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.study-subject-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 3px;
    line-height: 1.35;
}

.study-subject-en {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.study-subject-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.study-subject-arrow {
    color: var(--navy-primary);
    font-weight: 800;
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.study-subject-card:hover .study-subject-arrow {
    transform: translateX(3px);
}

/* 2. Subject Hero Banner */
.study-subject-hero-banner {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.study-subject-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-primary), var(--gold-primary));
}

.study-hero-icon {
    font-size: 2.2rem;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 3. Topics List */
.study-topics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.study-topic-row {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}

.study-topic-row:hover {
    border-color: var(--navy-light);
    box-shadow: var(--shadow-md);
}

.study-topic-number-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--navy-dark);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.study-topic-info {
    flex: 1;
    min-width: 0;
}

.study-topic-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.35;
}

.study-topic-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.study-topic-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-topic-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    color: var(--navy-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-topic-note:hover {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.btn-topic-practice {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-topic-practice:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

/* 4. Topic Notes Card */
.study-notes-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

.study-notes-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

/* 5. Practice Card */
.study-practice-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

/* =============================================================================
   OFFICIAL SOCIAL MEDIA & STUDENT COMMUNITY GRID
   ============================================================================= */

.social-community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 992px) {
    .social-community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .social-community-grid {
        grid-template-columns: 1fr;
    }
}

.social-channel-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.social-channel-card:hover {
    transform: translateY(-3px);
}

.social-channel-card.sc-telegram:hover {
    border-color: #229ED9;
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.22);
}

.social-channel-card.sc-whatsapp:hover {
    border-color: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.22);
}

.social-channel-card.sc-youtube:hover {
    border-color: #FF0000;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.22);
}

.social-channel-card.sc-instagram:hover {
    border-color: #E1306C;
    box-shadow: 0 8px 24px rgba(225, 48, 108, 0.22);
}

.sc-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.sc-icon-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-svg-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.sc-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.sc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin: 0;
    line-height: 1.25;
}

.sc-handle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-primary);
    font-family: var(--font-mono);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    margin-top: 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    text-align: center;
    transition: filter 0.2s ease, background 0.2s ease;
}

.sc-btn svg {
    flex-shrink: 0;
}

.sc-btn.tg { background: #229ED9; color: #FFFFFF; }
.social-channel-card.sc-telegram:hover .sc-btn.tg { background: #1B88BD; }

.sc-btn.wa { background: #25D366; color: #FFFFFF; }
.social-channel-card.sc-whatsapp:hover .sc-btn.wa { background: #20BA59; }

.sc-btn.yt { background: #FF0000; color: #FFFFFF; }
.social-channel-card.sc-youtube:hover .sc-btn.yt { background: #E60000; }

.sc-btn.ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #FFFFFF;
}
.social-channel-card.sc-instagram:hover .sc-btn.ig { filter: brightness(1.1); }

/* =============================================================================
   RESPONSIVE MEDIA QUERIES (Anti-Overlap Guarantee)
   ============================================================================= */

/* Below 992px: Switch desktop nav links to mobile hamburger to prevent header collision */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-hamburger { display: inline-flex !important; }
}

@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 18px; }
    .stats-counter-strip { grid-template-columns: repeat(2, 1fr); }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 60px; }
    .footer-top-grid { grid-template-columns: 1fr 1fr; }
    .pricing-tiers-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .create-test-hero-card { flex-direction: column; align-items: flex-start; gap: 16px; }
    .btn-create-test-hero { width: 100%; justify-content: center; }
    .test-series-menu-3col { grid-template-columns: 1fr; gap: 10px; }
    .test-series-grid { grid-template-columns: 1fr 1fr; }
}

/* Comprehensive Mobile Screen Optimizations (No Dark Edge Shadows, Perfect Top Bar Fit) */
@media (max-width: 768px) {
    /* Prevent any horizontal screen overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* 1. Eliminate dark edge shadows and vignettes across mobile screen */
    .app-navbar {
        box-shadow: none !important;
        border-bottom: 1px solid var(--border-light) !important;
        padding: 10px 0 !important;
    }

    .mobile-bottom-nav {
        box-shadow: none !important;
        border-top: 1px solid var(--border-light) !important;
    }

    .hero-section {
        box-shadow: none !important;
    }

    .hero-countdown-card,
    .quick-stat-card,
    .stat-pill-card,
    .cbt-test-card,
    .topic-card,
    .social-channel-card,
    .study-notes-card,
    .study-practice-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    }

    /* 2. Sleek, proportional mobile top bar */
    .app-navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background-color: var(--bg-white) !important;
        border-bottom: 1px solid var(--border-light) !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .brand-section {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }

    .brand-section a, .brand-link {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        text-decoration: none !important;
        min-width: 0 !important;
    }

    .mobile-hamburger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        font-size: 1.15rem !important;
        background: transparent !important;
        border: 1px solid var(--border-light) !important;
        border-radius: var(--radius-sm) !important;
        color: var(--text-primary) !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .brand-logo-img {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        border-radius: 7px !important;
        flex-shrink: 0 !important;
    }

    .brand-name {
        font-size: 1.02rem !important;
        font-weight: 800 !important;
        color: var(--navy-primary) !important;
        letter-spacing: -0.2px !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .brand-name .academy-word {
        display: none !important;
    }

    .brand-subtext {
        display: none !important;
    }

    .top-nav-search-wrap,
    .top-nav-pass-btn,
    .nav-links {
        display: none !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    .top-nav-exam-pill {
        padding: 5px 8px !important;
        font-size: 0.78rem !important;
        gap: 4px !important;
        min-width: auto !important;
        height: 32px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        background: var(--bg-surface-subtle) !important;
        border: 1px solid var(--border-light) !important;
    }

    .top-nav-exam-pill .exam-pill-icon {
        font-size: 0.85rem !important;
        line-height: 1 !important;
    }

    .top-nav-exam-pill .exam-pill-text {
        display: inline-block !important;
        max-width: 68px !important;
        font-size: 0.74rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .top-nav-exam-pill .exam-pill-arrow {
        display: inline-block !important;
        font-size: 0.65rem !important;
    }

    .top-nav-exam-dropdown {
        min-width: 155px !important;
        top: calc(100% + 4px) !important;
    }

    .exam-dropdown-item {
        padding: 8px 10px !important;
        font-size: 0.82rem !important;
    }

    .top-nav-exam-select-wrap {
        height: 28px !important;
        padding: 0 12px 0 2px !important;
        border-radius: 4px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    [data-theme="dark"] .top-nav-exam-select-wrap {
        background: transparent !important;
        border: none !important;
    }

    .top-nav-exam-select-wrap .exam-select-icon {
        font-size: 0.80rem !important;
        margin-right: 2px !important;
    }

    .top-nav-exam-select {
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        max-width: 82px !important;
        padding: 0 10px 0 0 !important;
        color: var(--text-primary) !important;
    }

    .top-nav-exam-select-wrap .exam-select-arrow {
        right: 0px !important;
        font-size: 0.72rem !important;
        color: var(--text-muted, #64748b) !important;
        font-weight: 700 !important;
    }

    .lang-switch {
        padding: 1px !important;
        gap: 0 !important;
        border-radius: 6px !important;
        background: transparent !important;
        border: none !important;
    }

    .lang-switch .lang-btn.active {
        display: none !important;
    }

    .lang-switch .lang-btn:not(.active) {
        padding: 4px 7px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        background: var(--bg-surface-subtle) !important;
        border: 1px solid var(--border-light) !important;
        color: var(--text-secondary) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 30px !important;
    }

    .theme-toggle-btn {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        border: 1px solid var(--border-light) !important;
        background: var(--bg-surface-subtle) !important;
    }

    .user-profile-menu {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    #headerAuthContainer {
        display: inline-flex !important;
        align-items: center !important;
    }

    #headerAuthContainer .btn-top-login-register {
        width: auto !important;
        height: 30px !important;
        min-width: auto !important;
        padding: 4px 10px !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    #headerAuthContainer .btn-top-login-register .btn-login-text-full {
        display: none !important;
    }

    #headerAuthContainer .btn-top-login-register .btn-login-text-short {
        display: inline !important;
    }

    #headerAuthContainer .user-profile-btn {
        position: relative !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    #headerAuthContainer .user-avatar-circle {
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #1E3A8A, #3B82F6) !important;
        color: #FFFFFF !important;
        font-weight: 800 !important;
        font-size: 0.8rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 2px solid var(--bg-white) !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }

    #headerAuthContainer .user-profile-btn.logged-in {
        padding: 2px 6px 2px 2px !important;
        gap: 4px !important;
        border: 1px solid var(--border-light) !important;
        border-radius: 18px !important;
        background: var(--bg-surface-elevated) !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    #headerAuthContainer .user-profile-btn.logged-in .user-display-name {
        display: inline-block !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        color: var(--text-primary) !important;
        max-width: 65px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #headerAuthContainer .user-profile-btn.logged-in .user-dropdown-arrow {
        display: inline-block !important;
        font-size: 0.65rem !important;
        color: var(--text-muted) !important;
    }

    #headerAuthContainer .user-profile-btn:not(.logged-in) .user-display-name,
    #headerAuthContainer .user-profile-btn:not(.logged-in) .user-dropdown-arrow {
        display: none !important;
    }

    #headerAuthContainer .user-profile-btn span[title="Pro Member"],
    #headerAuthContainer .user-profile-btn .user-crown-badge {
        position: absolute !important;
        top: -3px !important;
        right: -4px !important;
        font-size: 0.7rem !important;
        line-height: 1 !important;
        filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
        display: block !important;
    }

    #headerAuthContainer .btn-login-header,
    #headerAuthContainer .btn-header-login {
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 640px) {
    .hero-title { font-size: 1.35rem; }
    .stats-counter-strip { grid-template-columns: 1fr; }
    .pro-banner-card { flex-direction: column; text-align: center; }
    .pro-banner-price-box { align-items: center; }
    .footer-top-grid { grid-template-columns: 1fr; }
    .days-number { font-size: 1.8rem; }
    .pyp-card { flex-direction: column; align-items: stretch; gap: 12px; }
    .pyp-actions-row, .pyp-actions-right { width: 100%; display: flex; gap: 8px; }
    .pyp-actions-row .btn-pyp-preview, .pyp-actions-row .btn-pyp-download { flex: 1; justify-content: center; }
    .exam-actions-row { flex-direction: column; }
    .utility-links { display: none; }
    .create-test-hero-title { font-size: 1.15rem; }
    .study-topic-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .study-topic-actions { width: 100%; }
    .study-topic-actions .btn-topic-note,
    .study-topic-actions .btn-topic-practice { flex: 1; justify-content: center; }
    .study-notes-card, .study-practice-card { padding: 18px 16px; }
    .study-notes-header { flex-direction: column; }
    .test-series-grid { grid-template-columns: 1fr; }
    .test-tabs-header-bar { gap: 20px; margin-bottom: 16px; }
    .test-tab-text-btn { font-size: 0.94rem; padding-bottom: 10px; }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 6px !important;
        gap: 4px !important;
    }

    .brand-name {
        max-width: 95px !important;
        font-size: 0.86rem !important;
    }

    .brand-name .academy-word {
        display: none !important;
    }

    .top-nav-exam-pill {
        padding: 3px 5px !important;
    }

    .top-nav-exam-pill .exam-pill-text {
        max-width: 50px !important;
    }
}

@media (max-width: 370px) {
    .brand-name {
        max-width: 80px !important;
        font-size: 0.82rem !important;
    }

    .top-nav-exam-pill .exam-pill-text {
        display: none !important;
    }

    .lang-switch .lang-btn {
        padding: 2px 4px !important;
        font-size: 0.65rem !important;
    }
}

/* =============================================================================
   STUDENT PRACTICE DASHBOARD & STREAM UI (Modeled on practice.php)
   ============================================================================= */

/* 1. Top Action Bar - Hidden (Using Single Unified App Navbar) */
.dash-top-bar {
    display: none !important;
}

/* 2. Main Two-Column Layout */
.dash-layout-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 56px);
    position: relative;
}

/* =============================================================================
   EXPANDED FULL-HEIGHT LEFT SIDE PANEL (Top: 0 to Bottom: 100vh)
   ============================================================================= */

/* =============================================================================
   TESTBOOK-INSPIRED SLEEK DARK LEFT SIDEBAR (MPSC ABHYAS THEME)
   ============================================================================= */

.dash-sidebar {
    width: 255px;
    min-width: 255px;
    background: #151821;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-sizing: border-box;
}

/* 1. Top Brand Header: MPSC Abhyas Academy */
.dash-sidebar-brand-header {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #151821;
    flex-shrink: 0;
    box-sizing: border-box;
}

.dash-sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 0;
}

.dash-sidebar-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1E293B;
    flex-shrink: 0;
}

.dash-sidebar-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-sidebar-brand-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-sidebar-brand-name {
    font-size: 0.90rem;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.dash-sidebar-collapse-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dash-sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
}

/* 2. Scrollable Side Menu Nav Items */
.dash-sidebar-nav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 8px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-sidebar-nav-scroll::-webkit-scrollbar {
    width: 4px;
}
.dash-sidebar-nav-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dash-menu-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-menu-category-title {
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 12px 4px;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #CBD5E1;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.15s ease;
    text-align: left;
}

.dash-menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

.dash-menu-item.active {
    background: rgba(56, 189, 248, 0.12);
    color: #FFFFFF;
    font-weight: 700;
    border-left: 3px solid #38BDF8;
}

.dash-menu-item .item-icon {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dash-menu-item .item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-badge {
    font-size: 0.60rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.menu-badge.badge-new {
    background: #EA580C;
    color: #FFFFFF;
}

.menu-badge.badge-free {
    background: #059669;
    color: #FFFFFF;
}

.menu-badge.badge-pro {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

/* 3. Bottom Sidebar Footer */
.dash-sidebar-footer {
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #11131A;
    flex-shrink: 0;
}

.dash-sidebar-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dash-sidebar-user-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-avatar-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.user-info-mini {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name-mini {
    font-size: 0.78rem;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-target-mini {
    font-size: 0.68rem;
    color: #94A3B8;
    white-space: nowrap;
}

.sidebar-user-actions-mini {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.btn-theme-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-theme-mini:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Sidebar Dual-View Panels (Main Menu vs Subject Topics Drawer) */
.dash-sidebar-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.dash-sidebar-view.hidden {
    display: none !important;
}

/* Sidebar Exam Switcher Card */
.dash-sidebar-exam-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 12px 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.dash-sidebar-exam-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
}

.sidebar-exam-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.exam-pill-bull {
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-exam-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-exam-sub {
    font-size: 0.60rem;
    color: #64748B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-exam-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exam-chev {
    font-size: 0.68rem;
    color: #94A3B8;
    flex-shrink: 0;
}

/* Sidebar Search Box */
.dash-sidebar-search-wrap {
    position: relative;
    margin: 6px 12px 8px;
}

.dash-sidebar-search-wrap .search-ico {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #64748B;
}

.dash-sidebar-search-inp {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 7px 10px 7px 30px;
    font-size: 0.78rem;
    color: #F8FAFC;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.dash-sidebar-search-inp:focus {
    border-color: #38BDF8;
    background: rgba(255, 255, 255, 0.07);
}

/* Subject Topics Drawer Header with Back Arrow */
.dash-sidebar-subject-header {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #151821;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-sidebar-back {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-sidebar-back:hover {
    background: #38BDF8;
    color: #0F172A;
    transform: translateX(-2px);
}

.sidebar-subject-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-subject-name-mr {
    font-size: 0.85rem;
    font-weight: 800;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-subject-name-en {
    font-size: 0.68rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollable Topics & Subtopics Tree */
.dash-sidebar-topics-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-sidebar-topics-scroll::-webkit-scrollbar {
    width: 4px;
}

.dash-sidebar-topics-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-chapter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.sidebar-chapter-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: #94A3B8;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sidebar-topic-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #CBD5E1;
    font-size: 0.80rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
}

.sidebar-topic-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

.sidebar-topic-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.35);
    font-weight: 700;
}

.sidebar-topic-item .topic-bullet {
    font-size: 0.58rem;
    color: #64748B;
}

.sidebar-topic-item.active .topic-bullet {
    color: #38BDF8;
}

.sidebar-topic-item .topic-title-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-topic-item .topic-badge-count {
    font-size: 0.65rem;
    color: #64748B;
    background: rgba(0, 0, 0, 0.25);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-topic-item.active .topic-badge-count {
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
}

.btn-sidebar-all-subjects {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #CBD5E1;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-sidebar-all-subjects:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* =============================================================================
   PUBLIC WEB INTERFACE RULES (DARK SIDEBAR DISABLED ACROSS THE ENTIRE WEBSITE)
   ============================================================================= */
.dash-sidebar,
.dash-sidebar-backdrop,
.dash-sidebar-expand-btn,
#dashSidebarExpandBtn {
    display: none !important;
}

.app-navbar {
    display: block !important;
}

.dash-layout-container {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Practice Subject Filter Bar */
.dash-subjects-filter-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 20px;
    overflow-x: auto;
}

.dash-filter-chips-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dash-subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.dash-subject-chip:hover {
    background: var(--navy-bg);
    color: var(--navy-primary);
    border-color: var(--navy-border);
}

.dash-subject-chip.active {
    background: var(--navy-primary);
    color: #FFFFFF;
    border-color: var(--navy-primary);
    font-weight: 700;
}

.dash-subject-chip .chip-count {
    background: rgba(0, 0, 0, 0.12);
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
}

.dash-subject-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* 2-Column Practice Layout (Deck Stream + Testbook-style Performance Summary Card) */
.dash-practice-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    padding: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .dash-practice-layout {
        grid-template-columns: 1fr;
    }
}

.dash-practice-stream-col {
    min-width: 0;
}

.dash-practice-summary-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Performance Summary Card (Testbook Style) */
.dash-perf-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.perf-card-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.perf-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.perf-sub {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.perf-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-surface-subtle);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.perf-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.perf-stat-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.perf-stat-data {
    display: flex;
    flex-direction: column;
}

.perf-stat-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.perf-stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.btn-perf-analysis {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--navy-primary);
    color: #FFFFFF;
    border: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-perf-analysis:hover {
    background: var(--navy-dark);
}

/* Target Exam Box */
.dash-target-exam-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.target-box-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.target-box-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy-primary);
    margin: 4px 0;
}

.target-box-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.btn-change-exam {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-change-exam:hover {
    background: var(--navy-bg);
    color: var(--navy-primary);
    border-color: var(--navy-border);
}

/* Dynamic Sidebar Panels (Changed by Top Menu Selection) */
.dash-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-sidebar-panel.hidden {
    display: none !important;
}

.dash-sidebar-subnav {
    display: flex;
    gap: 6px;
    background: var(--bg-surface-subtle);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.dash-subnav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 8px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.dash-subnav-btn:hover {
    color: var(--text-primary);
}

.dash-subnav-btn.active {
    background: var(--bg-white);
    color: var(--navy-primary);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dash-panel-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.dash-panel-item:hover {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.dash-panel-item.active {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: var(--navy-primary);
    font-weight: 700;
}

.dash-panel-item .badge {
    margin-left: auto;
    background: rgba(37, 99, 235, 0.1);
    color: var(--navy-primary);
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.dash-panel-item.pro-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px dashed rgba(245, 158, 11, 0.4);
    color: var(--gold-primary);
}

.dash-sidebar-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dash-chip-btn {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.15s ease;
}

.dash-chip-btn:hover {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.dash-chip-btn.active {
    background: var(--navy-primary);
    border-color: var(--navy-primary);
    color: #ffffff;
    font-weight: 700;
}

.dash-info-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

/* User Widget */
.dash-user-widget {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-bg);
    border: 1.5px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--navy-primary);
    flex-shrink: 0;
}

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

.dash-user-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--navy-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-user-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.dash-badge-target {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--navy-bg);
    color: var(--navy-primary);
    padding: 1px 6px;
    border-radius: 4px;
}

.dash-badge-pro {
    font-size: 0.68rem;
    font-weight: 700;
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    padding: 1px 6px;
    border-radius: 4px;
}

/* Sidebar Stats Row */
.dash-sidebar-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.dash-stat-box .dash-stat-num {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.dash-stat-box .dash-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Nav Menu */
.dash-nav-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 6px;
}

.dash-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.dash-nav-link:hover {
    background: var(--bg-surface-muted);
    color: var(--text-primary);
}

.dash-nav-link.active {
    background: var(--navy-bg);
    color: var(--navy-primary);
    font-weight: 700;
    border-left: 3px solid var(--navy-primary);
}

.dash-nav-link.pro-highlight {
    color: var(--gold-primary);
}

.dash-nav-link.logout-link:hover {
    background: var(--coral-bg);
    color: var(--coral-danger);
}

/* Search Box */
.dash-sidebar-search {
    position: relative;
}

.dash-sidebar-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.dash-search-input {
    width: 100%;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 8px 12px 8px 34px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.dash-search-input:focus {
    border-color: var(--navy-primary);
}

/* Accordion Subjects */
.dash-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-subject-group {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.2s ease;
}

.dash-subject-group.expanded {
    border-color: var(--border-subtle);
}

.dash-subject-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.dash-subject-header:hover {
    background: var(--bg-surface-muted);
}

.dash-subj-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dash-subj-info {
    flex: 1;
    min-width: 0;
}

.dash-subj-name-mr {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-subj-name-en {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-subj-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-badge-qcount {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--navy-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.dash-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.dash-subject-group.expanded .dash-arrow {
    transform: rotate(180deg);
}

.dash-subject-body {
    border-top: 1px solid var(--border-light);
    background: var(--bg-white);
    padding: 4px 0;
}

.dash-topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
}

.dash-topic-item:hover {
    background: var(--bg-surface-subtle);
    color: var(--text-primary);
}

.dash-topic-item.active {
    background: var(--navy-bg);
    color: var(--navy-primary);
    font-weight: 700;
    border-left-color: var(--navy-primary);
}

.dash-topic-bullet {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dash-topic-title-wrap {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.dash-topic-title-mr {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-topic-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

/* 3. Main Workspace Area */
.dash-main-area {
    flex: 1;
    min-width: 0;
    background: var(--bg-page);
    overflow-y: auto;
}

.dash-tab-content {
    display: none;
}

.dash-tab-content.active {
    display: block;
}

/* Practice Deck Stream */
.dash-deck-header {
    display: none !important;
}

.dash-deck-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    flex-wrap: wrap;
}

.dash-breadcrumb .crumb-link {
    color: var(--navy-primary);
    cursor: pointer;
    font-weight: 600;
}

.dash-breadcrumb .crumb-sep {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.dash-breadcrumb .crumb-current {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-dash-action {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--navy-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-dash-action:hover {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
}

/* Guest Banner */
.dash-guest-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    margin: 18px 24px 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--gold-primary);
    font-size: 0.88rem;
    flex-wrap: wrap;
}

/* Questions Feed */
.dash-questions-feed {
    padding: 24px;
}

.dash-feed-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Question Card */
.dash-question-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.dash-question-card:hover {
    border-color: var(--border-subtle);
}

.dash-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-q-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-q-num-pill {
    background: var(--gold-bg);
    color: var(--gold-primary);
    border: 1px solid var(--gold-border);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.dash-q-subtopic-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy-primary);
    background: var(--navy-bg);
    border: 1px solid var(--navy-border);
    padding: 2px 8px;
    border-radius: 4px;
}

.dash-q-marks-pill {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-google-search-ref {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--navy-primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-google-search-ref:hover {
    background: var(--navy-bg);
    border-color: var(--navy-primary);
    color: #ffffff;
}

.dash-q-text-mr {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.65;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.dash-q-text-en {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    border-left: 3px solid var(--navy-primary);
    padding-left: 12px;
}

/* Options Grid */
.dash-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.dash-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all 0.18s ease;
}

.dash-option-item:hover {
    background: var(--bg-surface-muted);
    border-color: var(--border-subtle);
    transform: translateX(3px);
}

.dash-opt-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.dash-option-item:hover .dash-opt-num {
    background: var(--navy-primary);
    color: #ffffff;
}

.dash-opt-content {
    flex: 1;
    min-width: 0;
}

.dash-opt-text-mr {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
}

.dash-opt-text-en {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Option Verification Feedback States */
.dash-option-item.user-correct {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: var(--emerald-success) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
    animation: pulseSuccess 0.45s ease;
}

.dash-option-item.user-correct .dash-opt-num {
    background: var(--emerald-success) !important;
    color: #ffffff !important;
}

.dash-option-item.user-wrong {
    background: rgba(244, 63, 94, 0.18) !important;
    border-color: var(--coral-danger) !important;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.35);
    animation: shakeError 0.35s ease;
}

.dash-option-item.user-wrong .dash-opt-num {
    background: var(--coral-danger) !important;
    color: #ffffff !important;
}

.dash-option-item.revealed-correct {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: var(--emerald-success) !important;
}

.dash-option-item.revealed-correct .dash-opt-num {
    background: var(--emerald-success) !important;
    color: #ffffff !important;
}

.dash-option-item.locked {
    cursor: default;
    pointer-events: none;
}

.dash-opt-status-icon {
    font-size: 1rem;
    margin-left: auto;
}

/* Attempt Feedback Banner */
.dash-attempt-banner {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease;
}

.dash-attempt-banner.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--emerald-success);
}

.dash-attempt-banner.error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--coral-danger);
}

/* Solution Box */
.dash-solution-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.dash-sol-badge {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.dash-sol-text,
.solution-text,
.sol-text {
    font-size: 0.92rem;
    line-height: 1.72;
    color: var(--text-secondary);
    word-break: break-word;
}

/* Bold & Headings in Solutions */
.solution-text b,
.solution-text strong,
.dash-sol-text b,
.dash-sol-text strong,
.sol-text b,
.sol-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Standard HTML <font color="..."> styling matching OLED Palette */
.solution-text font[color="green"],
.solution-text font[color="emerald"],
.solution-text font[color="success"],
.solution-text font[color="#4ADE80"],
.solution-text font[color="#10B981"],
.solution-text font[color="#10b981"],
.dash-sol-text font[color="green"],
.dash-sol-text font[color="emerald"],
.dash-sol-text font[color="success"],
.dash-sol-text font[color="#4ADE80"],
.dash-sol-text font[color="#10B981"],
.sol-text font[color="green"],
.sol-text font[color="#4ADE80"],
.sol-text font[color="#10B981"] {
    color: #4ADE80 !important;
    font-weight: 700;
}

.solution-text font[color="gold"],
.solution-text font[color="amber"],
.solution-text font[color="yellow"],
.solution-text font[color="#FCD34D"],
.solution-text font[color="#F59E0B"],
.solution-text font[color="#f59e0b"],
.dash-sol-text font[color="gold"],
.dash-sol-text font[color="amber"],
.dash-sol-text font[color="yellow"],
.dash-sol-text font[color="#FCD34D"],
.dash-sol-text font[color="#F59E0B"],
.sol-text font[color="gold"],
.sol-text font[color="#FCD34D"],
.sol-text font[color="#F59E0B"] {
    color: #FCD34D !important;
    font-weight: 700;
}

.solution-text font[color="blue"],
.solution-text font[color="info"],
.solution-text font[color="cyan"],
.solution-text font[color="#93C5FD"],
.solution-text font[color="#38BDF8"],
.solution-text font[color="#38bdf8"],
.solution-text font[color="#3B82F6"],
.dash-sol-text font[color="blue"],
.dash-sol-text font[color="info"],
.dash-sol-text font[color="cyan"],
.dash-sol-text font[color="#93C5FD"],
.dash-sol-text font[color="#38BDF8"],
.sol-text font[color="blue"],
.sol-text font[color="#93C5FD"],
.sol-text font[color="#38BDF8"] {
    color: #93C5FD !important;
    font-weight: 700;
}

.solution-text font[color="red"],
.solution-text font[color="danger"],
.solution-text font[color="#F87171"],
.solution-text font[color="#EF4444"],
.solution-text font[color="#ef4444"],
.dash-sol-text font[color="red"],
.dash-sol-text font[color="danger"],
.dash-sol-text font[color="#F87171"],
.dash-sol-text font[color="#EF4444"],
.sol-text font[color="red"],
.sol-text font[color="#F87171"],
.sol-text font[color="#EF4444"] {
    color: #F87171 !important;
    font-weight: 700;
}

.solution-text font[color="purple"],
.solution-text font[color="violet"],
.solution-text font[color="#C4B5FD"],
.solution-text font[color="#C084FC"],
.solution-text font[color="#c084fc"],
.solution-text font[color="#A855F7"],
.dash-sol-text font[color="purple"],
.dash-sol-text font[color="violet"],
.dash-sol-text font[color="#C4B5FD"],
.dash-sol-text font[color="#C084FC"],
.sol-text font[color="purple"],
.sol-text font[color="#C4B5FD"],
.sol-text font[color="#C084FC"] {
    color: #C4B5FD !important;
    font-weight: 700;
}

/* Marker Highlighter (<mark>) - Gentle, non-patchy soft champagne tint */
.solution-text mark,
.dash-sol-text mark,
.sol-text mark {
    background: rgba(253, 211, 77, 0.15);
    color: #FDE68A;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

[data-theme="light"] .solution-text mark,
[data-theme="light"] .dash-sol-text mark,
[data-theme="light"] .sol-text mark {
    background: #FEF08A;
    color: #854D0E;
}

/* Testbook Style Badges & Pills */
.sol-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 1px 7px;
    border-radius: 6px;
    font-size: 0.84em;
    font-weight: 700;
    margin: 0 3px;
    vertical-align: middle;
}

[data-theme="light"] .sol-badge-pill {
    background: #E0F2FE;
    color: #0369A1;
    border-color: #BAE6FD;
}

/* 4. Dashboard Overview Tab Styles */
.dash-overview-container {
    padding: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.dash-countdown-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dash-badge-countdown {
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.dash-countdown-right {
    text-align: center;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 24px;
}

.dash-countdown-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.dash-countdown-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 4px;
}

.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dash-metric-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-metric-card .metric-icon {
    font-size: 1.25rem;
    color: var(--navy-primary);
}

.dash-metric-card .metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-dark);
    font-family: var(--font-mono);
}

.dash-metric-card .metric-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-metric-card.green .metric-icon { color: var(--emerald-success); }
.dash-metric-card.purple .metric-icon { color: var(--purple-accent); }
.dash-metric-card.gold .metric-icon { color: var(--gold-primary); }

.dash-shortcuts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.dash-shortcut-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.dash-shortcut-card:hover {
    border-color: var(--navy-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.dash-shortcut-card .sh-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dash-shortcut-card .sh-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy-dark);
}

.dash-shortcut-card .sh-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dash-subjects-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dash-quick-subj-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dash-quick-subj-card:hover {
    border-color: var(--navy-primary);
    transform: translateY(-2px);
}

.quick-subj-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

/* 5. Performance / Score Modal */
.dash-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.dash-modal-backdrop.active {
    display: flex;
}

.dash-modal-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.dash-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold-bg);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 12px;
}

.dash-modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.dash-modal-stat-box {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 8px;
}

.dash-modal-stat-box .num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.dash-modal-stat-box.blue .num { color: var(--navy-primary); }
.dash-modal-stat-box.green .num { color: var(--emerald-success); }
.dash-modal-stat-box.red .num { color: var(--coral-danger); }

.dash-modal-stat-box .lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

.dash-modal-actions {
    display: flex;
    gap: 12px;
}

/* Animations */
@keyframes pulseSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

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

/* 6. Responsiveness for Dashboard */
@media (max-width: 992px) {
    .dash-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 2000;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
        transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1999;
    }

    .dash-sidebar-backdrop.active {
        display: block;
    }

    body.dashboard-view .app-navbar {
        margin-left: 0 !important;
        width: 100% !important;
    }

    body.dashboard-view .app-navbar #navBrandSection {
        display: flex !important;
    }

    body.dashboard-view .dash-layout-container {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dash-goal-tabs {
        display: none;
    }

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

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

    .dash-subjects-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dash-questions-feed {
        padding: 14px 10px;
    }

    .dash-question-card {
        padding: 16px 14px;
    }

    .dash-stats-grid {
        grid-template-columns: 1fr;
    }

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

    .dash-subjects-quick-grid {
        grid-template-columns: 1fr;
    }

    .dash-countdown-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-countdown-right {
        width: 100%;
    }
}

/* Form input dark theme consistency */
.form-input,
.study-search-bar input,
body.dashboard-view input[type="text"],
body.dashboard-view input[type="search"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.study-search-bar input:focus,
body.dashboard-view input[type="text"]:focus,
body.dashboard-view input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--navy-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.top-nav-search-wrap {
    display: none !important;
}


/* =============================================================================
   FULL-SCREEN STUDY PRACTICE WORKBENCH & LEFT TOPIC HIERARCHY
   ============================================================================= */
.practice-topics-pane {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: #0f1422;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 10;
    transition: transform 0.3s ease;
}

.practice-topics-header {
    padding: 12px 14px;
    background: #141b2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.practice-pane-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

.practice-topics-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.practice-topics-search-wrap .search-ico {
    position: absolute;
    left: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    pointer-events: none;
}

.practice-topics-search-input {
    width: 100%;
    padding: 6px 10px 6px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.practice-topics-search-input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.08);
}

.practice-topics-tree-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.practice-topics-tree-scroll::-webkit-scrollbar {
    width: 5px;
}
.practice-topics-tree-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Chapter Accordion Group */
.practice-chapter-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.practice-chapter-group.open {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(56, 189, 248, 0.2);
}

.practice-chapter-header-btn {
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.15s ease;
}

.practice-chapter-header-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.practice-chapter-chevron {
    font-size: 0.72rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.practice-chapter-group.open .practice-chapter-chevron {
    transform: rotate(90deg);
    color: #38bdf8;
}

.practice-subtopics-list {
    display: none;
    padding: 4px 6px 8px 6px;
    flex-direction: column;
    gap: 4px;
}

.practice-chapter-group.open .practice-subtopics-list {
    display: flex;
}

/* Topic Item */
.practice-topic-btn {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    background: none;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
}

.practice-topic-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.practice-topic-btn.active-topic {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

.practice-topic-btn.active-topic .practice-topic-num {
    background: #38bdf8;
    color: #0b0f19;
    font-weight: 800;
}

.practice-topic-num {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 1px;
}

.practice-topic-info-wrap {
    flex: 1;
    min-width: 0;
}

.practice-topic-title-text {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
    word-break: break-word;
}

.practice-topic-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Practice Body: 2-Column Split Layout */
.study-practice-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    background: var(--bg-page);
}

/* Practice Modal Header */
.practice-modal-header {
    background: #0B0E17;
    color: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    min-height: 52px;
}

.practice-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.practice-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.practice-header-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.practice-header-sub-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.practice-header-topic-name {
    font-size: 0.90rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.practice-header-subtitle {
    font-size: 0.70rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.practice-progress-pill {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.practice-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-practice-exit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-practice-exit:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-toggle-topics-mobile {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-toggle-topics-mobile:hover {
    background: rgba(56, 189, 248, 0.2);
}

.practice-header-notes-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
    white-space: nowrap;
}

/* Practice Workspace */
.practice-workspace-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg-page);
}

.practice-workspace-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.practice-question-card {
    max-width: 900px;
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Practice Palette Reel */
.practice-question-palette-reel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 84px;
    overflow-y: auto;
    padding: 4px 2px;
}

/* Practice Bottom Nav Controls */
.practice-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

/* =============================================================================
   MOBILE RESPONSIVE BREAKPOINTS (TABLET & PHONES)
   ============================================================================= */

@media (max-width: 900px) {
    .practice-topics-pane {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 84%;
        max-width: 320px;
        transform: translateX(-100%);
        z-index: 100;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
    }

    .practice-topics-pane.drawer-open {
        transform: translateX(0);
    }

    .practice-pane-close-btn {
        display: block;
    }

    .btn-toggle-topics-mobile {
        display: inline-flex !important;
    }

    .practice-pane-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        z-index: 90;
        backdrop-filter: blur(2px);
    }

    .practice-pane-backdrop.hidden {
        display: none !important;
    }

    .practice-workspace-scroll {
        padding: 16px 12px;
    }

    .practice-question-card {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    /* Header optimization for compact screens */
    .practice-modal-header,
    .cbt-modal-header {
        padding: 8px 12px;
    }

    .practice-header-subtitle,
    .cbt-exam-subtitle,
    #practiceHeaderProgress {
        display: none !important;
    }

    .practice-header-sub-badge {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.62rem;
    }

    .practice-header-topic-name {
        max-width: 100px;
        font-size: 0.82rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cbt-exam-title {
        max-width: 130px;
        font-size: 0.85rem;
    }

    /* Horizontal scrollable single-row reel for questions */
    .practice-question-palette-reel {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        max-height: none !important;
        padding: 6px 2px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .practice-question-palette-reel::-webkit-scrollbar {
        display: none;
    }

    .practice-palette-item {
        flex-shrink: 0;
    }

    /* Nav buttons tap area */
    .practice-nav-controls {
        gap: 8px;
    }

    .practice-nav-controls button {
        flex: 1;
        justify-content: center;
        min-height: 44px;
        font-size: 0.8rem;
    }

    /* CBT Option Cards & Tap Ergonomics */
    .exam-question-area {
        margin: 6px;
        padding: 14px 12px;
    }

    .exam-q-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .exam-option-card,
    .qotd-opt-item {
        min-height: 48px;
        padding: 10px 12px;
        touch-action: manipulation;
    }

    .option-body .opt-mr {
        font-size: 0.85rem;
    }

    .cbt-action-controls {
        gap: 8px;
    }

    .cbt-action-controls button {
        flex: 1;
        min-width: 130px;
        padding: 8px 10px;
        font-size: 0.76rem;
        justify-content: center;
    }

    .exam-bottom-bar {
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
    }

    .exam-bottom-bar button {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-compact phone adjustments (360px - 480px) */
    .practice-header-left,
    .cbt-header-left {
        gap: 6px;
    }

    .btn-practice-exit,
    .btn-cbt-exit-top {
        padding: 5px 8px !important;
        font-size: 0.74rem !important;
    }

    .exam-timer-pill {
        font-size: 0.82rem !important;
        padding: 3px 8px !important;
    }

    .btn-exam-submit-top {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
    }

    .practice-header-topic-name {
        max-width: 105px;
        font-size: 0.82rem;
    }

    .cbt-exam-title {
        max-width: 105px;
        font-size: 0.82rem;
    }

    /* Hide text labels where icon is sufficient to avoid header overflow */
    .notes-btn-text {
        display: none !important;
    }

    .practice-header-notes-btn {
        padding: 6px 9px !important;
    }

    .btn-toggle-topics-mobile span {
        display: none;
    }

    .btn-toggle-topics-mobile {
        padding: 6px 9px;
    }

    .practice-topics-pane {
        width: 88%;
        max-width: 300px;
    }

    .practice-question-card {
        padding: 14px 10px;
    }
}

/* =============================================================================
   MINIMALIST INFORMATION-RICH ACADEMIC UI (No Icons, High Keyword Density)
   ============================================================================= */

/* Minimal Eyebrow Tag */
.minimal-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-primary);
    display: inline-block;
    margin-bottom: 4px;
}

/* Minimal Stat Badge */
.stat-badge-minimal {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    margin-bottom: 6px;
    display: inline-block;
}

/* Minimal Pillar Number */
.pillar-num {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: -0.02em;
}

.pillar-action-link {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}
.pillar-card:hover .pillar-action-link {
    transform: translateX(3px);
}

/* Minimal Section Container */
.minimal-section-box {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.minimal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.minimal-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin: 0;
    letter-spacing: -0.01em;
}

.minimal-section-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* Exam Specification Grid (Exam Pattern) */
.spec-grid-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.spec-card-minimal {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--navy-primary);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.spec-card-minimal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.spec-card-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.35;
}

.spec-card-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
}

/* Subject-wise Cards Grid */
.subjects-keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.subject-keyword-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--navy-primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.subject-keyword-card:hover {
    border-color: var(--navy-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.subject-keyword-card.subj-polity { border-left-color: #2563EB; }
.subject-keyword-card.subj-history { border-left-color: #D97706; }
.subject-keyword-card.subj-geography { border-left-color: #0284C7; }
.subject-keyword-card.subj-economy { border-left-color: #059669; }
.subject-keyword-card.subj-science { border-left-color: #7C3AED; }
.subject-keyword-card.subj-environment { border-left-color: #16A34A; }
.subject-keyword-card.subj-csat { border-left-color: #4F46E5; }
.subject-keyword-card.subj-current { border-left-color: #DC2626; }

.subject-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.subject-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--navy-dark);
}

.subject-card-weight {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: var(--gold-bg);
    border: 1px solid var(--gold-border);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.subject-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.subject-topic-chip {
    font-size: 0.74rem;
    padding: 3px 8px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.subject-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 0.78rem;
}

.subject-card-link {
    font-weight: 700;
    color: var(--navy-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.subject-card-link:hover {
    text-decoration: underline;
}

/* Keyword Hub / Tag Cloud */
.keyword-hub-box {
    margin-bottom: 18px;
}

.keyword-hub-label {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.keyword-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-pill-item {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.keyword-pill-item:hover {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
    background: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

/* FAQ Accordion List (Horizontal Rectangle Rows) */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.faq-item {
    background: var(--bg-surface-subtle, #F8FAFC);
    border: 1px solid var(--border-light, #E2E8F0);
    border-radius: var(--radius-sm, 8px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #CBD5E1;
    background: var(--bg-white, #FFFFFF);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.faq-item.open {
    border-color: var(--navy-primary, #2563EB);
    background: var(--bg-white, #FFFFFF);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    user-select: none;
    color: inherit;
    font-family: inherit;
}

.faq-question-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy-dark, #0F172A);
    line-height: 1.45;
    flex: 1;
}

.faq-item.open .faq-question-title {
    color: var(--navy-primary, #2563EB);
}

.faq-arrow-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #EDF2F7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.faq-item:hover .faq-arrow-circle {
    background: #E2E8F0;
    color: #0F172A;
}

.faq-item.open .faq-arrow-circle {
    background: rgba(37, 99, 235, 0.1);
    color: var(--navy-primary, #2563EB);
    transform: rotate(180deg);
}

.faq-answer-pane {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.faq-item.open .faq-answer-pane {
    max-height: 500px;
    opacity: 1;
}

.faq-answer-inner {
    padding: 14px 20px 18px 20px;
    font-size: 0.88rem;
    color: var(--text-secondary, #334155);
    line-height: 1.7;
    border-top: 1px solid var(--border-light, #E2E8F0);
}

/* Dark mode FAQ */
[data-theme="dark"] .faq-item {
    background: var(--bg-card, #1E293B);
    border-color: var(--border-dark, #334155);
}
[data-theme="dark"] .faq-item:hover,
[data-theme="dark"] .faq-item.open {
    background: var(--bg-card, #1E293B);
}
[data-theme="dark"] .faq-item.open {
    border-color: #3B82F6;
}
[data-theme="dark"] .faq-question-title {
    color: #F8FAFC;
}
[data-theme="dark"] .faq-item.open .faq-question-title {
    color: #60A5FA;
}
[data-theme="dark"] .faq-arrow-circle {
    background: #334155;
    color: #94A3B8;
}
[data-theme="dark"] .faq-item.open .faq-arrow-circle {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}
[data-theme="dark"] .faq-answer-inner {
    color: #CBD5E1;
    border-top-color: #334155;
}

@media (max-width: 768px) {
    .faq-question-btn {
        padding: 14px 16px;
        gap: 12px;
    }
    .faq-question-title {
        font-size: 0.92rem;
    }
    .faq-answer-inner {
        padding: 12px 16px 16px 16px;
        font-size: 0.85rem;
    }
    .minimal-section-box {
        padding: 16px 14px;
        margin-bottom: 18px;
    }
    .minimal-section-title {
        font-size: 1.10rem;
    }
    .spec-grid-minimal {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .spec-card-minimal {
        padding: 10px 10px;
    }
    .spec-card-value {
        font-size: 0.88rem;
    }
    .subjects-keyword-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   DARK MODE COMPONENT POLISH (MATCHING ANDROID APP COLOR PALETTE)
   ========================================================================= */
[data-theme="dark"] .minimal-section-box {
    background: var(--bg-white, #10121A) !important;
    border-color: var(--border-light, #232738) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .minimal-section-title {
    color: var(--text-primary, #F8FAFC) !important;
}

[data-theme="dark"] .minimal-section-head {
    border-bottom-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .sr-card {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .sr-card-title {
    color: var(--text-primary, #F8FAFC) !important;
}

[data-theme="dark"] .sr-table-summary th {
    background: #161924 !important;
    color: #F8FAFC !important;
    border-color: #232738 !important;
}

[data-theme="dark"] .sr-table-summary td {
    background: #10121A !important;
    color: #CBD5E1 !important;
    border-color: #232738 !important;
}

[data-theme="dark"] .spec-card-minimal {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .spec-card-value {
    color: var(--text-primary, #F8FAFC) !important;
}

[data-theme="dark"] .subject-keyword-card {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .test-type-card {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .test-type-card h3 {
    color: var(--text-primary, #F8FAFC) !important;
}

[data-theme="dark"] .feature-box-minimal {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .keyword-hub-box {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .keyword-hub-label {
    color: var(--text-secondary, #94A3B8) !important;
}

[data-theme="dark"] .keyword-pill-item {
    background: #161924 !important;
    border-color: #232738 !important;
    color: #CBD5E1 !important;
}

[data-theme="dark"] .keyword-pill-item:hover {
    background: #1E2333 !important;
    border-color: var(--gold-primary, #F59E0B) !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .exam-badge-btn {
    background: #161924 !important;
    border-color: #232738 !important;
    color: #F8FAFC !important;
}

[data-theme="dark"] .exam-badge-btn:hover,
[data-theme="dark"] .exam-badge-btn.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

[data-theme="dark"] .pillar-card {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .stat-counter-card {
    background: var(--bg-surface-subtle, #12141D) !important;
    border-color: var(--border-light, #232738) !important;
}

[data-theme="dark"] .topic-pill {
    background: #161924 !important;
    border-color: #232738 !important;
    color: #CBD5E1 !important;
}

[data-theme="dark"] .topic-pill:hover {
    background: #1E2333 !important;
    border-color: #38BDF8 !important;
    color: #F8FAFC !important;
}

/* =========================================================================
   HOME KNOWLEDGE MAP BANNER CARD (MATCHING ANDROID HomeKnowledgeMapCard)
   ========================================================================= */
.home-knowledge-map-card {
    background: var(--bg-white, #FFFFFF);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 24px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.home-knowledge-map-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold-primary, #F59E0B);
    box-shadow: 0 8px 26px rgba(245, 158, 11, 0.16);
}

[data-theme="dark"] .home-knowledge-map-card {
    background: #12141D;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .home-knowledge-map-card:hover {
    border-color: var(--gold-primary, #F59E0B);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.22);
}

.kmap-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.kmap-badges-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kmap-card-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    display: inline-block;
}

.kmap-card-badge.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--gold-primary, #F59E0B);
}

.kmap-card-badge.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10B981;
}

.kmap-live-dot-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kmap-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 8px #38BDF8;
    animation: kmapPulse 2s infinite ease-in-out;
}

@keyframes kmapPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.kmap-live-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #38BDF8;
}

.kmap-card-content-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.kmap-card-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kmap-card-text {
    flex: 1;
}

.kmap-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy-dark, #0F172A);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .kmap-card-title {
    color: #F8FAFC;
}

.kmap-card-desc {
    font-size: 0.84rem;
    color: var(--text-secondary, #475569);
    margin: 0;
    line-height: 1.45;
}

[data-theme="dark"] .kmap-card-desc {
    color: #94A3B8;
}

.kmap-card-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.kmap-stat-chip {
    flex: 1;
    min-width: 90px;
    padding: 7px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.kmap-stat-chip.chip-gold {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.kmap-stat-chip.chip-cyan {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38BDF8;
}

.kmap-stat-chip.chip-emerald {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10B981;
}

.kmap-stat-num {
    font-weight: 800;
    font-size: 0.88rem;
}

.kmap-card-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #090A0F;
    font-weight: 800;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.home-knowledge-map-card:hover .kmap-card-btn {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.kmap-card-btn-arrow {
    transition: transform 0.2s;
}

.home-knowledge-map-card:hover .kmap-card-btn-arrow {
    transform: translateX(4px);
}

/* =============================================================================
   FULL-SCREEN KNOWLEDGE MAP (ज्ञान नकाशा - Google Maps Style Engine)
   ============================================================================= */

body.view-map-active {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

body.view-map-active .app-navbar {
    flex-shrink: 0;
}

body.view-map-active .app-download-showcase-section,
body.view-map-active #appDownloadShowcase,
body.view-map-active .app-footer,
body.view-map-active .mobile-bottom-nav,
body.view-map-active .dash-sidebar-left {
    display: none !important;
}

.view-map-section {
    flex: 1;
    width: 100vw;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    background: #000000 !important;
}

.knowledge-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000000 !important;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.kmap-canvas-viewport {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #05060A !important;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.kmap-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

.kmap-canvas:active {
    cursor: grabbing;
}

/* Floating Top Toolbar (Google Maps Search & Filter Bar) - OLED Pure Black Theme */
.kmap-toolbar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(10, 12, 19, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid #1E2335 !important;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    pointer-events: auto;
}

.kmap-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
}

.kmap-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.7;
    color: #94A3B8;
}

.kmap-search-input {
    width: 100%;
    height: 38px;
    padding: 0 34px 0 34px;
    border-radius: 8px;
    border: 1px solid #1E2335 !important;
    background: #0E111B !important;
    color: #F8FAFC !important;
    font-size: 0.82rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.kmap-search-input:focus {
    border-color: var(--gold-primary, #F59E0B) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.kmap-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
}

.kmap-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: #0E111B !important;
    border: 1px solid #1E2335 !important;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.9) !important;
    z-index: 50;
}

.kmap-search-item {
    padding: 10px 14px;
    border-bottom: 1px solid #1E2335 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s ease;
    color: #E2E8F0 !important;
}

.kmap-search-item:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

.kmap-search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #232738;
}

.kmap-category-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.kmap-cat-pill {
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid #1E2335 !important;
    background: #10131F !important;
    color: #94A3B8 !important;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.kmap-cat-pill:hover,
.kmap-cat-pill.active {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
}

.kmap-cat-pill.cat-gold.active { background: #F59E0B !important; border-color: #F59E0B !important; color: #090A0F !important; }
.kmap-cat-pill.cat-emerald.active { background: #10B981 !important; border-color: #10B981 !important; color: #FFFFFF !important; }
.kmap-cat-pill.cat-cyan.active { background: #38BDF8 !important; border-color: #38BDF8 !important; color: #090A0F !important; }
.kmap-cat-pill.cat-purple.active { background: #A855F7 !important; border-color: #A855F7 !important; color: #FFFFFF !important; }
.kmap-cat-pill.cat-red.active { background: #EF4444 !important; border-color: #EF4444 !important; color: #FFFFFF !important; }

.kmap-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 10, 0.9) !important;
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s;
    color: #F8FAFC !important;
}

.kmap-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(245, 158, 11, 0.2);
    border-top-color: #F59E0B;
    border-radius: 50%;
    animation: kmapSpin 0.8s linear infinite;
}

@keyframes kmapSpin {
    to { transform: rotate(360deg); }
}

.kmap-floating-controls {
    position: absolute;
    bottom: 24px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 30;
}

.kmap-float-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #10131F !important;
    border: 1px solid #1E2335 !important;
    color: #F8FAFC !important;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.15s ease;
}

.kmap-float-btn:hover {
    background: var(--gold-primary, #F59E0B) !important;
    color: #090A0F !important;
    border-color: var(--gold-primary, #F59E0B) !important;
}

.kmap-legend-card {
    position: absolute;
    bottom: 24px;
    left: 20px;
    background: rgba(10, 12, 19, 0.94) !important;
    backdrop-filter: blur(10px);
    border: 1px solid #1E2335 !important;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #CBD5E1 !important;
    z-index: 30;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.kmap-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kmap-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.kmap-nav-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.70rem;
    color: #94A3B8 !important;
    background: rgba(10, 12, 19, 0.90) !important;
    backdrop-filter: blur(8px);
    border: 1px solid #1E2335 !important;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 25;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* =========================================================================
   FIGURE DETAIL MODAL / GOOGLE MAPS STYLE LEFT INFORMATION PANE (OLED BLACK)
   ========================================================================= */
.figure-detail-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    pointer-events: none;
    display: block;
}

.figure-detail-modal.hidden {
    display: none !important;
}

.figure-detail-sheet {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 440px;
    max-width: 90vw;
    height: 100%;
    background: #080A10 !important;
    border-right: 1px solid #1E2335 !important;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.95) !important;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    overflow: hidden;
    animation: slideInLeftPane 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeftPane {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fig-sheet-header {
    padding: 16px 18px;
    border-bottom: 1px solid #1E2335 !important;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background: #0C0E17 !important;
}

[data-theme="light"] .fig-sheet-header {
    background: #F8FAFC;
    border-bottom-color: #E2E8F0;
}

.fig-sheet-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.fig-detail-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary, #F59E0B);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.fig-detail-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}

.fig-detail-name-en {
    font-size: 0.78rem;
    color: var(--text-muted, #64748B);
    margin-top: 2px;
}

.fig-category-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fig-category-badge.cat-gold { background: rgba(245, 158, 11, 0.18); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.4); }
.fig-category-badge.cat-emerald { background: rgba(16, 185, 129, 0.18); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.4); }
.fig-category-badge.cat-cyan { background: rgba(56, 189, 248, 0.18); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.4); }
.fig-category-badge.cat-purple { background: rgba(168, 85, 247, 0.18); color: #A855F7; border: 1px solid rgba(168, 85, 247, 0.4); }
.fig-category-badge.cat-red { background: rgba(239, 68, 68, 0.18); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.4); }

.fig-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.76rem;
    color: var(--text-secondary, #94A3B8);
}

.fig-meta-dot {
    opacity: 0.5;
}

.fig-sheet-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light, #232738);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fig-sheet-close:hover {
    background: #EF4444;
    border-color: #EF4444;
    color: #FFFFFF;
}

.fig-sheet-body {
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.fig-section-box {
    background: #0E111C !important;
    border: 1px solid #1E2335 !important;
    border-radius: 10px;
    padding: 12px 14px;
}

.fig-section-label {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748B);
    margin-bottom: 8px;
}

.fig-bio-text {
    font-size: 0.86rem;
    line-height: 1.6;
    color: #CBD5E1 !important;
    margin: 0;
}

.fig-exam-points-content {
    font-size: 0.84rem;
    line-height: 1.65;
    color: #F8FAFC !important;
}

.fig-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.fig-tag {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}

.fig-tag.org-tag {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.32) !important;
    color: #34D399 !important;
}

.fig-tag.work-tag {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
    color: #38BDF8 !important;
}

/* Connected Figures in Map */
.fig-connected-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.fig-connected-item {
    background: #0E111C !important;
    border: 1px solid #1E2335 !important;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fig-connected-item:hover {
    border-color: var(--gold-primary, #F59E0B) !important;
    background: #151828 !important;
    transform: translateY(-1px);
}

.fig-conn-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fig-conn-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fig-conn-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid #232738;
}

.fig-conn-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #F8FAFC !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fig-conn-role {
    font-size: 0.72rem;
    color: #94A3B8 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fig-conn-rel-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: var(--gold-primary, #F59E0B) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.fig-conn-desc-box {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #CBD5E1 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    padding: 6px 8px;
    border-radius: 6px;
    border-left: 2px solid var(--gold-primary, #F59E0B) !important;
}

.fig-sheet-footer {
    padding: 12px 18px;
    border-top: 1px solid #1E2335 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #0C0E17 !important;
}

@media (max-width: 768px) {
    .kmap-toolbar {
        top: 10px;
        left: 10px;
        right: 10px;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 10px;
        gap: 8px;
    }
    .kmap-stat-badge-wrap {
        display: none;
    }
    .figure-detail-modal {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.6);
    }
    .figure-detail-sheet {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 78vh;
        max-height: 82vh;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        border-right: none;
        border-top: 1px solid var(--border-light);
        animation: slideUpBottomPane 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes slideUpBottomPane {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

/* ==========================================================================
   INTERACTIVE MAPS - DESKTOP NAVBAR DROPDOWN & MOBILE DRAWER ACCORDION
   ========================================================================== */
.nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-item-has-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.nav-item-has-dropdown:hover,
.nav-item-has-dropdown.active,
.nav-dropdown-wrap.open .nav-item-has-dropdown {
    color: var(--gold-primary);
}

.nav-dropdown-arrow {
    font-size: 0.72rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.85;
}

.nav-dropdown-wrap.open .nav-dropdown-arrow,
.nav-dropdown-wrap:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--gold-primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 320px;
    background: var(--bg-surface-elevated, #0F121C);
    border: 1px solid var(--border-light, #232738);
    border-radius: 14px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

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

[data-theme="light"] .nav-dropdown-menu {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.nav-dropdown-item:hover {
    background: rgba(245, 158, 11, 0.09);
    border-color: rgba(245, 158, 11, 0.25);
}

.nav-dropdown-item.active {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.45);
}

.nav-dd-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
}
.nav-dd-badge.gold { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.nav-dd-badge.cyan { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); }
.nav-dd-badge.emerald { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.nav-dd-badge.amber { background: rgba(217, 119, 6, 0.15); border: 1px solid rgba(217, 119, 6, 0.3); }
.nav-dd-badge.red { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); }

.nav-dd-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.nav-dd-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.nav-dropdown-item:hover .nav-dd-title,
.nav-dropdown-item.active .nav-dd-title {
    color: var(--gold-primary);
}

.nav-dd-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dd-check {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-primary);
    display: none;
    margin-left: auto;
}

.nav-dropdown-item.active .nav-dd-check {
    display: inline-block;
}

/* Mobile Drawer Maps Accordion */
.drawer-map-group {
    display: flex;
    flex-direction: column;
    margin: 2px 0;
}

.drawer-map-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.drawer-map-toggle.open {
    border-color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.12);
}

.drawer-map-arrow {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.drawer-map-toggle.open .drawer-map-arrow {
    transform: rotate(180deg);
}

.drawer-map-sublist {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 6px 14px;
    margin-top: 4px;
    border-left: 2px solid var(--gold-border, rgba(245, 158, 11, 0.3));
}

.drawer-map-sublist.open {
    display: flex;
}

.drawer-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.drawer-sub-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-primary);
}

/* Map Screen - Toolbar Map Selector Pill */
.kmap-type-selector-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.kmap-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #141724;
    border: 1.5px solid #282F45;
    padding: 6px 12px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #F8FAFC;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.kmap-type-pill:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
}

.kmap-type-caret {
    font-size: 0.7rem;
    opacity: 0.7;
}

.kmap-type-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 290px;
    background: rgba(15, 18, 28, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #232738;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
    z-index: 1050;
    animation: examDropdownFadeIn 0.15s ease-out;
}

.kmap-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.kmap-type-item:hover,
.kmap-type-item.active {
    background: rgba(245, 158, 11, 0.12);
}

.kmap-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.kmap-item-icon.gold { background: rgba(245, 158, 11, 0.15); }
.kmap-item-icon.cyan { background: rgba(56, 189, 248, 0.15); }
.kmap-item-icon.emerald { background: rgba(16, 185, 129, 0.15); }
.kmap-item-icon.amber { background: rgba(217, 119, 6, 0.15); }
.kmap-item-icon.red { background: rgba(239, 68, 68, 0.15); }

.kmap-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kmap-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #F8FAFC;
}

.kmap-item-sub {
    font-size: 0.70rem;
    color: #94A3B8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Detail Sheet Geo Elements */
.fig-detail-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1.5px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}

.fig-questions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    max-height: 280px;
    overflow-y: auto;
}

.fig-q-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.fig-q-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.fig-q-source {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.fig-q-text {
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.fig-q-answer {
    font-size: 0.75rem;
    color: #4ADE80;
    background: rgba(74, 222, 128, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-mini-gold {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Android-Parity Exam Solution Formatting, KaTeX Math & MPSC Exam Tip Card
   ========================================================================== */
.sol-p {
    margin-bottom: 10px;
    line-height: 1.75;
}
.sol-p:last-child {
    margin-bottom: 0;
}
.sol-spacer {
    height: 10px;
}

/* Bullet Points in Solution */
.sol-bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.7;
}
.sol-bullet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--gold-primary, #d97706);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}
.sol-bullet-text {
    flex: 1;
}

/* Mathematical Equation & LaTeX Blocks */
.sol-math-block {
    margin: 12px 0;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.03);
    border-left: 3px solid var(--navy-primary, #1e3a8a);
    border-radius: 0 8px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 1.05rem;
}
[data-theme="dark"] .sol-math-block {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--gold-primary, #f59e0b);
}
.katex-display {
    margin: 10px 0 !important;
    padding: 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.katex {
    font-size: 1.06em !important;
}

/* High-Impact MPSC Exam Tip Callout Box (Matching Android App Pro Pass / Exam Tip) */
.mpsc-exam-tip-card {
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(217, 119, 6, 0.04) 100%);
    border: 1.5px solid #F59E0B;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.14);
    position: relative;
    overflow: hidden;
}
.mpsc-exam-tip-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.35);
}
.mpsc-exam-tip-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.mpsc-exam-tip-badge {
    background: #F59E0B;
    color: #000000 !important;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
}
.mpsc-exam-tip-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #B45309;
}
[data-theme="dark"] .mpsc-exam-tip-title {
    color: #FCD34D;
}
.mpsc-exam-tip-body {
    font-size: 0.98rem;
    color: #1E293B;
    line-height: 1.8;
}
[data-theme="dark"] .mpsc-exam-tip-body {
    color: #E2E8F0;
}
.mpsc-exam-tip-body p {
    margin-bottom: 8px;
}
.mpsc-exam-tip-body p:last-child {
    margin-bottom: 0;
}

/* Rich Badges, Marks & Tables */
.sol-badge-pill {
    display: inline-block;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.80rem;
    font-weight: 700;
}
.exam-mark {
    background: #FEF08A;
    color: #854D0E;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 14px 0;
}
.exam-content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    border-radius: 8px;
    overflow: hidden;
}
.exam-content-table th {
    background: rgba(245, 158, 11, 0.14);
    color: #B45309;
    padding: 10px 14px;
    font-weight: 700;
    text-align: left;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-theme="dark"] .exam-content-table th {
    color: #FCD34D;
    background: rgba(245, 158, 11, 0.2);
}
.exam-content-table td {
    padding: 8px 14px;
    border: 1px solid var(--border-light, #e2e8f0);
    color: #334155;
}
[data-theme="dark"] .exam-content-table td {
    color: #CBD5E1;
    border-color: rgba(255, 255, 255, 0.1);
}



