/* ================================================================
   KvDrive — Modern Financial Management System
   Georgian fonts: BPG Nino Mkhedruli, BPG Nino Mtavruli Bold
   ================================================================ */

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

:root {
    /* Brand Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);

    /* Status */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-light: #fef3c7;

    /* Surfaces */
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active: rgba(99, 102, 241, 0.2);
    --bg: #f8fafc;
    --bg-subtle: #f1f5f9;
    --card: #ffffff;

    /* Text */
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Misc */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;

    /* Fonts */
    --font-body: "BPG Nino Mkhedruli", "BPG Arial", "Segoe UI", system-ui, sans-serif;
    --font-heading: "BPG Nino Mtavruli Bold", "BPG Nino Mkhedruli Bold", "BPG Arial", sans-serif;
    --font-bold: "BPG Nino Mkhedruli Bold", "BPG Nino Mkhedruli", sans-serif;

    --sidebar-w: 260px;

    /* Landing Gold Theme */
    --land-bg: #0b0f16;
    --land-bg2: #10151e;
    --gold1: #f6d57a;
    --gold2: #d6a63a;
    --gold3: #b07a12;
    --land-paper: rgba(255,255,255,.06);
    --land-paper2: rgba(255,255,255,.10);
    --land-text: rgba(255,255,255,.92);
    --land-muted: rgba(255,255,255,.72);
    --land-line: rgba(255,255,255,.14);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); letter-spacing: 0.01em; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(99,102,241,0.1); }
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

/* ===== LOGIN OVERLAY (MODAL) ===== */
.login-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,15,22,0.8); backdrop-filter: blur(12px);
}
.login-box {
    position: relative; z-index: 1;
    background: linear-gradient(160deg, #141a25, #0f1520);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl); padding: 48px 44px;
    width: 100%; max-width: 420px; text-align: center;
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(214,166,58,.15);
    animation: fadeInUp 0.4s var(--ease) both;
    border: 1px solid rgba(255,255,255,.08);
}
.login-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 22px;
    color: rgba(255,255,255,.5); cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--duration) var(--ease);
}
.login-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.login-logo-wrap { margin-bottom: 20px; }
.login-logo-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--gold1), var(--gold3));
    border-radius: 50%; color: #0b0f16; font-size: 32px;
}
.login-title {
    font-family: var(--font-heading);
    font-size: 28px; color: #fff; margin-bottom: 4px;
}
.login-subtitle {
    font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 24px;
}
.input-icon-wrap { position: relative; }
.input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--gold2); pointer-events: none;
    transition: color var(--duration) var(--ease);
}
.input-icon-wrap input { padding-left: 44px !important; }
.input-icon-wrap:focus-within .input-icon { color: var(--gold1); }
.login-box .form-group { margin-bottom: 16px; }
.login-box input {
    width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); font-size: 15px; font-family: var(--font-body);
    transition: all var(--duration) var(--ease); outline: none;
    background: rgba(255,255,255,.06); color: #fff;
}
.login-box input::placeholder { color: rgba(255,255,255,.35); }
.login-box input:focus {
    border-color: var(--gold2); box-shadow: 0 0 0 3px rgba(214,166,58,.15); background: rgba(255,255,255,.08);
}
.login-box .btn-primary {
    background: linear-gradient(135deg, var(--gold2), var(--gold3));
    border-color: var(--gold3); color: #fff;
    box-shadow: 0 4px 14px rgba(214,166,58,.25);
}
.login-box .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold1), var(--gold2));
    box-shadow: 0 6px 20px rgba(214,166,58,.35);
}
.error-msg { color: var(--danger); margin-top: 12px; font-size: 14px; min-height: 20px; font-family: var(--font-bold); }

/* ===== LANDING PAGE ===== */

/* -- Navbar -- */
.land-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(11,15,22,0.85); backdrop-filter: blur(10px);
    transition: all 0.3s var(--ease); padding: 14px 0;
}
.land-nav.scrolled {
    background: rgba(11,15,22,0.95); backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3); padding: 10px 0;
}
.land-nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.land-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    font-family: var(--font-heading); font-size: 22px;
}
.land-logo-img { height: 36px; width: auto; }
.land-logo i { font-size: 24px; color: var(--gold1); }
.land-nav-links {
    display: flex; align-items: center; gap: 8px;
}
.land-nav-links a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 16px; font-family: var(--font-heading);
    transition: all var(--duration) var(--ease);
}
.land-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.land-burger {
    display: none; background: none; border: none;
    color: #fff; font-size: 22px; cursor: pointer;
    padding: 8px; border-radius: var(--radius-sm);
}
.land-burger:hover { background: rgba(255,255,255,0.1); }

/* -- Hero -- */
.land-hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; text-align: center;
    background: linear-gradient(180deg, rgba(11,15,22,.55) 0%, rgba(11,15,22,.7) 50%, var(--land-bg) 100%),
                url('img/hero.webp') center/cover no-repeat;
    overflow: hidden; padding: 120px 24px 80px;
}
.land-hero-particles {
    position: absolute; inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(246,213,122,0.25), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(214,166,58,0.2), transparent),
        radial-gradient(2px 2px at 80% 40%, rgba(246,213,122,0.18), transparent),
        radial-gradient(3px 3px at 60% 20%, rgba(176,122,18,0.12), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(246,213,122,0.15), transparent),
        radial-gradient(2px 2px at 90% 90%, rgba(214,166,58,0.12), transparent);
    background-size: 300px 300px;
    animation: shimmer 20s linear infinite;
}
.land-hero-content {
    position: relative; z-index: 1; max-width: 800px;
    animation: fadeInUp 0.8s var(--ease) both;
}
.hero-logo-wrap {
    margin-bottom: 28px;
}
.hero-logo-img {
    height: 100px; width: auto;
    filter: drop-shadow(0 4px 24px rgba(214,166,58,.3));
    animation: float 4s ease-in-out infinite;
}
.land-hero-content h1 {
    font-family: var(--font-heading); font-size: 56px;
    color: #fff; margin-bottom: 16px; line-height: 1.15;
}
.hero-divider {
    width: 80px; height: 3px; margin: 0 auto 28px;
    background: linear-gradient(90deg, transparent, var(--gold1), var(--gold2), transparent);
    border-radius: 2px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--gold1), var(--gold2), var(--gold3));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.land-hero-content p {
    font-size: 20px; color: rgba(255,255,255,0.75);
    max-width: 640px; margin: 0 auto 36px; line-height: 1.8;
}
.land-hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: var(--radius); }
#landing-page .btn-outline {
    background: transparent; color: var(--gold1);
    border: 2px solid rgba(214,166,58,0.4);
    padding: 14px 32px; font-size: 17px; border-radius: var(--radius);
    font-family: var(--font-bold); cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all var(--duration) var(--ease); text-decoration: none;
}
#landing-page .btn-outline:hover { border-color: var(--gold1); background: rgba(214,166,58,0.1); }
.land-hero-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.8); font-size: 16px; font-family: var(--font-bold);
    background: rgba(255,255,255,.06); padding: 10px 18px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,.1);
}
.hero-badge i { color: var(--gold1); }

/* -- Sections -- */
.land-section {
    padding: 80px 24px;
    background: var(--land-bg);
    color: var(--land-text);
}
.land-section-alt {
    background: var(--land-bg2);
    color: var(--land-text);
}
#pricing {
    background: url('img/road-bg.webp') center center / cover no-repeat !important;
    position: relative;
}
#pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11,15,22,0.55);
}
#pricing > .land-container {
    position: relative;
    z-index: 1;
}
.land-container { max-width: 1100px; margin: 0 auto; }
.land-title {
    font-family: var(--font-heading); font-size: 32px;
    text-align: center; margin-bottom: 12px; color: #fff;
}
.land-title i { color: var(--gold1); margin-right: 8px; }
.land-subtitle {
    text-align: center; font-size: 16px; color: var(--land-muted);
    margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* -- Features -- */
.land-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.land-feature-card {
    background: var(--land-paper); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--land-line); box-shadow: none;
    transition: all 0.3s var(--ease); backdrop-filter: blur(8px);
}
.land-feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.3); border-color: rgba(214,166,58,.3); }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(246,213,122,0.12), rgba(214,166,58,0.08));
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--gold1);
}
.land-feature-card h3 {
    font-family: var(--font-heading); font-size: 17px;
    margin-bottom: 10px; color: #fff;
}
.land-feature-card p { font-size: 14px; color: var(--land-muted); line-height: 1.6; }

/* -- Services -- */
.land-services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.land-service-card {
    background: var(--land-paper); border-radius: var(--radius-lg);
    padding: 28px 20px; text-align: center;
    border: 1px solid var(--land-line); box-shadow: none;
    transition: all 0.3s var(--ease); backdrop-filter: blur(8px);
}
.land-service-card:hover {
    transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3);
    border-color: rgba(214,166,58,.3);
}
.service-icon-wrap {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold2), var(--gold3));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}
.land-service-card h3 { font-family: var(--font-heading); font-size: 15px; margin-bottom: 8px; color: #fff; }
.land-service-card p { font-size: 13px; color: var(--land-muted); line-height: 1.5; }

/* -- Pricing -- */
.land-pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px; align-items: start;
}
.land-price-card {
    background: var(--land-paper); border-radius: var(--radius-xl);
    padding: 36px 28px; text-align: center; position: relative;
    border: 1px solid var(--land-line); box-shadow: none;
    transition: all 0.3s var(--ease); backdrop-filter: blur(8px);
}
.land-price-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.land-price-card.featured {
    border-color: rgba(214,166,58,.4); box-shadow: 0 0 0 4px rgba(214,166,58,.12);
    transform: scale(1.03);
}
.land-price-card.featured:hover { transform: scale(1.05); }
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold1), var(--gold3));
    color: #0b0f16; font-size: 12px; font-family: var(--font-bold);
    padding: 5px 20px; border-radius: 20px;
}
.price-header h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 4px; color: #fff; }
.price-header p { font-size: 13px; color: var(--land-muted); margin-bottom: 16px; }
.price-amount {
    font-size: 48px; font-family: var(--font-heading);
    color: var(--gold1); margin-bottom: 24px;
}
.price-amount span { font-size: 20px; color: var(--land-muted); }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li {
    padding: 8px 0; font-size: 14px; color: var(--land-muted);
    border-bottom: 1px solid var(--land-line);
    display: flex; align-items: center; gap: 10px;
}
.price-features li i { color: var(--success); font-size: 13px; }

/* -- FAQ -- */
.land-faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: var(--land-paper); border-radius: var(--radius);
    border: 1px solid var(--land-line); margin-bottom: 10px;
    overflow: hidden; transition: box-shadow 0.3s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.faq-toggle {
    width: 100%; padding: 18px 20px; background: none; border: none;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-family: var(--font-bold); color: #fff;
    cursor: pointer; text-align: left; gap: 12px;
}
.faq-toggle i { color: var(--land-muted); transition: transform 0.3s var(--ease); font-size: 13px; }
.faq-item.open .faq-toggle i { transform: rotate(180deg); color: var(--gold1); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease), padding 0.3s;
    padding: 0 20px; font-size: 14px; color: var(--land-muted); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 18px; }

/* -- Contact -- */
.land-contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; margin-bottom: 36px;
}
.contact-card {
    background: var(--land-paper); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    border: 1px solid var(--land-line); box-shadow: none;
    transition: all 0.3s var(--ease); backdrop-filter: blur(8px);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.contact-card > i {
    font-size: 28px; color: var(--gold1); margin-bottom: 14px; display: block;
}
.contact-card h3 { font-family: var(--font-heading); font-size: 16px; margin-bottom: 8px; color: #fff; }
.contact-card a, .contact-card p {
    color: var(--land-muted); text-decoration: none; font-size: 14px;
}
.contact-card a:hover { color: var(--gold1); }
.land-social { display: flex; gap: 14px; justify-content: center; }
.social-link {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--land-paper); display: flex; align-items: center; justify-content: center;
    color: var(--land-muted); font-size: 18px; text-decoration: none;
    transition: all var(--duration) var(--ease); border: 1px solid var(--land-line);
}
.social-link:hover {
    background: var(--gold2); color: #0b0f16; border-color: var(--gold2);
    transform: translateY(-2px);
}

/* -- Footer -- */
.land-footer {
    background: var(--land-bg);
    color: rgba(255,255,255,0.55);
    padding: 28px 24px; font-size: 14px;
    border-top: 1px solid var(--land-line);
}

/* -- Landing button overrides (gold) -- */
#landing-page .btn-primary {
    background: linear-gradient(135deg, var(--gold2), var(--gold3));
    border-color: var(--gold3); color: #fff;
    box-shadow: 0 4px 14px rgba(214,166,58,.25);
}
#landing-page .btn-primary:hover {
    background: linear-gradient(135deg, var(--gold1), var(--gold2));
    box-shadow: 0 6px 20px rgba(214,166,58,.35);
}
#landing-page .btn-outline {
    border-color: rgba(214,166,58,.4); color: var(--gold1);
}
#landing-page .btn-outline:hover {
    border-color: var(--gold1); background: rgba(214,166,58,.1);
}
.land-footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1100px; margin: 0 auto;
}
.land-footer p { color: rgba(255,255,255,0.45); font-size: 13px; margin: 0; }

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w); background: var(--sidebar-bg);
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: width 0.3s var(--ease);
}
.sidebar-header { padding: 24px 20px 16px; }
.logo-wrap { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.logo-text {
    font-family: var(--font-heading); font-size: 20px; color: #fff; display: block; line-height: 1.2;
}
.branch-text {
    font-size: 11px; color: var(--primary-light); display: block; margin-top: 2px;
    font-family: var(--font-bold);
}
.user-info {
    padding: 16px 20px; display: flex; align-items: center; gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}
.user-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-heading); font-size: 14px; flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-name { color: #fff; font-family: var(--font-bold); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 12px; color: var(--text-muted); }

#nav-menu { flex: 1; padding: 8px 12px; overflow-y: auto; }
#nav-menu a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    color: #94a3b8; text-decoration: none; border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body);
    transition: all var(--duration) var(--ease); margin-bottom: 2px; position: relative;
}
#nav-menu a .nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
#nav-menu a:hover { background: var(--sidebar-hover); color: #e2e8f0; }
#nav-menu a.active {
    background: var(--sidebar-active); color: var(--primary-light); font-family: var(--font-bold);
}
#nav-menu a.active::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--primary);
}
.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.logout-btn {
    width: 100%; padding: 10px 14px; background: rgba(239,68,68,0.08);
    color: #94a3b8; border: none; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; font-family: var(--font-body);
    display: flex; align-items: center; gap: 10px;
    transition: all var(--duration) var(--ease);
}
.logout-btn:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }

/* ===== CONTENT AREA ===== */
.content {
    flex: 1; margin-left: var(--sidebar-w);
    padding: 32px 36px; min-height: 100vh; background: var(--bg);
}
.loading {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 80px; color: var(--text-muted); font-size: 15px;
}
.spinner {
    width: 36px; height: 36px; border: 3px solid var(--border);
    border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
    animation: fadeIn 0.3s var(--ease) both;
}
.page-header h1 {
    font-family: var(--font-heading); font-size: 26px; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 9px 20px; border: none; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; font-family: var(--font-bold);
    transition: all var(--duration) var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 1px 3px rgba(99,102,241,0.3);
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(99,102,241,0.4); transform: translateY(-1px); }
.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #fff; box-shadow: 0 1px 3px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 4px 12px rgba(16,185,129,0.4); transform: translateY(-1px); }
.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: #fff; box-shadow: 0 1px 3px rgba(239,68,68,0.3);
}
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,0.4); }
.btn-secondary {
    background: var(--card); color: var(--text-secondary);
    border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: #f8faff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--border); padding: 9px 20px;
    border-radius: var(--radius-sm); font-family: var(--font-bold);
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    transition: all var(--duration) var(--ease); text-decoration: none; font-size: 14px;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(99,102,241,0.06); }
.btn-block { width: 100%; justify-content: center; padding: 14px; font-size: 16px; }
.btn-glow { animation: glow-pulse 2.5s ease-in-out infinite; }
.btn-glow:hover { animation: none; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== CARDS ===== */
.card {
    background: var(--card); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: box-shadow var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ===== STATS ===== */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.stat-card {
    background: var(--card); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    position: relative; overflow: hidden;
    transition: all 0.3s var(--ease);
    animation: fadeInUp 0.4s var(--ease) both;
}
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card h3 {
    font-size: 12px; color: var(--text-muted); font-family: var(--font-bold);
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.stat-card .stat-value { font-size: 30px; font-family: var(--font-heading); line-height: 1.2; }
.stat-card .stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.stat-card.income::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.income .stat-value { color: var(--success); }
.stat-card.expense::before { background: linear-gradient(90deg, var(--danger), #f87171); }
.stat-card.expense .stat-value { color: var(--danger); }
.stat-card.profit::before { background: linear-gradient(90deg, var(--primary), #a78bfa); }
.stat-card.profit .stat-value { color: var(--primary); }
.stat-card.students::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card.students .stat-value { color: var(--warning); }

.category-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px; margin-bottom: 32px;
}
.category-stat-card {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    text-align: center; border: 1px solid var(--border);
    transition: all 0.3s var(--ease); box-shadow: var(--shadow-sm);
}
.category-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-stat-card h3 { font-size: 24px; font-family: var(--font-heading); color: var(--primary); margin-bottom: 6px; }
.category-stat-card .count { font-size: 14px; color: var(--text); font-family: var(--font-bold); }
.category-stat-card .cat-income { font-size: 12px; color: var(--success); margin-top: 4px; }

/* ===== TABLES ===== */
.data-table {
    width: 100%; border-collapse: collapse; background: var(--card);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.data-table th {
    background: var(--bg-subtle); padding: 14px 16px; text-align: left;
    font-size: 11px; font-family: var(--font-bold); color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 14px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px;
    transition: background var(--duration) var(--ease);
}
.data-table tbody tr { transition: background var(--duration) var(--ease); }
.data-table tbody tr:hover { background: #f8faff; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table a { color: var(--primary); text-decoration: none; font-family: var(--font-bold); }
.data-table a:hover { color: var(--primary-dark); text-decoration: underline; }

/* Status Badges */
.status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-family: var(--font-bold); white-space: nowrap;
}
.status-paid { background: var(--success-light); color: var(--success-dark); }
.status-partial { background: var(--warning-light); color: #92400e; }
.status-unpaid { background: var(--danger-light); color: var(--danger); }
.status-passed { background: var(--success-light); color: var(--success-dark); }
.status-not-passed { background: var(--bg-subtle); color: var(--text-muted); }
.status-partial-row td:first-child { border-left: 3px solid var(--warning); }
.status-unpaid-row td:first-child { border-left: 3px solid var(--danger); }
.status-paid-row { }

/* ===== PAYMENT BAR ===== */
.payment-bar-container {
    margin: 20px 0; padding: 20px;
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    animation: fadeIn 0.5s var(--ease) both;
}
.payment-bar-bg {
    width: 100%; height: 28px; background: var(--bg-subtle);
    border-radius: 14px; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.payment-bar-fill {
    height: 100%; border-radius: 14px;
    transition: width 0.8s var(--ease), background 0.4s;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff; font-family: var(--font-bold); min-width: 44px;
    background: linear-gradient(90deg, var(--danger), #f87171); position: relative;
}
.payment-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    background-size: 200% 100%; animation: shimmer 2s linear infinite;
}
.payment-bar-fill.full { background: linear-gradient(90deg, var(--success), #34d399); }
.payment-bar-fill.partial { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.payment-bar-labels {
    display: flex; justify-content: space-between; margin-top: 10px;
    font-size: 13px; color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-card {
    background: var(--card); border-radius: var(--radius-lg); padding: 32px;
    box-shadow: var(--shadow); border: 1px solid var(--border); max-width: 720px;
    animation: fadeInUp 0.4s var(--ease) both;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block; font-size: 13px; font-family: var(--font-bold);
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-body);
    outline: none; transition: all var(--duration) var(--ease); background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ===== FILTERS ===== */
.filters {
    display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
    background: var(--card); padding: 18px 20px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); align-items: center;
}
.filters input, .filters select {
    padding: 9px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body); outline: none;
    transition: all var(--duration) var(--ease); background: var(--bg);
}
.filters input:focus, .filters select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}
.filters input { min-width: 220px; }

/* ===== EMPTY STATE ===== */
.empty { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 15px; }

/* ===== SCHEDULE ===== */
.schedule-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.schedule-tab {
    padding: 10px 18px; border: 2px solid var(--border);
    background: var(--card); border-radius: var(--radius-sm);
    cursor: pointer; font-size: 14px; font-family: var(--font-bold);
    transition: all var(--duration) var(--ease); color: var(--text-secondary);
}
.schedule-tab:hover { border-color: var(--primary); color: var(--primary); }
.schedule-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.schedule-tab.today:not(.active) {
    border-color: var(--warning); background: var(--warning-light); color: #92400e;
}
.slot-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
    box-shadow: var(--shadow-sm); transition: all 0.3s var(--ease);
    animation: slideInLeft 0.4s var(--ease) both;
}
.slot-card:hover { box-shadow: var(--shadow-md); }
.slot-card:nth-child(2) { animation-delay: 0.05s; }
.slot-card:nth-child(3) { animation-delay: 0.1s; }
.slot-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}
.slot-time { font-size: 22px; font-family: var(--font-heading); color: var(--primary); }
.slot-group { font-size: 14px; color: var(--text-secondary); margin-left: 12px; }
.slot-count {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 3px 12px; border-radius: 20px;
    font-size: 12px; font-family: var(--font-bold);
}
.slot-students { margin-top: 10px; }
.slot-student {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px;
    transition: background var(--duration); margin-bottom: 2px;
}
.slot-student:hover { background: var(--bg-subtle); }

/* ===== DETAIL PAGE ===== */
.detail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.detail-card {
    background: var(--card); border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    animation: fadeInUp 0.4s var(--ease) both;
}
.detail-card:nth-child(2) { animation-delay: 0.1s; }
.detail-card h3 {
    font-family: var(--font-heading); font-size: 16px;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); }
.detail-value { font-family: var(--font-bold); color: var(--text); }

/* ===== ROOM ===== */
.room-desc {
    background: var(--card); border-radius: var(--radius); padding: 20px;
    margin-bottom: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.room-desc h3 { font-family: var(--font-heading); }
.room-desc textarea {
    width: 100%; border: 2px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px; font-family: var(--font-body); outline: none;
    resize: vertical; min-height: 60px; font-size: 14px;
    transition: border-color var(--duration) var(--ease);
}
.room-desc textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6); backdrop-filter: blur(4px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: var(--card); border-radius: var(--radius-xl); padding: 32px;
    width: 90%; max-width: 520px; max-height: 80vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.modal-content h2 { margin-bottom: 24px; font-size: 20px; font-family: var(--font-heading); }

/* ===== INLINE FORM ===== */
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
.inline-form input, .inline-form select {
    padding: 9px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--font-body); outline: none;
    transition: border-color var(--duration) var(--ease);
}
.inline-form input:focus, .inline-form select:focus { border-color: var(--primary); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed; top: 24px; right: 24px; z-index: 10000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    padding: 14px 20px; border-radius: var(--radius);
    color: #fff; font-family: var(--font-bold); font-size: 14px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    animation: toast-in 0.3s var(--ease) both; min-width: 280px;
}
.toast.toast-out { animation: toast-out 0.3s var(--ease) both; }
.toast.toast-success { background: linear-gradient(135deg, var(--success), var(--success-dark)); }
.toast.toast-error { background: linear-gradient(135deg, var(--danger), var(--danger-dark)); }
.toast.toast-info { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content { padding: 24px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .land-hero-content h1 { font-size: 42px; }
    .land-hero-content p { font-size: 18px; }
}
@media (max-width: 768px) {
    :root { --sidebar-w: 64px; }
    .sidebar-header .logo-wrap div:last-child, .user-meta, .logout-btn span,
    #nav-menu a span { display: none; }
    .sidebar-header { padding: 16px 12px; }
    .logo-wrap { justify-content: center; }
    .user-info { justify-content: center; padding: 12px; }
    #nav-menu a { justify-content: center; padding: 12px; }
    #nav-menu a .nav-icon { font-size: 18px; }
    .logout-btn { justify-content: center; padding: 12px; }
    .content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .login-box { padding: 32px 24px; margin: 16px; }

    /* Landing mobile */
    .land-nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: rgba(11,15,22,0.98);
        padding: 16px 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.1);
    }
    .land-nav-links.open { display: flex; }
    .land-burger { display: block; }
    .land-hero-content h1 { font-size: 34px; }
    .land-hero-content p { font-size: 16px; }
    .hero-logo-img { height: 72px; }
    .land-hero { padding: 100px 20px 60px; }
    .land-section { padding: 60px 20px; }
    .land-title { font-size: 26px; }
    .land-pricing-grid { grid-template-columns: 1fr; }
    .land-price-card.featured { transform: none; }
    .land-price-card.featured:hover { transform: translateY(-4px); }
}
@media (max-width: 480px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .filters { flex-direction: column; }
    .filters input { min-width: 100%; }
    .category-stats { grid-template-columns: 1fr 1fr; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .land-hero-btns { flex-direction: column; align-items: center; }
    .land-hero-badges { flex-direction: column; align-items: center; }
    .hero-logo-img { height: 60px; }
    .land-features { grid-template-columns: 1fr; }
}

/* About text block */
.land-about-text {
    max-width: 800px; margin: 0 auto;
    font-size: 16px; line-height: 1.9; color: var(--land-muted);
    text-align: center; font-family: 'BPG Nino Mkhedruli', sans-serif;
}

/* ===== TEST / TICKETS UI ===== */
.test-menu { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.test-menu-btn {
    padding: 12px 28px; border-radius: var(--radius); cursor: pointer;
    background: var(--card); border: 2px solid var(--border); color: var(--text);
    font-size: 15px; font-family: var(--font-bold); transition: all .2s var(--ease);
    display: inline-flex; align-items: center; gap: 8px;
}
.test-menu-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.test-menu-btn i { font-size: 18px; }

/* Exam container */
.exam-wrap { max-width: 800px; margin: 0 auto; }
.exam-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.exam-progress { flex: 1; min-width: 200px; }
.exam-progress-bar {
    height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.exam-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), #a855f7);
    border-radius: 4px; transition: width .4s var(--ease);
}
.exam-stats {
    display: flex; gap: 16px; font-size: 14px; font-family: var(--font-bold); margin-top: 6px;
}
.exam-stats .correct { color: var(--success); }
.exam-stats .wrong { color: var(--danger); }
.exam-timer {
    font-size: 22px; font-family: var(--font-heading); color: var(--text);
    background: var(--card); padding: 8px 18px; border-radius: var(--radius);
    border: 1px solid var(--border); min-width: 80px; text-align: center;
}

/* Question card */
.q-card {
    background: var(--card); border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    overflow: hidden; margin-bottom: 20px;
}
.q-card-num {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 6px 16px; border-radius: 0 0 var(--radius) 0;
    font-size: 13px; font-family: var(--font-bold);
}
.q-card-body { padding: 24px; }
.q-image {
    width: 100%; max-width: 500px; display: block; margin: 0 auto 20px;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.q-text {
    font-size: 17px; line-height: 1.7; color: var(--text);
    font-family: var(--font-body); margin-bottom: 20px;
}
.q-answers { display: flex; flex-direction: column; gap: 10px; }
.q-answer {
    padding: 14px 18px; border-radius: var(--radius);
    border: 2px solid var(--border); cursor: pointer;
    font-size: 15px; color: var(--text); background: var(--bg);
    transition: all .2s var(--ease); display: flex; align-items: flex-start; gap: 12px;
    font-family: var(--font-body); text-align: left; width: 100%;
}
.q-answer:hover:not(.disabled) { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.q-answer .q-num {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-family: var(--font-bold); color: var(--text);
    transition: all .2s;
}
.q-answer.selected { border-color: var(--primary); background: rgba(99,102,241,0.06); }
.q-answer.selected .q-num { background: var(--primary); color: #fff; }
.q-answer.correct { border-color: var(--success); background: rgba(16,185,129,0.06); }
.q-answer.correct .q-num { background: var(--success); color: #fff; }
.q-answer.wrong { border-color: var(--danger); background: rgba(239,68,68,0.06); }
.q-answer.wrong .q-num { background: var(--danger); color: #fff; }
.q-answer.disabled { cursor: default; opacity: 0.85; }

/* Explanation */
.q-explanation {
    margin-top: 16px; padding: 16px; border-radius: var(--radius);
    background: rgba(99,102,241,0.05); border-left: 4px solid var(--primary);
    font-size: 14px; line-height: 1.7; color: var(--text-secondary);
    display: none;
}
.q-explanation.show { display: block; animation: fadeInUp .3s var(--ease); }
.q-gif {
    width: 100%; max-width: 400px; display: block; margin: 12px auto 0;
    border-radius: var(--radius);
}

/* Navigation buttons */
.q-nav { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.q-nav .btn { min-width: 140px; }

/* Results card */
.exam-result {
    text-align: center; padding: 48px 24px;
    background: var(--card); border-radius: var(--radius-xl);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.exam-result-icon { font-size: 64px; margin-bottom: 16px; }
.exam-result-icon.pass { color: var(--success); }
.exam-result-icon.fail { color: var(--danger); }
.exam-result h2 { font-family: var(--font-heading); font-size: 28px; margin-bottom: 8px; }
.exam-result .score {
    font-size: 48px; font-family: var(--font-heading); margin: 16px 0;
}
.exam-result .score.pass { color: var(--success); }
.exam-result .score.fail { color: var(--danger); }
.exam-result .details { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.8; }

/* Browse mode */
.browse-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.browse-header select {
    padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--card); color: var(--text); font-size: 14px; font-family: var(--font-body);
}
.browse-pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 24px; }
.browse-pagination .btn { padding: 8px 16px; }
.browse-pagination .page-info { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 600px) {
    .exam-header { flex-direction: column; }
    .q-card-body { padding: 16px; }
    .q-text { font-size: 15px; }
    .q-answer { padding: 12px 14px; font-size: 14px; }
    .exam-result .score { font-size: 36px; }
    .test-menu-btn { padding: 10px 20px; font-size: 14px; }
}

/* Footer credit */
.land-footer-credit {
    font-size: 12px; color: rgba(255,255,255,0.4);
    text-decoration: none; letter-spacing: 0.5px; transition: color .3s;
}
.land-footer-credit:hover { color: rgba(255,255,255,0.6); }
.land-footer-credit span {
    background: linear-gradient(90deg, var(--gold1), var(--gold2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Admin site management */
.site-mgmt-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.site-mgmt-tab {
    padding: 8px 18px; border-radius: 8px; cursor: pointer;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-size: 14px; transition: all .2s;
}
.site-mgmt-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.site-mgmt-tab:hover:not(.active) { border-color: var(--primary); }
.site-mgmt-section { display: none; }
.site-mgmt-section.active { display: block; }
.site-textarea {
    width: 100%; min-height: 160px; padding: 12px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
    font-family: 'BPG Nino Mkhedruli', sans-serif; font-size: 14px; line-height: 1.7;
    resize: vertical;
}
.site-input-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-end; flex-wrap: wrap; }
.site-input-row .form-group { flex: 1; min-width: 200px; margin-bottom: 0; }
.crud-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
    padding: 16px; margin-bottom: 12px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px;
}
.crud-item-info { flex: 1; }
.crud-item-info h4 { margin: 0 0 4px; font-size: 15px; }
.crud-item-info p { margin: 0; color: var(--text-muted); font-size: 13px; }
.crud-item-icon { font-size: 24px; color: var(--primary); width: 40px; text-align: center; }
.crud-price { font-weight: 700; font-size: 18px; color: var(--primary); }
.crud-badge { font-size: 11px; background: var(--primary); color:#fff; padding: 2px 8px; border-radius: 20px; margin-left: 6px; }
