/* ==========================================
   Educational Road - Modern Professional Design
   Mobile-First, Social Media Ready
   ========================================== */

:root {
    /* Premium Color Palette */
    --primary: #0f172a;
    --primary-dark: #020617;
    --primary-light: #1e293b;
    
    /* Accent - Elegant Blue */
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    
    /* Secondary - Soft Purple */
    --secondary: #8b5cf6;
    --secondary-light: #a78bfa;
    
    /* Gradient Colors */
    --gradient-1: #667eea;
    --gradient-2: #764ba2;
    --gradient-3: #6366f1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --font-primary: 'Poppins', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   LANDING PAGE STYLES (index.html)
   ========================================== */

.landing-body {
    min-height: 100vh;
    background: var(--primary);
    position: relative;
    overflow-x: hidden;
}

/* Premium Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--gradient-2) 100%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--gradient-1) 0%, var(--accent-light) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% { 
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.4;
    }
    75% { 
        transform: translate(30px, 50px) scale(1.05);
        opacity: 0.55;
    }
}

/* Animated Grid Lines */
.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: -6s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: -8s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: -10s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: -12s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: -14s; }
.particle:nth-child(9) { left: 90%; top: 85%; animation-delay: -16s; }
.particle:nth-child(10) { left: 15%; top: 55%; animation-delay: -18s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) translateX(10px);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-60px) translateX(-10px);
        opacity: 0.3;
    }
    75% { 
        transform: translateY(-30px) translateX(15px);
        opacity: 0.5;
    }
}

/* Glowing Lines */
.glow-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.glow-line {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation: lineMove 8s ease-in-out infinite;
    opacity: 0.3;
}

.glow-line:nth-child(1) { left: 20%; animation-delay: 0s; }
.glow-line:nth-child(2) { left: 50%; animation-delay: -2s; }
.glow-line:nth-child(3) { left: 80%; animation-delay: -4s; }

@keyframes lineMove {
    0% { transform: translateY(-200px); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Main Container */
.landing-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 30px;
    animation: fadeInUp 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    display: none; /* Logo removed as per design update */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
}

.hero-badge .badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-family: var(--font-arabic);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
    max-width: 400px;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-chip:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.15);
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.stat-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-arabic);
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.6s ease 0.2s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.form-header p {
    font-family: var(--font-arabic);
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label .label-icon {
    font-size: 1rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-input::placeholder {
    color: var(--text-light);
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    font-family: var(--font-arabic);
    margin-top: 4px;
    text-align: right;
    display: block;
}

/* Two Column Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 400px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Select Styling */
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 20px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--accent);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 20px;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: var(--white);
}

.checkbox-custom.checked {
    background: var(--accent);
}

.checkbox-custom svg {
    opacity: 0;
    color: white;
    transition: opacity 0.2s ease;
}

.checkbox-custom.checked svg {
    opacity: 1;
}

.checkbox-label {
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-family: var(--font-arabic);
    margin-top: 2px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-submit::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 ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit .btn-text-ar {
    font-family: var(--font-arabic);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Skip Section */
.skip-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.skip-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.skip-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-skip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-primary);
}

.btn-skip:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-skip.ielts-btn:hover {
    background: var(--success);
    border-color: var(--success);
}

/* Footer */
.landing-footer {
    text-align: center;
    padding: 24px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================
   TEST PAGE STYLES (test.html)
   ========================================== */

.test-body {
    min-height: 100vh;
    background: var(--primary);
    position: relative;
    overflow-x: hidden;
}

.test-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Test Header */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-logo-small {
    display: none; /* Logo removed as per design update */
}

.test-branding h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.test-branding span {
    font-family: var(--font-arabic);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.timer-display svg {
    color: var(--accent);
}

.timer-display span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.btn-skip-test {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip-test:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Progress Bar */
.progress-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.question-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.current-q {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.divider {
    color: rgba(255,255,255,0.4);
    font-size: 1.2rem;
}

.total-q {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
}

.level-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.level-tag .code {
    font-weight: 700;
    color: var(--white);
}

.level-tag .name {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.progress-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent-light));
    border-radius: 8px;
    transition: width 0.4s ease;
}

.level-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
}

.level-markers span {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s ease;
}

.level-markers span.active {
    color: var(--accent);
}

/* Question Card */
.question-card {
    flex: 1;
    background: var(--white);
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: cardSlide 0.4s ease;
}

@keyframes cardSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 20px;
    border: 1px solid #93c5fd;
}

.skill-tag .icon {
    font-size: 1rem;
}

.skill-tag .text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-tag {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 16px;
    border: 1px solid #6ee7b7;
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
}

.question-body {
    flex: 1;
    margin-bottom: 24px;
}

.question-text {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.question-arabic {
    font-family: var(--font-arabic);
    font-size: 1rem;
    color: var(--text-medium);
    direction: rtl;
    text-align: right;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--accent);
}

/* Answer Options */
.options-grid {
    display: grid;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.option-item:hover {
    border-color: var(--accent);
    background: #fffbeb;
    transform: translateX(4px);
}

.option-item.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.option-item input {
    display: none;
}

.option-letter {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-medium);
    margin-right: 14px;
    transition: all 0.25s ease;
}

.option-item:hover .option-letter {
    border-color: var(--accent);
    color: var(--accent);
}

.option-item.selected .option-letter {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.option-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.option-key {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Navigation */
.test-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-top: 16px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nav-btn-prev {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid var(--glass-border);
}

.nav-btn-prev:hover:not(:disabled) {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.nav-btn-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn-next {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.nav-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.nav-btn-submit {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.nav-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Nav Dots */
.nav-dots-container {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 200px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.answered {
    background: var(--accent);
}

.nav-dot.current {
    background: var(--white);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Keyboard Hint */
.keyboard-hint {
    text-align: center;
    padding: 10px;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    margin: 0 2px;
}

/* Skip Modal */
.modal-overlay {
    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: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 10px;
    color: var(--text-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-emoji {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    font-family: var(--font-primary);
}

.modal-option:hover {
    border-color: var(--accent);
    background: #fffbeb;
    transform: translateX(4px);
}

.modal-option.highlight-green {
    border-color: var(--success);
    background: #ecfdf5;
}

.modal-option.highlight-green:hover {
    background: #d1fae5;
}

.modal-option.highlight-orange {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.modal-option-icon {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.modal-option-text {
    flex: 1;
}

.modal-option-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-option-text span {
    font-size: 0.8rem;
    color: var(--text-medium);
}

.modal-option svg {
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.modal-option:hover svg {
    transform: translateX(4px);
    color: var(--accent);
}

.modal-tip {
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #92400e;
}

/* Responsive */
@media (max-width: 480px) {
    .test-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .question-card {
        padding: 20px 16px;
    }
    
    .test-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-dots-container {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    
    .keyboard-hint {
        display: none;
    }
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
