/* ==========================================================================
   PROGRAMOZÁS ALAPJAI 3 - KIS ZH FELKÉSZÍTŐ 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.78);
    --bg-card-hover: rgba(23, 34, 61, 0.88);
    --bg-card-active: rgba(30, 45, 80, 0.95);
    
    --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.35);
    --emerald-bg: rgba(52, 211, 153, 0.12);
    
    --amber: #fbbf24;
    --amber-glow: rgba(251, 191, 36, 0.35);
    --amber-bg: rgba(251, 191, 36, 0.12);
    
    --rose: #f43f5e;
    --rose-glow: rgba(244, 63, 94, 0.35);
    --rose-bg: rgba(244, 63, 94, 0.12);
    
    --purple: #c084fc;
    --purple-glow: rgba(192, 132, 252, 0.3);

    --border: rgba(148, 163, 184, 0.14);
    --border-bright: rgba(56, 189, 248, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', 'Fira Code', monospace;
    
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(129, 140, 248, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 10% 40%, rgba(52, 211, 153, 0.08), transparent);
    background-attachment: fixed;
}

/* Background grid effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand-badge {
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.nav-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-brand h1 span {
    color: var(--primary);
}

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.nav-back-link:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.08);
}

/* ==========================================================================
   HERO / BANNER
   ========================================================================== */

.page-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.page-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.subject-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subject-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.subject-pill.active {
    background: rgba(52, 211, 153, 0.12);
    color: var(--emerald);
    border-color: rgba(52, 211, 153, 0.35);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-title span {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 820px;
    line-height: 1.55;
}

/* ==========================================================================
   KZH SELECTOR TABS (1 - 6)
   ========================================================================== */

.kzh-tabs-wrapper {
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.kzh-tabs {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.kzh-tab-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-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.kzh-tab-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.kzh-tab-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.kzh-tab-badge {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.kzh-tab-btn.active .kzh-tab-badge {
    background: var(--primary);
    color: #04101e;
    font-weight: 700;
}

.kzh-tab-btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ==========================================================================
   SUB-NAVIGATION (Igaz-Hamis, Feleletválasztós, Kódolás, IMSc)
   ========================================================================== */

.subnav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.subnav-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.subnav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subnav-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.subnav-pill.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border: 1px solid var(--border-bright);
}

.subnav-pill .badge {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
}

.subnav-pill.active .badge {
    background: var(--primary);
    color: #04101e;
    font-weight: 700;
}

/* Search bar */
.search-box-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 240px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   STATS & PROGRESS BANNER
   ========================================================================== */

.quiz-stats-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stats-items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.highlight {
    color: var(--primary);
}

.stat-value.success {
    color: var(--emerald);
}

.stats-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Filter pills bar */
.filter-pills-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--primary);
    color: #04101e;
    border-color: var(--primary);
}

/* ==========================================================================
   QUESTION CARD: TRUE / FALSE
   ========================================================================== */

.quiz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 36px;
}

.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.quiz-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.quiz-card.answered-correct {
    border-color: var(--emerald);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.06), var(--bg-card));
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
}

.quiz-card.answered-wrong {
    border-color: var(--rose);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.06), var(--bg-card));
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.12);
}

.quiz-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-category-badge {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.quiz-status-pill {
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.quiz-status-pill.correct {
    color: var(--emerald);
}

.quiz-status-pill.wrong {
    color: var(--rose);
}

.quiz-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 18px;
}

/* TF Buttons */
.tf-buttons-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.tf-btn {
    flex: 1;
    max-width: 180px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.tf-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.tf-btn.selected-true {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--emerald);
    color: #fff;
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.tf-btn.selected-false {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--rose);
    color: #fff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   QUESTION CARD: MULTIPLE CHOICE
   ========================================================================== */

.code-snippet-box {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
}

.mc-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.mc-option-btn {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.mc-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.mc-option-prefix {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary);
    width: 24px;
    flex-shrink: 0;
}

.mc-option-btn.correct {
    background: rgba(52, 211, 153, 0.16) !important;
    border-color: var(--emerald) !important;
    color: #fff !important;
    font-weight: 600;
}

.mc-option-btn.wrong {
    background: rgba(244, 63, 94, 0.16) !important;
    border-color: var(--rose) !important;
    color: #fff !important;
}

/* ==========================================================================
   EXPLANATION BOX (Slide-down feedback)
   ========================================================================== */

.quiz-explanation-box {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-bright);
    font-size: 0.92rem;
    line-height: 1.55;
    animation: fadeIn 0.25s ease forwards;
}

.quiz-explanation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 6px;
}

.quiz-explanation-box.correct {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.06);
}

.quiz-explanation-box.correct .quiz-explanation-header {
    color: var(--emerald);
}

.quiz-explanation-box.wrong {
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.06);
}

.quiz-explanation-box.wrong .quiz-explanation-header {
    color: var(--rose);
}

.quiz-explanation-text {
    color: var(--text-secondary);
}

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

/* ==========================================================================
   CODING TASK CARDS
   ========================================================================== */

.code-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-card);
}

.code-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.code-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.code-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.code-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-badge {
    background: rgba(251, 191, 36, 0.15);
    color: var(--amber);
    border: 1px solid rgba(251, 191, 36, 0.3);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.code-card-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 18px;
    white-space: pre-line;
}

/* Code container with toolbar */
.code-container {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    overflow: hidden;
}

.code-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

.code-block {
    padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin: 0;
}

/* Simple Syntax Highlighting tokens */
.kw { color: #f43f5e; font-weight: 600; } /* keywords */
.typ { color: #38bdf8; font-weight: 600; } /* types: Thread, String, Buffer */
.fn { color: #818cf8; } /* function calls: start, join, put, get */
.str { color: #34d399; } /* strings */
.ann { color: #fbbf24; font-weight: 600; } /* annotations: @Test, @BeforeEach */
.com { color: #64748b; font-style: italic; } /* comments */

/* Rationale box */
.code-explanation-box {
    background: rgba(56, 189, 248, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.code-explanation-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Broken code alert box */
.broken-code-box {
    background: rgba(244, 63, 94, 0.06);
    border-left: 3px solid var(--rose);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.broken-code-title {
    color: var(--rose);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   IMSc SPECIAL SECTION
   ========================================================================== */

.imsc-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.04), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-md);
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.08);
}

.imsc-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   EMPTY / COMING SOON VIEW
   ========================================================================== */

.coming-soon-card {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 30px;
}

.coming-soon-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.coming-soon-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.coming-soon-desc {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-box.show {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-header {
        padding: 20px 20px;
    }

    .tf-btn {
        max-width: none;
    }

    .stats-items {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.15rem;
    }

    .search-box-wrapper {
        min-width: 100%;
    }
}


/* ==========================================================================
   TOP NAV ACTIONS & KZH HAMBURGER DROPDOWN
   ========================================================================== */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 16px;
    position: relative;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kzh-dropdown-wrapper {
    position: relative;
    z-index: 100;
}

.kzh-hamburger-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 12px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(12px);
    user-select: none;
}

.kzh-hamburger-btn:hover {
    background: rgba(23, 34, 61, 0.95);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.kzh-hamburger-btn.open {
    background: rgba(30, 45, 80, 0.95);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.kzh-hamburger-btn .hamburger-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.kzh-hamburger-btn .chevron-icon {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.kzh-hamburger-btn.open .chevron-icon {
    transform: rotate(180deg);
}

.kzh-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: rgba(12, 18, 34, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kzh-dropdown-menu.show {
    display: flex;
}

.kzh-dropdown-header {
    padding: 10px 14px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.kzh-dropdown-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.kzh-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kzh-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.kzh-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.kzh-dropdown-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.14));
    border-color: rgba(56, 189, 248, 0.4);
    color: #fff;
}

.kzh-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kzh-item-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.kzh-item-icon.active {
    color: var(--primary);
}

.kzh-item-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.kzh-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.kzh-badge-tag {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.kzh-badge-tag.active {
    background: var(--primary);
    color: #04101e;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

@media (max-width: 640px) {
    .nav-back-link .back-text {
        display: none;
    }
    .kzh-dropdown-menu {
        width: 280px;
    }
}
