/* ============================================
   VOLTA AI - DESIGN SYSTEM
   "Warm Mineral" — Refined dark palette with
   warm stone undertones and copper accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Background Colors — warm charcoal/slate */
    --bg-primary: #1c1b1a;
    --bg-secondary: #252423;
    --bg-tertiary: #2e2d2b;
    --bg-elevated: #353432;
    --bg-input: #2a2928;
    --bg-hover: rgba(255, 255, 255, 0.04);
    --bg-active: rgba(255, 255, 255, 0.07);

    /* Text Colors — warm neutrals */
    --text-primary: #ece8e1;
    --text-secondary: #b0aaa1;
    --text-tertiary: #7d7871;
    --text-muted: #5a5651;

    /* Accent Colors — polished copper/amber */
    --accent-primary: #c8956a;
    --accent-primary-hover: #d9a87d;
    --accent-secondary: #a89b8e;
    --accent-tertiary: #7d7369;
    --accent-gold: #d4a574;

    /* Brand Purple (logo accent) */
    --brand-purple: #8b7cf6;
    --brand-purple-light: #a99bf7;

    /* Status Colors — muted, refined */
    --success: #6aad5a;
    --warning: #d4973a;
    --error: #c5493c;
    --info: #5a9ec5;

    /* Border Colors */
    --border-primary: rgba(255, 255, 255, 0.06);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(200, 149, 106, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.03);

    /* Shadows — warm, deep */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 24px rgba(200, 149, 106, 0.08);
    --shadow-float: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.04);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    /* Transitions */
    --transition-fast: 120ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-base: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 320ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-dropdown: 50;
    --z-sticky: 60;
    --z-modal-backdrop: 200;
    --z-modal: 210;
    --z-toast: 300;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

html, body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.011em;
}

/* Focus styles — refined ring */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Selection — warm amber */
::selection {
    background: rgba(200, 149, 106, 0.25);
    color: var(--text-primary);
}

/* Scrollbar — sleek, minimal */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.14); }

/* ============================================
   SCROLL-REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.04s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.16s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.20s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.24s; }

/* ============================================
   GRAIN OVERLAY (subtle texture)
   ============================================ */

.grain::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   BUTTONS — refined, tactile
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    position: relative;
    letter-spacing: 0;
    line-height: 1;
    user-select: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent-primary);
    color: #1c1b1a;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 2px 12px rgba(200, 149, 106, 0.25);
}
.btn-primary:disabled {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Loading state */
.btn.loading { pointer-events: none; color: transparent; }
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-secondary);
}

.btn-danger {
    background: rgba(197, 73, 60, 0.08);
    color: var(--error);
    border: 1px solid rgba(197, 73, 60, 0.2);
}
.btn-danger:hover {
    background: rgba(197, 73, 60, 0.15);
    border-color: rgba(197, 73, 60, 0.3);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
}

/* ============================================
   FORMS — clean, spacious
   ============================================ */

.form-group { margin-bottom: var(--space-md); }

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--text-base);
    outline: none;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(200, 149, 106, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }

/* ============================================
   CARDS — soft elevation, warm
   ============================================ */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
    border-color: var(--border-secondary);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-body { padding: var(--space-lg); }

/* ============================================
   TABLES
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-primary);
}

.table th {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table td { color: var(--text-secondary); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { color: var(--text-primary); }

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.badge-success { background: rgba(106, 173, 90, 0.1); color: var(--success); }
.badge-warning { background: rgba(212, 151, 58, 0.1); color: var(--warning); }
.badge-error { background: rgba(197, 73, 60, 0.1); color: var(--error); }
.badge-info { background: rgba(90, 158, 197, 0.1); color: var(--info); }

/* ============================================
   TABS
   ============================================ */

.tabs {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: -1px;
}

.tab:hover { color: var(--text-primary); }
.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   LOGO — refined mark
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-gold));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1b1a;
    flex-shrink: 0;
    font-size: 0.875rem;
}

/* ============================================
   SIDEBAR (shared across app pages)
   ============================================ */

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-primary);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-sm);
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--text-tertiary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 450;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-active);
    color: var(--text-primary);
}

.nav-link i { width: 20px; text-align: center; font-size: 0.9375rem; }

.sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: #1c1b1a;
    flex-shrink: 0;
}

.user-name { font-size: var(--text-sm); font-weight: 500; }
.user-tier { font-size: var(--text-xs); color: var(--text-tertiary); }

/* ============================================
   PAGE LAYOUT (sidebar pages)
   ============================================ */

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-xl) var(--space-2xl);
}

.page-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
}

.page-actions { display: flex; gap: var(--space-sm); }

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--transition-base), transform var(--transition-smooth), box-shadow var(--transition-base);
}
.stat-card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-sm);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(200, 149, 106, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.stat-icon.purple { background: rgba(139, 124, 246, 0.08); color: var(--brand-purple); }
.stat-icon.green { background: rgba(106, 173, 90, 0.08); color: var(--success); }
.stat-icon.orange { background: rgba(212, 151, 58, 0.08); color: var(--warning); }
.stat-icon.blue { background: rgba(90, 158, 197, 0.08); color: var(--info); }

.stat-label { font-size: var(--text-sm); color: var(--text-secondary); }
.stat-value { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.stat-change { font-size: var(--text-sm); color: var(--success); margin-top: var(--space-xs); }
.stat-change.negative { color: var(--error); }

/* ============================================
   TWO COLUMN GRID
   ============================================ */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* ============================================
   NAVBAR (public pages) — floating, glassy
   ============================================ */

.navbar {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    z-index: 100;
    background: rgba(28, 27, 26, 0.7);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: background var(--transition-slow), box-shadow var(--transition-slow);
}
.navbar.scrolled {
    background: rgba(28, 27, 26, 0.92);
    box-shadow: var(--shadow-lg);
}

.navbar-content {
    padding: 10px var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo { font-size: var(--text-xl); }
.navbar .logo-icon { width: 32px; height: 32px; }

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.navbar .nav-link {
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
    font-size: var(--text-sm);
    font-weight: 450;
}
.navbar .nav-link:hover { background: none; color: var(--text-primary); }

.nav-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

/* ============================================
   NAV DROPDOWN (Pricing menu)
   ============================================ */

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: none;
    border: none;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    font-weight: 450;
    padding: 0;
    transition: color var(--transition-fast);
}

.dropdown-trigger:hover {
    color: var(--text-primary);
}

.dropdown-chevron {
    font-size: 0.5625rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
    z-index: 110;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    color: var(--accent-primary);
    background: rgba(200, 149, 106, 0.06);
}

/* ============================================
   SECTION HEADERS (public pages)
   ============================================ */

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto var(--space-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 400;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER (public pages)
   ============================================ */

.footer {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
}

.footer-links { display: flex; gap: var(--space-xl); }

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-base);
}
.footer-link:hover { color: var(--text-primary); }

.footer-copy { color: var(--text-muted); font-size: var(--text-sm); }

.footer-legal {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    line-height: 1.5;
    max-width: 600px;
}

/* ============================================
   MODALS — elevated glass panels
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal { transform: scale(1) translateY(0); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.modal-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border-primary);
    justify-content: flex-end;
}

/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.mobile-menu-btn:hover { background: var(--bg-hover); }

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 27, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav.active {
    display: flex;
    opacity: 1;
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    transition: color var(--transition-fast);
}
.mobile-nav a:hover { color: var(--accent-primary); }

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton {
    background: linear-gradient(90deg,
        var(--bg-elevated) 25%,
        rgba(255, 255, 255, 0.04) 50%,
        var(--bg-elevated) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-heading { height: 24px; width: 40%; margin-bottom: 16px; }
.skeleton-avatar { width: 32px; height: 32px; border-radius: 50%; }
.skeleton-card { height: 120px; }

/* ============================================
   RESPONSIVE DEFAULTS
   ============================================ */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: var(--space-md); }
    .two-column { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .footer-content { flex-direction: column; gap: var(--space-md); text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: var(--radius-md);
    }
}
