/* ═══════════════════════════════════════════════════════
   GeminiWeb2API — Premium Dark Dashboard CSS
   ═══════════════════════════════════════════════════════ */

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

:root {
    --bg-base:     #060b18;
    --bg-elevated: #0d1626;
    --bg-card:     rgba(13, 22, 38, 0.9);
    --bg-sidebar:  #070e1d;
    --bg-input:    rgba(255,255,255,0.05);
    --bg-hover:    rgba(99,102,241,0.08);

    --border:       rgba(99,102,241,0.12);
    --border-input: rgba(99,102,241,0.25);
    --border-focus: rgba(99,102,241,0.6);

    --accent:          #6366f1;
    --accent-2:        #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-glow:     0 0 20px rgba(99,102,241,0.35);

    --text-primary:   #e8edf5;
    --text-secondary: #94a3b8;
    --text-muted:     #4a5568;

    --success: #10b981;
    --error:   #ef4444;
    --warning: #f59e0b;
    --info:    #3b82f6;

    --success-bg: rgba(16,185,129,0.1);
    --error-bg:   rgba(239,68,68,0.1);
    --warning-bg: rgba(245,158,11,0.1);

    --sidebar-width: 252px;
    --radius:        10px;
    --radius-lg:     14px;
    --radius-sm:     6px;

    --shadow-card: 0 1px 3px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
    --shadow-modal: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

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

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
}

.sidebar-logo {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px; height: 34px;
    background: var(--accent-gradient);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--accent-glow);
    flex-shrink: 0;
}

.logo-text { font-size: 14px; font-weight: 600; line-height: 1.2; }
.logo-sub  { font-size: 11px; color: var(--text-muted); }

.sidebar-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    position: relative;
}

.nav-item svg { flex-shrink: 0; opacity: 0.8; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item:hover svg { opacity: 1; }

.nav-item.active {
    background: rgba(99,102,241,0.15);
    color: var(--accent);
}
.nav-item.active svg { opacity: 1; }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 18px;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 4px;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Status dot ──────────────────────────────────────── */
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.status-dot.active   { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.inactive { background: var(--error); }

/* ── Main content ────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.07) 0%, transparent 60%),
        var(--bg-base);
}

.page-header {
    padding: 28px 32px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.page-body {
    padding: 24px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

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

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-link {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* ── Stats grid ──────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
    border-color: var(--border-input);
    transform: translateY(-1px);
}

.stat-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-purple { background: rgba(99,102,241,0.15); color: var(--accent); }
.stat-icon-blue   { background: rgba(59,130,246,0.15); color: var(--info); }
.stat-icon-green  { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-icon-orange { background: rgba(245,158,11,0.15); color: var(--warning); }

.stat-info { flex: 1; min-width: 0; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 2px; letter-spacing: -0.5px; }
.stat-unit  { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.stat-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.progress-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 6px; }
.progress-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.progress-fill.success { background: var(--accent-gradient); }

/* ── Two column grid ─────────────────────────────────── */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
    transition: background 0.12s;
}

.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table .row-error      { background: rgba(239,68,68,0.04); }
.data-table .row-error:hover{ background: rgba(239,68,68,0.07); }

.logs-table .error-cell { font-size: 12px; max-width: 200px; }

.response-time-cell { display: flex; align-items: center; gap: 8px; }
.time-bar { width: 50px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; flex-shrink: 0; }
.time-bar-fill { height: 100%; border-radius: 2px; }
.time-bar-fill.fast   { background: var(--success); }
.time-bar-fill.medium { background: var(--warning); }
.time-bar-fill.slow   { background: var(--error); }

/* ── Badges ──────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error   { background: var(--error-bg);   color: var(--error); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }

.model-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(99,102,241,0.12);
    color: var(--accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.token-name-cell {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Text helpers ────────────────────────────────────── */
.mono     { font-family: 'JetBrains Mono', monospace; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-warning { color: var(--warning); }

/* ── Token status list (overview) ────────────────────── */
.token-status-list { padding: 8px 0; }
.token-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.token-status-item:last-child { border-bottom: none; }
.token-status-item:hover { background: var(--bg-hover); }
.token-status-left { display: flex; align-items: center; gap: 10px; }
.token-status-name { font-weight: 500; font-size: 13px; }
.token-status-meta { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── Token cards ─────────────────────────────────────── */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.token-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, transform 0.2s;
}

.token-card:hover { border-color: var(--border-input); transform: translateY(-1px); }
.token-card-inactive { opacity: 0.6; }

.token-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.token-card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.token-card-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.token-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.token-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.token-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
}

.token-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; display: block; }
.token-stat-value { font-size: 16px; font-weight: 700; margin-top: 2px; display: block; }

.token-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    background: var(--error-bg);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--error);
}

.token-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

/* ── Icon buttons ────────────────────────────────────── */
.icon-btn {
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: rgba(255,255,255,0.05);
}

.icon-btn:hover { border-color: var(--border-input); transform: scale(1.05); }

.icon-btn-blue   { color: var(--info); }
.icon-btn-yellow { color: var(--warning); }
.icon-btn-orange { color: #f97316; }
.icon-btn-green  { color: var(--success); }
.icon-btn-red    { color: var(--error); }

.icon-btn-blue:hover   { background: rgba(59,130,246,0.12); }
.icon-btn-yellow:hover { background: rgba(245,158,11,0.12); }
.icon-btn-orange:hover { background: rgba(249,115,22,0.12); }
.icon-btn-green:hover  { background: rgba(16,185,129,0.12); }
.icon-btn-red:hover    { background: rgba(239,68,68,0.12); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4); }

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

.btn-danger {
    background: var(--error-bg);
    color: var(--error);
    border-color: rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-lg { padding: 10px 20px; font-size: 14px; }

/* ── Forms ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12.5px; font-weight: 500; color: var(--text-secondary); }

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-input[readonly] { opacity: 0.6; cursor: default; }

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.form-select option { background: #0d1626; }

.form-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; }
.form-hint code {
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
}

.info-box {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.info-box a { color: var(--info); }
.info-box code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

/* ── Toggle switch ───────────────────────────────────── */
.toggle-row { display: flex; align-items: center; gap: 10px; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 22px;
    transition: 0.2s;
    border: 1px solid var(--border-input);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.toggle-label { font-size: 13px; color: var(--text-secondary); }

/* ── Modal ───────────────────────────────────────────── */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.15s ease;
}

.modal-backdrop.open { display: block; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open { display: flex; }

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.2s ease;
}

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

.modal-header h3 { font-size: 16px; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Filters ─────────────────────────────────────────── */
.filter-card { padding: 16px 20px; }
.filter-form { width: 100%; }
.filter-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filter-row .form-group { min-width: 160px; }
.filter-clear .form-label { visibility: hidden; }

/* ── Pagination ──────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid var(--border);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.page-btn:hover { color: var(--text-primary); border-color: var(--border-input); }

.page-info { font-size: 13px; color: var(--text-muted); }

/* ── Settings layout ─────────────────────────────────── */
.settings-layout { display: flex; flex-direction: column; gap: 20px; }
.settings-card .card-header { padding: 14px 20px; }
.settings-section { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.settings-actions { display: flex; justify-content: flex-end; }

.endpoint-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: rgba(255,255,255,0.06);
    padding: 4px 8px;
    border-radius: 4px;
}

/* ── Code block ──────────────────────────────────────── */
.code-block-wrap { position: relative; padding: 16px 20px; }
.code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    overflow-x: auto;
    color: #a5d6ff;
    line-height: 1.7;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 28px;
    right: 32px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.15);
    border: 1px solid var(--border-input);
    border-radius: 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.copy-btn:hover { background: rgba(99,102,241,0.25); }

/* ── Empty states ────────────────────────────────────── */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 10px;
    color: var(--text-muted);
    text-align: center;
}

.empty-page-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 12px;
    color: var(--text-muted);
    text-align: center;
}

.empty-icon { color: var(--border); margin-bottom: 8px; }
.empty-page-state h3 { font-size: 18px; font-weight: 600; color: var(--text-secondary); }
.empty-page-state p { font-size: 14px; max-width: 300px; }

/* ── Toast notifications ─────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    font-size: 13.5px;
    min-width: 240px;
    max-width: 380px;
    animation: toastIn 0.25s ease;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast.info    { border-left: 3px solid var(--info); }

.toast.fade-out { animation: toastOut 0.25s ease forwards; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastIn  { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }

/* ── Scrollbar ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    :root { --sidebar-width: 0px; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .page-header, .page-body { padding-left: 16px; padding-right: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .tokens-grid { grid-template-columns: 1fr; }
}
