/* ==========================================================================
   ANALÍZIS 1 - BME VIK JEGYZET PORTÁL
   Styling System: Cyber-Academic Glassmorphism & High-Contrast Dark Mode
   ========================================================================== */

:root {
    --bg-base: #060913;
    --bg-surface: #0c1222;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(23, 34, 61, 0.85);
    --bg-card-active: rgba(30, 45, 80, 0.9);
    
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.35);
    --primary-hover: #7dd3fc;
    
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.35);
    
    --emerald: #34d399;
    --emerald-glow: rgba(52, 211, 153, 0.3);
    
    --amber: #fbbf24;
    --amber-glow: rgba(251, 191, 36, 0.3);
    
    --rose: #f43f5e;
    --rose-glow: rgba(244, 63, 94, 0.3);
    
    --purple: #c084fc;
    --purple-glow: rgba(192, 132, 252, 0.3);

    --border: rgba(148, 163, 184, 0.12);
    --border-bright: rgba(56, 189, 248, 0.35);
    --border-accent: rgba(129, 140, 248, 0.3);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradients & Noise Overlay */
.site-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(129, 140, 248, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 70%, rgba(192, 132, 252, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 85%, rgba(52, 211, 153, 0.05) 0%, transparent 45%);
}

.site-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.page-container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 80px 20px;
}

/* Subpage Navigation Bar */
.anal-nav {
    position: sticky;
    top: 64px; /* below global header */
    z-index: 90;
    background: rgba(12, 18, 34, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.25));
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-link-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-link-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.25));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(20, 29, 58, 0.7));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
}

.hero-badge.gold {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--amber);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 80%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 700px;
    margin-bottom: 24px;
}

.hero-stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.hero-stat-pill i {
    color: var(--primary);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.hero-banner-img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-bright);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--primary-glow);
    transition: transform var(--transition-smooth);
}

.hero-banner-img:hover {
    transform: scale(1.04) rotate(1deg);
}

/* Main Section Tabs */
.main-tabs-wrapper {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.tab-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.tab-btn.active .tab-count-badge {
    background: var(--primary);
    color: #060913;
    font-weight: 700;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn var(--transition-smooth);
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MODULE 1: THEORETICAL CURRICULUM (ELMÉLET)
   ========================================================================== */
.theory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.theory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.theory-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.08);
}

.theory-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.theory-badge-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chapter-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.theory-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.theory-source-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 4px;
}

.theory-section-block {
    margin-bottom: 24px;
}

.theory-section-block:last-child {
    margin-bottom: 0;
}

.theory-h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theory-h3 i {
    color: var(--primary);
    width: 18px;
    height: 18px;
}

.theory-text {
    color: #cbd5e1;
    font-size: 0.96rem;
    margin-bottom: 12px;
}

/* Callout Boxes (Definition, Theorem, Remark, Warning) */
.box-def, .box-theorem, .box-remark, .box-example, .box-trap {
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 16px 0;
    border-left: 4px solid;
    position: relative;
    background: rgba(15, 23, 42, 0.6);
}

.box-def {
    border-left-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
}

.box-def-header, .box-theorem-header, .box-remark-header, .box-example-header, .box-trap-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.box-def-header { color: var(--primary); }

.box-theorem {
    border-left-color: var(--accent);
    background: rgba(129, 140, 248, 0.06);
}
.box-theorem-header { color: var(--accent); }

.box-remark {
    border-left-color: var(--purple);
    background: rgba(192, 132, 252, 0.06);
}
.box-remark-header { color: var(--purple); }

.box-example {
    border-left-color: var(--emerald);
    background: rgba(52, 211, 153, 0.06);
}
.box-example-header { color: var(--emerald); }

.box-trap {
    border-left-color: var(--rose);
    background: rgba(244, 63, 94, 0.08);
}
.box-trap-header { color: var(--rose); }

/* Math Blocks and Formatting */
.math-display {
    overflow-x: auto;
    padding: 12px 14px;
    margin: 12px 0;
    background: rgba(6, 9, 19, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    text-align: center;
}

/* Comparison Tables */
.theory-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.theory-table th, .theory-table td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.theory-table th {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.theory-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   MODULE 2: ZH EXAM SOLUTIONS (RÉSZLETES LEVEZETÉSEK)
   ========================================================================== */
.zh-selector-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.zh-variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.zh-variant-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.08);
}

.zh-variant-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.22));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast);
}

.task-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

.task-card-header {
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.task-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #060913;
    font-weight: 800;
    font-family: var(--font-heading);
    border-radius: 8px;
}

.task-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.task-score-pill {
    padding: 5px 12px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-full);
    color: var(--emerald);
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.task-card-body {
    padding: 24px 28px;
}

.problem-statement-box {
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.subtask-box {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}

.subtask-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subtask-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.subtask-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}

.method-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    background: rgba(129, 140, 248, 0.12);
    border: 1px solid rgba(129, 140, 248, 0.3);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 12px;
    position: relative;
    transition: all var(--transition-fast);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(56, 189, 248, 0.25);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-hover);
}

.step-points {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--amber);
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   MODULE 3: VISUAL LAB (VIZUÁLIS ÉS INTERAKTÍV LABORATÓRIUM)
   ========================================================================== */
.lab-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.lab-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.lab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
}

.lab-title-group h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.lab-title-group p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lab-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(6, 9, 19, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 20px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-item label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.control-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    outline: none;
}

.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.control-value {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--primary);
    min-width: 48px;
    font-weight: 700;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    color: var(--primary-hover);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.control-btn:hover {
    background: var(--primary);
    color: #060913;
    box-shadow: 0 0 12px var(--primary-glow);
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    background: #050811;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.lab-explanation {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ==========================================================================
   MODULE 4: QUIZ & PRACTICE (KVÍZ & GYAKORLÁS)
   ========================================================================== */
.quiz-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.quiz-score-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-badge {
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    transition: border-color var(--transition-fast);
}

.question-card:hover {
    border-color: rgba(129, 140, 248, 0.3);
}

.question-topic-pill {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.option-btn {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.94rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-btn:hover:not(.disabled) {
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--primary);
    color: var(--text-primary);
}

.option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Question feedback states */
.option-btn.correct {
    background: rgba(52, 211, 153, 0.15) !important;
    border-color: var(--emerald) !important;
    color: #34d399 !important;
}

.option-btn.wrong {
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: var(--rose) !important;
    color: #f43f5e !important;
}

.option-btn.disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.question-feedback {
    display: none;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-top: 12px;
    animation: fadeIn var(--transition-fast);
}

.question-feedback.show {
    display: block;
}

.question-feedback.correct {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #a7f3d0;
}

.question-feedback.wrong {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fecdd3;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
    .hero-visual {
        order: -1;
    }
    .hero-banner-img {
        width: 160px;
        height: 160px;
    }
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .page-container {
        padding: 16px 12px 60px 12px;
    }
    .theory-card, .task-card-body, .task-card-header, .lab-card, .question-card {
        padding: 16px;
    }
    .hero-title {
        font-size: 1.65rem;
    }
    .main-tabs-wrapper {
        gap: 6px;
    }
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}


.task-variant-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-mono);
}

.task-variant-badge.potzh {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: var(--amber);
}
