/* ========================================
   قياس أونلاين - Modern Design System
   ======================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== CSS Variables ========== */
:root {
    /* Brand Colors — Indigo Accent */
    --indigo-600: #4F46E5;
    --indigo-500: #6366F1;
    --indigo-400: #818CF8;
    --indigo-300: #A5B4FC;
    
    /* Keep these for backwards compat but point to indigo */
    --green-500: #4F46E5;
    --green-400: #6366F1;
    --green-300: #818CF8;
    --blue-600: #4F46E5;
    --blue-500: #6366F1;
    --blue-400: #818CF8;
    
    /* Gradient — Now indigo-based */
    --gradient-primary: linear-gradient(135deg, #4F46E5, #6366F1, #818CF8);
    --gradient-accent: linear-gradient(135deg, #6366F1, #818CF8);
    --gradient-hero: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #818CF8 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(129,140,248,0.5));
    
    /* Dark Mode (Default) — 60-30-10 */
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-card: rgba(24, 24, 27, 0.8);
    --bg-card-hover: rgba(24, 24, 27, 0.95);
    --bg-glass: rgba(9, 9, 11, 0.7);
    --bg-glass-light: rgba(24, 24, 27, 0.5);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --navbar-bg: rgba(9, 9, 11, 0.85);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #6366F1;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e4e4e7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-glass: rgba(250, 250, 250, 0.8);
    --bg-glass-light: rgba(255, 255, 255, 0.6);
    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-glow: rgba(79, 70, 229, 0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.08);
    --navbar-bg: rgba(250, 250, 250, 0.9);
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes progressFill {
    from { stroke-dashoffset: 314; }
}

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

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

.skeleton-text {
    display: inline-block;
    width: 60px;
    height: 1em;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass-light) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

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

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

body {
    font-family: 'Tajawal', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

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

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}

.nav-links a.active {
    background: var(--gradient-accent);
    color: white;
    -webkit-text-fill-color: white;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    margin-right: 10px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Hamburger */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass-light);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--bg-glass-light);
    color: var(--text-primary);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-glow);
}

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

.btn-outline:hover {
    background: var(--green-400);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

/* Floating glass orbs for glassmorphism effect */
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(40px);
    top: 20%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.06);
    backdrop-filter: blur(40px);
    bottom: 20%;
    left: -80px;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.08;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(99,102,241,0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-400);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--green-400);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stat {
    text-align: center;
}

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

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== Cards (Glassmorphism) ========== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.glass-card:hover::before {
    opacity: 1;
}

/* ========== Section Styles ========== */
.section {
    padding: 80px 20px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--green-400);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Exams Grid ========== */
.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.exam-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.exam-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: var(--gradient-card-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.exam-card:hover::before {
    opacity: 1;
}

.exam-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.exam-card:hover .exam-icon {
    background: var(--gradient-accent);
    border-color: transparent;
    transform: scale(1.05);
}

.exam-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--green-400);
    transition: fill 0.3s ease;
}

.exam-card:hover .exam-icon svg {
    fill: white;
}

.exam-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.exam-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.exam-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.questions-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--green-400);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== Features Grid ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--green-400);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ========== Stats Section ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ========== Steps Section ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

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

/* ========== Footer ========== */
.footer {
    padding: 60px 20px 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--green-400);
    padding-right: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Test Page Styles ========== */
.test-page {
    padding-top: 90px;
    min-height: 100vh;
}

.test-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Select Screen */
.section-select {
    padding-top: 100px;
    padding-bottom: 40px;
}

.section-select-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-select-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-select-header p {
    color: var(--text-secondary);
}

/* Question Count Selector */
.count-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.count-option {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--bg-glass-light);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.count-option:hover {
    border-color: var(--green-400);
    color: var(--green-400);
}

.count-option.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
}

/* Timer Options */
.timer-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.timer-option {
    padding: 8px 20px;
    border-radius: 10px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.timer-option:hover,
.timer-option.active {
    border-color: var(--blue-500);
    color: var(--blue-400);
    background: rgba(99, 102, 241, 0.1);
}

/* Test Header Bar */
.test-header-bar {
    position: sticky;
    top: 70px;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    margin-bottom: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.test-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.test-info-item svg {
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.test-info-item strong {
    color: var(--text-primary);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--blue-400);
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Inter', monospace;
    direction: ltr;
}

.timer-display svg {
    width: 18px;
    height: 18px;
    fill: var(--blue-400);
}

.timer-display.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.timer-display.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    animation: pulse 1s infinite;
}

/* Progress Bar */
.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    min-width: 100px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Question Card */
.question-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 36px;
    margin-bottom: 24px;
    animation: fadeInUp 0.4s ease;
    position: relative;
}

.question-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

.bookmark-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.bookmark-btn:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.bookmark-btn.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    color: var(--warning);
}

.bookmark-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
    margin-bottom: 28px;
    color: var(--text-primary);
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 2px solid var(--border-color);
    background: var(--bg-glass-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.option:hover {
    border-color: var(--green-400);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(-4px);
}

.option.selected {
    border-color: var(--green-400);
    background: rgba(99, 102, 241, 0.1);
}

.option.correct {
    border-color: var(--success);
    background: rgba(99, 102, 241, 0.15);
}

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

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option.selected .option-letter {
    background: var(--gradient-accent);
    color: white;
}

.option.correct .option-letter {
    background: var(--success);
    color: white;
}

.option.wrong .option-letter {
    background: var(--danger);
    color: white;
}

/* Test Actions */
.test-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* Question Navigator */
.question-navigator {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
}

.navigator-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.navigator-inner::-webkit-scrollbar {
    display: none;
}

.nav-dot {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background: var(--bg-glass-light);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nav-dot:hover {
    border-color: var(--text-secondary);
}

.nav-dot.current {
    border-color: var(--blue-500);
    background: rgba(99, 102, 241, 0.15);
    color: var(--blue-400);
}

.nav-dot.answered {
    border-color: var(--green-400);
    background: rgba(99, 102, 241, 0.15);
    color: var(--green-400);
}

.nav-dot.bookmarked {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.nav-dot.bookmarked::after {
    content: '★';
    font-size: 0.5rem;
    position: absolute;
    top: -2px;
    left: -2px;
}

/* ========== Results Page ========== */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 40px;
    animation: fadeInUp 0.6s ease;
}

.results-hero {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

/* Circular Progress */
.circular-progress {
    width: 180px;
    height: 180px;
    margin: 0 auto 24px;
    position: relative;
}

.circular-progress svg {
    transform: rotate(-90deg);
    width: 180px;
    height: 180px;
}

.circular-progress .bg-circle {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 10;
}

.circular-progress .progress-circle {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 1.5s ease;
}

.circular-progress .progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.circular-progress .score-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.circular-progress .score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.results-message {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-sub {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Section Analysis */
.section-analysis {
    margin-bottom: 30px;
}

.analysis-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.analysis-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.analysis-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.analysis-bar {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.analysis-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--gradient-accent);
    transition: width 1s ease;
}

.analysis-score {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 50px;
    text-align: left;
}

/* Review Questions */
.review-section {
    margin-bottom: 30px;
}

.review-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.review-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 16px;
}

.review-card.correct {
    border-color: rgba(99, 102, 241, 0.3);
}

.review-card.wrong {
    border-color: rgba(239, 68, 68, 0.3);
}

.review-card.skipped {
    border-color: rgba(245, 158, 11, 0.3);
}

.review-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.review-status.correct {
    background: rgba(99, 102, 241, 0.1);
    color: var(--success);
}

.review-status.wrong {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.review-status.skipped {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.review-question {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.7;
}

.review-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-option {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-option.correct-answer {
    border-color: var(--success);
    background: rgba(99, 102, 241, 0.08);
}

.review-option.user-wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.review-option-marker {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ========== History Page ========== */
.history-page {
    padding-top: 100px;
    min-height: 100vh;
}

.history-header {
    margin-bottom: 30px;
}

.history-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.history-header p {
    color: var(--text-secondary);
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
}

.summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.summary-icon svg {
    width: 22px;
    height: 22px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass-light);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--green-400);
    color: var(--green-400);
    background: rgba(99, 102, 241, 0.08);
}

/* CSS-only Chart */
.chart-container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 30px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    padding: 0 10px;
    border-bottom: 2px solid var(--border-color);
}

.chart-bar {
    flex: 1;
    min-width: 20px;
    max-width: 50px;
    border-radius: 6px 6px 0 0;
    background: var(--gradient-accent);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-bar .bar-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chart-bar:hover .bar-tooltip {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 8px;
    padding: 8px 10px 0;
}

.chart-label {
    flex: 1;
    min-width: 20px;
    max-width: 50px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* History Table */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
}

.history-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-sm);
}

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.history-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.history-score {
    font-size: 1.6rem;
    font-weight: 800;
    min-width: 60px;
    text-align: center;
}

.history-score.high {
    color: var(--success);
}

.history-score.medium {
    color: var(--warning);
}

.history-score.low {
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 24px;
}

/* Delete History */
.delete-history-btn {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.delete-history-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
    }
    
    .theme-toggle {
        margin-right: 8px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-value {
        font-size: 1.6rem;
    }
    
    .exams-grid {
        grid-template-columns: 1fr;
    }
    
    .test-header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .test-info {
        justify-content: center;
    }
    
    .question-card {
        padding: 24px 20px;
    }
    
    .question-text {
        font-size: 1.05rem;
    }
    
    .option {
        padding: 12px 14px;
    }
    
    .circular-progress {
        width: 150px;
        height: 150px;
    }
    
    .circular-progress svg {
        width: 150px;
        height: 150px;
    }
    
    .results-hero {
        padding: 30px 20px;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .filters-bar::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .history-card {
        flex-direction: column;
        text-align: center;
    }
    
    .history-info p {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links a:hover {
        padding-right: 0;
    }

    .analysis-card {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .analysis-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 80px 16px 40px;
    }
    
    .section {
        padding: 50px 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-dot {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .summary-card {
        padding: 16px;
    }
    
    .summary-value {
        font-size: 1.5rem;
    }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.hidden { display: none !important; }
.ltr { direction: ltr; text-align: left; }

/* Scroll Animation Observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Question Animation */
.question-enter {
    animation: fadeInUp 0.35s ease;
}

/* Confetti for high scores */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Live Stats Counter Section
   ======================================== */
.live-stats {
    padding: 60px 20px;
    position: relative;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.live-stat-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.live-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.live-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
}

.live-stat-icon svg {
    width: 26px;
    height: 26px;
}

.live-stat-value {
    font-size: 2.4rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    direction: ltr;
    display: inline-block;
}

.live-stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.how-step {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
}

.how-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.how-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.how-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
}

.how-step-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--green-400);
    fill: none;
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.how-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 32px 24px;
    position: relative;
    transition: all 0.4s ease;
}

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

.testimonial-quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.testimonial-quote-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--green-400);
}

.testimonial-text {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

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

.testimonial-info .testimonial-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.testimonial-info .testimonial-role {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #F59E0B;
}

/* ========================================
   Enhanced Footer
   ======================================== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-grid {
    justify-items: start;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--green-400);
}

.footer-heart {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-heart span {
    color: #EF4444;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 990;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   Skip to Content (Accessibility)
   ======================================== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 12px 12px;
    z-index: 10000;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Focus Styles (Accessibility)
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--green-400);
    outline-offset: 2px;
}

.btn:focus-visible,
.option:focus-visible,
.nav-dot:focus-visible {
    outline: 2px solid var(--green-400);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* ========================================
   Keyboard Shortcuts Modal
   ======================================== */
.shortcuts-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.shortcuts-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.shortcuts-modal h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.shortcut-row:last-child {
    border-bottom: none;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shortcut-key kbd {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', monospace;
    color: var(--text-primary);
    min-width: 28px;
    text-align: center;
}

.shortcut-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Review Filters
   ======================================== */
.review-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.review-filter-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-glass-light);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-family: inherit;
}

.review-filter-btn:hover,
.review-filter-btn.active {
    border-color: var(--green-400);
    color: var(--green-400);
    background: rgba(99, 102, 241, 0.08);
}

.review-filter-btn.filter-wrong.active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.review-filter-btn.filter-correct.active {
    border-color: var(--success);
    color: var(--success);
    background: rgba(99, 102, 241, 0.08);
}

.review-filter-btn.filter-skipped.active {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(245, 158, 11, 0.08);
}

/* ========================================
   Enhanced Responsive
   ======================================== */
@media (max-width: 768px) {
    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .live-stat-value {
        font-size: 1.8rem;
    }
    .live-stat-card {
        padding: 24px 12px;
    }
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer-grid {
        justify-items: center;
    }
    .footer-social {
        justify-content: center;
    }
    .back-to-top {
        bottom: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .live-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .live-stat-value {
        font-size: 1.5rem;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar, .question-navigator, .test-actions, .theme-toggle, .hamburger, .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   Reduced Motion (Accessibility)
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-bg {
        animation: none;
    }
}
/* deployed 1770154701 */

/* ========================================
   V3 LANDING PAGE — Clean & Bold
   60-30-10 Color Rule
   ======================================== */

/* ===== V2 CSS Variables ===== */
:root {
    --v2-bg: #09090b;
    --v2-surface: #18181b;
    --v2-border: rgba(255,255,255,0.06);
    --v2-accent: #6366F1;
    --v2-accent-hover: #818cf8;
    --v2-text: #fafafa;
    --v2-text-secondary: #a1a1aa;
    --v2-text-muted: #71717a;
    --v2-radius: 12px;
    --v2-radius-sm: 8px;
    --v2-transition: 200ms ease;
}

[data-theme="light"] {
    --v2-bg: #fafafa;
    --v2-surface: #ffffff;
    --v2-border: rgba(0,0,0,0.06);
    --v2-accent: #4F46E5;
    --v2-accent-hover: #6366F1;
    --v2-text: #18181b;
    --v2-text-secondary: #71717a;
    --v2-text-muted: #a1a1aa;
}

/* ===== V2 Animations ===== */
@keyframes v2-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.v2-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.v2-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== V2 Hero ===== */
.v2-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--v2-bg);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.v2-hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--v2-text-muted) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.03;
    pointer-events: none;
}

.v2-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.v2-hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--v2-accent);
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
    letter-spacing: -0.01em;
}

.v2-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--v2-text);
    letter-spacing: -0.02em;
    margin: 0;
}

.v2-hero-title span {
    color: var(--v2-accent);
}

.v2-hero-subtitle {
    font-size: 1.1rem;
    color: var(--v2-text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0;
}

.v2-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* ===== V2 Buttons ===== */
.v2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--v2-accent);
    color: #fff;
    border-radius: var(--v2-radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--v2-transition);
    border: none;
    cursor: pointer;
}

.v2-btn-primary:hover {
    background: var(--v2-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.v2-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--v2-text-secondary);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--v2-transition);
    cursor: pointer;
}

.v2-btn-ghost:hover {
    color: var(--v2-text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

[data-theme="light"] .v2-btn-ghost:hover {
    border-color: rgba(0,0,0,0.12);
    background: rgba(0,0,0,0.03);
}

/* ===== V2 Dashboard Mockup ===== */
.v2-hero-mockup {
    position: relative;
}

.v2-mockup-laptop {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
}

[data-theme="light"] .v2-mockup-laptop {
    box-shadow: 0 24px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

.v2-mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--v2-border);
}

[data-theme="light"] .v2-mockup-toolbar {
    background: rgba(0,0,0,0.02);
}

.v2-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

[data-theme="light"] .v2-mockup-dot {
    background: rgba(0,0,0,0.08);
}

.v2-mockup-dot:nth-child(1) { background: #ef4444; opacity: 0.7; }
.v2-mockup-dot:nth-child(2) { background: #eab308; opacity: 0.7; }
.v2-mockup-dot:nth-child(3) { background: #22c55e; opacity: 0.7; }

.v2-mockup-url {
    margin-right: auto;
    margin-left: 12px;
    font-size: 0.7rem;
    color: var(--v2-text-muted);
    background: rgba(255,255,255,0.04);
    padding: 3px 12px;
    border-radius: 4px;
    direction: ltr;
}

[data-theme="light"] .v2-mockup-url {
    background: rgba(0,0,0,0.04);
}

.v2-mockup-content {
    padding: 24px;
}

.v2-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--v2-border);
}

.v2-mockup-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--v2-text);
}

.v2-mockup-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--v2-accent);
    border-radius: 100px;
    font-weight: 600;
}

.v2-mockup-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.v2-mockup-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

[data-theme="light"] .v2-mockup-progress-bar {
    background: rgba(0,0,0,0.06);
}

.v2-mockup-progress-fill {
    width: 35%;
    height: 100%;
    background: var(--v2-accent);
    border-radius: 2px;
}

.v2-mockup-progress-text {
    font-size: 0.65rem;
    color: var(--v2-text-muted);
    white-space: nowrap;
}

.v2-mockup-question {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 14px;
    line-height: 1.6;
}

.v2-mockup-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-mockup-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    font-size: 0.75rem;
    color: var(--v2-text-secondary);
    transition: all var(--v2-transition);
}

[data-theme="light"] .v2-mockup-option {
    background: rgba(0,0,0,0.01);
}

.v2-mockup-option.v2-mockup-selected {
    border-color: var(--v2-accent);
    background: rgba(99, 102, 241, 0.06);
    color: var(--v2-text);
}

.v2-mockup-option-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .v2-mockup-option-radio {
    border-color: rgba(0,0,0,0.15);
}

.v2-mockup-selected .v2-mockup-option-radio {
    border-color: var(--v2-accent);
}

.v2-mockup-selected .v2-mockup-option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v2-accent);
}

/* ===== V2 Social Proof Bar ===== */
.v2-social-proof {
    padding: 32px 0;
    background: var(--v2-surface);
    border-top: 1px solid var(--v2-border);
    border-bottom: 1px solid var(--v2-border);
}

.v2-social-proof-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.v2-social-proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--v2-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.v2-social-proof-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--v2-text);
}

.v2-social-proof-divider {
    width: 1px;
    height: 24px;
    background: var(--v2-border);
}

/* ===== V2 Interactive Demo ===== */
.v2-demo-section {
    padding: 96px 0;
    background: var(--v2-bg);
}

.v2-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.v2-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    color: var(--v2-accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.v2-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--v2-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.v2-section-subtitle {
    font-size: 1rem;
    color: var(--v2-text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.v2-demo-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    overflow: hidden;
}

.v2-demo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--v2-border);
}

.v2-demo-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v2-text);
}

.v2-demo-card-badge {
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--v2-accent);
    border-radius: 100px;
    font-weight: 600;
}

.v2-demo-card-body {
    padding: 28px 24px;
}

.v2-demo-question-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--v2-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.v2-demo-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.v2-demo-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    cursor: pointer;
    transition: all var(--v2-transition);
    color: var(--v2-text-secondary);
    font-size: 0.9rem;
}

[data-theme="light"] .v2-demo-option {
    background: rgba(0,0,0,0.01);
}

.v2-demo-option:hover:not(.v2-demo-disabled) {
    border-color: rgba(255,255,255,0.12);
    color: var(--v2-text);
}

[data-theme="light"] .v2-demo-option:hover:not(.v2-demo-disabled) {
    border-color: rgba(0,0,0,0.12);
}

.v2-demo-option-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: all var(--v2-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .v2-demo-option-radio {
    border-color: rgba(0,0,0,0.15);
}

.v2-demo-option.v2-demo-correct {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    color: var(--v2-text);
}

.v2-demo-option.v2-demo-correct .v2-demo-option-radio {
    border-color: #22c55e;
    background: #22c55e;
}

.v2-demo-option.v2-demo-correct .v2-demo-option-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.v2-demo-option.v2-demo-wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    color: var(--v2-text);
}

.v2-demo-option.v2-demo-wrong .v2-demo-option-radio {
    border-color: #ef4444;
    background: #ef4444;
}

.v2-demo-option.v2-demo-wrong .v2-demo-option-radio::after {
    content: '';
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.v2-demo-option.v2-demo-disabled {
    cursor: default;
    opacity: 0.5;
}

.v2-demo-option.v2-demo-correct.v2-demo-disabled,
.v2-demo-option.v2-demo-wrong.v2-demo-disabled {
    opacity: 1;
}

.v2-demo-feedback {
    display: none;
    padding: 14px 18px;
    border-radius: var(--v2-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.6;
}

.v2-demo-feedback.v2-demo-feedback-correct {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="light"] .v2-demo-feedback.v2-demo-feedback-correct {
    color: #16a34a;
}

.v2-demo-feedback.v2-demo-feedback-wrong {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

[data-theme="light"] .v2-demo-feedback.v2-demo-feedback-wrong {
    color: #dc2626;
}

.v2-demo-cta {
    text-align: center;
    padding-top: 8px;
}

.v2-demo-cta p {
    font-size: 0.85rem;
    color: var(--v2-text-muted);
    margin-bottom: 16px;
}

/* ===== V2 Exams Grid ===== */
.v2-section {
    padding: 96px 0;
    background: var(--v2-bg);
}

.v2-exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.v2-exam-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    text-decoration: none;
    transition: all var(--v2-transition);
    position: relative;
}

.v2-exam-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

[data-theme="light"] .v2-exam-card:hover {
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.1), 0 8px 24px rgba(0,0,0,0.06);
}

.v2-exam-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    color: var(--v2-accent);
}

.v2-exam-icon svg {
    stroke: var(--v2-accent);
}

.v2-exam-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0;
}

.v2-exam-card p {
    font-size: 0.85rem;
    color: var(--v2-text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.v2-exam-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-questions-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--v2-accent);
    background: rgba(99, 102, 241, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
}

.v2-exam-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--v2-accent);
    transition: gap var(--v2-transition);
}

.v2-exam-card:hover .v2-exam-btn {
    gap: 10px;
}

/* ===== V2 Features Grid ===== */
.v2-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--v2-border);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    overflow: hidden;
}

.v2-feature-card {
    padding: 32px 28px;
    background: var(--v2-surface);
    transition: background var(--v2-transition);
}

.v2-feature-card:hover {
    background: rgba(99, 102, 241, 0.03);
}

[data-theme="light"] .v2-feature-card:hover {
    background: rgba(79, 70, 229, 0.02);
}

.v2-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--v2-accent);
}

.v2-feature-icon svg {
    color: var(--v2-accent);
}

.v2-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 6px;
}

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

/* ===== V2 Smart Tools Grid ===== */
.v2-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.v2-tool-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    text-decoration: none;
    transition: all var(--v2-transition);
}

.v2-tool-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.v2-tool-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-accent);
}

.v2-tool-icon svg {
    stroke: var(--v2-accent);
}

.v2-tool-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0;
}

.v2-tool-card p {
    font-size: 0.8rem;
    color: var(--v2-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ===== V2 CTA Section ===== */
.v2-cta-section {
    padding: 96px 0;
    background: var(--v2-surface);
    border-top: 1px solid var(--v2-border);
}

.v2-cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.v2-cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--v2-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.v2-cta-card > p {
    font-size: 1rem;
    color: var(--v2-text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

.v2-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.v2-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: var(--v2-text);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--v2-transition);
    cursor: pointer;
}

.v2-btn-secondary:hover {
    border-color: var(--v2-accent);
    color: var(--v2-accent);
}

/* ===== V2 Footer ===== */
.v2-footer {
    padding: 48px 0 0;
    background: var(--v2-surface);
    border-top: 1px solid var(--v2-border);
}

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

.v2-footer-brand p {
    font-size: 0.85rem;
    color: var(--v2-text-secondary);
    line-height: 1.6;
    margin: 8px 0 16px;
    max-width: 320px;
}

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

.v2-social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--v2-radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--v2-border);
    color: var(--v2-text-secondary);
    transition: all var(--v2-transition);
    text-decoration: none;
}

[data-theme="light"] .v2-social-btn {
    background: rgba(0,0,0,0.03);
}

.v2-social-btn:hover {
    color: var(--v2-accent);
    border-color: rgba(99, 102, 241, 0.3);
}

.v2-social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.v2-footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.v2-footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--v2-text-secondary);
    text-decoration: none;
    padding: 4px 0;
    transition: color var(--v2-transition);
}

.v2-footer-links a:hover {
    color: var(--v2-text);
}

.v2-footer-bottom {
    border-top: 1px solid var(--v2-border);
    padding: 24px 0;
}

.v2-footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.v2-footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.v2-footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--v2-text-muted);
    text-decoration: none;
    transition: color var(--v2-transition);
}

.v2-footer-bottom-links a:hover {
    color: var(--v2-text);
}

.v2-footer-bottom p {
    font-size: 0.8rem;
    color: var(--v2-text-muted);
    margin: 0;
}

.v2-footer-heart {
    font-size: 0.8rem;
    color: var(--v2-text-muted);
}

.v2-footer-heart span {
    color: #ef4444;
}

/* ===== V2 How It Works Timeline ===== */
.v2-how-section {
    background: var(--v2-surface);
    border-top: 1px solid var(--v2-border);
}

.v2-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.v2-timeline-line {
    position: absolute;
    right: 27px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.08));
}

[data-theme="light"] .v2-timeline-line {
    background: linear-gradient(to bottom, rgba(79, 70, 229, 0.25), rgba(79, 70, 229, 0.06));
}

.v2-timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
}

.v2-timeline-icon {
    position: relative;
    z-index: 2;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-surface);
    border: 2px solid var(--v2-border);
    border-radius: 16px;
    color: var(--v2-accent);
    transition: all 0.3s ease;
}

.v2-timeline-step:hover .v2-timeline-icon {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    background: rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .v2-timeline-step:hover .v2-timeline-icon {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.08);
    background: rgba(79, 70, 229, 0.04);
}

.v2-timeline-icon svg {
    stroke: var(--v2-accent);
}

.v2-timeline-number {
    display: none;
}

.v2-timeline-content {
    flex: 1;
    padding-top: 8px;
}

.v2-timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 6px;
}

.v2-timeline-content p {
    font-size: 0.85rem;
    color: var(--v2-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ===== V2 Testimonials ===== */
.v2-testimonials-section {
    background: var(--v2-bg);
}

.v2-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.v2-testimonial-card {
    padding: 24px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v2-testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .v2-testimonial-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

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

.v2-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--v2-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.v2-testimonial-info {
    flex: 1;
    min-width: 0;
}

.v2-testimonial-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--v2-text);
    margin: 0 0 2px;
}

.v2-testimonial-info span {
    font-size: 0.72rem;
    color: var(--v2-text-muted);
    font-weight: 500;
}

.v2-testimonial-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    color: var(--v2-text-muted);
    font-weight: 500;
}

.v2-score-up {
    font-size: 0.95rem;
    font-weight: 800;
    color: #22c55e;
    letter-spacing: -0.02em;
}

.v2-testimonial-quote {
    font-size: 0.82rem;
    color: var(--v2-text-secondary);
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

.v2-testimonial-stars {
    font-size: 0.8rem;
    color: #f59e0b;
    letter-spacing: 2px;
}

/* ===== V2 CTA V2 (Enhanced) ===== */
.v2-cta-v2 {
    background: var(--v2-bg);
    border-top: 1px solid var(--v2-border);
}

.v2-cta-v2 .v2-cta-card {
    position: relative;
    overflow: hidden;
    padding: 56px 32px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
}

.v2-cta-v2 .v2-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.v2-cta-v2-badge {
    font-size: 2rem;
    margin-bottom: 16px;
}

.v2-cta-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin: 28px 0;
    flex-wrap: wrap;
}

.v2-cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.v2-cta-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--v2-text);
    letter-spacing: -0.03em;
}

.v2-cta-stat-label {
    font-size: 0.75rem;
    color: var(--v2-text-muted);
    font-weight: 500;
}

.v2-cta-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--v2-border);
}

.v2-btn-lg {
    padding: 14px 36px !important;
    font-size: 1.05rem !important;
}

.v2-cta-note {
    font-size: 0.75rem !important;
    color: var(--v2-text-muted) !important;
    margin: 16px 0 0 !important;
    letter-spacing: 0.02em;
}

/* ===== V2 Responsive ===== */
@media (max-width: 1024px) {
    .v2-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .v2-hero-text {
        align-items: center;
    }

    .v2-hero-subtitle {
        max-width: 100%;
    }

    .v2-hero-actions {
        justify-content: center;
    }

    .v2-hero-mockup {
        max-width: 540px;
        margin: 0 auto;
    }

    .v2-exams-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .v2-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .v2-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .v2-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .v2-demo-section,
    .v2-section,
    .v2-cta-section {
        padding: 64px 0;
    }

    .v2-features-grid {
        grid-template-columns: 1fr;
    }

    .v2-tools-grid {
        grid-template-columns: 1fr;
    }

    .v2-social-proof-grid {
        gap: 24px;
    }

    .v2-social-proof-divider {
        display: none;
    }

    .v2-social-proof-grid {
        flex-direction: column;
        align-items: center;
    }

    .v2-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .v2-timeline-line {
        right: 27px;
    }

    .v2-cta-stats {
        gap: 20px;
    }

    .v2-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .v2-cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .v2-hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .v2-btn-primary,
    .v2-btn-ghost,
    .v2-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .v2-mockup-content {
        padding: 16px;
    }

    .v2-demo-card-body {
        padding: 20px 16px;
    }
}
