/* ============================================
   TCF Langues - Premium CSS Stylesheet
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --primary-50: #EEF2FF;
    --primary-100: #E0E7FF;
    --secondary: #0EA5E9;
    --secondary-dark: #0284C7;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --success: #10B981;
    --success-dark: #059669;
    --danger: #EF4444;
    --danger-dark: #DC2626;
    --warning: #F59E0B;
    --info: #3B82F6;

    --dark: #0F172A;
    --dark-800: #1E293B;
    --dark-700: #334155;
    --dark-600: #475569;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --light: #F8FAFC;
    --white: #FFFFFF;

    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #0EA5E9 100%);
    --gradient-hero: linear-gradient(135deg, rgba(15,23,42,0.85) 0%, rgba(79,70,229,0.75) 50%, rgba(14,165,233,0.65) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 80px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px rgba(79,70,229,0.3);
    --shadow-glow-accent: 0 0 40px rgba(245,158,11,0.3);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-main: 'Ergonomique', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Ergonomique', 'Playfair Display', Georgia, serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79,70,229,0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79,70,229,0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245,158,11,0.4);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.5);
    color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}
.btn-danger:hover {
    background: var(--danger-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}
.btn-success:hover {
    background: var(--success-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar-logo { height: 42px; width: auto; }

.navbar-title { font-family: var(--font-heading); }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

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

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.navbar-toggle.active .hamburger { background: transparent; }
.navbar-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.navbar-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 7s; }
.hero-particle:nth-child(2) { left: 30%; top: 60%; animation-delay: 1s; animation-duration: 9s; }
.hero-particle:nth-child(3) { left: 50%; top: 30%; animation-delay: 2s; animation-duration: 6s; }
.hero-particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 8s; }
.hero-particle:nth-child(5) { left: 85%; top: 40%; animation-delay: 4s; animation-duration: 10s; }
.hero-particle:nth-child(6) { left: 20%; top: 80%; animation-delay: 1.5s; animation-duration: 7.5s; }
.hero-particle:nth-child(7) { left: 60%; top: 15%; animation-delay: 2.5s; animation-duration: 8.5s; }
.hero-particle:nth-child(8) { left: 90%; top: 85%; animation-delay: 3.5s; animation-duration: 6.5s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
    25% { transform: translateY(-30px) translateX(15px) scale(1.5); opacity: 0.7; }
    50% { transform: translateY(-15px) translateX(-10px) scale(1.2); opacity: 0.5; }
    75% { transform: translateY(-40px) translateX(20px) scale(0.8); opacity: 0.6; }
}

.hero-content {
    text-align: center;
    max-width: 850px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-badge i { color: var(--accent); }

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero h1 .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 1s ease 1s both;
}

.hero-stat {
    text-align: center;
    color: var(--white);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* === Section Styles === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--gradient-dark);
    color: var(--white);
}

.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-gray { background: var(--gray-100); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-dark .section-label {
    background: rgba(79,70,229,0.2);
    color: var(--primary-light);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* === Service Cards === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-icon.icon-blue { background: #EEF2FF; color: #4F46E5; }
.service-icon.icon-green { background: #ECFDF5; color: #10B981; }
.service-icon.icon-orange { background: #FFF7ED; color: #F59E0B; }
.service-icon.icon-purple { background: #F5F3FF; color: #8B5CF6; }

.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-card h3 {
    font-size: 1.15rem;
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === How It Works (Steps) === */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 16.66%;
    right: 16.66%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    animation: spin 20s linear infinite;
}

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

.step-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.step-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === Pricing Cards === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.pricing-card.featured {
    background: var(--gradient-dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover { transform: scale(1.05) translateY(-8px); }
.pricing-card.featured h3,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-duration { color: var(--white); }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-card.featured .pricing-features li i { color: var(--accent); }

.pricing-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--gradient-gold);
    color: var(--white);
    padding: 6px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.pricing-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
}

.pricing-icon.bronze { background: #FEF3C7; color: #B45309; }
.pricing-icon.silver { background: #F1F5F9; color: #64748B; }
.pricing-icon.gold { background: #FEF3C7; color: #D97706; }
.pricing-icon.platinum { background: #EDE9FE; color: #7C3AED; }

.pricing-card h3 {
    font-size: 1.3rem;
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 16px 0 4px;
    font-family: var(--font-main);
}

.pricing-price .currency { font-size: 1.2rem; vertical-align: super; }
.pricing-price .period { font-size: 0.9rem; color: var(--gray); font-weight: 400; }

.pricing-duration {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--dark-600);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 0.9rem; width: 20px; }

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

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

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 4rem;
    color: var(--primary-100);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars { margin-bottom: 16px; color: var(--accent); font-size: 0.9rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-weight: 600;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

/* === Stats Counter === */
.stats-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -30%; right: -5%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-main);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--primary-50);
}

.cta-section h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Auth Pages (Login/Register) === */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-xl);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo img { height: 56px; margin: 0 auto 12px; }

.auth-logo h1 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 4px;
}

.auth-logo p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* === Register Split Layout === */
.register-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.register-left {
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.register-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.register-left-content { position: relative; z-index: 1; max-width: 420px; }

.register-left h2 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.register-left p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.register-features {
    list-style: none;
    text-align: left;
}

.register-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.register-features li i {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.register-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--gradient-dark);
}

.register-form-container {
    width: 100%;
    max-width: 460px;
}

.register-form-container .auth-card {
    padding: 40px 36px;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder { color: rgba(255,255,255,0.35); }

.form-input:focus {
    border-color: var(--primary-light);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.form-icon {
    position: absolute;
    left: 14px;
    top: 42px;
    color: rgba(255,255,255,0.4);
    font-size: 0.95rem;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

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

.form-checkbox label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.form-footer a { color: var(--primary-light); font-weight: 600; }
.form-footer a:hover { color: var(--white); }

.form-error {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 4px;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 42px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}
.password-toggle:hover { color: rgba(255,255,255,0.8); }

/* === Demo Page === */
.demo-hero {
    background: var(--gradient-dark);
    padding: 120px 20px 60px;
    text-align: center;
    color: var(--white);
}

.demo-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    margin-bottom: 12px;
}

.demo-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    padding: 60px 0;
}

.demo-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 32px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.demo-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.demo-card-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.demo-card-icon.oral { background: #ECFDF5; color: #10B981; }
.demo-card-icon.ecrit { background: #EEF2FF; color: #4F46E5; }

.demo-card h3 {
    font-size: 1.15rem;
    font-family: var(--font-main);
    font-weight: 700;
}

.demo-card h3 span {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
    margin-top: 2px;
}

.demo-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.demo-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--gray);
}

.demo-card-meta span { display: flex; align-items: center; gap: 6px; }

.demo-badge-free {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--success);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* === Quiz/Exam Container === */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.quiz-header {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.quiz-timer.warning { color: var(--danger); animation: pulse 1s infinite; }

.quiz-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 16px;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.question-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--primary-50);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.options-list { list-style: none; }

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.option-item:hover { border-color: var(--primary-light); background: var(--primary-50); }
.option-item.selected { border-color: var(--primary); background: var(--primary-50); }
.option-item.correct { border-color: var(--success); background: #ECFDF5; }
.option-item.incorrect { border-color: var(--danger); background: #FEF2F2; }

.option-marker {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.option-item.selected .option-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.option-item.correct .option-marker {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.option-item.incorrect .option-marker {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

/* === Toast Messages === */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    min-width: 300px;
    max-width: 420px;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon { font-size: 1.2rem; }
.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-message { flex: 1; font-size: 0.9rem; color: var(--dark); }

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray);
    font-size: 1rem;
    transition: var(--transition);
}

.toast-close:hover { color: var(--dark); }

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* === Footer === */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-top: 0;
}

.footer-wave {
    color: var(--light);
    line-height: 0;
    margin-bottom: -1px;
}

.footer-wave svg { width: 100%; height: 80px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.footer-logo { height: 40px; width: auto; }

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--primary);
}

.footer-links { list-style: none; }

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a i { font-size: 0.6rem; color: var(--primary); transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-contact { list-style: none; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--primary-light);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}

.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--white); }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Quiz Results === */
.quiz-results {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--gray-200);
    max-width: 600px;
    margin: 40px auto;
}

.quiz-results h2 { margin-bottom: 8px; }

.quiz-results .score-circle {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
    color: var(--white);
}

.score-circle .score-value { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.score-circle .score-total { font-size: 0.85rem; opacity: 0.8; }

.quiz-results .result-message {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-8px); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .register-page { grid-template-columns: 1fr; }
    .register-left { display: none; }
    .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    
    .navbar-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 24px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .navbar-menu.active { right: 0; }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .nav-link { padding: 12px 16px; font-size: 1.05rem; }

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

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

    .services-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
    .hero-stats-row { flex-direction: column; gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    
    .section { padding: 60px 0; }
    .section-header { margin-bottom: 40px; }
    
    .auth-card { padding: 32px 24px; }
    
    .quiz-header { flex-direction: column; gap: 12px; }
    .question-card { padding: 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; }
    .stat-value { font-size: 2rem; }
    .toast { min-width: 260px; }
}

/* ============================================
   Dashboard Sidebar - Collapsible (Icon-only & hover expand)
   ============================================ */

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 75px);
    position: relative;
    padding-left: 270px; /* Space for expanded sidebar */
    transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar */
.dash-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 100;
    flex-shrink: 0;
}

/* Sidebar inner content */
.dash-sidebar-inner {
    width: 270px;
    padding: 24px 16px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Main content area */
.dash-main {
    flex: 1;
    width: 100%;
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* Collapsed State (Desktop) */
@media (min-width: 992px) {
    .dashboard-wrapper.sidebar-collapsed {
        padding-left: 60px; /* Shrink main padding */
    }

    .dashboard-wrapper.sidebar-collapsed .dash-sidebar {
        width: 60px; /* Shrink sidebar */
    }

    /* Shrink the inner content container to prevent overflow issues */
    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .dash-sidebar-inner {
        width: 60px;
        padding: 24px 0;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    }

    /* Hide text elements in collapsed state */
    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .user-detail-text,
    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .sidebar-nav-link .nav-text {
        display: none !important;
    }

    /* Center user avatar and nav links when collapsed */
    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .user-avatar-sidebar {
        margin: 0 auto !important;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .sidebar-nav-link {
        justify-content: center;
        padding: 10px 0 !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        margin: 6px auto !important;
    }

    .dashboard-wrapper.sidebar-collapsed .dash-sidebar .sidebar-nav-link i {
        margin-right: 0 !important;
        font-size: 1.15rem;
    }


}

/* User avatar in sidebar */
.dash-sidebar .user-avatar-sidebar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* User detail text */
.dash-sidebar .user-detail-text {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Sidebar nav links */
.dash-sidebar .sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dash-sidebar .sidebar-nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.dash-sidebar .sidebar-nav-link.active {
    color: #fff;
    font-weight: 600;
}

.dash-sidebar .sidebar-nav-link i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar nav links locked / grisé */
.dash-sidebar .sidebar-nav-link.sidebar-link-locked,
.dash-sidebar .sidebar-nav-link.disabled,
.nav-link.sidebar-link-locked {
    color: #94a3b8 !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: transparent !important;
}

.dash-sidebar .sidebar-nav-link.sidebar-link-locked:hover,
.dash-sidebar .sidebar-nav-link.disabled:hover,
.nav-link.sidebar-link-locked:hover {
    background: rgba(148, 163, 184, 0.1) !important;
    color: #64748b !important;
}

.dash-sidebar .sidebar-nav-link.sidebar-link-locked i,
.nav-link.sidebar-link-locked i {
    color: #94a3b8 !important;
}

.dash-sidebar .sidebar-nav-link.sidebar-link-locked .badge,
.nav-link.sidebar-link-locked .badge {
    background-color: #cbd5e1 !important;
    color: #475569 !important;
    border: none !important;
}

/* Toggle Button */
.sidebar-toggle-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.1rem;
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(79, 70, 229, 0.6);
}

.sidebar-toggle-btn i {
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn.collapsed-state i {
    transform: rotate(180deg);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* Mobile: sidebar becomes a drawer */
@media (max-width: 991px) {
    .dashboard-wrapper {
        padding-left: 0 !important;
    }
    
    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 270px !important;
        transform: translateX(-100%);
        box-shadow: 4px 0 30px rgba(0,0,0,0.15);
        z-index: 10000; /* Over navbar */
    }
    
    .dash-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .dash-main {
        padding: 20px 16px;
    }
    
    .sidebar-toggle-btn {
        bottom: 20px;
        left: 16px;
    }
}

/* ============================================================
   EXAM ENGINE STYLES
   ============================================================ */

/* --- Question Navigation Dots --- */
.exam-question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.exam-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    user-select: none;
}

.exam-dot.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
    transform: scale(1.12);
}

.exam-dot.answered {
    background: #22c55e;
    color: #fff;
    border-color: #16a34a;
}

.exam-dot.unanswered {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.exam-dot:hover:not(.current) {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* --- Timer Bar --- */
.exam-timer-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.exam-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    border-radius: 9999px;
    transition: width 1s linear;
}

.exam-timer-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.exam-timer-fill.danger {
    background: linear-gradient(90deg, #ef4444, #f87171);
    animation: timerPulse 1s infinite;
}

@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.exam-timer-badge {
    background: var(--dark);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    min-width: 110px;
    text-align: center;
}

/* --- Mode Selection Cards --- */
.exam-mode-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.exam-mode-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.exam-mode-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #fff;
}

/* --- Intro Screen --- */
.exam-intro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 32px;
    color: #fff;
    animation: introPulse 2s ease-in-out infinite;
}

@keyframes introPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
}

/* --- Exam Options (QCM) --- */
.exam-option {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
    font-weight: 500;
    color: #334155;
}

.exam-option:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.exam-option.selected {
    border-color: var(--primary);
    background: #dbeafe;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.exam-option.compact {
    text-align: center;
    padding: 18px;
}

/* --- Audio Section --- */
.exam-audio-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd !important;
}

/* --- Correction Cards --- */
.correction-card {
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s ease;
}

.correction-card.border-success {
    border-color: #22c55e !important;
    background: #f0fdf4;
}

.correction-card.border-danger {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.correction-option {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    color: #334155;
}

.correction-option.correct {
    border-color: #22c55e;
    background: #dcfce7;
    font-weight: 600;
    color: #15803d;
}

.correction-option.wrong {
    border-color: #ef4444;
    background: #fee2e2;
    font-weight: 600;
    color: #b91c1c;
    text-decoration: line-through;
}

/* --- Score Display --- */
.exam-score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff, #dbeafe);
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.exam-score-circle .score-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.exam-score-circle .score-max {
    font-size: 16px;
    color: #64748b;
    font-weight: 600;
}

.exam-mention-badge {
    display: inline-block;
    padding: 10px 32px;
    border-radius: 9999px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 12px;
}

/* --- Responsive Exam --- */
@media (max-width: 768px) {
    .exam-dot {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .exam-question-nav {
        gap: 5px;
    }
    
    .exam-timer-badge {
        font-size: 14px;
        padding: 6px 12px;
        min-width: 90px;
    }
    
    .exam-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .exam-score-circle .score-value {
        font-size: 32px;
    }
    
    .exam-mode-card {
        padding: 20px 16px;
    }
}

/* --- Sidebar Methodologies Chevron Rotation --- */
.fa-chevron-down {
    transition: transform 0.25s ease;
}
.rotate-180 {
    transform: rotate(180deg);
}
[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

