/* ==========================================================================
   Merkezi Tema Değişkenleri (Light / Dark / Kağıt Modu)
   Tüm renk, arka plan, kenarlık, gölge ve gradyan ayarları buradan yönetilir.
   ========================================================================== */

/* 1. Varsayılan Tema (Light Mod) */
:root {
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --card-radius: 0.625rem;

    /* Yüzeyler, Metin ve Kenarlıklar */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-on-brand: #ffffff;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(226, 232, 240, 0.85);
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -6px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 14px 30px -6px rgba(15, 23, 42, 0.13), 0 4px 12px -2px rgba(15, 23, 42, 0.07);
    --subtle-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    --squircle-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.2);

    /* Marka & Etkileşim Renkleri */
    --grad-start: #2563eb;
    --grad-mid: #9333ea;
    --grad-end: #db2777;
    --brand-primary: #4f46e5;
    --brand-primary-strong: #4338ca;
    --brand-primary-hover: #4338ca;
    --brand-text: #4f46e5;
    --brand-highlight: #4f46e5;
    --brand-gradient: linear-gradient(to bottom right, var(--grad-start), var(--grad-mid), var(--grad-end));
    --brand-badge-gradient: var(--brand-gradient);
    --brand-soft-bg: rgba(79, 70, 229, 0.1);
    --brand-soft-bg-subtle: rgba(79, 70, 229, 0.08);
    --brand-soft-bg-hover: rgba(79, 70, 229, 0.14);
    --brand-soft-border: rgba(79, 70, 229, 0.22);
    --brand-border-hover: rgba(79, 70, 229, 0.45);
    --brand-focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.15);
    --brand-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.45);
    --nav-active-bg: var(--bg-surface);
    --nav-active-color: #4f46e5;
    --nav-active-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);

    /* Hero & Canlı Mavi - Mor - Pembe Gradyan Paleti */
    --hero-grad-start: var(--grad-start);
    --hero-grad-mid: var(--grad-mid);
    --hero-grad-end: var(--grad-end);
    --hero-btn-gradient: var(--brand-gradient);
    --hero-btn-shadow: 0 12px 26px -6px rgba(124, 58, 237, 0.45);
    --hero-btn-shadow-hover: 0 16px 32px -6px rgba(124, 58, 237, 0.58);
    --hero-mesh-1: rgba(59, 130, 246, 0.2);
    --hero-mesh-2: rgba(139, 92, 246, 0.18);
    --hero-mesh-3: rgba(236, 72, 153, 0.14);
    --hero-grid-line: rgba(148, 163, 184, 0.12);
    --hero-badge-bg: rgba(124, 58, 237, 0.12);
    --hero-badge-text: #6d28d9;
    --hero-badge-border: rgba(139, 92, 246, 0.28);
    --hero-bento-frame-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.55));
    --hero-bento-frame-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.12);
    --hero-visual-glow-1: rgba(124, 58, 237, 0.28);
    --hero-visual-glow-2: rgba(236, 72, 153, 0.22);
    --hero-visual-glow-3: rgba(59, 130, 246, 0.18);
    --hero-float-bg: var(--glass-bg);
    --hero-float-border: var(--glass-border);
    --hero-float-shadow: 0 10px 26px -8px rgba(15, 23, 42, 0.14);

    /* Vurgu & Durum Renkleri */
    --accent-indigo: #4f46e5;
    --accent-blue: #2563eb;
    --accent-sky: #0ea5e9;
    --accent-cyan: #06b6d4;
    --accent-purple: #7c3aed;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-emerald: #10b981;
    --accent-teal: #0d9488;
    --accent-amber: #f59e0b;
    --accent-orange: #ea580c;
    --accent-danger: #ef4444;

    /* Bento & Rozet Gradyanları */
    --bento-indigo-gradient: var(--brand-gradient);
    --bento-indigo-shadow: 0 8px 18px -4px rgba(79, 70, 229, 0.45);
    --bento-emerald-gradient: linear-gradient(135deg, #10b981, #0d9488);
    --bento-emerald-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.45);
    --bento-cyan-gradient: linear-gradient(135deg, #06b6d4, #0284c7);
    --bento-cyan-shadow: 0 8px 18px -4px rgba(6, 182, 212, 0.45);
    --bento-amber-gradient: linear-gradient(135deg, #f59e0b, #ea580c);
    --bento-amber-shadow: 0 8px 18px -4px rgba(245, 158, 11, 0.45);
    --premium-gradient: linear-gradient(135deg, #f59e0b, #ea580c);

    --status-easy-bg: rgba(16, 185, 129, 0.12);
    --status-easy-text: #059669;
    --status-medium-bg: rgba(245, 158, 11, 0.14);
    --status-medium-text: #d97706;
    --status-hard-bg: rgba(239, 68, 68, 0.12);
    --status-hard-text: #dc2626;
    --status-correct-bg: rgba(16, 185, 129, 0.055);
    --status-wrong-bg: rgba(239, 68, 68, 0.05);

    --badge-blue-bg: rgba(37, 99, 235, 0.14);
    --badge-blue-text: #2563eb;
    --badge-pink-bg: rgba(236, 72, 153, 0.14);
    --badge-pink-text: #db2777;
    --badge-purple-bg: rgba(124, 58, 237, 0.14);
    --badge-purple-text: #7c3aed;

    --sepia-active-bg: #fef3c7;
    --sepia-active-text: #b45309;
    --sepia-active-border: #f59e0b;

    /* Medya Kartı, İç Sayfa & Sınav Ekranı Tokenları */
    --media-overlay-gradient: linear-gradient(to top, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.08) 55%, rgba(15, 23, 42, 0.25) 100%);
    --media-glass-bg: rgba(15, 23, 42, 0.55);
    --media-glass-border: rgba(255, 255, 255, 0.22);
    --media-grade-bg: rgba(79, 70, 229, 0.85);
    --media-grade-border: rgba(255, 255, 255, 0.25);

    --quiz-bar-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06);
    --quiz-option-hover-bg: rgba(79, 70, 229, 0.05);
    --quiz-option-selected-bg: rgba(79, 70, 229, 0.08);
    --quiz-option-selected-ring: 0 0 0 1px rgba(79, 70, 229, 0.35);
    --quiz-explain-bg: var(--bg-surface-alt);
    --quiz-explain-border: var(--border-color);
    --quiz-explain-accent: var(--brand-primary);

    /* Footer & Auth / Öğrenci Paneli Vitrini */
    --footer-bg: #060913;
    --footer-glow: rgba(79, 70, 229, 0.16);
    --footer-top-border: rgba(99, 102, 241, 0.28);
    --footer-surface: rgba(15, 23, 42, 0.75);
    --footer-surface-border: rgba(51, 65, 85, 0.65);
    --footer-divider: rgba(51, 65, 85, 0.55);
    --footer-btn-bg: rgba(255, 255, 255, 0.06);
    --footer-btn-bg-hover: rgba(255, 255, 255, 0.12);
    --footer-btn-border: rgba(255, 255, 255, 0.1);
    --footer-btn-border-hover: rgba(255, 255, 255, 0.14);
    --footer-cta-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, rgba(124, 58, 237, 0.16) 52%, rgba(236, 72, 153, 0.14) 100%);
    --footer-cta-border: rgba(99, 102, 241, 0.3);
    --footer-text: #cbd5e1;
    --footer-text-strong: #e2e8f0;
    --footer-text-muted: #94a3b8;
    --footer-icon-bg: rgba(79, 70, 229, 0.18);
    --footer-icon-color: #818cf8;
    --footer-top-hover-bg: rgba(79, 70, 229, 0.25);
    --footer-top-hover-border: rgba(99, 102, 241, 0.45);

    --showcase-grad-start: var(--grad-start);
    --showcase-grad-mid: var(--grad-mid);
    --showcase-grad-end: var(--grad-end);
    --showcase-glow-1: rgba(165, 180, 252, 0.22);
    --showcase-glow-2: rgba(56, 189, 248, 0.18);
    --showcase-shadow: 0 10px 25px -8px rgba(67, 56, 202, 0.35);
    --student-progress-gradient: var(--brand-gradient);
}

/* 2. Koyu Tema (Dark Mod) */
html.dark {
    --bg-page: #070b14;
    --bg-surface: #0f172a;
    --bg-surface-alt: #131c31;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(51, 65, 85, 0.7);
    --glass-bg: rgba(7, 11, 20, 0.8);
    --glass-border: rgba(51, 65, 85, 0.65);
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 16px 32px -8px rgba(0, 0, 0, 0.6);
    --subtle-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    --brand-primary: #6366f1;
    --brand-primary-strong: #4f46e5;
    --brand-primary-hover: #6366f1;
    --brand-text: #a5b4fc;
    --brand-highlight: #818cf8;
    --brand-soft-bg: rgba(99, 102, 241, 0.18);
    --brand-soft-bg-subtle: rgba(255, 255, 255, 0.08);
    --brand-soft-bg-hover: rgba(99, 102, 241, 0.24);
    --brand-soft-border: rgba(129, 140, 248, 0.35);
    --brand-border-hover: rgba(129, 140, 248, 0.45);
    --brand-focus-ring: 0 0 0 3px rgba(129, 140, 248, 0.25);
    --brand-shadow: 0 8px 20px -4px rgba(79, 70, 229, 0.55);
    --nav-active-bg: #4f46e5;
    --nav-active-color: #ffffff;
    --nav-active-shadow: none;

    --hero-grad-start: #60a5fa;
    --hero-grad-mid: #c084fc;
    --hero-grad-end: #f472b6;
    --hero-mesh-1: rgba(59, 130, 246, 0.28);
    --hero-mesh-2: rgba(139, 92, 246, 0.24);
    --hero-mesh-3: rgba(236, 72, 153, 0.18);
    --hero-grid-line: rgba(148, 163, 184, 0.07);
    --hero-badge-bg: rgba(139, 92, 246, 0.18);
    --hero-badge-text: #c4b5fd;
    --hero-badge-border: rgba(167, 139, 250, 0.35);
    --hero-bento-frame-bg: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(19, 28, 49, 0.65));
    --hero-bento-frame-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
    --hero-visual-glow-1: rgba(139, 92, 246, 0.34);
    --hero-visual-glow-2: rgba(236, 72, 153, 0.24);
    --hero-visual-glow-3: rgba(59, 130, 246, 0.22);
    --hero-float-bg: rgba(15, 23, 42, 0.86);
    --hero-float-border: rgba(71, 85, 105, 0.65);
    --hero-float-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.55);

    --accent-indigo: #818cf8;
    --accent-blue: #60a5fa;
    --accent-sky: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-purple: #c084fc;
    --accent-violet: #a78bfa;
    --accent-pink: #f472b6;
    --accent-emerald: #34d399;
    --accent-teal: #2dd4bf;
    --accent-amber: #fbbf24;
    --accent-orange: #fb923c;
    --accent-danger: #f87171;

    --status-easy-bg: rgba(16, 185, 129, 0.18);
    --status-easy-text: #6ee7b7;
    --status-medium-bg: rgba(245, 158, 11, 0.2);
    --status-medium-text: #fcd34d;
    --status-hard-bg: rgba(239, 68, 68, 0.2);
    --status-hard-text: #fca5a5;
    --status-correct-bg: rgba(16, 185, 129, 0.1);
    --status-wrong-bg: rgba(239, 68, 68, 0.1);

    --badge-blue-bg: rgba(59, 130, 246, 0.24);
    --badge-blue-text: #93c5fd;
    --badge-pink-bg: rgba(236, 72, 153, 0.24);
    --badge-pink-text: #f472b6;
    --badge-purple-bg: rgba(139, 92, 246, 0.24);
    --badge-purple-text: #c4b5fd;

    --quiz-bar-shadow: 0 4px 18px -4px rgba(0, 0, 0, 0.35);
    --quiz-option-hover-bg: rgba(99, 102, 241, 0.12);
    --quiz-option-selected-bg: rgba(99, 102, 241, 0.18);
    --quiz-option-selected-ring: 0 0 0 1px rgba(129, 140, 248, 0.4);
    --quiz-explain-bg: var(--bg-surface-alt);
    --quiz-explain-border: var(--border-color);
    --quiz-explain-accent: #818cf8;
}

/* 3. Kağıt Modu (Sepia Mod) */
html.sepia {
    --bg-page: #f4eee1;
    --bg-surface: #fbf7ee;
    --bg-surface-alt: #ece3d0;
    --text-main: #2d2419;
    --text-muted: #5c4d3c;
    --border-color: #dfd3bd;
    --glass-bg: rgba(246, 241, 231, 0.88);
    --glass-border: rgba(217, 205, 184, 0.9);
    --card-shadow: 0 4px 18px -2px rgba(72, 56, 35, 0.08);
    --card-shadow-hover: 0 18px 28px -8px rgba(72, 56, 35, 0.14);
    --subtle-shadow: 0 2px 8px rgba(72, 56, 35, 0.06);

    --brand-primary: #4f46e5;
    --brand-primary-strong: #4338ca;
    --brand-text: #4338ca;
    --brand-highlight: #4338ca;
    --brand-soft-bg: rgba(79, 70, 229, 0.09);
    --brand-soft-bg-subtle: rgba(79, 70, 229, 0.08);
    --brand-soft-border: rgba(79, 70, 229, 0.22);
    --nav-active-color: #4338ca;
    --nav-active-shadow: 0 1px 4px rgba(72, 56, 35, 0.08);

    --hero-mesh-1: rgba(59, 130, 246, 0.12);
    --hero-mesh-2: rgba(139, 92, 246, 0.1);
    --hero-mesh-3: rgba(236, 72, 153, 0.08);
    --hero-grid-line: rgba(120, 97, 65, 0.1);
    --hero-badge-bg: rgba(124, 58, 237, 0.1);
    --hero-badge-text: #5b21b6;
    --hero-badge-border: rgba(139, 92, 246, 0.24);
    --hero-bento-frame-bg: linear-gradient(145deg, rgba(251, 247, 238, 0.85), rgba(236, 227, 208, 0.65));
    --hero-bento-frame-shadow: 0 24px 48px -16px rgba(72, 56, 35, 0.12);
    --hero-visual-glow-1: rgba(124, 58, 237, 0.18);
    --hero-visual-glow-2: rgba(236, 72, 153, 0.14);
    --hero-visual-glow-3: rgba(59, 130, 246, 0.12);
    --hero-float-bg: rgba(251, 247, 238, 0.92);
    --hero-float-border: rgba(217, 205, 184, 0.9);
    --hero-float-shadow: 0 10px 26px -8px rgba(72, 56, 35, 0.14);

    --status-easy-bg: rgba(16, 185, 129, 0.14);
    --status-easy-text: #047857;
    --status-medium-bg: rgba(245, 158, 11, 0.16);
    --status-medium-text: #b45309;
    --status-hard-bg: rgba(239, 68, 68, 0.14);
    --status-hard-text: #b91c1c;

    --quiz-bar-shadow: 0 4px 16px -4px rgba(72, 56, 35, 0.08);
    --quiz-option-hover-bg: rgba(79, 70, 229, 0.06);
    --quiz-option-selected-bg: rgba(79, 70, 229, 0.1);
    --quiz-explain-bg: rgba(79, 70, 229, 0.06);
    --quiz-explain-border: rgba(79, 70, 229, 0.22);
}

html.sepia .bg-white,
html.sepia .bg-gray-50,
html.sepia .bg-gray-100 {
    background-color: var(--bg-surface) !important;
}

html.sepia .text-gray-900,
html.sepia .text-gray-800 {
    color: var(--text-main) !important;
}

html.sepia .text-gray-700,
html.sepia .text-gray-600,
html.sepia .text-gray-500 {
    color: var(--text-muted) !important;
}

html.sepia .sepia-toggle-btn {
    background-color: var(--sepia-active-bg) !important;
    color: var(--sepia-active-text) !important;
    border: 1px solid var(--sepia-active-border) !important;
}

/* ==========================================================================
   Temel Sayfa ve Tipografi
   ========================================================================== */
html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page) !important;
    color: var(--text-main) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
}

/* ==========================================================================
   Glassmorphism Navbar
   ========================================================================== */
nav.site-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: none !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    gap: 1rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    min-width: 0;
}

.brand-icon-box {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-brand);
    background: var(--brand-gradient);
    box-shadow: none;
    flex-shrink: 0;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    color: var(--text-main);
    white-space: nowrap;
}

.header-nav-capsule {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav-capsule {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.3rem;
        border-radius: 9999px;
        background: var(--bg-surface-alt);
        border: 1px solid var(--border-color);
    }
}

.nav-pill-link {
    padding: 0.42rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-pill-link:hover {
    color: var(--text-main);
    background-color: var(--brand-soft-bg-subtle);
}

.nav-pill-link.active {
    color: var(--nav-active-color);
    background: var(--nav-active-bg);
    box-shadow: var(--nav-active-shadow);
}

.header-actions {
    display: none;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }
}

.header-theme-group {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.22rem;
    border-radius: 9999px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
}

.header-icon-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.header-icon-btn:hover {
    color: var(--text-main);
    background: var(--bg-surface);
}

.nav-cta-btn {
    padding: 0.5rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-on-brand) !important;
    background: var(--brand-gradient);
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

/* ==========================================================================
   Redesigned Hero Section (Grid Mesh + Vector Visual Showcase)
   ========================================================================== */
.hero-redesign {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 15% 15%, var(--hero-mesh-1) 0px, transparent 52%),
        radial-gradient(at 85% 20%, var(--hero-mesh-2) 0px, transparent 50%),
        radial-gradient(at 52% 90%, var(--hero-mesh-3) 0px, transparent 52%);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 50%, transparent 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    width: fit-content;
    background: var(--hero-badge-bg);
    color: var(--hero-badge-text);
    border: 1px solid var(--hero-badge-border);
}

.hero-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-layout-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        gap: 3.5rem;
    }
}

.hero-bento-frame {
    position: relative;
    padding: 1rem;
    border-radius: 1.5rem;
    background: var(--hero-bento-frame-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--hero-bento-frame-shadow);
}

.hero-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-gradient-text {
    background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-mid) 52%, var(--hero-grad-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.62rem, 1.1vw, 0.8rem) clamp(1.05rem, 2vw, 1.5rem);
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: clamp(0.82rem, 1.25vw, 0.95rem);
    color: var(--text-on-brand);
    background: var(--hero-btn-gradient);
    box-shadow: var(--hero-btn-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hero-btn-shadow-hover);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: clamp(0.62rem, 1.1vw, 0.8rem) clamp(1.05rem, 2vw, 1.5rem);
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: clamp(0.82rem, 1.25vw, 0.95rem);
    color: var(--text-main);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--subtle-shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.hero-quick-search {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 1rem;
    padding: 0.45rem;
}

.hero-stat-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    box-shadow: var(--subtle-shadow);
}

.bento-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-brand);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.bento-icon-indigo {
    background: var(--bento-indigo-gradient);
    box-shadow: var(--bento-indigo-shadow);
}

.bento-icon-emerald {
    background: var(--bento-emerald-gradient);
    box-shadow: var(--bento-emerald-shadow);
}

.bento-icon-cyan {
    background: var(--bento-cyan-gradient);
    box-shadow: var(--bento-cyan-shadow);
}

.bento-icon-amber {
    background: var(--bento-amber-gradient);
    box-shadow: var(--bento-amber-shadow);
}

/* ==========================================================================
   Modern Class & Exam Bento Cards
   ========================================================================== */
.modern-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    transition: box-shadow 0.2s ease !important;
}

.group:hover .modern-card,
.modern-card:hover {
    box-shadow: var(--card-shadow-hover) !important;
}

.grade-squircle {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-on-brand);
    flex-shrink: 0;
    box-shadow: var(--squircle-shadow);
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.section-alt-bg {
    background-color: var(--bg-surface-alt) !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Homepage Pro Redesign (Bento Tags, Inset-Frame Media Cards, Quizzes, Footer)
   ========================================================================== */
.bento-subject-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem;
    border-radius: var(--card-radius) !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease;
}

.bento-subject-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.bento-subject-card h3 {
    transition: color 0.2s ease;
}

.bento-subject-card:hover h3 {
    color: var(--brand-highlight);
}

.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.bento-card-top .bento-icon-box {
    margin-bottom: 0;
}

.bento-track-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.bento-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.bento-tag {
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
}

/* Section Headers */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-soft-border);
    margin-bottom: 0.75rem;
}

.section-header-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 2.25rem;
}

.section-header-row > div:first-child {
    min-width: 0;
    flex: 1;
}

.section-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--card-radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-text);
    background: var(--brand-soft-bg);
    border: 1px solid var(--brand-soft-border);
    width: fit-content;
    height: fit-content;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.section-more-link:hover {
    background: var(--brand-primary);
    color: var(--text-on-brand);
    border-color: var(--brand-primary);
}

/* Inset-Frame Media Cards (Classes & Exam Prep) */
.pro-media-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease;
}

.pro-media-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.pro-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0;
    overflow: hidden;
    background: var(--brand-gradient);
}

.pro-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0;
}

.pro-card-overlay {
    position: absolute;
    inset: 0;
    border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0;
    background: var(--media-overlay-gradient);
    pointer-events: none;
}

.pro-glass-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    padding: 0.28rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--text-on-brand);
    background: var(--media-glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--media-glass-border);
}

.pro-grade-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-on-brand);
    background: var(--media-grade-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--media-grade-border);
}

.pro-card-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.pro-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0;
    transition: color 0.2s ease;
}

.pro-media-card:hover .pro-card-title {
    color: var(--brand-highlight);
}

.pro-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border-color);
}

.pro-card-arrow {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pro-media-card:hover .pro-card-arrow {
    background: var(--brand-primary);
    color: var(--text-on-brand);
}

/* Ana Sayfa Akışkan Tipografi ve 2/3 Sütunlu Sınıf & Sınav Kartları */
.hero-main-title {
    font-size: clamp(1.75rem, 4.2vw, 3.45rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hero-main-desc {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

.home-section-title {
    font-size: clamp(1.22rem, 2.4vw, 1.85rem);
    line-height: 1.22;
}

.home-section-desc {
    font-size: clamp(0.85rem, 1.4vw, 1.0625rem);
}

.home-class-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .home-class-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 768px) {
    .home-class-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-class-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .home-class-grid .pro-card-body {
        padding: 0.75rem;
    }

    .home-class-grid .pro-card-title {
        font-size: 0.92rem;
    }

    .home-class-grid .pro-card-footer {
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.72rem;
    }

    .home-class-grid .pro-card-arrow {
        width: 1.45rem;
        height: 1.45rem;
    }
}

/* Recent Quizzes Cards */
.pro-quiz-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.35rem;
    border-radius: var(--card-radius) !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease;
}

.pro-quiz-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.pro-quiz-subject-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
}

.pro-quiz-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0.75rem 0;
    transition: color 0.2s ease;
}

.pro-quiz-card:hover .pro-quiz-title {
    color: var(--brand-highlight);
}

.pro-quiz-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bg-surface-alt);
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pro-quiz-card:hover .pro-quiz-cta {
    background: var(--brand-primary);
    color: var(--text-on-brand);
}

/* ==========================================================================
   SEO Hub (Popular Subject Matrix, FAQ Accordion & Collapsible Guide Box)
   ========================================================================== */
.seo-subject-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .seo-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .seo-subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.seo-subject-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--card-radius) !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.seo-subject-card:hover {
    box-shadow: var(--card-shadow-hover);
}

.seo-subject-card .stat-chip {
    margin-bottom: 0.45rem;
}

.seo-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
}

.seo-card-badges .stat-chip {
    margin-bottom: 0;
}

.seo-subject-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    transition: color 0.2s ease;
}

.seo-subject-card:hover .seo-subject-title {
    color: var(--brand-highlight);
}

.seo-subject-card:hover .pro-card-arrow {
    background: var(--brand-primary);
    color: var(--text-on-brand);
}

.seo-subject-count {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* FAQ Accordion */
.seo-faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .seo-faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.seo-faq-item {
    border-radius: var(--card-radius) !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.seo-faq-item:hover {
    box-shadow: var(--card-shadow-hover);
}

.seo-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.seo-faq-item:hover .seo-faq-btn,
.seo-faq-item.is-open .seo-faq-btn {
    color: var(--brand-highlight);
}

.seo-faq-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.seo-faq-item.is-open .seo-faq-icon {
    background: var(--brand-primary);
    color: var(--text-on-brand);
    transform: rotate(180deg);
}

.seo-faq-answer {
    display: none;
    padding: 0 1.35rem 1.2rem;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.9rem;
}

.seo-faq-item.is-open .seo-faq-answer {
    display: block;
}

/* Collapsible SEO Guide Box */
.seo-content-box {
    padding: 1.75rem 2rem;
    border-radius: var(--card-radius) !important;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.seo-content-collapse {
    position: relative;
    max-height: 170px;
    overflow: hidden;
}

.seo-content-collapse.is-expanded {
    max-height: none;
}

.seo-content-fade {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 4.5rem;
    background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
    pointer-events: none;
}

.seo-content-collapse.is-expanded .seo-content-fade {
    display: none;
}

.seo-content-prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.65rem;
}

.seo-content-prose h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 1.15rem;
    margin-bottom: 0.4rem;
}

.seo-content-prose p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Pro Footer */
.pro-footer {
    position: relative;
    background-color: var(--footer-bg) !important;
    background-image: radial-gradient(ellipse 70% 50% at 50% 0%, var(--footer-glow), transparent 70%);
    border-top: 1px solid var(--footer-top-border);
    color: var(--footer-text);
}

.footer-cta-banner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
    border-radius: 1.35rem;
    background: var(--footer-cta-bg);
    border: 1px solid var(--footer-cta-border);
}

@media (min-width: 768px) {
    .footer-cta-banner {
        flex-direction: row;
        align-items: center;
    }
}

.footer-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.4rem;
    border-radius: 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--footer-text-strong);
    background: var(--footer-btn-bg);
    border: 1px solid var(--footer-btn-border-hover);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-secondary-btn:hover {
    background: var(--footer-btn-bg-hover);
    color: var(--text-on-brand);
    transform: translateY(-2px);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-top: 2.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--footer-divider);
}

.footer-main-grid > div:first-child {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .footer-main-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 2.5rem;
        padding-top: 3.5rem;
        padding-bottom: 2.75rem;
    }

    .footer-main-grid > div:first-child {
        grid-column: auto;
    }

    .footer-main-grid > div:first-child p {
        max-width: 24rem;
    }
}

.footer-acc-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    padding: 0.45rem 0;
    text-align: left;
    cursor: pointer;
}

.footer-acc-chevron {
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.footer-acc-col.is-open .footer-acc-chevron {
    transform: rotate(180deg);
}

@media (max-width: 639px) {
    .footer-acc-col {
        border-bottom: 1px solid var(--footer-divider);
        padding-bottom: 0.35rem;
    }

    .footer-acc-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-acc-col .footer-link-list {
        display: none;
        padding: 0.35rem 0 0.55rem;
    }

    .footer-acc-col.is-open .footer-link-list {
        display: flex;
    }
}

@media (min-width: 640px) {
    .footer-acc-trigger {
        cursor: default;
        pointer-events: none;
        padding: 0;
        margin-bottom: 1.1rem;
    }

    .footer-acc-chevron {
        display: none;
    }
}

@media (min-width: 1024px) {
    .footer-main-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 2.5rem;
    }
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-brand);
    margin-bottom: 1.1rem;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--text-on-brand);
    transform: translateX(3px);
}

.footer-social-btn {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--footer-btn-bg);
    border: 1px solid var(--footer-btn-border);
    color: var(--footer-text);
    transition: all 0.2s ease;
}

.footer-social-btn:hover {
    background: var(--brand-primary);
    border-color: var(--accent-indigo);
    color: var(--text-on-brand);
    transform: translateY(-2px);
}

.footer-contact-card {
    padding: 1.25rem;
    border-radius: 1.1rem;
    background: var(--footer-surface);
    border: 1px solid var(--footer-surface-border);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.84rem;
    color: var(--footer-text);
    line-height: 1.5;
}

.footer-contact-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--footer-icon-bg);
    color: var(--footer-icon-color);
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: var(--footer-text-muted);
}

@media (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row;
    }
}

.floating-top-btn {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-on-brand);
    background: var(--hero-btn-gradient);
    border: none;
    box-shadow: var(--hero-btn-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

@media (min-width: 640px) {
    .floating-top-btn {
        right: 1.75rem;
        bottom: 1.75rem;
        padding: 0.75rem;
    }
}

.floating-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-top-btn:hover {
    box-shadow: var(--hero-btn-shadow-hover);
    filter: brightness(1.06);
    transform: translateY(-2px) scale(1);
}

/* ==========================================================================
   Inner Pages Hero, Breadcrumb, Subject Matrix, Tabs & Quiz Cards
   ========================================================================== */
.inner-page-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem 0 2.25rem;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 15% 15%, var(--hero-mesh-1) 0px, transparent 52%),
        radial-gradient(at 85% 20%, var(--hero-mesh-2) 0px, transparent 50%),
        radial-gradient(at 52% 90%, var(--hero-mesh-3) 0px, transparent 52%);
    border-bottom: 1px solid var(--border-color);
}

.inner-hero-flex {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .inner-hero-flex {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
    }
}

.inner-hero-main {
    min-width: 0;
    flex: 1;
}

.inner-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    list-style: none;
    padding: 0;
}

.inner-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.inner-breadcrumb a:hover {
    color: var(--brand-highlight);
}

.inner-breadcrumb-sep {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--text-muted);
    opacity: 0.65;
    flex-shrink: 0;
}

.inner-breadcrumb-current {
    color: var(--text-main);
    font-weight: 700;
}

.inner-hero-heading-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inner-hero-thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--card-radius);
    object-fit: cover;
    object-position: center top;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--card-shadow);
    flex-shrink: 0;
}

.inner-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
}

.inner-hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 0.55rem;
    max-width: 48rem;
}

.inner-hero-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.inner-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--card-radius);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.inner-stat-pill svg {
    width: 1rem;
    height: 1rem;
    color: var(--brand-highlight);
    flex-shrink: 0;
}

/* Class page compact subject card enhancements */
.class-subject-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.class-subject-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}

.class-subject-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    overflow: hidden;
    border: 1px solid var(--brand-soft-border);
}

.class-subject-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Quiz Card Grid & Modern Quiz Card */
.quiz-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
}

@media (min-width: 640px) {
    .quiz-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .quiz-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.modern-quiz-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.modern-quiz-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--brand-border-hover);
}

.modern-quiz-content {
    min-width: 0;
    flex: 1;
}

.modern-quiz-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.45rem;
}

.quiz-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.14rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.quiz-badge-subject {
    background: var(--brand-soft-bg);
    color: var(--brand-text);
}

.quiz-badge-easy {
    background: var(--status-easy-bg);
    color: var(--status-easy-text);
}

.quiz-badge-medium {
    background: var(--status-medium-bg);
    color: var(--status-medium-text);
}

.quiz-badge-hard {
    background: var(--status-hard-bg);
    color: var(--status-hard-text);
}

.quiz-badge-premium {
    background: var(--premium-gradient);
    color: var(--text-on-brand);
}

.modern-quiz-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-quiz-card:hover .modern-quiz-title {
    color: var(--brand-highlight);
}

.modern-quiz-desc {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modern-quiz-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.modern-quiz-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.modern-quiz-meta-item svg {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.8;
}

.modern-quiz-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modern-quiz-card:hover .modern-quiz-arrow {
    background: var(--brand-primary);
    color: var(--text-on-brand);
    border-color: var(--brand-primary);
}

/* Unit & Sub-unit Tabs (subject.php) */
.unit-tabs-wrapper {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    padding: 0.375rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.unit-tabs-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: max-content;
}

.unit-tab-btn,
.unit-tab-btn.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    background: var(--bg-surface);
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.unit-tabs-wrapper .unit-tab-btn,
.unit-tabs-wrapper .unit-tab-btn.tab-button {
    border-color: transparent !important;
    background: transparent;
}

.unit-tab-btn:hover,
.unit-tab-btn.tab-button:hover {
    color: var(--text-main);
    background: var(--bg-surface-alt);
}

.unit-tab-btn.active,
.unit-tab-btn.is-active,
.unit-tab-btn.tab-button.active,
.unit-tab-btn.tab-button.is-active {
    background: var(--brand-soft-bg) !important;
    color: var(--brand-text) !important;
    border-color: var(--brand-soft-border) !important;
}

.unit-tabs-wrapper .unit-tab-btn.active,
.unit-tabs-wrapper .unit-tab-btn.is-active,
.unit-tabs-wrapper .unit-tab-btn.tab-button.active {
    border-color: transparent !important;
}

/* Mobil Uygulama Tarzı Ünite Seçici */
.mobile-unit-picker {
    position: relative;
    margin-bottom: 1rem;
}

.mobile-unit-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-unit-trigger[aria-expanded="true"] {
    border-color: var(--brand-border-hover);
    box-shadow: var(--card-shadow-hover);
}

.mobile-unit-trigger[aria-expanded="true"] .mobile-unit-chevron {
    transform: rotate(180deg);
}

.mobile-unit-chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.mobile-unit-backdrop {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    touch-action: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.mobile-unit-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-unit-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.16);
    padding: 0.65rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.mobile-unit-sheet.is-open {
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-unit-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: var(--border-color);
    margin: 0 auto 0.65rem;
}

.mobile-unit-sheet-drag-zone {
    touch-action: none;
    user-select: none;
    cursor: grab;
}

.mobile-unit-sheet-drag-zone:active {
    cursor: grabbing;
}

.mobile-unit-sheet-list {
    min-height: 34vh;
    max-height: 55vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: min-height 0.25s ease, max-height 0.25s ease;
}

.mobile-unit-sheet.is-expanded .mobile-unit-sheet-list {
    min-height: 75vh;
    max-height: 82vh;
}

.mobile-sub-unit-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.1rem 0 0.25rem 1.25rem;
    padding-left: 0.7rem;
    border-left: 2px solid var(--border-color);
}

.mobile-sub-unit-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.mobile-sub-unit-option:hover {
    background: var(--bg-surface-alt);
    color: var(--text-main);
}

.mobile-sub-unit-option.is-active {
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border-color: var(--brand-soft-border);
}

@media (max-width: 767px) {
    .unit-tabs-wrapper {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-unit-picker,
    .mobile-unit-backdrop,
    .mobile-unit-sheet {
        display: none !important;
    }
}

/* Ünite Geçiş Eğitimi (Spotlight + Popover) */
.unit-guide-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.18s ease;
}

.unit-guide-help-btn:hover {
    color: var(--brand-text);
    border-color: var(--brand-soft-border);
    background: var(--brand-soft-bg);
}

.unit-guide-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.unit-guide-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.unit-guide-spotlight {
    position: relative !important;
    z-index: 86 !important;
    box-shadow: 0 0 0 3px var(--brand-highlight), 0 14px 32px rgba(15, 23, 42, 0.28) !important;
}

.unit-guide-popover {
    position: fixed;
    z-index: 90;
    width: min(22rem, calc(100vw - 2rem));
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow-hover);
    padding: 1rem 1.1rem;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.unit-guide-popover.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-unit-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: 1px solid transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.mobile-unit-option:hover {
    background: var(--bg-surface-alt);
}

.mobile-unit-option.is-active {
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border-color: var(--brand-soft-border);
}

.mobile-unit-num {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
}

.mobile-unit-option.is-active .mobile-unit-num {
    background: var(--brand-primary);
    color: var(--text-on-brand);
}

.sub-unit-tabs-wrapper {
    position: relative;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.sub-unit-tab-btn.sub-tab-button {
    display: inline-flex;
    align-items: center;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border: 1px solid transparent !important;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sub-unit-tab-btn.sub-tab-button:hover {
    color: var(--text-main);
    background: var(--bg-surface);
}

.sub-unit-tab-btn.sub-tab-button.active {
    background: var(--brand-primary) !important;
    color: var(--text-on-brand) !important;
    border-color: var(--brand-primary) !important;
}

.unit-scroll-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 2.25rem;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.unit-scroll-arrow.left {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface) 60%, transparent);
}

.unit-scroll-arrow.right {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface) 60%, transparent);
}

.sub-unit-scroll-arrow.left {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface-alt) 60%, transparent);
}

.sub-unit-scroll-arrow.right {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface-alt) 60%, transparent);
}

.unit-scroll-arrow-inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Topic lessons mini cards in subject.php */
.lesson-mini-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    text-decoration: none;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.lesson-mini-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: var(--brand-border-hover);
}

.lesson-mini-card:hover .lesson-mini-title {
    color: var(--brand-highlight);
}

/* Filter Bar & Controls (latest-quizzes.php) */
.modern-filter-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    padding: 1.15rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.75rem;
}

.modern-filter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .modern-filter-form {
        flex-direction: row;
        align-items: center;
    }
}

.modern-filter-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.modern-filter-selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .modern-filter-selects {
        display: flex;
        align-items: center;
    }
}

.modern-filter-input,
.modern-filter-select {
    width: 100%;
    padding: 0.625rem 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-filter-input:focus,
.modern-filter-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: var(--brand-focus-ring);
}

.modern-filter-select {
    padding-right: 2.25rem;
    appearance: none;
    min-width: 10.5rem;
}

.modern-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.modern-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.625rem 1.15rem;
    border-radius: 0.5rem;
    background: var(--brand-primary);
    color: var(--text-on-brand);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--brand-primary);
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.modern-filter-btn:hover {
    background: var(--brand-primary-hover);
}

.modern-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.modern-filter-reset:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Empty State Box & Pagination */
.empty-state-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
}

.empty-state-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
}

.modern-pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.modern-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.modern-page-btn {
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modern-page-btn:hover {
    border-color: var(--brand-highlight);
    color: var(--brand-text);
}

.modern-page-btn.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-on-brand);
}

.modern-page-info {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* =====================================================
   Quiz & Result Screen Styles
   ===================================================== */
.quiz-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--quiz-bar-shadow);
}

.quiz-start-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow-hover);
    color: var(--text-main);
}

.quiz-start-card .modern-filter-btn,
.quiz-start-card .modern-filter-reset {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.quiz-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.5rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.quiz-action-icon-btn:hover {
    color: var(--text-main);
    border-color: var(--brand-border-hover);
    background: var(--brand-soft-bg);
}

.quiz-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--status-hard-text);
    background: var(--status-hard-bg);
    border: 1px solid transparent;
    transition: all 0.18s ease;
    cursor: pointer;
}

.quiz-report-btn:hover {
    border-color: var(--status-hard-text);
}

.quiz-skip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-soft-border);
    transition: all 0.18s ease;
    cursor: pointer;
}

.quiz-skip-btn:hover {
    background: var(--brand-soft-bg-hover);
    border-color: var(--brand-border-hover);
}

.quiz-skip-btn.is-skipped {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-on-brand);
}

.quiz-skip-btn.is-skipped:hover {
    background: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
}

.quiz-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-soft-border);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quiz-page-header {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 0 1.45rem;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 15% 15%, var(--hero-mesh-1) 0px, transparent 52%),
        radial-gradient(at 85% 20%, var(--hero-mesh-2) 0px, transparent 50%),
        radial-gradient(at 52% 90%, var(--hero-mesh-3) 0px, transparent 52%);
    border-bottom: 1px solid var(--border-color);
}

.quiz-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .quiz-workspace-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 1.75rem;
    }
}

.quiz-main-col {
    min-width: 0;
}

.quiz-sidebar-col {
    display: none;
}

@media (min-width: 1024px) {
    .quiz-sidebar-col {
        display: block;
        position: sticky;
        top: 5.25rem;
    }
}

.quiz-cockpit-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.quiz-progress-track {
    width: 100%;
    height: 0.45rem;
    border-radius: 9999px;
    background: var(--bg-surface-alt);
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: var(--brand-gradient);
    transition: width 0.25s ease;
}

.quiz-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.quiz-mini-stat {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.35rem;
    text-align: center;
}

.quiz-mini-stat-val {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
}

.quiz-mini-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.quiz-optic-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    max-height: 16.5rem;
    overflow-y: auto;
    padding: 0.2rem;
}

.quiz-optic-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 2.2rem;
    padding: 0.25rem 0.15rem;
    border-radius: 0.5rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1.1;
}

.quiz-optic-cell:hover {
    border-color: var(--brand-border-hover);
    background: var(--brand-soft-bg);
}

.quiz-optic-cell .optic-num {
    font-size: 0.7rem;
    font-weight: 700;
}

.quiz-optic-cell .optic-ans {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
}

.quiz-optic-cell.is-current {
    box-shadow: 0 0 0 2px var(--brand-highlight);
    border-color: var(--brand-highlight);
}

.quiz-optic-cell.is-answered {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-on-brand);
}

.quiz-optic-cell.is-answered .optic-ans {
    color: rgba(255, 255, 255, 0.9);
}

.quiz-optic-cell.is-skipped {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.28);
    color: var(--status-medium-text);
}

.quiz-optic-cell.is-skipped .optic-ans {
    color: var(--status-medium-text);
}

.quiz-optic-cell.is-correct {
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.28);
    color: var(--status-easy-text);
}

.quiz-optic-cell.is-correct .optic-ans {
    color: var(--status-easy-text);
}

.quiz-optic-cell.is-wrong {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.24);
    color: var(--status-hard-text);
}

.quiz-optic-cell.is-wrong .optic-ans {
    color: var(--status-hard-text);
}

/* Sonuç ve Sınav Sayfası Gerçekçi Optik Form Satırları */
.result-optic-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: none;
    overflow-y: visible;
}

.quiz-workspace-grid.is-single-mode .result-optic-list {
    max-height: 18.5rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.result-optic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.16s ease;
    text-align: left;
}

.result-optic-row:hover {
    border-color: var(--brand-border-hover);
    background: var(--brand-soft-bg);
}

.result-optic-row.is-current {
    border-color: var(--brand-highlight);
    box-shadow: 0 0 0 2px var(--brand-soft-bg);
}

.result-optic-row.is-row-empty {
    border-color: rgba(245, 158, 11, 0.3);
}

.result-optic-num {
    min-width: 1.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.result-optic-bubbles {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.result-optic-bubble {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.result-optic-bubble.is-user-correct {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: #ffffff;
}

.result-optic-bubble.is-user-wrong {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: #ffffff;
}

.result-optic-bubble.is-correct-answer {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--accent-emerald);
    color: var(--status-easy-text);
}

.result-optic-bubble.is-selected {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--text-on-brand);
}

.result-optic-row.is-skipped {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.06);
}

.quiz-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.62rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

.quiz-status-pill.is-answered {
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border-color: var(--brand-soft-border);
}

.quiz-status-pill.is-skipped {
    background: var(--status-medium-bg);
    color: var(--status-medium-text);
    border-color: rgba(245, 158, 11, 0.35);
}

.quiz-status-pill.is-correct {
    background: var(--status-easy-bg);
    color: var(--status-easy-text);
    border-color: rgba(16, 185, 129, 0.35);
}

.quiz-status-pill.is-wrong {
    background: var(--status-hard-bg);
    color: var(--status-hard-text);
    border-color: rgba(239, 68, 68, 0.35);
}

.quiz-view-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.625rem;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
}

.quiz-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.78rem;
    border-radius: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.quiz-view-btn:hover {
    color: var(--text-main);
}

.quiz-view-btn.is-active {
    background: var(--bg-surface);
    color: var(--brand-text);
    box-shadow: var(--nav-active-shadow);
}

.quiz-single-nav {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.quiz-single-mode .quiz-single-nav {
    display: flex;
}

.quiz-submit-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.625rem;
    background: var(--brand-primary);
    color: var(--text-on-brand) !important;
    font-size: 0.84rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quiz-submit-cta:hover {
    background: var(--brand-primary-hover);
    opacity: 1;
}

.quiz-question-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    scroll-margin-top: 6rem;
}

.quiz-question-card mjx-container {
    font-size: 102% !important;
}

.quiz-question-card mjx-container[display="true"] {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 0.2rem;
}

.quiz-question-card table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
    .quiz-question-card {
        scroll-margin-top: 5.5rem;
    }
}

@media (max-width: 639px) {
    .quiz-question-card {
        padding: 1rem 0.875rem;
        margin-bottom: 1rem;
    }

    .quiz-question-stem {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .quiz-option-row {
        padding: 0.65rem 0.7rem;
    }

    .quiz-option-letter {
        width: 1.75rem;
        height: 1.75rem;
        margin-right: 0.6rem;
        margin-top: 0.05rem;
    }

    .quiz-option-row .option-text {
        font-size: 0.90625rem;
        line-height: 1.55;
    }
}

.quiz-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-question-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--brand-soft-bg);
    color: var(--brand-text);
    border: 1px solid var(--brand-soft-border);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.28rem 0.72rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.quiz-option-row {
    display: flex;
    align-items: flex-start;
    padding: 0.6rem 0.75rem;
    border-radius: var(--card-radius) !important;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-option-row:hover {
    border-color: var(--brand-border-hover);
    background: var(--quiz-option-hover-bg) !important;
}

.quiz-option-row.selected {
    border-color: var(--brand-highlight) !important;
    background: var(--quiz-option-selected-bg) !important;
    box-shadow: var(--quiz-option-selected-ring);
}

.quiz-option-letter {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.quiz-option-row:hover .quiz-option-letter {
    border-color: var(--brand-border-hover);
    color: var(--brand-text);
}

.quiz-option-row.selected .quiz-option-letter {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--text-on-brand) !important;
}

.quiz-option-row.quiz-option-correct {
    border-color: rgba(16, 185, 129, 0.35) !important;
    background: var(--status-correct-bg) !important;
    cursor: default;
}

.quiz-option-row.quiz-option-correct .quiz-option-letter {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: var(--status-easy-text) !important;
}

.quiz-option-row.quiz-option-wrong {
    border-color: rgba(239, 68, 68, 0.32) !important;
    background: var(--status-wrong-bg) !important;
    cursor: default;
}

.quiz-option-row.quiz-option-wrong .quiz-option-letter {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.32) !important;
    color: var(--status-hard-text) !important;
}

.quiz-submit-bar {
    position: sticky;
    bottom: 0.75rem;
    z-index: 30;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow-hover);
    margin: 0;
}

.result-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.result-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .result-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.result-stat-box {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    padding: 0.75rem 0.65rem;
    text-align: center;
}

.quiz-explanation-box {
    margin-top: 0.95rem;
    padding: 0.875rem 1rem;
    background: var(--quiz-explain-bg);
    border: 1px solid var(--quiz-explain-border);
    border-left: 3px solid var(--quiz-explain-accent);
    border-radius: var(--card-radius) !important;
}

.bsol-open {
    background: var(--brand-soft-bg) !important;
    color: var(--brand-text) !important;
    border: 1px solid var(--brand-soft-border) !important;
    box-shadow: none !important;
    font-size: 0.78rem !important;
    padding: 0.38rem 0.85rem !important;
    border-radius: 0.5rem !important;
}

.bsol-open:hover {
    background: var(--brand-soft-bg-hover) !important;
    border-color: var(--brand-border-hover) !important;
    box-shadow: none !important;
    transform: none !important;
}

.bsol-open .bsol-ready-badge {
    background: var(--status-easy-bg) !important;
    color: var(--status-easy-text) !important;
}

/* =====================================================
   Blog Card & Auth Showcase
   ===================================================== */
.modern-blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modern-blog-card:hover {
    border-color: var(--brand-border-hover);
    box-shadow: var(--card-shadow-hover);
}

.modern-blog-card:hover .modern-blog-title {
    color: var(--brand-highlight);
}

.modern-blog-title {
    color: var(--text-main);
    transition: color 0.2s ease;
}

.modern-blog-card .border-t,
.dark .border-gray-100 {
    border-color: var(--border-color) !important;
}

.auth-showcase-panel {
    background: var(--brand-gradient);
    color: var(--text-on-brand);
}

/* Global Marka Gradyanı Eşitleme (Giriş/Kayıt/Quiz/Blog/Öğrenci Paneli) */
.from-indigo-600.to-blue-600:not(.bg-clip-text),
.from-indigo-600.to-blue-700:not(.bg-clip-text),
.from-indigo-500.to-blue-600:not(.bg-clip-text),
.from-blue-600.to-purple-600:not(.bg-clip-text),
.from-blue-500.to-purple-600:not(.bg-clip-text),
.from-blue-500.to-purple-500:not(.bg-clip-text),
.from-blue-500.to-indigo-600:not(.bg-clip-text),
.from-indigo-500.via-purple-500.to-pink-500:not(.bg-clip-text),
.from-blue-600.via-purple-600.to-pink-600:not(.bg-clip-text),
.from-rose-600.to-indigo-600:not(.bg-clip-text) {
    background-image: var(--brand-gradient) !important;
}

.bg-clip-text.from-indigo-600.to-blue-600,
.bg-clip-text.from-blue-600.to-purple-600 {
    background-image: var(--brand-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

/* =====================================================
   Student Portal Harmonization
   ===================================================== */
.student-portal-body {
    background-color: var(--bg-page) !important;
    color: var(--text-main);
}

.student-portal-body .bg-white.dark\:bg-gray-800 {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
}

.student-portal-body .from-blue-600.to-purple-600,
.student-portal-body .from-indigo-500.via-purple-500.to-pink-500,
.student-portal-body .from-blue-500.to-indigo-600 {
    background-image: var(--brand-gradient) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--showcase-shadow) !important;
}

.student-portal-body .from-blue-500.to-purple-500 {
    background-image: var(--student-progress-gradient) !important;
}

/* =====================================================
   Hero Vektörel İllüstrasyon & Yüzen Rozetler
   ===================================================== */
.hero-visual-stage {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    padding: 0.5rem 0.5rem;
}

.hero-visual-glow {
    position: absolute;
    inset: 8% 6%;
    border-radius: 9999px;
    background: radial-gradient(circle at 48% 46%, var(--hero-visual-glow-1), var(--hero-visual-glow-2) 48%, var(--hero-visual-glow-3) 80%, transparent 100%);
    filter: blur(28px);
    pointer-events: none;
}

.hero-illustration-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-float-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    background: var(--hero-float-bg);
    border: 1px solid var(--hero-float-border);
    box-shadow: var(--hero-float-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-float-badge-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-float-top-left {
    top: 1.15rem;
    left: 0;
    animation-delay: 0s;
}

.hero-float-top-left .hero-float-badge-icon {
    background: var(--badge-blue-bg);
    color: var(--badge-blue-text);
}

.hero-float-top-right {
    top: 2rem;
    right: -0.25rem;
    animation-delay: -2s;
}

.hero-float-top-right .hero-float-badge-icon {
    background: var(--badge-pink-bg);
    color: var(--badge-pink-text);
}

.hero-float-bottom-left {
    bottom: 1.15rem;
    left: 0.25rem;
    animation-delay: -4s;
}

.hero-float-bottom-left .hero-float-badge-icon {
    background: var(--badge-purple-bg);
    color: var(--badge-purple-text);
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-float-badge {
        animation: none;
    }
}

/* =====================================================
   MEB Question Format & MathJax Presentation Styles
   ===================================================== */
/* Scoped web presentation; does not style legacy questions or reproduce ministry branding. */

/* 1. Global & Sayfa Düzeyinde Yatay Kaymayı (Wobble) Önleme */
html, body {
    max-width: 100% !important;
    overflow-x: clip !important;
}

/* 2. Soru Gövdesi ve İfade Alanı (Masaüstünde tamamen doğal ve taşmasız) */
.meb-stimulus {
    margin: 0 0 1rem;
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.meb-stimulus p {
    margin: 0 0 .65rem;
}
.meb-task {
    margin: 1rem 0 .75rem;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.meb-task p {
    margin: 0 0 .5rem;
}
.meb-task strong, .meb-task b { font-weight: 700; }
.meb-task u { text-underline-offset: .15em; }
.meb-stimulus ol { list-style-type: upper-roman; padding-inline-start: 1.8em; margin: .75rem 0; }
.meb-stimulus ol > li::marker { font-weight: 700; }
.meb-stimulus ul { list-style-type: disc; padding-inline-start: 1.6em; }
.meb-stimulus li { padding-inline-start: .25rem; margin: .25rem 0; }

/* 3. Tablolar (Bağ Enerjisi, Deney Verileri vb.) */
.meb-stimulus table { border-collapse: collapse; width: 100%; margin: .75rem 0; }
.meb-stimulus caption { text-align: start; font-weight: 600; padding: .35rem 0; }
.meb-stimulus th, .meb-stimulus td {
    border: 1px solid var(--border-color);
    padding: .5rem .65rem;
    text-align: left;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
}
.meb-stimulus th {
    font-weight: 600;
    background-color: var(--bg-surface-alt);
    color: var(--text-main);
}

/* 4. MathJax Formül ve Kimyasal Tepkime Kuralları */
/* Inline (satır içi) formüller asla scrollbar almaz */
mjx-container:not([display="true"]) {
    display: inline-block !important;
    vertical-align: middle !important;
    overflow: visible !important;
}

/* Blok ($$...$$) formüller */
mjx-container[display="true"] {
    display: block !important;
    margin: 0.5rem 0 !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; /* Firefox: scrollbar gizli */
    -ms-overflow-style: none !important; /* IE / Eski Edge */
}
mjx-container[display="true"]::-webkit-scrollbar {
    display: none !important; /* Chrome / Safari / Edge: scrollbar çubuğu gizli */
    width: 0 !important;
    height: 0 !important;
}

/* Şıklar / Seçenekler metin kapsayıcısı */
.option-text {
    max-width: 100%;
}

/* 5. Mobil Cihazlara Özel Dokunmatik İzolasyon (Gerektiğinde parmakla kaydırılabilir, asla scrollbar görünmez) */
@media (max-width: 640px) {
    .meb-stimulus th, .meb-stimulus td {
        padding: .4rem .45rem;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
    .meb-stimulus table {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: .8125rem;
        line-height: 1.4;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .meb-stimulus table::-webkit-scrollbar {
        display: none;
    }

    /* Mobilde uzun basamaklı tepkimelerin kartı patlatmaması için parmakla akıcı kaydırma */
    .meb-stimulus p,
    .meb-task p,
    .meb-stimulus li,
    .option-text {
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Mobilde scrollbar çubuğu görünmez */
        -ms-overflow-style: none;
    }
    .meb-stimulus p::-webkit-scrollbar,
    .meb-task p::-webkit-scrollbar,
    .meb-stimulus li::-webkit-scrollbar,
    .option-text::-webkit-scrollbar {
        display: none; /* Çubuk yok, sadece dokunmatik kaydırma */
        width: 0;
        height: 0;
    }

    /* Mobilde formül fontunu metin boyutuna uyumlu hale getirme */
    mjx-container {
        font-size: 96% !important;
    }
}

/* ==========================================================================
   Mobil Tipografi & Kompakt Ölçekleme (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
    .brand-title {
        font-size: 1.02rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }

    .hero-redesign h1 {
        font-size: 1.75rem;
        line-height: 1.22;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 0.85rem;
        padding: 0.68rem 1.15rem;
    }

    .section-eyebrow {
        font-size: 0.68rem;
        padding: 0.24rem 0.7rem;
        margin-bottom: 0.55rem;
    }

    .section-header-row {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .section-more-link {
        font-size: 0.78rem;
        padding: 0.45rem 0.85rem;
    }

    .pro-card-body {
        padding: 0.75rem 0.9rem;
    }

    .pro-card-title {
        font-size: 0.92rem;
    }

    .pro-glass-badge {
        font-size: 0.66rem;
        padding: 0.22rem 0.6rem;
    }

    .seo-subject-card {
        padding: 0.85rem 0.95rem;
    }

    .seo-subject-title {
        font-size: 0.9rem;
    }

    .seo-subject-count {
        font-size: 0.72rem;
    }

    .stat-chip,
    .pro-quiz-subject-pill {
        font-size: 0.68rem;
        padding: 0.2rem 0.55rem;
    }

    .modern-blog-title {
        font-size: 0.88rem;
    }

    .seo-faq-btn {
        font-size: 0.9rem;
        padding: 0.95rem 1.05rem;
    }

    .seo-faq-answer {
        font-size: 0.85rem;
        padding: 0.75rem 1.05rem 1rem;
    }

    .seo-content-box {
        padding: 1.25rem 1.15rem;
    }

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

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

    .seo-content-prose p {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .inner-hero-title {
        font-size: 1.35rem;
    }

    .inner-hero-desc {
        font-size: 0.85rem;
    }

    .inner-stat-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .footer-cta-banner {
        padding: 1.25rem 1.15rem;
    }
}

/* ==========================================================================
   Calculators Module Grids & Responsive Rows
   ========================================================================== */
.calc-cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .calc-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .calc-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.calc-related-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .calc-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .calc-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.calc-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .calc-workspace-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.calc-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

.calc-input-row-label {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .calc-input-row {
        grid-template-columns: minmax(0, 1fr) 88px 88px 72px;
    }

    .calc-input-row-label {
        grid-column: auto;
    }
}

.calc-dynamic-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
}

.calc-dynamic-row-name {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .calc-dynamic-row {
        grid-template-columns: minmax(0, 1fr) 88px 96px 36px;
    }

    .calc-dynamic-row-name {
        grid-column: auto;
    }
}

.calc-page-stack {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.calc-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.15rem;
    padding: 1.35rem;
    box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
    .calc-panel {
        padding: 1.65rem;
    }
}

@media (min-width: 1024px) {
    .calc-panel-sticky {
        position: sticky;
        top: 5.5rem;
    }
}

.calc-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.calc-score-banner {
    background: var(--hero-btn-gradient);
    color: var(--text-on-brand);
    border-radius: 1rem;
    padding: 1.4rem 1.25rem;
    text-align: center;
    margin-bottom: 1rem;
}

.calc-score-value {
    font-size: clamp(2.15rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0.35rem 0;
}

.calc-status-pill {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.calc-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.calc-mini-stats-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.calc-mini-stat-box {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.85rem 0.65rem;
    text-align: center;
}

.calc-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.calc-field {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-field:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.calc-primary-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--hero-btn-gradient);
    color: var(--text-on-brand);
    border: none;
    cursor: pointer;
    box-shadow: var(--hero-btn-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.calc-primary-btn:hover {
    filter: brightness(1.05);
    box-shadow: var(--hero-btn-shadow-hover);
    transform: translateY(-1px);
}

.calc-del-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    border: 1px solid transparent;
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.calc-del-btn:hover {
    background: rgba(244, 63, 94, 0.2);
}

.calc-row-head {
    display: none;
}

@media (min-width: 640px) {
    .calc-row-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 88px 96px 36px;
        gap: 0.65rem;
        padding: 0 0.9rem 0.45rem;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
    }
}

.calc-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    margin-top: 0.85rem;
}

.calc-progress-fill {
    height: 100%;
    border-radius: 9999px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.calc-preset-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.calc-preset-btn {
    padding: 0.38rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.calc-preset-btn:hover,
.calc-preset-btn.is-active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.calc-copy-btn {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
}

.calc-copy-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.calc-section-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary);
    margin: 0.5rem 0 0.25rem;
}

.calc-quick-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.calc-quick-nav::-webkit-scrollbar {
    display: none;
}

.calc-quick-pill {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.calc-quick-pill:hover {
    border-color: var(--brand-primary);
    color: var(--text-main);
}

.calc-quick-pill.is-active {
    background: var(--hero-btn-gradient);
    border-color: transparent;
    color: #ffffff;
}

.calc-breakdown-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.calc-breakdown-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-main);
}

.calc-breakdown-bar-bg {
    width: 100%;
    height: 5px;
    border-radius: 9999px;
    background: var(--bg-surface-alt);
    overflow: hidden;
    margin-top: 0.2rem;
}

.calc-breakdown-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--hero-btn-gradient);
    transition: width 0.2s ease;
}

/* Tercih Robotu (Lise & Üniversite Taban Puanları) */
.pref-robot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.08);
}

.pref-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .pref-filter-bar {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.pref-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 768px) {
    .pref-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pref-item-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.pref-item-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.pref-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.pref-badge-reachable {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.pref-badge-borderline {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.pref-badge-reach {
    background: rgba(100, 116, 139, 0.14);
    color: var(--text-muted);
}
