﻿/* Exam full-screen mode */
body.exam-mode {
    overflow: hidden;
    background: #f8fafc;
}

#screen-exam.screen {
    min-height: 100vh;
}

/* Hide everything except the exam view when in exam mode */
body.exam-mode .navbar,
body.exam-mode .footer,
body.exam-mode .main-container > *:not(#screen-exam) {
    display: none !important;
}

body.exam-mode .main-container {
    padding: 0;
    max-width: 100%;
}

body.exam-mode #screen-exam {
    padding: 0;
}
/* ===================================================
   MYSCHOOLEXAM - PRODUCTION STYLE SHEET
   EdTech Modern Design System
   =================================================== */

:root {
    /* Color Palette */
    --primary: #263d9b;        /* Brand Navy */
    --primary-light: #4d63b8;
    --primary-dark: #1a2b6f;
    --secondary: #f36523;      /* Brand Orange */
    --secondary-light: #ff8549;
    --secondary-dark: #d94e0f;
    --success: #10b981;        /* Green for correct */
    --danger: #ef4444;         /* Red for wrong */
    --warning: #f59e0b;        /* Orange for info */
    --neutral: #6b7280;        /* Gray */
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    
    /* Borders & Shadows */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Additional Colors */
    --primary-color: #263d9b;
    --secondary-color: #f36523;
}

/* ===================================================
   RESET & BASE STYLES
   =================================================== */

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

/* SEO Content Styles */
.seo-content {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    line-height: 1.8;
}

.seo-content h2 {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary);
    padding-bottom: var(--spacing-sm);
}

.seo-content h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.seo-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.seo-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.seo-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.seo-content ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.seo-content ol li {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.faq-section {
    margin-top: var(--spacing-lg);
}

.faq-item {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary);
}

.faq-item h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #e8ecfc 0%, #ffe4d6 100%);
    border-radius: 8px;
    margin-top: var(--spacing-xl);
}

.seo-content--english {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at top right, rgba(243, 101, 35, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(38, 61, 155, 0.08);
    border-radius: 24px;
}

.seo-motion-target {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    transition-delay: var(--motion-delay, 0ms);
}

.seo-motion-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.seo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(38, 61, 155, 0.08);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.seo-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.seo-hero-copy {
    padding: 1.75rem;
    border-radius: 22px;
    background: linear-gradient(145deg, #f5f8ff 0%, #ffffff 100%);
    border: 1px solid rgba(38, 61, 155, 0.08);
}

.seo-hero-copy h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0.9rem;
    margin-bottom: 1rem;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.1;
}

.seo-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.seo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(38, 61, 155, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.seo-hero-aside {
    display: grid;
    gap: 1rem;
}

.seo-stat-card {
    padding: 1.4rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #1f3a8a 0%, #2b5fd1 100%);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(38, 61, 155, 0.18);
}

.seo-stat-card.accent {
    background: linear-gradient(180deg, #f36523 0%, #ff8d54 100%);
    box-shadow: 0 16px 30px rgba(243, 101, 35, 0.2);
}

.seo-stat-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.seo-stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.seo-stat-card p {
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.english-focus-section,
.english-roadmap-section {
    margin-top: 2rem;
}

.english-focus-grid,
.english-roadmap-grid,
.faq-section-grid,
.seo-columns {
    display: grid;
    gap: 1rem;
}

.english-focus-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 1.25rem;
}

.english-focus-card {
    padding: 1.35rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.english-focus-card:hover,
.english-focus-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.11);
    border-color: rgba(38, 61, 155, 0.18);
}

.english-focus-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8ecfc 0%, #dbeafe 100%);
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}

.english-focus-card h4,
.english-roadmap-card h4 {
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.english-focus-card p,
.english-roadmap-card p,
.seo-support-copy {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.seo-support-copy {
    margin-top: 1.2rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(38, 61, 155, 0.08);
}

.english-roadmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 1.25rem;
}

.english-roadmap-card {
    position: relative;
    padding: 1.3rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
    border: 1px solid rgba(243, 101, 35, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.english-roadmap-card:hover,
.english-roadmap-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 18px 32px rgba(243, 101, 35, 0.1);
    border-color: rgba(243, 101, 35, 0.22);
}

.roadmap-step {
    display: inline-flex;
    margin-bottom: 0.8rem;
    color: #f36523;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.faq-section-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq-section-grid .faq-item {
    height: 100%;
    margin-bottom: 0;
    border-left: none;
    border-top: 4px solid var(--primary);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.faq-accordion {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.faq-accordion:hover,
.faq-accordion:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-chevron {
    position: relative;
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
}

.faq-chevron::before,
.faq-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.62rem;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.22s ease;
}

.faq-chevron::before {
    left: 0;
    transform: translateY(-50%) rotate(45deg);
}

.faq-chevron::after {
    right: 0;
    transform: translateY(-50%) rotate(-45deg);
}

.faq-accordion[open] .faq-chevron::before {
    transform: translateY(-50%) rotate(-45deg);
}

.faq-accordion[open] .faq-chevron::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease, padding-top 0.28s ease;
    padding-top: 0;
}

.faq-answer > * {
    overflow: hidden;
}

.faq-accordion[open] .faq-answer {
    grid-template-rows: 1fr;
    padding-top: 0.9rem;
}

.faq-answer p {
    margin-bottom: 0;
}

.seo-columns {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    align-items: start;
    margin-top: 2rem;
}

.seo-column-side {
    display: grid;
    gap: 1rem;
}

.seo-story-card {
    padding: 1.35rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(38, 61, 155, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.seo-story-card:hover,
.seo-story-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.seo-story-card--warm {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: rgba(243, 101, 35, 0.16);
}

.seo-story-card h3 {
    margin-top: 0;
}

.seo-story-card p:last-child {
    margin-bottom: 0;
}

.seo-cta-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.3rem 1.4rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #12255f 0%, #2247a7 58%, #f36523 100%);
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seo-cta-panel:hover,
.seo-cta-panel:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(18, 37, 95, 0.22);
}

.seo-cta-panel .cta-text {
    margin-top: 0.7rem;
    margin-bottom: 0;
    padding: 0;
    background: none;
    color: #ffffff;
    text-align: left;
}

.seo-cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.seo-cta-actions .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.seo-cta-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
    .seo-hero-panel,
    .seo-columns {
        grid-template-columns: 1fr;
    }

    .seo-cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .seo-content--english {
        border-radius: 18px;
        padding: 1.15rem;
    }

    .seo-hero-copy,
    .seo-stat-card,
    .english-focus-card,
    .english-roadmap-card,
    .seo-story-card,
    .faq-section-grid .faq-item {
        padding: 1rem;
    }

    .seo-hero-copy h2 {
        font-size: 1.8rem;
    }

    .seo-badge-row,
    .seo-cta-actions {
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    .seo-motion-target,
    .english-focus-card,
    .english-roadmap-card,
    .faq-accordion,
    .seo-story-card,
    .seo-cta-panel,
    .faq-answer,
    .faq-chevron::before,
    .faq-chevron::after {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .seo-motion-target {
        opacity: 1 !important;
    }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4f8 100%);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Modern Navigation Bar */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 48px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-center {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-link:hover {
    background: #F1F5F9;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link:hover svg {
    transform: scale(1.1);
    opacity: 1;
}

.nav-link.active {
    background: linear-gradient(135deg, #263D9B 0%, #3B53B8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(38, 61, 155, 0.25);
}

.nav-link.active svg {
    opacity: 1;
}

.nav-link.active:hover {
    background: linear-gradient(135deg, #1e3080 0%, #2d4199 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(38, 61, 155, 0.35);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    min-width: 0;
}

#nav-auth-slot {
    min-width: 0;
}

.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.nav-auth-link {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.nav-auth-link.login {
    color: var(--primary);
    background: rgba(38, 61, 155, 0.08);
}

.nav-auth-link.login:hover {
    background: rgba(38, 61, 155, 0.14);
}

.nav-auth-link.signup {
    color: #fff;
    background: linear-gradient(135deg, #263D9B 0%, #3B53B8 100%);
    box-shadow: 0 6px 16px rgba(38, 61, 155, 0.25);
}

.nav-auth-link.signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(38, 61, 155, 0.35);
}

.nav-auth-link.install {
    border: none;
    cursor: pointer;
    color: #0f172a;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}

.nav-auth-link.install:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.nav-auth-user {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #eff3ff;
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-auth-logout {
    border: none;
    background: transparent;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.nav-auth-logout:hover {
    color: var(--primary);
}

.install-app-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1200;
    width: min(420px, calc(100vw - 2rem));
    border: 1px solid #c7d2fe;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
    padding: 1rem;
}

.install-app-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.install-app-banner__content strong {
    display: block;
    color: #172554;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.install-app-banner__content p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
}

.install-app-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.install-app-banner__button,
.install-app-banner__dismiss,
.install-help-close {
    border: none;
    cursor: pointer;
}

.install-app-banner__button {
    padding: 0.72rem 1rem;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #263D9B 0%, #3B53B8 100%);
}

.install-app-banner__dismiss {
    padding: 0.72rem 0.95rem;
    border-radius: 12px;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
}

.install-help-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-help-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.install-help-panel {
    position: relative;
    width: min(460px, calc(100vw - 2rem));
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.22);
    padding: 1.1rem;
}

.install-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.install-help-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.install-help-close {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 1.4rem;
    line-height: 1;
}

.install-help-copy {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--secondary-color);
}

.mobile-auth-slot {
    display: none;
}

.nav-link-icon {
    display: none;
}

/* Exam Header (shown during exam) */
.exam-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.exam-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

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

.exam-header-center {
    flex: 1;
    max-width: 600px;
}

.exam-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #111827;
    color: #fff;
    z-index: 1000;
    border-radius: 6px;
}

/* Help Icon & Tooltip */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    transition: background-color var(--transition-fast);
}
.help-icon:hover {
    background-color: var(--primary-dark);
}
.help-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111827;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    font-weight: 400;
}
.help-icon::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    z-index: 1001;
}
.help-icon:hover::after,
.help-icon:focus::after {
    opacity: 1;
    visibility: visible;
}
.help-icon:hover::before,
.help-icon:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Progress bar */
.progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}
.progress-bar {
    width: 0%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    transition: width 0.4s ease;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

/* Improved focus styles */
button:focus, .option-btn:focus, select:focus {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

/* ===================================================
   FOOTER
   =================================================== */

.app-footer {
    background: linear-gradient(135deg, #263d9b 0%, #4d63b8 100%);
    color: white;
    padding: 1.5rem var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: #e0e7ff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--spacing-xl) auto 0;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer-main-text {
    font-size: 0.9rem !important;
    font-weight: 600;
    color: #e0e7ff !important;
}

.footer-description {
    font-size: 0.85rem !important;
    line-height: 1.7 !important;
    color: #cbd5e1 !important;
    margin-top: var(--spacing-sm) !important;
    text-align: left;
}

.footer-keywords-section {
    margin-top: var(--spacing-md) !important;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-keywords-section strong,
.footer-locations strong,
.footer-subjects strong,
.footer-related-exams strong {
    color: #e0e7ff;
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
}

.footer-locations,
.footer-subjects,
.footer-related-exams {
    margin-top: var(--spacing-md) !important;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem !important;
    line-height: 1.8 !important;
}

.footer-credit {
    margin-top: var(--spacing-lg) !important;
    padding-top: var(--spacing-md) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem !important;
    color: #a5b4fc !important;
}

.footer-credit a {
    color: #c7d2fe;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(199, 210, 254, 0.5);
}

.footer-credit a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

.footer-keywords {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: #94a3b8;
}

.footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

/* ===================================================
   UNIFIED SITE FOOTER - Modern Design
   =================================================== */

.site-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 48px 20px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand-col {
    max-width: 380px;
}

.footer-brand-logo {
    height: 70px;
    width: auto;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.footer-brand-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Legacy footer class alias for backward compatibility */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 24px 20px;
    margin-top: auto;
    text-align: center;
}

.footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Responsive Styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 32px;
    }
    .footer-grid .footer-col:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-brand-col {
        grid-column: 1 / 3;
        max-width: 100%;
    }
    .footer-grid .footer-col:last-child {
        grid-column: auto;
    }
    .site-footer {
        padding: 40px 16px 20px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 32px 16px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-brand-col {
        grid-column: auto;
    }
    .footer-bottom {
        padding-top: 24px;
    }
    .footer-brand-logo {
        height: 60px;
    }
}

/* ===================================================
   END UNIFIED FOOTER
   =================================================== */

.timer-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse-timer 2s infinite;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timer-badge.timer-warning {
    background: rgba(255, 193, 7, 0.25);
    border-color: rgba(255, 193, 7, 0.6);
    animation: pulse-timer-warning 1s infinite;
}

.timer-badge.timer-danger {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.9);
    animation: pulse-timer-danger 0.5s infinite;
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes pulse-timer-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@keyframes pulse-timer-danger {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.06); }
}

.timer-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

.subject-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.main-container {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===================================================
   SCREENS & VISIBILITY
   =================================================== */

.screen {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.screen.active {
    display: block;
}

/* Prevent accidental oversized images from breaking layout */
.main-container img:not(.header-logo):not(.footer-logo) {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===================================================
   HOME SCREEN
   =================================================== */

/* Hero Section - Modern Split Design */
.hero-section {
    background: linear-gradient(135deg, #263D9B 0%, #3B53B8 50%, #F36523 100%);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(38, 61, 155, 0.4);
    position: relative;
    max-height: calc(100vh - 80px);
}

.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(-10px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    min-height: auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    padding: 1.25rem 1.25rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-right {
    padding: 1.25rem 1.25rem 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.8s ease-out;
}

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

.hero-badge span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-align: left;
    animation: slideInDown 0.9s ease-out 0.2s both;
}

.hero-title-main {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
}

.hero-title-highlight {
    display: block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.15rem;
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.9rem;
    line-height: 1.4;
    text-align: left;
    animation: slideInDown 1s ease-out 0.4s both;
}

.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.9rem;
    animation: slideInDown 1.1s ease-out 0.6s both;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.hero-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #F36523 0%, #FFD700 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-feature-item:hover {
    transform: translateX(12px) translateY(-5px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.hero-feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.hero-feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.feature-title {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.feature-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    animation: slideInDown 1.2s ease-out 0.8s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
}

.btn-hero-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    transition: left 0.3s ease;
}

.btn-hero-primary:hover:before {
    left: 100%;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.btn-sub {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    animation: slideInDown 1.3s ease-out 1s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-badge {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: slideInDown 1.4s ease-out 1.2s both;
}

.guarantee-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guarantee-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.guarantee-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.guarantee-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

/* Hero Image Section */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: heroImageEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
    transform-style: preserve-3d;
}

@keyframes heroImageEntrance {
    0% {
        opacity: 0;
        transform: translateX(80px) translateY(30px) rotateY(15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotateY(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 15px 40px rgba(38, 61, 155, 0.3),
                0 5px 15px rgba(243, 101, 35, 0.2);
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 0;
    position: relative;
    z-index: 2;
    filter: brightness(1.08) contrast(1.1) saturate(1.05);
}

.hero-image:hover {
    transform: scale(1.05) translateY(-12px) rotateY(-2deg);
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.5),
                0 20px 50px rgba(38, 61, 155, 0.4),
                0 10px 25px rgba(243, 101, 35, 0.3);
    filter: brightness(1.12) contrast(1.15) saturate(1.1);
}

/* Gradient Glow Background */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, 
        rgba(243, 101, 35, 0.4) 0%,
        rgba(38, 61, 155, 0.4) 35%,
        rgba(255, 215, 0, 0.4) 70%,
        rgba(147, 51, 234, 0.3) 100%);
    border-radius: 32px;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    filter: blur(30px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        filter: blur(30px);
        transform: scale(1);
    }
    50% {
        filter: blur(35px);
        transform: scale(1.05);
    }
}

.hero-image-wrapper:hover::before {
    opacity: 1;
}

/* Animated Gradient Border */
.hero-image-border {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 26px;
    background: linear-gradient(45deg, 
        #F36523 0%, 
        #FFD700 25%, 
        #263D9B 50%, 
        #9333EA 75%, 
        #F36523 100%);
    background-size: 300% 300%;
    animation: gradientShift 6s ease-in-out infinite;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-image-wrapper:hover .hero-image-border {
    opacity: 1;
    box-shadow: 0 0 30px rgba(243, 101, 35, 0.5),
                0 0 60px rgba(38, 61, 155, 0.3);
}

/* Decorative Corner Elements */
.hero-image-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    z-index: 3;
    opacity: 0;
    animation: cornerFadeIn 0.8s ease-out 1.5s forwards;
}

@keyframes cornerFadeIn {
    to {
        opacity: 1;
    }
}

.corner-top-left {
    top: -15px;
    left: -15px;
    border-top: 4px solid #FFD700;
    border-left: 4px solid #FFD700;
    border-radius: 8px 0 0 0;
    animation: cornerPulse 3s ease-in-out infinite,
               cornerFadeIn 0.8s ease-out 1.5s forwards;
}

.corner-top-right {
    top: -15px;
    right: -15px;
    border-top: 4px solid #F36523;
    border-right: 4px solid #F36523;
    border-radius: 0 8px 0 0;
    animation: cornerPulse 3s ease-in-out 0.5s infinite,
               cornerFadeIn 0.8s ease-out 1.7s forwards;
}

.corner-bottom-left {
    bottom: -15px;
    left: -15px;
    border-bottom: 4px solid #263D9B;
    border-left: 4px solid #263D9B;
    border-radius: 0 0 0 8px;
    animation: cornerPulse 3s ease-in-out 1s infinite,
               cornerFadeIn 0.8s ease-out 1.9s forwards;
}

.corner-bottom-right {
    bottom: -15px;
    right: -15px;
    border-bottom: 4px solid #9333EA;
    border-right: 4px solid #9333EA;
    border-radius: 0 0 8px 0;
    animation: cornerPulse 3s ease-in-out 1.5s infinite,
               cornerFadeIn 0.8s ease-out 2.1s forwards;
}

@keyframes cornerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

/* Particle Dots */
.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #F36523);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
                0 0 20px rgba(243, 101, 35, 0.4);
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

.particle-1 {
    top: 10%;
    left: -8%;
    animation-delay: 0s;
    animation-duration: 3.5s;
}

.particle-2 {
    top: 30%;
    right: -6%;
    animation-delay: 0.8s;
    animation-duration: 4.2s;
    background: linear-gradient(135deg, #263D9B, #9333EA);
    box-shadow: 0 0 10px rgba(38, 61, 155, 0.6),
                0 0 20px rgba(147, 51, 234, 0.4);
}

.particle-3 {
    top: 50%;
    left: -10%;
    animation-delay: 1.5s;
    animation-duration: 3.8s;
    width: 6px;
    height: 6px;
}

.particle-4 {
    top: 70%;
    right: -8%;
    animation-delay: 2.2s;
    animation-duration: 4.5s;
    background: linear-gradient(135deg, #F36523, #FFD700);
}

.particle-5 {
    top: 85%;
    left: -5%;
    animation-delay: 3s;
    animation-duration: 3.2s;
    width: 5px;
    height: 5px;
}

.particle-6 {
    top: 15%;
    right: -10%;
    animation-delay: 1s;
    animation-duration: 4s;
    background: linear-gradient(135deg, #9333EA, #263D9B);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.6),
                0 0 20px rgba(38, 61, 155, 0.4);
}

.hero-image-badge,
.hero-badge-success {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 100%);
    padding: 1.25rem 1.75rem;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: badgePulse 0.8s ease-out 1.2s both;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
    cursor: pointer;
}

.hero-image-badge:hover,
.hero-badge-success:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
}

@keyframes badgePulse {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(20px);
    }
    50% {
        transform: scale(1.08) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.badge-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.badge-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.badge-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0.9;
}

/* Floating Cards */
.hero-floating-cards {
    position: absolute;
    top: 0;
    right: -100px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    animation: float 4s ease-in-out infinite;
}

.card-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-text {
    font-size: 0.95rem;
    white-space: nowrap;
}

.card-1 {
    top: 20%;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    right: -30px;
    animation-delay: 0.5s;
}

.card-3 {
    top: 70%;
    right: 20px;
    animation-delay: 1s;
}

.card-text {
    color: var(--primary-color);
    line-height: 1;
}

.badge-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Quick Start Card */
.home-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.quick-start-card {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title.centered {
    justify-content: center;
    text-align: center;
}

.title-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.home-card h2 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.home-card > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-size: 1.05rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.label-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.question-count-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.count-option {
    cursor: pointer;
}

.count-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.count-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: white;
    transition: all var(--transition-normal);
    border: 2px solid rgba(38, 61, 155, 0.1);
    border-radius: 16px;
}

.count-option:hover .count-card {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(38, 61, 155, 0.15);
}

.count-option input[type="radio"]:checked + .count-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(38, 61, 155, 0.1) 0%, rgba(38, 61, 155, 0.05) 100%);
    box-shadow: 0 8px 25px rgba(38, 61, 155, 0.2);
    transform: scale(1.05);
}

.count-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.count-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.subject-select {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.subject-select:hover {
    border-color: var(--primary-light);
}

.subject-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 61, 155, 0.1);
}

.info-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary);
    padding: var(--spacing-lg);
    border-radius: 6px;
    margin-top: var(--spacing-xl);
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.info-box ul {
    list-style: none;
    padding-left: var(--spacing-lg);
}

.info-box li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.feature-icon.blue {
    background: #e8ecfc;
    color: #263d9b;
}

.feature-icon.green {
    background: #d1fae5;
    color: #059669;
}

.feature-icon.orange {
    background: #ffe4d6;
    color: #f36523;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-2xl);
}

.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.benefit-item:hover {
    background: var(--bg-tertiary);
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.benefit-item strong {
    color: var(--primary);
}

.benefit-item div {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================================
   BUTTONS
   =================================================== */

.btn {
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.05rem;
}

.btn-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}
.btn-start svg {
    width: 18px;
    height: 18px;
}

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

.exam-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    padding: 16px;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    background: linear-gradient(to bottom, #f8fafc 0%, #e5e9f0 100%);
}

.question-sidebar {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 90px);
    border: 1px solid #e2e8f0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e9f0;
}

.sidebar-header h3 {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: 0;
}

.question-counter {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 24px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.question-grid,
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 10px;
}

.q-indicator {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    position: relative;
}

.q-indicator:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #3b82f6;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    background: #dbeafe;
    color: #1e3a8a;
}

.q-indicator.current {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 6px 20px rgba(30, 58, 138, 0.4);
    border-color: transparent;
    font-weight: 800;
    transform: scale(1.1);
}

.q-indicator.answered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.q-indicator.unanswered {
    background: #f8fafc;
    color: #94a3b8;
    border: 2px dashed #cbd5e1;
}

/* REVIEW MODE INDICATORS */
.q-indicator.review-correct {
    background: var(--success);
    color: white;
}

.q-indicator.review-wrong {
    background: var(--danger);
    color: white;
}

/* ===================================================
   EXAM CONTENT
   =================================================== */

.exam-content,
.review-content {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 90px);
    position: relative;
    border: 1px solid #e2e8f0;
}

.question-display {
    margin-bottom: 36px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e9f0;
}

.question-number {
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
}

.question-text {
    font-size: 1.2rem;
    line-height: 2;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 5px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.question-text .question-instruction,
#question-text .question-instruction,
#review-question-text .question-instruction {
    display: block;
    font-size: 0.78em;
    font-style: italic;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.55rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.question-text .question-main,
#question-text .question-main,
#review-question-text .question-main {
    display: block;
    font-size: 1em;
    font-style: normal;
    font-weight: 700;
    color: inherit;
    line-height: inherit;
}

/* ===================================================
   OPTIONS GRID
   =================================================== */

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.option-btn {
    padding: 20px 24px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #3b82f6 0%, #1e3a8a 100%);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.option-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2);
}

.option-btn:hover:not(:disabled)::before {
    transform: scaleY(1);
}

.option-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
    transform: translateY(-3px);
}

.option-btn.selected::before {
    transform: scaleY(1);
    width: 6px;
}

/* REVIEW MODE: CORRECT & WRONG ANSWERS */
.option-btn.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-weight: 600;
}

.option-btn.correct::before {
    content: "✓ ";
    font-weight: 700;
    margin-right: 4px;
}

.option-btn.wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-weight: 600;
}

.option-btn.wrong::before {
    content: "✗ ";
    font-weight: 700;
    margin-right: 4px;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 1;
}

/* ===================================================
   EXAM CONTROLS
   =================================================== */

.exam-controls,
.review-controls {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding-top: 28px;
    border-top: 2px solid #e5e9f0;
    margin-top: auto;
    flex-wrap: wrap;
    background: linear-gradient(180deg, transparent 0%, #f8fafc 100%);
    border-radius: 0 0 20px 20px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: -40px;
    padding: 28px 40px 40px;
}

.exam-controls .btn,
.review-controls .btn {
    padding: 16px 32px;
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-controls .btn:hover:not(:disabled),
.review-controls .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

.exam-controls #btn-pause,
.review-controls #btn-pause {
    min-width: 130px;
}

.exam-controls #btn-submit,
.review-controls #btn-submit {
    min-width: 180px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.exam-controls #btn-submit:hover,
.review-controls #btn-submit:hover {
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.exam-controls #btn-prev,
.exam-controls #btn-next,
.review-controls #btn-prev,
.review-controls #btn-next {
    min-width: 140px;
}

/* ===================================================
   RESULTS SCREEN
   =================================================== */

.results-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.results-header {
    margin-bottom: var(--spacing-2xl);
}

.results-header h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

.score-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--success);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-lg);
}

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

.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-box {
    background: var(--bg-tertiary);
    padding: var(--spacing-lg);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
           font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===================================================
   RESULTS SECTIONS - TIME STATS & ANALYSIS
   =================================================== */

.results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    text-align: left;
}

.results-section h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Time Stats Grid */
.time-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-stat-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.time-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
}

.time-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.time-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
}

.time-stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Analysis Section */
.analysis-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.analysis-category {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 5px solid #3b82f6;
}

.analysis-category h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1e293b;
}

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

.strength-category {
    border-left-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, #f8fafc 100%);
}

.moderate-category {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, #f8fafc 100%);
}

.weakness-category {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, #f8fafc 100%);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.topic-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.topic-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.topic-score {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 1rem;
}

.strength-item .topic-score {
    color: #10b981;
}

.moderate-item .topic-score {
    color: #f59e0b;
}

.weakness-item .topic-score {
    color: #ef4444;
}

.topic-details {
    font-size: 0.85rem;
    color: #64748b;
    white-space: nowrap;
}

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

.review-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-xl);
    height: calc(100vh - 200px);
}

.review-sidebar {
    position: sticky;
    top: 100px;
}

.review-content {
    padding: var(--spacing-2xl);
}

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

@media (max-width: 980px) {
    .main-container {
        padding: 1rem;
    }

    .nav-container {
        padding: 0.75rem 0.75rem;
        gap: 0.5rem;
    }

    .nav-logo {
        height: 35px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.55rem 0.8rem;
    }

    .nav-auth-user {
        display: none;
    }

    #nav-auth-slot {
        display: none !important;
    }

    .nav-center {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-center.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        gap: 0.65rem;
        font-size: 0.95rem;
        font-weight: 700;
        padding: 0.75rem 0.9rem;
    }

    .nav-link-icon {
        display: inline-flex;
        width: 1.2rem;
        justify-content: center;
        font-size: 1rem;
        opacity: 0.95;
    }

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

    .mobile-auth-slot {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        width: 100%;
        margin-top: 0.45rem;
        padding-top: 0.8rem;
        border-top: 1px solid #e5e7eb;
    }

    .mobile-auth-slot .nav-auth-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .mobile-auth-slot .nav-auth-link,
    .mobile-auth-slot .nav-auth-logout,
    .mobile-auth-slot .nav-auth-user {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .mobile-auth-slot .nav-auth-user {
        display: inline-flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .exam-header-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .exam-header-center {
        width: 100%;
        max-width: 100%;
    }

    .exam-logo {
        height: 28px;
    }

    /* Mobile auth adjustments */
    .google-signin-btn span {
        display: none;
    }

    .google-signin-btn {
        padding: 8px;
    }

    .user-name {
        display: none;
    }

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

    .stat-history-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-score {
        text-align: left;
    }

    .header-logo {
        height: 60px;
    }

    .footer-logo {
        height: 70px;
    }

    .hero-section {
        padding: 1rem 0;
        margin-bottom: 1rem;
        max-height: calc(100vh - 70px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        min-height: auto;
        padding: 0 var(--spacing-lg);
    }

    .hero-left {
        padding: 1rem 0;
    }

    .hero-right {
        padding: 0;
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title-highlight {
        font-size: 1.45rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .hero-features-list {
        gap: 0;
        margin-bottom: 0.75rem;
    }

    .hero-feature-item {
        padding: 0.6rem 0.85rem;
        margin-bottom: 0.4rem;
    }

    .feature-icon {
        font-size: 1.25rem;
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    .feature-title {
        font-size: 0.85rem;
    }

    .feature-desc {
        font-size: 0.7rem;
    }

    .hero-cta {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 150px;
    }

    .btn-content {
        gap: 0.1rem;
    }

    .btn-sub {
        font-size: 0.7rem;
    }

    .hero-stats {
        gap: 1rem;
        padding: 1rem 0;
        margin-bottom: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-badge {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-divider {
        height: 35px;
    }

    .hero-guarantee {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .guarantee-icon {
        font-size: 1.2rem;
    }

    .guarantee-title {
        font-size: 0.85rem;
    }

    .guarantee-desc {
        font-size: 0.7rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .home-card {
        padding: var(--spacing-lg);
    }

    .home-card h2 {
        font-size: 1.5rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .benefits-section {
        padding: var(--spacing-lg);
    }

    .exam-layout,
    .review-layout {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 20px;
        background: #f8fafc;
    }

    .question-sidebar,
    .review-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        padding: 16px;
        border-radius: 16px;
    }

    .sidebar-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .question-grid,
    .review-grid {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
        gap: 8px;
    }

    .q-indicator {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    .exam-content,
    .review-content {
        max-height: none;
        padding: 24px;
        border-radius: 16px;
    }

    .question-text {
        font-size: 1.05rem;
        padding: 20px;
        line-height: 1.8;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .option-btn {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .results-stats {
        grid-template-columns: 1fr;
    }

    .time-stats-grid {
        grid-template-columns: 1fr;
    }

    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .topic-name {
        width: 100%;
    }

    .topic-score,
    .topic-details {
        margin: 0;
    }

    .topic-details {
        white-space: normal;
    }

    .exam-controls,
    .review-controls {
        flex-direction: column;
        padding: 20px 24px 24px;
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: -24px;
    }

    .exam-controls .btn,
    .review-controls .btn {
        max-width: none;
        width: 100%;
        padding: 14px 24px;
    }

    .subject-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .progress {
        width: 100%;
        margin: 8px 0 0 0;
    }
    .progress-bar {
        flex: 1 1 auto;
        min-width: 0;
        height: 8px;
    }

    /* Tooltips on mobile - show below instead */
    .help-icon::after {
        bottom: auto;
        top: 125%;
        white-space: normal;
        max-width: 200px;
        width: 200px;
    }
    .help-icon::before {
        bottom: auto;
        top: 115%;
        border: 6px solid transparent;
        border-top-color: transparent;
        border-bottom-color: #111827;
    }

    .timer-badge {
        padding: 8px 16px;
        font-size: 1rem;
    }

    #timer-display {
        font-size: 1rem;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

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

    .footer-column {
        margin-bottom: var(--spacing-md);
    }

    .footer-description,
    .footer-keywords-section,
    .footer-locations,
    .footer-subjects,
    .footer-related-exams {
        font-size: 0.75rem !important;
        padding: var(--spacing-sm) !important;
        text-align: left;
    }

    .footer-main-text {
        font-size: 0.8rem !important;
    }

    .app-footer {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* Tablet Responsive (640px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .nav-container {
        padding: 0.75rem 1.25rem;
        gap: 1.5rem;
    }

    .nav-logo {
        height: 40px;
    }

    .main-container {
        padding: 1.25rem;
    }

    .hero-container {
        gap: 1.25rem;
        min-height: 350px;
    }

    .hero-left {
        padding: 1.5rem 1.25rem;
    }

    .hero-right {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-highlight {
        font-size: 1.85rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .footer-description,
    .footer-keywords-section,
    .footer-locations,
    .footer-subjects,
    .footer-related-exams {
        font-size: 0.8rem !important;
        padding: var(--spacing-md) !important;
    }

    .hero-feature-item {
        padding: 0.7rem 0.9rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .seo-content {
        margin-top: 1.25rem;
        padding: 1.25rem;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.2rem;
    }

    .app-footer {
        padding: 1.25rem var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .home-card {
        padding: var(--spacing-md);
    }

    .home-card h2 {
        font-size: 1.25rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .header-subtitle {
        display: none;
    }

    .score-display {
        font-size: 3rem;
    }

    .question-grid,
    .review-grid {
        grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
    }

    .q-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }
}

/* ===================================================
   SCROLLBAR STYLING
   =================================================== */

.question-sidebar::-webkit-scrollbar,
.exam-content::-webkit-scrollbar,
.review-content::-webkit-scrollbar {
    width: 6px;
}

.question-sidebar::-webkit-scrollbar-track,
.exam-content::-webkit-scrollbar-track,
.review-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.question-sidebar::-webkit-scrollbar-thumb,
.exam-content::-webkit-scrollbar-thumb,
.review-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.question-sidebar::-webkit-scrollbar-thumb:hover,
.exam-content::-webkit-scrollbar-thumb:hover,
.review-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================================
   AUTHENTICATION STYLES
   =================================================== */

.user-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
}

/* Google Sign-In Button */
.google-signin-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.google-signin-btn:hover {
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: var(--bg-secondary);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-menu-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-primary);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Stats Modal */
.stats-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stats-modal.show {
    opacity: 1;
}

.stats-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.stats-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.stats-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.stats-modal-body {
    padding: 24px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-history h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 18px;
}

.stat-history-item {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-date {
    color: var(--text-secondary);
}

.stat-subject {
    color: var(--text-primary);
    font-weight: 600;
}

.stat-score {
    text-align: right;
    font-weight: 600;
}

.stat-score.pass {
    color: var(--success);
}

.stat-score.fail {
    color: var(--danger);
}

.no-stats {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

/* ===================================================
   ACCESSIBILITY & PRINT
   =================================================== */

@media print {
    .app-header,
    .exam-controls,
    .review-controls {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.newsletter-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.newsletter-content h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(54, 82, 155, 0.1);
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.checkbox-group {
    text-align: left;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.newsletter-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 82, 155, 0.3);
}

.newsletter-skip {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.newsletter-skip:hover {
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .newsletter-content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .newsletter-content h2 {
        font-size: 24px;
    }

    .newsletter-subtitle {
        font-size: 14px;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
    }

    .newsletter-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* ===================================================
   LOGIN/SIGNUP MODAL
   =================================================== */

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: var(--text-primary);
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.login-view,
.signup-view {
    display: none;
}

.login-view.active,
.signup-view.active {
    display: block;
}

.login-option,
.signup-option {
    margin-bottom: 20px;
}

.login-option h3,
.signup-option h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.login-option p,
.signup-option p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    font-weight: 600;
}

.btn-google:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(54, 82, 155, 0.15);
}

.login-divider {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 24px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.login-divider::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(54, 82, 155, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Dedicated login/signup pages */
.auth-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 2rem;
}

.auth-card h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.auth-card .auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

.auth-form .form-input {
    margin-bottom: 1rem;
}

.auth-submit {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-error {
    color: #c62828;
    margin-top: 0.85rem;
    min-height: 1.2rem;
    font-size: 0.95rem;
}

/* Dashboard + Leaderboard pages */
.page-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2.25rem;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
    color: var(--text-primary);
}

.dashboard-hero-header {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background:
        radial-gradient(460px 190px at 94% 8%, rgba(243, 101, 35, 0.2), transparent 72%),
        linear-gradient(135deg, rgba(38, 61, 155, 0.1), rgba(77, 99, 184, 0.06));
    box-shadow: 0 14px 30px rgba(38, 61, 155, 0.12);
}

.dashboard-hero-left {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dashboard-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
}

.dashboard-hero-kicker i,
.dashboard-user-pill i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
}

.dashboard-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.dashboard-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(38, 61, 155, 0.25);
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
}

.dashboard-user-email {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-hero-actions {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.dashboard-hero-actions .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
}

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

.dashboard-card,
.leaderboard-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 61, 155, 0.24);
    box-shadow: 0 10px 26px rgba(16, 32, 80, 0.12);
}

.dashboard-title,
.leaderboard-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.dashboard-subtitle,
.leaderboard-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.95rem;
}

@media (max-width: 768px) {
    .dashboard-hero-right {
        width: 100%;
        align-items: flex-start;
    }

    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-hero-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .profile-modal-panel {
        padding: 0.9rem;
    }

    .profile-form-actions {
        justify-content: stretch;
    }

    .profile-form-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.metric-value {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.subject-list,
.attempt-list,
.chart-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.subject-list-item,
.attempt-list-item,
.chart-list-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    background: var(--bg-secondary);
}

.subject-list-item strong,
.attempt-list-item strong,
.chart-list-item strong {
    color: var(--text-primary);
}

.subject-list-item a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.subject-list-item a:hover {
    text-decoration: underline;
}

.dashboard-controls,
.leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.dashboard-controls select,
.leaderboard-controls select {
    min-width: 170px;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-weight: 600;
}

/* Dashboard polish */
.page-main {
    padding-top: 2.15rem;
    padding-bottom: 3rem;
}

.dashboard-hero-header {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 1.35rem;
    padding: 1.2rem;
    background:
        radial-gradient(280px 150px at 92% 14%, rgba(243, 101, 35, 0.18), transparent 72%),
        radial-gradient(220px 120px at 12% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
}

.dashboard-hero-header::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -55px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
    pointer-events: none;
}

.dashboard-hero-left,
.dashboard-hero-right {
    position: relative;
    z-index: 1;
}

.card-grid {
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Referral banner */
.referral-banner {
    margin-bottom: 1.35rem;
    color: #f8fafc;
    border: none;
    background: #123c7a;
     box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    position: relative;
}
    
.referral-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}
    
.referral-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1rem;
    align-items: start;
}

.referral-title {
    color: #fff;
    font-size: clamp(1.1rem, 2.1vw, 1.35rem);
    font-weight: 700;
}

.referral-subtitle {
    color: #fff;
    margin-top: 0.3rem;
    margin-bottom: 0.65rem;
    font-weight: 500;
}

.referral-code-chip {
    display: inline-block;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.38rem 0.8rem;
    border-radius: 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.referral-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.referral-share-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
}

.referral-share-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.referral-share-status {
    min-height: 1rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.referral-help {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.84rem;
    margin-top: 0.55rem;
    font-weight: 500;
}

.referral-progress-panel {
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    padding: 1rem;
}

.referral-progress-head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #f8fafc;
}

.referral-progress-track {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
}

.referral-progress-bar {
    height: 12px;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    border-radius: 999px;
    transition: width 0.5s ease-in-out;
}

.referral-claim {
    margin-top: 0.9rem;
}

.referral-success {
    color: #4ade80;
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.referral-claim-btn {
    background: #1877F2;
    color: #fff;
    border: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.referral-pending {
    margin-top: 0.75rem;
    font-size: 0.84rem;
    color: #94a3b8;
}

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

    .referral-share-btn {
        width: 100%;
        justify-content: center;
    }
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 19, 42, 0.52);
    backdrop-filter: blur(2px);
}

.profile-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(38, 61, 155, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(16, 32, 80, 0.26);
    padding: 1rem;
}

.profile-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.profile-modal-header h3 {
    margin: 0;
}

.profile-form {
    display: grid;
    gap: 0.56rem;
}

.profile-form label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.88rem;
}

.profile-form input {
    width: 100%;
    padding: 0.66rem 0.78rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
}

.profile-form-status {
    min-height: 1.2rem;
    margin: 0.3rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
}

.profile-form-status.tone-error {
    color: #b91c1c;
}

.profile-form-status.tone-success {
    color: #166534;
}

.profile-form-status.tone-info {
    color: #1e40af;
}

.profile-form-actions {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.leaderboard-rank-banner {
    border: 1px solid #dbe5ff;
    background: #eff3ff;
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.leaderboard-table-wrap {
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: #fff;
}

.leaderboard-table thead {
    background: #f8fbff;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 0.85rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 800;
}

.leaderboard-empty {
    padding: 1rem;
    color: var(--text-secondary);
}

.status-error {
    color: var(--danger);
}

.title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.title-with-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.12));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.1), 0 8px 18px rgba(38, 61, 155, 0.08);
    font-size: 0.9rem;
}

.title-with-icon.subtle i {
    background: rgba(226, 232, 240, 0.85);
    color: var(--text-secondary);
    box-shadow: none;
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary);
    margin-right: 0.45rem;
    font-size: 0.85rem;
}

.row-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.row-with-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 0.72rem;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}

.user-badges.inline {
    display: inline-flex;
    margin-left: 0.45rem;
    margin-top: 0;
    vertical-align: middle;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.user-badge.tone-info {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0c4a6e;
}

.user-badge.tone-success {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #14532d;
}

.user-badge.tone-primary {
    background: #e0e7ff;
    border-color: #c7d2fe;
    color: #1e3a8a;
}

.user-badge.tone-purple {
    background: #f3e8ff;
    border-color: #e9d5ff;
    color: #581c87;
}

.user-badge.tone-gold {
    background: #fff7d6;
    border-color: #f5d97b;
    color: #8a5a00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-content {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
    }
}

/* ===================================================
   CUSTOM CONFIRM MODAL
   =================================================== */

.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.confirm-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirm-content h3 {
    color: var(--text-primary);
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.confirm-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.confirm-buttons .btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    min-width: 90px;
}

/* ===================================================
   LOADING SPINNER
   =================================================== */

.app-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-loader.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
    border-left: 4px solid var(--primary);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: var(--success);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), var(--bg-primary));
}

.notification-error {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), var(--bg-primary));
}

.notification-warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), var(--bg-primary));
}

.notification-info {
    border-left-color: var(--info);
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), var(--bg-primary));
}

@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        top: 70px;
    }

    .confirm-content {
        padding: 24px;
    }

    .confirm-buttons {
        flex-direction: column-reverse;
    }

    .confirm-buttons .btn {
        width: 100%;
    }
}

/* ===================================================
   KEYBOARD SHORTCUTS MODAL
   =================================================== */

.shortcuts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcuts-modal.active {
    opacity: 1;
}

.shortcuts-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.shortcuts-content h2 {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0 0 24px 0;
    text-align: center;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.shortcut-item kbd {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shortcut-item span {

    /* ===================================================
       STUDY STREAK WIDGET
       =================================================== */

    .streak-widget {
        position: fixed;
        top: 90px;
        right: 24px;
        background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
        color: white;
        padding: 1rem 1.5rem;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 40px rgba(255, 107, 53, 0.35);
        display: flex;
        align-items: center;
        gap: 1rem;
        z-index: 1000;
        animation: slideInRight 0.6s ease;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .streak-widget:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 50px rgba(255, 107, 53, 0.45);
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(100px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .streak-icon {
        font-size: 2.5rem;
        animation: flicker 2.5s infinite ease-in-out;
        filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
    }

    @keyframes flicker {
        0%, 100% { 
            opacity: 1; 
            transform: scale(1);
        }
        50% { 
            opacity: 0.85; 
            transform: scale(1.15);
        }
    }

    .streak-info {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .streak-current {
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.2;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .streak-longest {
        font-size: 0.85rem;
        opacity: 0.95;
        font-weight: 500;
    }

    .btn-success {
        background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        color: white;
        border: none;
    }

    .btn-success:hover {
        background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    }

    @media (max-width: 768px) {
        .streak-widget {
            top: 75px;
            right: 12px;
            padding: 0.75rem 1rem;
            gap: 0.75rem;
        }

        .streak-icon {
            font-size: 2rem;
        }

        .streak-current {
            font-size: 1rem;
        }

        .streak-longest {
            font-size: 0.75rem;
        }
    
        .streak-icon {
            font-size: 24px;
        }
    
        .streak-current {
            font-size: 14px;
        }
    
        .streak-longest {
            font-size: 11px;
        }
    }
    color: var(--text-primary);
    font-size: 15px;
}

.shortcuts-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 16px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .shortcuts-content {
        padding: 24px;
    }

    .shortcuts-content h2 {
        font-size: 20px;
    }

    .shortcut-item kbd {
        min-width: 50px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .shortcut-item span {
        font-size: 14px;
    }
}

/* ===================================================
   PAUSE OVERLAY
   =================================================== */

.pause-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    pointer-events: all;
    user-select: none;
    cursor: not-allowed;
}

.pause-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 40px;
}

.pause-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.pause-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.pause-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px !important;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

/* ===================================================
   LEADERBOARD STYLES
   =================================================== */

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.leaderboard-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Leaderboard Tabs */
.leaderboard-tabs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    bottom: -2px;
}

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

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

/* Subject Filter */
.subject-filter {
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.subject-filter label {
    font-weight: 600;
    color: var(--text-primary);
}

.subject-filter select {
    flex: 1;
    max-width: 300px;
}

/* User Rank Card */
.user-rank-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-details {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    flex: 1;
}

.rank-position {
    font-size: 2rem;
    font-weight: 700;
}

.rank-score {
    font-size: 1.5rem;
    font-weight: 600;
}

.rank-streak {
    font-size: 1rem;
    opacity: 0.9;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--danger);
}

.error-state p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.1rem;
}

/* Leaderboard Table */
.leaderboard-table-container {
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table thead {
    background: var(--bg-secondary);
}

.leaderboard-table th {
    padding: var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.leaderboard-table tbody tr:hover {
    background: var(--bg-secondary);
}

.leaderboard-table tbody tr.current-user {
    background: rgba(38, 61, 155, 0.1);
    font-weight: 600;
}

.leaderboard-table tbody tr.current-user:hover {
    background: rgba(38, 61, 155, 0.15);
}

.leaderboard-table td {
    padding: var(--spacing-lg);
    color: var(--text-primary);
}

/* Rank Column */
.rank-cell {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.rank-cell.top-3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.rank-medal {
    font-size: 1.5rem;
}

/* Student Column */
.student-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.student-name {
    font-weight: 500;
}

/* Score Column */
.score-cell {
    font-weight: 600;
    font-size: 1.1rem;
}

.score-cell.excellent {
    color: var(--success);
}

.score-cell.good {
    color: var(--primary);
}

.score-cell.average {
    color: var(--warning);
}

/* Streak Column */
.streak-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Time Column */
.time-cell {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Avg Time per Question Column */
.avg-time-cell {
    font-weight: 600;
    font-size: 0.95rem;
}

.avg-time-cell.fast {
    color: #10b981; /* Green for fast */
}

.avg-time-cell.good-time {
    color: #3b82f6; /* Blue for good */
}

.avg-time-cell.slow {
    color: #f59e0b; /* Orange for slow */
}

/* Strengths Column */
.strengths-cell {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    max-width: 200px;
}

.strength-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.more-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--text-tertiary);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Results Actions Grid */
.results-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.results-actions .btn {
    width: 100%;
}

/* Responsive Leaderboard */
@media (max-width: 768px) {
    .leaderboard-container {
        padding: var(--spacing-lg);
    }

    .leaderboard-header {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .leaderboard-header h2 {
        font-size: 1.5rem;
    }

    .leaderboard-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    .user-rank-card {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .rank-details {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    /* Make table scrollable */
    .leaderboard-table-container {
        overflow-x: auto;
    }

    .leaderboard-table {
        min-width: 600px;
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
    }

    .results-actions {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   TESTIMONIALS SECTION
   =================================================== */

.testimonials-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-bottom: var(--spacing-2xl);
}

.section-header {
    margin-bottom: var(--spacing-2xl);
}

.section-header.centered {
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    padding: 0 var(--spacing-2xl);
}

.testimonial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: var(--spacing-xl);
}

.testimonial-rating {
    color: #FFA500;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================================
   TRUST BADGES SECTION
   =================================================== */

.trust-section {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.trust-badge:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.trust-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.trust-text strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.trust-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================================
   FEATURES SECTION ENHANCEMENTS
   =================================================== */

.features-section {
    margin-bottom: var(--spacing-2xl);
}

/* Responsive Testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--spacing-lg);
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        padding: 3rem 2rem;
        text-align: center;
    }

    .hero-right {
        padding: 0 2rem 3rem 2rem;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        text-align: center;
    }

    .hero-features-list {
        align-items: center;
    }

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

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 100%;
    }

    .hero-image-badge,
    .hero-badge-success {
        bottom: 20px;
        left: 20px;
        padding: 1rem 1.25rem;
        gap: 1rem;
        border-radius: 14px;
    }

    .badge-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .badge-title {
        font-size: 1rem;
    }

    .badge-subtitle {
        font-size: 0.75rem;
    }
}

/* ===================================================
   DAILY CHALLENGE SECTION
   =================================================== */

.daily-challenge-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.daily-challenge-section .section-header {
    margin-bottom: var(--spacing-2xl);
}

.daily-challenge-section .section-title {
    color: white;
}

.daily-challenge-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.daily-challenge-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: var(--spacing-2xl);
    color: var(--text-primary);
}

.challenge-status {
    margin-bottom: var(--spacing-2xl);
}

.challenge-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.challenge-streak {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.streak-icon {
    font-size: 3rem;
    animation: flameFlicker 1.5s infinite;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.streak-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.streak-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.challenge-stats {
    display: flex;
    gap: var(--spacing-2xl);
}

.stat-box {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
}

.btn-challenge {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.btn-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-challenge svg {
    width: 20px;
    height: 20px;
}

.challenge-completed {
    text-align: center;
    padding: var(--spacing-2xl);
}

.completion-badge {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    animation: bounceIn 0.6s;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.challenge-completed h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.challenge-completed p {
    color: var(--text-secondary);
}

.challenge-calendar {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--border-color);
}

.challenge-calendar h4 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 6px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-day:hover {
    transform: scale(1.1);
}

.calendar-day.completed {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

/* ===================================================
   PROGRESS DASHBOARD
   =================================================== */

.dashboard-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: var(--bg-secondary);
    border-radius: 16px;
}

.dashboard-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.stat-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    transition: all var(--transition-normal);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.dashboard-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.dashboard-card h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary);
    font-size: 1.25rem;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.progress-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 20px;
    transition: all var(--transition-normal);
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.chart-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.topic-item:hover {
    background: var(--bg-tertiary);
}

.topic-name {
    font-weight: 600;
    color: var(--text-primary);
}

.topic-stats {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.topic-accuracy {
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.topic-accuracy.weak {
    background: #fee2e2;
    color: #dc2626;
}

.topic-accuracy.strong {
    background: #d1fae5;
    color: #059669;
}

.topic-attempts {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.session-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 8px;
    align-items: center;
    transition: all var(--transition-fast);
}

.session-item:hover {
    background: var(--bg-tertiary);
}

.session-subject {
    font-weight: 600;
    color: var(--primary);
}

.session-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.session-score {
    font-weight: 700;
    font-size: 1.1rem;
}

.session-score.excellent {
    color: #059669;
}

.session-score.good {
    color: #0891b2;
}

.session-score.average {
    color: #f59e0b;
}

.session-score.poor {
    color: #dc2626;
}

/* ===================================================
   STUDY REMINDERS SECTION
   =================================================== */

.study-reminders-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    color: white;
}

.study-reminders-section .section-header {
    margin-bottom: var(--spacing-2xl);
}

.study-reminders-section .section-title {
    color: white;
}

.study-reminders-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.reminders-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: var(--spacing-2xl);
    color: var(--text-primary);
}

.reminder-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--border-color);
}

.status-icon {
    font-size: 3rem;
}

.status-text {
    flex: 1;
}

.status-text h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.status-text p {
    color: var(--text-secondary);
}

.reminder-settings {
    margin-top: var(--spacing-2xl);
}

.reminder-settings h4 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.time-slot {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.time-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--danger);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.goal-setting {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.goal-setting input {
    width: 100px;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.days-selector {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.day-checkbox {
    flex: 1;
    min-width: 60px;
}

.day-checkbox input {
    display: none;
}

.day-checkbox span {
    display: block;
    padding: var(--spacing-md);
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.day-checkbox input:checked + span {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
}

.day-checkbox:hover span {
    border-color: #10b981;
}

.btn-small {
    font-size: 0.9rem;
    padding: var(--spacing-sm) var(--spacing-lg);
}

/* ===================================================
   RESPONSIVE DESIGN FOR NEW FEATURES
   =================================================== */

@media (max-width: 768px) {
    .daily-challenge-section,
    .dashboard-section,
    .study-reminders-section {
        padding: var(--spacing-lg);
    }

    .daily-challenge-card,
    .reminders-card {
        padding: var(--spacing-lg);
    }

    .challenge-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .challenge-stats {
        width: 100%;
        justify-content: space-around;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .session-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .reminder-status {
        flex-direction: column;
        align-items: flex-start;
    }

    .days-selector {
        justify-content: space-between;
    }

    .day-checkbox {
        min-width: 50px;
    }
}

/* ===================================================
   DASHBOARD STYLES
   =================================================== */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-2xl);
    border-radius: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.dashboard-greeting {
    margin-bottom: var(--spacing-xl);
}

.dashboard-greeting h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.dashboard-greeting p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
}

/* Dashboard Cards Container */
.dashboard-card {
    background: white;
    border-radius: var(--spacing-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Dashboard Progress Content */
.dashboard-progress-content {
    min-height: 200px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        padding: var(--spacing-lg);
    }

    .dashboard-greeting h1 {
        font-size: 1.5rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .dashboard-card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
        max-height: calc(100vh - 60px);
    }

    .hero-container {
        padding: 0 var(--spacing-md);
    }

    .hero-left {
        padding: 0.85rem 0;
    }

    .hero-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }

    .hero-title-highlight {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
        line-height: 1.35;
    }

    .hero-features-list {
        gap: 0;
        margin-bottom: 0.75rem;
    }

    .hero-feature-item {
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
        border-radius: 10px;
    }

    .hero-feature-item:hover {
        transform: translateX(8px) translateY(-3px);
    }

    .feature-icon {
        font-size: 1.3rem;
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .feature-title {
        font-size: 0.8rem;
    }

    .feature-desc {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.65rem 1.1rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .btn-content {
        flex-direction: row;
        align-items: center;
    }

    .btn-sub {
        display: none;
    }

    .hero-stats {
        gap: 0.75rem;
        padding: 0.8rem 0;
        margin-bottom: 0.8rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-badge {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-divider {
        height: 30px;
    }

    .hero-guarantee {
        padding: 0.7rem 0.85rem;
        gap: 0.6rem;
    }

    .guarantee-icon {
        font-size: 1.1rem;
    }

    .guarantee-title {
        font-size: 0.8rem;
    }

    .guarantee-desc {
        font-size: 0.65rem;
    }

    .dashboard-header {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .dashboard-greeting h1 {
        font-size: 1.3rem;
    }

    .dashboard-stats {
        gap: var(--spacing-md);
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

/* ===================================
   BLOG PAGES & ARTICLES
   =================================== */

.blog-page {
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.12), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(118, 75, 162, 0.14), transparent 30%),
                linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    min-height: 100vh;
    padding: 72px 20px 48px;
}

.blog-container {
    max-width: 1180px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-dark);
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(38, 61, 155, 0.2);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.08);
}

.blog-card-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 20px 22px 22px;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

.blog-card-content h2 {
    color: var(--text-primary);
    font-size: 1.35rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

.blog-card-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.back-link:hover {
    transform: translateX(-4px);
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

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

/* Blog article layout */
.blog-article {
    max-width: 1040px;
    margin: 0 auto;
    padding: 48px 18px 64px;
}

.article-header {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 18px;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    align-items: center;
}

.article-content {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    line-height: 1.75;
    color: var(--text-secondary);
}

.article-content h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    line-height: 1.4;
}

.article-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.article-content h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.article-content p {
    margin-bottom: 14px;
}

.featured-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 22px;
}

.table-of-contents {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0 14px;
}

.table-of-contents h2 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 10px;
}

.table-of-contents a {
    color: var(--primary);
    text-decoration: none;
}

.info-box,
.tip-box,
.strategy-box,
.warning-box,
.practice-tip,
.pro-tip {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0;
    box-shadow: var(--shadow-sm);
}

.warning-box {
    border-left: 4px solid var(--warning);
}

.tip-box {
    border-left: 4px solid var(--primary);
}

.strategy-box {
    border-left: 4px solid var(--secondary);
}

.numbered-list {
    list-style: decimal inside;
    padding-left: 0;
}

.numbered-list li {
    margin-bottom: 10px;
}

/* Monitoring system */
.monitoring-code-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.monitoring-code-display {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #263d9b;
    background: #eef2ff;
    border: 2px dashed #a5b4fc;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.monitoring-code-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.monitoring-how-it-works {
    font-size: 0.88rem;
    color: #475569;
    background: #f8fafc;
    border-left: 3px solid #a5b4fc;
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.monitoring-how-it-works ol {
    margin: 0.4rem 0 0 1rem;
    padding: 0;
}

.monitoring-add-student {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0 0.5rem;
}

.monitoring-code-entry {
    flex: 1 1 220px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Courier New', monospace;
}

.monitors-list {
    margin-top: 0.5rem;
}

.monitored-students-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.monitor-person-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.monitor-role-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    margin-left: 6px;
}

.monitor-student-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.monitor-student-header,
.monitor-student-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.monitor-student-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.monitor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.35rem 0.25rem;
}

.monitor-stat span {
    font-size: 1.05rem;
    font-weight: 800;
    color: #263d9b;
    line-height: 1.2;
}

.monitor-stat small {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.monitoring-status {
    font-size: 0.88rem;
    color: #475569;
}

.monitoring-status.tone-success { color: #16a34a; }
.monitoring-status.tone-error { color: #dc2626; }

.monitoring-empty {
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
}

.monitoring-loading {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    padding: 2rem 0;
}

.profile-modal-panel--wide {
    max-width: 640px;
    width: 95vw;
}

.sdetail-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 2px;
}

.sdetail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sdetail-stat {
    background: #eef2ff;
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sdetail-stat span {
    font-size: 1.3rem;
    font-weight: 800;
    color: #263d9b;
    line-height: 1;
}

.sdetail-stat small {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.assignment-form {
    margin-top: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 0.9rem;
}

.assignment-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
}

.assignment-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.assignment-students-label {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.assignment-students-picker {
    margin-top: 0.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.7rem;
}

.assignment-student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.assignment-student-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: #334155;
}

.assignment-student-check.all {
    font-weight: 700;
}

.assignment-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.assignment-list {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.75rem;
}

.assignment-card {
    border: 1px solid #dbe4ff;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.8rem;
}

.assignment-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.assignment-card-tags {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.assignment-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.assignment-status-tag.done {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.assignment-status-tag.pending {
    color: #92400e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.assignment-card-meta {
    font-size: 0.84rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.assignment-card-actions {
    margin-top: 0.65rem;
}

.assignment-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 24px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin-left: 0.4rem;
}

.assignment-alert-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.35rem;
}

.assignment-toast-container {
    position: fixed;
    right: 1rem;
    top: 5.5rem;
    z-index: 1250;
    display: grid;
    gap: 0.55rem;
    width: min(360px, calc(100vw - 2rem));
}

.assignment-toast {
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
    padding: 0.72rem 0.8rem;
    color: #0f172a;
    font-size: 0.86rem;
}

.assignment-toast strong {
    display: block;
    margin-bottom: 0.2rem;
}

.assignment-results-header {
    margin-bottom: 0.7rem;
}

.assignment-result-list {
    display: grid;
    gap: 0.45rem;
}

.assignment-result-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 0.6rem 0.7rem;
    font-size: 0.85rem;
    color: #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.monitor-overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.6rem;
    margin: 0.7rem 0 0.9rem;
}

.monitor-overview-card {
    border: 1px solid #dbe4ff;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.65rem 0.75rem;
}

.monitor-overview-card small {
    display: block;
    font-size: 0.74rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.monitor-overview-card strong {
    display: block;
    margin-top: 0.2rem;
    color: #0f172a;
    font-size: 1rem;
}

.monitor-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
}

.monitor-insight-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem;
}

.monitor-insight-title {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    color: #1e293b;
}

.monitor-weak-item {
    border-left: 3px solid #f59e0b;
}

.monitor-weak-students {
    margin-top: 0.55rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.monitor-weak-student {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.16rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
}

.monitor-weak-student--ok {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

@media (max-width: 640px) {
    .monitoring-code-actions,
    .monitoring-add-student,
    .monitor-student-footer,
    .assignment-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .monitoring-code-actions .btn,
    .monitoring-add-student .btn,
    .monitor-student-footer .btn,
    .assignment-actions .btn {
        width: 100%;
    }
}

.question-types,
.mistakes-grid,
.related-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 16px 0;
}

.type-card,
.mistake-card,
.related-card,
.subject-card,
.req-card,
.strategy-card,
.plan-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.checklist li {
    list-style: none;
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.timeline {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 18px 0;
}

.timeline-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.exam-day-checklist h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.exam-day-checklist ul {
    padding-left: 16px;
    margin-bottom: 10px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(243, 101, 35, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 18px 0;
    box-shadow: var(--shadow-sm);
}

.cta-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.related-articles h3 {
    margin: 10px 0;
    color: var(--primary-dark);
}

.related-card {
    text-decoration: none;
    color: var(--text-primary);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.related-category {
    display: inline-block;
    background: rgba(102, 126, 234, 0.12);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.social-share {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.share-btn {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    background: #fff;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.author-bio {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 20px;
    }

    .article-content h2 {
        font-size: 1.25rem;
    }
}

/* ===================================
   GOOGLE ADSENSE STYLES
   =================================== */

.ad-container {
    transition: all 0.3s ease;
    overflow: hidden;
}

.ad-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive ad handling */
@media (max-width: 768px) {
    .ad-container {
        max-width: 100% !important;
        padding: 12px !important;
        margin: 24px auto !important;
    }
}

/* Hide ads during active exam to maintain focus */
.screen-exam-active .ad-container {
    display: none;
}
}

.text-enhanced-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #64748b;
    font-weight: 400;
}

/* Gradient Text Effect */
.text-gradient-enhanced {
    background: linear-gradient(135deg, #263d9b 0%, #f36523 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===================================================
   ENHANCED INTERACTIVE ELEMENTS
   =================================================== */

/* Animated Badge */
.badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(38, 61, 155, 0.1) 0%, rgba(243, 101, 35, 0.1) 100%);
    border: 2px solid rgba(38, 61, 155, 0.2);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #263d9b;
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.badge-enhanced:hover {
    border-color: #263d9b;
    background: linear-gradient(135deg, rgba(38, 61, 155, 0.15) 0%, rgba(243, 101, 35, 0.15) 100%);
    animation: none;
}

/* Progress Ring */
.progress-ring-enhanced {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring-enhanced svg {
    transform: rotate(-90deg);
}

.progress-ring-enhanced circle {
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
}

.progress-ring-enhanced .progress-ring-bg {
    stroke: #e5e7eb;
}

.progress-ring-enhanced .progress-ring-fg {
    stroke: url(#gradient-enhanced);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
}

.progress-ring-enhanced .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #263d9b;
}

/* Modal Enhancement */
.modal-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-enhanced.show {
    opacity: 1;
    visibility: visible;
}

.modal-enhanced-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-enhanced.show .modal-enhanced-content {
    transform: scale(1) translateY(0);
}

/* ===================================================
   ENHANCED LAYOUT COMPONENTS
   =================================================== */

/* Hero Section Enhancement */
.hero-enhanced {
    position: relative;
    background: linear-gradient(135deg, #263d9b 0%, #3B53B8 50%, #f36523 100%);
    padding: 80px 0;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 48px;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(-20px);
    }
}

.hero-enhanced-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-enhanced-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    animation: slideInDown 0.8s ease-out;
}

.hero-enhanced-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
    animation: slideInDown 1s ease-out 0.2s both;
}

/* Feature Section Enhancement */
.feature-section-enhanced {
    padding: 64px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    margin: 48px 0;
}

.feature-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-box-enhanced {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.feature-box-enhanced:hover {
    transform: translateY(-8px);
    border-color: #263d9b;
    box-shadow: 0 15px 40px rgba(38, 61, 155, 0.15);
}

.feature-icon-enhanced {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #263d9b 0%, #3B53B8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.4s ease;
}

.feature-box-enhanced:hover .feature-icon-enhanced {
    transform: scale(1.1) rotate(5deg);
}

/* Footer Enhancement */
.footer-enhanced {
    background: linear-gradient(135deg, #1e293b 0%, #263d9b 100%);
    color: white;
    padding: 64px 0 32px;
    margin-top: 80px;
    border-radius: 24px 24px 0 0;
}

.footer-enhanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-enhanced-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: white;
}

.footer-enhanced-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-enhanced-column a:hover {
    color: white;
    padding-left: 8px;
}

.footer-enhanced-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 768px) {
    .subjects-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .app-container { padding: 0 12px; }
    .navbar { padding: 8px 12px; }
    .nav-container { flex-wrap: wrap; gap: 8px; }
    .nav-link { padding: 8px 10px; }

    .google-signin-btn { width: 100%; padding: 12px 16px; font-size: 0.95rem; }

    .dashboard-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .stats-cards { grid-template-columns: 1fr !important; gap: 12px; }

    .daily-challenge-section .challenge-calendar { grid-gap: 6px; }
    .daily-challenge-section .challenge-calendar .day { font-size: 12px; }

    img { max-width: 100%; height: auto; }
}

/* ===================================================
   MODERN EXAM DESIGN ANIMATIONS & GLASS EFFECTS
   Extracted from contemporary exam interface
   Includes: fadeInUp, float, pulse animations
   =================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseAnimation {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Glass-effect styling for modern cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
}

.glass-effect-dark {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Modern card styling with rounded corners */
.modern-card {
    border-radius: 24px;
    padding: 2rem;
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Info card grid layout */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background: rgba(38, 61, 155, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.info-card:hover {
    background: rgba(38, 61, 155, 0.15);
    transform: scale(1.05);
}

.info-card-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.info-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Instructions box styling */
.instructions-box {
    background: rgba(38, 61, 155, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.instructions-box h3 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.instructions-box ul {
    list-style: none;
    padding: 0;
}

.instructions-box li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.instructions-box li::before {
    content: "•";
    margin-right: 0.75rem;
    color: var(--primary);
    font-weight: bold;
}

/* Modern button styling */
.modern-button {
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.modern-button:active {
    transform: translateY(0);
}

/* Progress bar styling */
.progress-bar-container {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100%;
    transition: width var(--transition-normal);
    border-radius: 12px;
}

/* Timer display styling */
.timer-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.5rem 1rem;
    background: rgba(38, 61, 155, 0.1);
    border-radius: 12px;
}

/* Option cards for questions */
.option-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(38, 61, 155, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.option-card:hover {
    background: rgba(38, 61, 155, 0.1);
    border-color: var(--primary);
    transform: translateX(4px);
}

.option-card input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.option-card.selected {
    background: rgba(38, 61, 155, 0.15);
    border-color: var(--primary);
}

/* ===================================================
   END OF ENHANCED DESIGN PATTERNS
   Design elements extracted and adapted from school template
   All colors converted to WAEC brand colors (#263d9b, #f36523)
   Original content, images, and text preserved
   =================================================== */

/* ===================================================
   HOMEPAGE DESIGN REFRESH (HOME-ONLY OVERRIDES)
   =================================================== */

#screen-home {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#screen-home > div {
    margin-bottom: 0;
}

#screen-home .hero-section {
    max-height: none;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(38, 61, 155, 0.32);
}

#screen-home .hero-container {
    min-height: clamp(560px, 70vh, 760px);
}

#screen-home .hero-subtitle {
    max-width: 640px;
    margin-bottom: 0.2rem;
}

#screen-home .hero-cta-kicker {
    margin: 1.1rem 0 0.72rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, rgba(243, 101, 35, 0.36), rgba(38, 61, 155, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.28);
}

#screen-home .hero-cta {
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

#screen-home .btn-hero-primary,
#screen-home .btn-hero-secondary,
#screen-home .btn-hero-ghost {
    min-height: 62px;
    border-radius: 14px;
}

#screen-home .btn-hero-waec {
    flex: 1.2;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background-image: linear-gradient(135deg, #27479b 0%, #2f56b4 54%, #3e67c2 100%);
    box-shadow: 0 14px 28px rgba(25, 48, 103, 0.28), 0 8px 18px rgba(18, 27, 58, 0.22);
    transform: translateY(-1px);
}

#screen-home .btn-hero-waec .btn-content,
#screen-home .btn-hero-jamb .btn-content {
    align-items: center;
}

#screen-home .btn-hero-waec .btn-content > span:first-child,
#screen-home .btn-hero-jamb .btn-content > span:first-child {
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#screen-home .btn-hero-waec .btn-sub,
#screen-home .btn-hero-jamb .btn-sub {
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
}

#screen-home .btn-hero-waec:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 34px rgba(25, 48, 103, 0.34), 0 12px 24px rgba(18, 27, 58, 0.26);
}

#screen-home .btn-hero-jamb {
    flex: 1.05;
    justify-content: center;
    background-image: linear-gradient(135deg, #f36523 0%, #ff8745 56%, #ff9c63 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 183, 149, 0.6);
    box-shadow: 0 14px 30px rgba(213, 83, 23, 0.34), 0 8px 20px rgba(18, 27, 58, 0.18);
}

#screen-home .btn-hero-jamb:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 36px rgba(213, 83, 23, 0.4), 0 12px 24px rgba(18, 27, 58, 0.2);
}

#screen-home .btn-hero-ghost {
    justify-content: center;
    padding-inline: 1.1rem;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
}

#screen-home .btn-hero-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

#screen-home .features-section,
#screen-home .testimonials-section,
#screen-home .trust-section,
#screen-home .benefits-section {
    background: #ffffff;
    border: 1px solid #e6eaf2;
    border-radius: 20px;
    padding: clamp(1rem, 2vw, 1.6rem);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

#screen-home .section-title {
    letter-spacing: -0.02em;
}

#screen-home .section-subtitle {
    max-width: 680px;
    margin-inline: auto;
}

#screen-home .features-grid,
#screen-home .testimonials-grid,
#screen-home .benefits-list,
#screen-home .trust-badges {
    gap: 1rem;
}

#screen-home .feature-card,
#screen-home .testimonial-card,
#screen-home .benefit-item,
#screen-home .trust-badge {
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#screen-home .feature-card:hover,
#screen-home .testimonial-card:hover,
#screen-home .benefit-item:hover,
#screen-home .trust-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 61, 155, 0.22);
    box-shadow: 0 14px 28px rgba(38, 61, 155, 0.14);
}

#screen-home .ad-container {
    border: 1px solid #e8edf5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

@media (max-width: 768px) {
    #screen-home {
        gap: 1rem;
    }

    #screen-home .hero-section {
        border-radius: 18px;
    }

    #screen-home .hero-container {
        min-height: auto;
    }

    #screen-home .hero-cta-kicker {
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: 0.8rem;
        margin-bottom: 0.64rem;
    }

    #screen-home .hero-cta {
        flex-direction: column;
    }

    #screen-home .btn-hero-primary,
    #screen-home .btn-hero-secondary,
    #screen-home .btn-hero-ghost {
        width: 100%;
        flex: 1;
    }

    #screen-home .btn-hero-waec,
    #screen-home .btn-hero-jamb {
        transform: none;
        box-shadow: 0 14px 24px rgba(25, 48, 103, 0.26), 0 8px 18px rgba(18, 27, 58, 0.22);
    }
}

/* ===================================================
   GLOBAL UI REFRESH LAYER (SITE-WIDE)
   =================================================== */

:root {
    --ui-bg: #f4f7fb;
    --ui-surface: #ffffff;
    --ui-surface-soft: #f8fafc;
    --ui-ink: #0f172a;
    --ui-muted: #475569;
    --ui-border: #dbe4f0;
    --ui-accent: #1f4ea3;
    --ui-accent-strong: #173b7e;
    --ui-glow: #f97316;
    --ui-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    --ui-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html,
body {
    background:
        radial-gradient(900px 420px at 100% -8%, rgba(249, 115, 22, 0.16), transparent 62%),
        radial-gradient(760px 440px at -8% 14%, rgba(31, 78, 163, 0.16), transparent 68%),
        linear-gradient(180deg, #f7faff 0%, var(--ui-bg) 100%);
    color: var(--ui-ink);
}

body {
    font-family: "Space Grotesk", "Plus Jakarta Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.dashboard-title,
.leaderboard-title {
    font-family: "Fraunces", "Merriweather", Georgia, serif;
    letter-spacing: -0.01em;
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(219, 228, 240, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.nav-link {
    border: 1px solid transparent;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 78, 163, 0.2);
    background: rgba(31, 78, 163, 0.08);
}

.screen,
.dashboard-card,
.leaderboard-card,
.feature-card,
.testimonial-card,
.benefit-item,
.trust-badge,
.faq-item,
.seo-content {
    border-color: var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

.dashboard-card,
.leaderboard-card,
.seo-content {
    background: linear-gradient(180deg, #ffffff 0%, var(--ui-surface-soft) 100%);
    border: 1px solid var(--ui-border);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before,
.leaderboard-card::before,
.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 84px;
    height: 4px;
    border-radius: 0 0 999px 0;
    background: linear-gradient(90deg, var(--ui-accent), #f59e0b);
}

.dashboard-card.referral-banner::before {
    display: none;
}

.dashboard-card.referral-banner {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

.dashboard-card.referral-banner h3.referral-title,
.dashboard-card.referral-banner .referral-title,
.dashboard-card.referral-banner .referral-subtitle,
.dashboard-card.referral-banner .referral-help,
.dashboard-card.referral-banner .referral-progress-head,
.dashboard-card.referral-banner .referral-pending,
.dashboard-card.referral-banner .referral-share-status {
    color: #fff;
}

.dashboard-card.referral-banner .referral-code-chip {
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dashboard-card.referral-banner .referral-progress-panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.dashboard-card.referral-banner .referral-progress-track {
    background: rgba(255, 255, 255, 0.18);
}

.dashboard-card.referral-banner .referral-share-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.today-section {
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(249, 115, 22, 0.12), transparent 72%),
        radial-gradient(320px 160px at 0% 100%, rgba(59, 130, 246, 0.12), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.today-section::before {
    width: 180px;
    background: linear-gradient(90deg, var(--ui-accent), #f59e0b, #10b981);
}

.today-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.today-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.today-hero-card,
.today-mini-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(31, 78, 163, 0.12);
    border-radius: 20px;
    padding: 1.15rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.today-hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 255, 0.98));
}

.today-card-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.72rem;
    border-radius: 999px;
    background: rgba(31, 78, 163, 0.08);
    color: var(--ui-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.today-hero-card h3,
.today-mini-card h3 {
    margin: 0.8rem 0 0.5rem;
    color: var(--ui-ink);
    font-size: 1.15rem;
    line-height: 1.35;
}

.today-hero-card p,
.today-mini-card p {
    margin: 0;
    color: var(--ui-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.today-hero-card p {
    max-width: 44ch;
    -webkit-line-clamp: 3;
}

.today-mini-card p {
    -webkit-line-clamp: 2;
}

.today-chip-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.today-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(31, 78, 163, 0.08);
    color: var(--ui-accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.today-chip.tone-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.today-progress {
    width: 100%;
    height: 10px;
    margin-top: 0.95rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.24);
    overflow: hidden;
}

.today-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ui-accent), #10b981);
    transition: width 0.25s ease;
}

.btn,
button,
.modern-button {
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn i,
.btn svg,
button i,
button svg,
.modern-button i,
.modern-button svg {
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.92rem;
}

.btn:focus-visible,
button:focus-visible,
.modern-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(31, 78, 163, 0.16), 0 14px 28px rgba(15, 23, 42, 0.16);
}

.btn:hover,
button:hover,
.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.btn-primary,
.btn-hero-primary {
    background-image: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    color: #fff;
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    color: var(--ui-accent);
    border: 1px solid rgba(31, 78, 163, 0.14);
}

.btn-outline {
    border: 1px solid rgba(31, 78, 163, 0.22);
    background: rgba(255, 255, 255, 0.8);
}

input,
select,
textarea {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ui-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(31, 78, 163, 0.55);
    box-shadow: 0 0 0 3px rgba(31, 78, 163, 0.14);
    outline: none;
}

table,
.leaderboard-table,
.attempt-list-item,
.subject-list-item {
    border-color: var(--ui-border);
}

.chart-list-item,
.attempt-list-item,
.subject-list-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.88));
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chart-list-item:hover,
.attempt-list-item:hover,
.subject-list-item:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 78, 163, 0.22);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
}

.metric-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-footer {
    background:
        radial-gradient(420px 180px at 16% 0%, rgba(249, 115, 22, 0.12), transparent 75%),
        radial-gradient(460px 190px at 86% 0%, rgba(31, 78, 163, 0.16), transparent 72%),
        linear-gradient(180deg, #0e2348 0%, #102a56 100%);
}

@keyframes uiRiseFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active > * {
    animation: uiRiseFade 0.42s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .screen.active > * {
        animation: none;
    }

    .btn,
    button,
    .modern-button,
    .nav-link {
        transition: none;
    }
}

@media (max-width: 768px) {
    .dashboard-card,
    .leaderboard-card,
    .seo-content {
        border-radius: 14px;
    }

    .btn,
    button,
    .modern-button {
        border-radius: 10px;
    }
}

.leaderboard-controls input[type="search"] {
    min-width: 220px;
    padding: 0.62rem 0.8rem;
}

.leaderboard-meta {
    margin: 0.9rem 0 0.55rem;
    color: var(--ui-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.leaderboard-pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.page-number-btn {
    min-width: 38px;
    padding: 0.44rem 0.62rem;
}

.page-number-btn.active {
    background-image: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-strong));
    color: #fff;
    border-color: transparent;
}

.leaderboard-jump-tools {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.leaderboard-jump-tools .jump-group {
    display: grid;
    gap: 0.35rem;
    align-items: end;
    grid-template-columns: 1fr auto;
}

.leaderboard-jump-tools label {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    color: var(--ui-muted);
    font-weight: 700;
}

.leaderboard-jump-tools input[type="number"] {
    min-width: 0;
    padding: 0.6rem 0.72rem;
}

#jump-my-rank-btn {
    justify-self: start;
}

@media (max-width: 768px) {
    .leaderboard-controls input[type="search"] {
        min-width: 0;
        width: 100%;
    }

    .leaderboard-controls {
        grid-template-columns: 1fr;
    }

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

    .leaderboard-jump-tools .jump-group {
        grid-template-columns: 1fr;
    }

    #jump-my-rank-btn {
        justify-self: stretch;
    }
}

@media (max-width: 820px) {
    .nav-container {
        align-items: flex-start;
        padding: 0.72rem 0.85rem;
    }

    .nav-center {
        top: 64px;
        padding: 0.9rem 0.85rem 1rem;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        border-bottom-left-radius: 18px;
        border-bottom-right-radius: 18px;
    }

    .nav-link,
    .mobile-auth-slot .nav-auth-link,
    .mobile-auth-slot .nav-auth-logout,
    .mobile-auth-slot .nav-auth-user {
        min-height: 48px;
        border-radius: 14px;
    }

    .page-main,
    .auth-page-main {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .card-grid,
    .leaderboard-jump-tools,
    .referral-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-card,
    .leaderboard-card,
    .auth-card,
    .dashboard-hero-header {
        border-radius: 16px;
    }

    .dashboard-hero-header,
    .dashboard-card,
    .leaderboard-card,
    .auth-card {
        padding: 1rem;
    }

    .dashboard-controls,
    .leaderboard-controls,
    .dashboard-hero-actions,
    .referral-actions,
    .today-actions {
        gap: 0.75rem;
    }

    .dashboard-controls > *,
    .leaderboard-controls > *,
    .dashboard-hero-actions .btn,
    .referral-actions > *,
    .today-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .today-section-header {
        flex-direction: column;
    }

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

    .dashboard-controls select,
    .leaderboard-controls select,
    .leaderboard-controls input[type="search"],
    .leaderboard-jump-tools input[type="number"],
    .auth-form .form-input,
    .auth-submit {
        width: 100%;
        min-height: 48px;
    }

    .dashboard-user-pill {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .referral-share-btn,
    #jump-my-rank-btn {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.65rem 0.75rem;
        gap: 0.65rem;
    }

    .nav-logo {
        height: 40px;
    }

    .nav-center {
        top: 60px;
        padding: 0.85rem 0.75rem 0.95rem;
    }

    .nav-link {
        padding: 0.78rem 0.9rem;
        font-size: 0.94rem;
    }

    .page-main,
    .auth-page-main {
        padding: 1rem 0.75rem 1.5rem;
    }

    .auth-page-main {
        align-items: flex-start;
    }

    .auth-card h1 {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }

    .auth-card .auth-subtitle,
    .dashboard-subtitle,
    .leaderboard-subtitle {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .page-header h1 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .dashboard-hero-right,
    .dashboard-hero-actions,
    .today-actions {
        width: 100%;
        align-items: stretch;
    }

    .dashboard-hero-actions,
    .today-actions {
        flex-direction: column;
    }

    .today-card-kicker {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .today-hero-card h3,
    .today-mini-card h3 {
        font-size: 1.02rem;
    }

    .today-chip-row {
        gap: 0.45rem;
    }

    .today-chip {
        font-size: 0.76rem;
        padding: 0 0.72rem;
    }

    .dashboard-card,
    .leaderboard-card,
    .auth-card,
    .dashboard-hero-header {
        padding: 0.95rem;
    }

    .metric-value {
        font-size: clamp(1.45rem, 9vw, 1.9rem);
    }

    .subject-list-item,
    .attempt-list-item,
    .chart-list-item,
    .referral-progress-panel,
    .today-hero-card,
    .today-mini-card {
        padding: 0.82rem;
    }

    .page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-main,
    .auth-page-main {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .dashboard-card,
    .leaderboard-card,
    .auth-card,
    .dashboard-hero-header {
        padding: 0.9rem;
        border-radius: 15px;
    }

    .nav-link,
    .mobile-auth-slot .nav-auth-link,
    .mobile-auth-slot .nav-auth-logout,
    .mobile-auth-slot .nav-auth-user {
        font-size: 0.92rem;
    }
}

