/* ============================================================
   Creator Performance & Payment Platform — Tamil Bible with AI
   Design System — Luxury Dark Brown, Valuable Stone Green & Royal Gold Theme
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Backgrounds — Rich Espresso & Mahogany Dark Browns */
    --bg-body: #0d0805;
    --bg-sidebar: #150d08;
    --bg-header: rgba(21, 13, 8, 0.88);
    --bg-card: rgba(34, 21, 13, 0.65);
    --bg-card-hover: rgba(48, 30, 19, 0.85);
    --bg-input: rgba(25, 15, 9, 0.8);
    --bg-input-focus: rgba(38, 23, 14, 0.95);
    --bg-modal: rgba(17, 10, 6, 0.96);

    /* Text — Crisp White & Pearl Highlights */
    --text-primary: #ffffff;
    --text-secondary: #e6ded5;
    --text-muted: #9e8e7f;
    --text-inverse: #0d0805;

    /* Borders — Warm Subtle Gold Tint */
    --border: rgba(212, 175, 55, 0.16);
    --border-hover: rgba(212, 175, 55, 0.38);
    --border-focus: #10b981;

    /* Primary Accent — Valuable Stone Dark Green (Emerald / Jade / Malachite) */
    --emerald-50: #ecfdf5;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #064e3b;
    --emerald-900: #022c22;
    --emerald-glow: rgba(16, 185, 129, 0.28);
    --gradient-primary: linear-gradient(135deg, #064e3b 0%, #047857 45%, #10b981 100%);
    --gradient-emerald: linear-gradient(135deg, #064e3b 0%, #059669 50%, #34d399 100%);

    /* Backward compatibility mapping for purple to emerald gemstone */
    --purple-50: var(--emerald-50);
    --purple-400: var(--emerald-400);
    --purple-500: var(--emerald-500);
    --purple-600: var(--emerald-600);
    --purple-700: var(--emerald-700);
    --purple-glow: var(--emerald-glow);

    /* Secondary Accent — Precious Royal Gold */
    --gold-200: #fef08a;
    --gold-300: #fde047;
    --gold-400: #fbbf24;
    --gold-500: #d4af37;
    --gold-600: #b45309;
    --gold-700: #854d0e;
    --gold-glow: rgba(212, 175, 55, 0.28);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #fde047 50%, #b45309 100%);
    --gradient-gold-subtle: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, rgba(251,191,36,0.05) 100%);

    /* Semantic Helpers */
    --green-400: #34d399;
    --green-500: #10b981;
    --green-glow: rgba(16, 185, 129, 0.25);
    --red-400: #fb7185;
    --red-500: #f43f5e;
    --red-glow: rgba(244, 63, 94, 0.25);
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --cyan-400: #2dd4bf;

    /* Layout */
    --sidebar-w: 260px;
    --header-h: 68px;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.45);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.6);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.75);
    --shadow-purple: 0 4px 24px rgba(16, 185, 129, 0.32);
    --shadow-emerald: 0 4px 24px rgba(16, 185, 129, 0.32);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--gold-400); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--gold-300); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: #064e3b; color: #ffffff; }

/* ---------- Typography ---------- */
h1 { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.025em; color: var(--text-primary); }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); }
h4 { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }
.mono { font-family: 'JetBrains Mono', monospace; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-400); }
.text-purple { color: var(--emerald-400); }
.text-emerald { color: var(--emerald-400); }
.text-green { color: var(--green-400); }
.text-red { color: var(--red-400); }
.text-white { color: #ffffff; }

/* ---------- Auth Page (index.html) ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 15% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 85%, rgba(6, 78, 59, 0.2) 0%, transparent 55%),
        var(--bg-body);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    animation: fadeSlideUp 0.6s var(--ease);
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-brand-icon {
    width: 84px; height: 84px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 8px 30px rgba(16, 185, 129, 0.35);
    overflow: hidden;
    padding: 2px;
}
.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.auth-brand h1 {
    font-size: 1.65rem;
    background: linear-gradient(135deg, #ffffff 0%, #fde047 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}
.auth-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px;
}
.auth-tab {
    flex: 1;
    padding: 0.65rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}
.auth-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-emerald);
}

.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s var(--ease); }

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.925rem;
    transition: all var(--duration) var(--ease);
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--emerald-glow), 0 0 12px rgba(16, 185, 129, 0.2);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-select option {
    background: #170f0a;
    color: #ffffff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Password eye toggle */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.password-wrapper .form-input {
    padding-right: 2.85rem;
}
.password-toggle-btn {
    position: absolute;
    right: 0.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.15rem;
    padding: 0.25rem 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
    user-select: none;
    border-radius: var(--radius-sm);
}
.password-toggle-btn:hover {
    color: var(--gold-400);
    transform: scale(1.1);
}
.password-match-hint {
    font-size: 0.75rem;
    margin-top: 0.35rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.password-match-hint.match {
    color: var(--emerald-400);
}
.password-match-hint.no-match {
    color: #f87171;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    outline: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--text-inverse);
    font-weight: 700;
    border: 1px solid rgba(254, 240, 138, 0.6);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 28px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    background: rgba(34, 21, 13, 0.4);
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
    color: #ffffff;
    background: var(--bg-card);
}

.btn-danger {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: #ffffff;
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}
.btn-danger:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-success {
    background: var(--gradient-emerald);
    color: #ffffff;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.btn-success:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.85rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Dashboard Layout ---------- */
.app-layout {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s var(--ease);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
}
.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    border: 1.5px solid rgba(212, 175, 55, 0.5);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-emerald);
    overflow: hidden;
    padding: 1px;
}
.sidebar-brand h2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}
.sidebar-brand small {
    font-size: 0.7rem;
    color: var(--gold-400);
    display: block;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}
.sidebar-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-400);
    opacity: 0.85;
    padding: 1.2rem 0.75rem 0.5rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
}
.sidebar-link:hover {
    color: #ffffff;
    background: var(--bg-card);
    border-color: rgba(212, 175, 55, 0.15);
}
.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(5, 150, 105, 0.85) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-emerald);
}
.sidebar-link-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border);
    background: rgba(13, 8, 5, 0.4);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}
.sidebar-avatar {
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: var(--gradient-gold);
    color: var(--text-inverse);
    border: 1px solid rgba(254, 240, 138, 0.8);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.7rem; color: var(--gold-400); text-transform: capitalize; font-weight: 500; }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse at 35% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        var(--bg-body);
}

.main-header {
    position: sticky;
    top: 0;
    background: var(--bg-header);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.main-header-title { font-size: 1.2rem; font-weight: 700; color: #ffffff; }
.main-header-actions { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
    display: none;
    background: none; border: none; color: var(--text-primary);
    font-size: 1.5rem; cursor: pointer; padding: 0.25rem;
}

.content-area {
    padding: 2rem;
    max-width: 1400px;
}

/* ---------- Page Sections (SPA Nav) ---------- */
.page-section { display: none; animation: fadeIn 0.35s var(--ease); }
.page-section.section-active { display: block; }

/* ---------- Stat Cards ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all var(--duration) var(--ease);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 16px rgba(212, 175, 55, 0.1);
}
.stat-card.purple::before, .stat-card.emerald::before {
    background: linear-gradient(135deg, #064e3b, #10b981, #34d399);
}
.stat-card.gold::before {
    background: linear-gradient(135deg, #b45309, #d4af37, #fde047);
}
.stat-card.green::before {
    background: linear-gradient(135deg, #047857, #10b981);
}
.stat-card.blue::before {
    background: linear-gradient(135deg, #0d9488, #2dd4bf);
}
.stat-card.red::before {
    background: linear-gradient(135deg, #991b1b, #f43f5e);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.stat-card-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.stat-card.purple .stat-card-icon, .stat-card.emerald .stat-card-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--emerald-400);
}
.stat-card.gold .stat-card-icon {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-400);
}
.stat-card.green .stat-card-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--green-400);
}
.stat-card.blue .stat-card-icon {
    background: rgba(45, 212, 191, 0.18);
    color: var(--cyan-400);
}
.stat-card.red .stat-card-icon {
    background: rgba(244, 63, 94, 0.18);
    color: var(--red-400);
}

.stat-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
.stat-card-value {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    color: #ffffff;
}
.stat-card-meta {
    font-size: 0.775rem;
    color: var(--text-muted);
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding-bottom: 0.85rem;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: #ffffff; }
.card-grid {
    display: grid;
    gap: 1.25rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* ---------- Tables ---------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
table {
    width: 100%;
    border-collapse: collapse;
}
thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-400);
    padding: 0.85rem 1rem;
    background: rgba(21, 13, 8, 0.75);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-secondary);
}
tbody tr {
    transition: background var(--duration) var(--ease);
}
tbody tr:hover {
    background: var(--bg-card-hover);
}
tbody tr:last-child td { border-bottom: none; }
.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
    border-color: rgba(16, 185, 129, 0.3);
}
.badge-warning {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-400);
    border-color: rgba(212, 175, 55, 0.3);
}
.badge-danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--red-400);
    border-color: rgba(244, 63, 94, 0.3);
}
.badge-info {
    background: rgba(45, 212, 191, 0.15);
    color: var(--cyan-400);
    border-color: rgba(45, 212, 191, 0.3);
}
.badge-muted {
    background: rgba(158, 142, 127, 0.15);
    color: var(--text-muted);
    border-color: rgba(158, 142, 127, 0.25);
}
.badge-purple, .badge-emerald {
    background: rgba(16, 185, 129, 0.18);
    color: var(--emerald-400);
    border-color: rgba(16, 185, 129, 0.35);
}

/* ---------- Modals ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
    backdrop-filter: blur(8px);
}
.modal-overlay.modal-open {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s var(--ease);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212, 175, 55, 0.15);
}
.modal-open .modal {
    transform: scale(1) translateY(0);
}
.modal-drag-bar {
    display: none;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-sidebar);
}
.modal-header h3 { font-size: 1.15rem; color: #ffffff; }
.modal-close {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--duration) var(--ease);
}
.modal-close:hover { background: var(--bg-card-hover); color: #ffffff; border-color: var(--border-hover); }
.modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}
.modal-body {
    padding: 1.4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}
.modal-footer {
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    background: var(--bg-sidebar);
}
.modal-lg { max-width: 720px; }

/* Onboarding Modal Component Styles */
.onboard-card {
    background: rgba(14, 11, 9, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1.25rem;
}
.onboard-step-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.onboard-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: #0b0907;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.payout-tab-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}
.payout-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}
.payout-tab-btn:hover {
    border-color: rgba(212, 175, 55, 0.5);
    color: #ffffff;
}
.payout-tab-btn.btn-primary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(184, 134, 11, 0.15) 100%) !important;
    border-color: var(--gold-400) !important;
    color: var(--gold-300) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2) !important;
}
.payout-tab-btn.btn-outline {
    background: rgba(20, 16, 12, 0.5) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    color: var(--text-muted) !important;
}

/* ---------- Toast ---------- */
#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.35s var(--ease);
    color: #ffffff;
}
.toast.toast-show { opacity: 1; transform: translateX(0); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-success { border-left: 3px solid var(--emerald-500); }
.toast-success .toast-icon { color: var(--emerald-400); }
.toast-error { border-left: 3px solid var(--red-500); }
.toast-error .toast-icon { color: var(--red-400); }
.toast-warning { border-left: 3px solid var(--gold-500); }
.toast-warning .toast-icon { color: var(--gold-400); }
.toast-info { border-left: 3px solid var(--cyan-400); }
.toast-info .toast-icon { color: var(--cyan-400); }

/* ---------- UTM Link Cards ---------- */
.link-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all var(--duration) var(--ease);
    box-shadow: var(--shadow-sm);
}
.link-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 12px rgba(212, 175, 55, 0.1);
}
.link-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.link-card-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}
.link-card-platform-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-xs);
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}
.link-card-url {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.5rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold-400);
    word-break: break-all;
    margin-bottom: 0.75rem;
}
.link-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.link-card-stat {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.link-card-stat strong {
    color: var(--text-primary);
}

/* ---------- Search / Filter Bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-box input {
    width: 100%;
    padding: 0.65rem 0.95rem 0.65rem 2.4rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--duration) var(--ease);
    outline: none;
}
.search-box input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--emerald-glow), 0 0 12px rgba(16, 185, 129, 0.2);
}
.search-box::before {
    content: '🔍';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0.7;
}

/* ---------- Charts ---------- */
.chart-container {
    position: relative;
    width: 100%;
    height: 280px;
}
.chart-container canvas { width: 100% !important; }

/* ---------- Agreement ---------- */
.agreement-content {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.agreement-content h3 {
    color: var(--gold-400);
    margin: 1.5rem 0 0.75rem;
}
.agreement-content h3:first-child { margin-top: 0; }
.agreement-content ol, .agreement-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.agreement-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.agreement-signature input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--emerald-500);
    cursor: pointer;
}
.agreement-signature label {
    font-size: 0.875rem;
    cursor: pointer;
    color: #ffffff;
}

/* ---------- File Upload ---------- */
.upload-zone {
    border: 2px dashed rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    background: rgba(25, 15, 9, 0.4);
}
.upload-zone:hover {
    border-color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.1);
}
.upload-zone-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-zone-text { color: var(--text-secondary); font-size: 0.9rem; }
.upload-zone-text strong { color: var(--gold-400); }

/* ---------- Loading ---------- */
.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}
.skeleton-pulse {
    height: 16px;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-xs);
    animation: shimmer 1.5s infinite;
}
.skeleton-pulse:nth-child(2) { width: 75%; }
.skeleton-pulse:nth-child(3) { width: 50%; }

.spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--gold-400);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.empty-state-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}
.empty-state-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    max-width: 360px;
    margin: 0 auto 1.5rem;
}

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
    color: var(--gold-400);
    border-bottom-color: var(--gold-400);
}

/* ---------- QR Code ---------- */
.qr-container {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1rem auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

/* ---------- Leaderboard ---------- */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-rank {
    width: 34px; height: 34px;
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    background: var(--bg-card);
    color: var(--text-secondary);
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.leaderboard-item:nth-child(1) .leaderboard-rank {
    background: var(--gradient-gold);
    color: var(--text-inverse);
    border-color: rgba(254, 240, 138, 0.8);
    box-shadow: var(--shadow-gold);
}
.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #064e3b, #10b981);
    color: #ffffff;
    border-color: rgba(110, 231, 183, 0.6);
    box-shadow: var(--shadow-emerald);
}
.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
    border-color: rgba(251, 191, 36, 0.6);
}
.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-weight: 600; font-size: 0.9rem; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-stats { font-size: 0.775rem; color: var(--text-muted); }
.leaderboard-value { font-weight: 800; font-size: 1rem; color: var(--gold-400); }

/* ---------- Payout Card ---------- */
.payout-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}
.payout-summary-item { text-align: center; }
.payout-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-400);
    margin-bottom: 0.25rem;
}
.payout-summary-value { font-size: 1.35rem; font-weight: 800; color: #ffffff; }

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.animate-in { animation: fadeSlideUp 0.5s var(--ease) both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    :root { --sidebar-w: 0px; }

    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: none;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 10px 0 30px rgba(0, 0, 0, 0.7);
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box;
    }
    .hamburger {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.25);
        border-radius: var(--radius-sm);
        color: var(--gold-400);
        cursor: pointer;
    }
    .main-header {
        padding: 0.6rem 1rem;
        height: auto;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .main-header-title {
        font-size: 1.15rem;
    }
    .badge {
        font-size: 0.725rem;
        padding: 0.3rem 0.65rem;
        white-space: nowrap;
    }
    .content-area { padding: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .modal { max-width: min(580px, 95vw); margin: 0 auto; }

    h1 { font-size: 1.35rem; }
    h2 { font-size: 1.15rem; }
}

/* ---------- Mobile Modals (Bottom-Sheet Style) ---------- */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0 !important;
        align-items: flex-end !important;
        background: rgba(0, 0, 0, 0.88) !important;
    }
    .modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94vh !important;
        border-radius: 22px 22px 0 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 2px solid rgba(212, 175, 55, 0.4) !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.9) !important;
    }
    .modal-overlay.modal-open .modal {
        transform: translateY(0) !important;
    }
    .modal-drag-bar {
        width: 44px;
        height: 4px;
        background: rgba(212, 175, 55, 0.45);
        border-radius: 2px;
        margin: 0.65rem auto 0.25rem auto;
        display: block !important;
    }
    .modal-header {
        padding: 0.75rem 1.15rem 0.9rem 1.15rem !important;
        background: #16120e !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.18) !important;
    }
    .modal-header h3 {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
    }
    .modal-body {
        padding: 1.15rem 1rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .modal-footer {
        padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px)) 1rem !important;
        background: #130f0c !important;
        border-top: 1px solid rgba(212, 175, 55, 0.18) !important;
        flex-direction: column-reverse !important;
        gap: 0.65rem !important;
    }
    .modal-footer .btn {
        width: 100% !important;
        height: 48px !important;
        font-size: 0.95rem !important;
        justify-content: center !important;
    }
    .modal .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }
    .onboard-card {
        padding: 1rem 0.85rem !important;
        margin-bottom: 1rem !important;
        border-radius: 10px !important;
    }
    .payout-tab-toggle {
        gap: 0.5rem !important;
    }
    .payout-tab-btn {
        padding: 0.75rem 0.4rem !important;
        font-size: 0.825rem !important;
        height: 46px !important;
    }
    .modal .form-input,
    .modal .form-select {
        font-size: 16px !important;
        height: 46px !important;
        padding: 0.7rem 0.85rem !important;
    }
}

@media (max-width: 580px) {
    .auth-page {
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .auth-container {
        width: 100%;
        max-width: 100%;
    }
    .auth-card {
        padding: 1.5rem 1.15rem;
        border-radius: var(--radius-xl);
    }
    .auth-brand {
        margin-bottom: 1.25rem;
    }
    .auth-brand-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 0.75rem;
    }
    .auth-brand h1 {
        font-size: 1.45rem;
        line-height: 1.25;
    }
    .auth-brand p {
        font-size: 0.85rem;
    }
    .form-input, .form-select, .form-textarea {
        font-size: 16px !important;
        padding: 0.8rem 0.95rem;
    }
    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .main-header { padding: 0 0.85rem; }
    .content-area { padding: 0.85rem; }
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 520px;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.45); }
