:root {
    /* SkuBuddy Brand Colors */
    --primary-purple: #6366f1;
    --primary-pink: #ec4899;
    --primary-orange: #f59e0b;
    --success-green: #10b981;
    --grade5-color: #8b5cf6;
    --grade6-color: #3b82f6;
    --grade7-color: #06b6d4;
    
    /* Light Theme */
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #1e293b;
    --text-light: #64748b;
    --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --header-text: #ffffff;
    --progress-bg: #e2e8f0;
    --progress-bar: linear-gradient(90deg, #ec4899, #f59e0b);
    --progress-text-bg: rgba(236, 72, 153, 0.9);
    --progress-text: #ffffff;
    
    /* Cards & Quiz */
    --card-bg: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --quiz-bg: #ffffff;
    --quiz-border: rgba(99, 102, 241, 0.2);
    --quiz-option-bg: #f8fafc;
    --quiz-option-hover: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
    --quiz-option-active: linear-gradient(135deg, #ec4899, #f59e0b);
    --quiz-correct: #d1fae5;
    --quiz-correct-border: #10b981;
    --quiz-correct-text: #065f46;
    --quiz-incorrect: #fee2e2;
    --quiz-incorrect-border: #ef4444;
    --quiz-incorrect-text: #991b1b;
    
    /* Buttons */
    --btn-primary: linear-gradient(135deg, #ec4899, #f59e0b);
    --btn-primary-hover: linear-gradient(135deg, #db2777, #d97706);
    --btn-secondary: #e5e7eb;
    --btn-secondary-hover: #d1d5db;
    
    /* Special */
    --loader-bg: #667eea;
    --footer-bg: rgba(30, 41, 59, 0.95);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --header-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --card-bg: #1e293b;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --quiz-bg: #1e293b;
    --quiz-border: rgba(99, 102, 241, 0.3);
    --quiz-option-bg: #0f172a;
    --quiz-option-hover: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(245, 158, 11, 0.2));
    --quiz-correct: #064e3b;
    --quiz-correct-border: #10b981;
    --quiz-correct-text: #6ee7b7;
    --quiz-incorrect: #7f1d1d;
    --quiz-incorrect-border: #ef4444;
    --quiz-incorrect-text: #fca5a5;
    --progress-bg: #1e293b;
    --btn-secondary: #334155;
    --btn-secondary-hover: #475569;
}

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

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--progress-bg);
    z-index: 2000;
}

.progress-bar {
    height: 100%;
    background: var(--progress-bar);
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: var(--progress-text-bg);
    color: var(--progress-text);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2001;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.progress-text.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.progress-text.hide {
    opacity: 0;
    transform: translate(-50%, -20px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 5px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--header-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-emoji {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--header-text);
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 2px;
    margin-top: 0.2rem;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.theme-icon-container {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-icon-container.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-icon {
    font-size: 1.3rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.theme-icon-container:hover .theme-icon {
    transform: scale(1.2) rotate(20deg);
}

.theme-icon-container[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.theme-icon-container:hover[data-tooltip]::after {
    opacity: 1;
}

/* Menu Toggle */
.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--header-text);
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 2px solid var(--quiz-border);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    border-radius: 20px;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-links.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: block;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--quiz-option-hover);
    transform: translateX(5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: 85px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: var(--card-shadow);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--btn-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--quiz-option-bg);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.stat-emoji {
    font-size: 2rem;
}

.stat-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ============================================
   QUIZ CONTAINERS
   ============================================ */
.quiz-containers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.quiz-container {
    background: var(--quiz-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
}

.quiz-container:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--quiz-border);
}

.topic-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.topic-emoji {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

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

.quiz-container h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

/* Quiz Progress */
.quiz-status {
    margin-bottom: 1.5rem;
}

.quiz-progress-container {
    width: 100%;
    height: 10px;
    background: var(--quiz-option-bg);
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--progress-bar);
    width: 0;
    transition: width 0.5s ease;
    border-radius: 10px;
}

/* Quiz Question */
.quiz-question {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.quiz-image {
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.quiz-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quiz-option {
    background: var(--quiz-option-bg);
    padding: 1.2rem;
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--quiz-option-hover);
    transition: width 0.3s ease;
    z-index: 0;
}

.quiz-option:hover::before {
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--primary-pink);
    transform: translateX(5px);
}

.quiz-option > * {
    position: relative;
    z-index: 1;
}

.quiz-option.selected {
    background: var(--quiz-option-active);
    border-color: var(--primary-pink);
    color: white;
    font-weight: 600;
}

.quiz-option.correct {
    background: var(--quiz-correct);
    border-color: var(--quiz-correct-border);
    color: var(--quiz-correct-text);
    animation: correctPulse 0.5s ease;
}

.quiz-option.incorrect {
    background: var(--quiz-incorrect);
    border-color: var(--quiz-incorrect-border);
    color: var(--quiz-incorrect-text);
    animation: shake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Quiz Feedback */
.quiz-feedback {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: var(--quiz-correct);
    color: var(--quiz-correct-text);
    border: 2px solid var(--quiz-correct-border);
}

.quiz-feedback.incorrect {
    background: var(--quiz-incorrect);
    color: var(--quiz-incorrect-text);
    border: 2px solid var(--quiz-incorrect-border);
}

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

/* Time Remaining */
.time-remaining {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    background: var(--quiz-option-bg);
    border-radius: 10px;
}

.time-remaining.warning {
    background: #fef3c7;
    color: #92400e;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   BUTTONS
   ============================================ */
.next-btn, .reset-btn, .btn {
    background: var(--btn-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    margin: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.next-btn:hover, .reset-btn:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.4);
}

.next-btn:active, .btn:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--btn-secondary);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

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

/* ============================================
   QUIZ RESULTS
   ============================================ */
.quiz-results-screen {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: slideIn 0.5s ease;
}

.quiz-results-screen.active {
    display: block;
}

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

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--btn-primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    box-shadow: 0 15px 50px rgba(236, 72, 153, 0.4);
    position: relative;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: var(--btn-primary);
    opacity: 0.2;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.1; }
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.results-message {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.results-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-stat {
    background: var(--quiz-option-bg);
    padding: 1.5rem;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.result-stat:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.quiz-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ============================================
   ENCOURAGEMENT BANNER
   ============================================ */
.encouragement-banner {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 1400px;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.encouragement-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.encouragement-content {
    position: relative;
    z-index: 1;
}

.encouragement-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.encouragement-banner h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--btn-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.encouragement-banner p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.3rem 0;
}

.footer-subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ============================================
   AUTHENTICATION NOTIFICATION
   ============================================ */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-notification {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--card-shadow-hover);
    text-align: center;
    animation: authSlideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes authSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: var(--btn-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    animation: authBounce 2s ease-in-out infinite;
}

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

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.auth-message {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-redirect {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--primary-pink);
    font-weight: 600;
}

.auth-redirect::after {
    content: '...';
    animation: authDots 1.5s infinite;
}

@keyframes authDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.auth-loading-bar {
    width: 100%;
    height: 4px;
    background: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.auth-loading-bar-fill {
    height: 100%;
    background: var(--progress-bar);
    animation: authLoading 2s ease-in-out;
    transform-origin: left;
}

@keyframes authLoading {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero {
        margin-top: 75px;
        padding: 2rem 1.5rem;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat {
        width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .quiz-containers {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

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

    .results-message {
        font-size: 1.5rem;
    }

    .quiz-results-actions {
        flex-direction: column;
    }

    .nav-links {
        right: 1rem;
        min-width: 200px;
    }

    .topic-emoji {
        font-size: 2rem;
    }

    .quiz-container h3 {
        font-size: 1rem;
    }

    /* Auth Notification Mobile */
    .auth-notification {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .auth-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-message {
        font-size: 0.95rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.quiz-option:focus, .btn:focus {
    outline: 3px solid var(--primary-pink);
    outline-offset: 3px;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.quiz-option, .quiz-container, .hero-stat, .result-stat {
    will-change: transform;
}

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