/* ─── ARTMIC FUSION THEME ──────────────────────────────────────────── */

:root {
    --orange-hot: #F26B1D;
    --orange-light: #F89B4B;
    --orange-glow: #FF8C38;
    --red-deep: #C43E1C;
    --bg-cream: #FFF8F2;
    --bg-dark: #1A1008;
    --text-primary: #1A1008;
    --text-secondary: #6B5A48;
    --text-light: #A89282;
    --white: #FFFFFF;
    --border-soft: rgba(194, 62, 28, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ─── NAV (only shown when authenticated) ───────────────────────── */
.app-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(20px);
    background: rgba(255, 248, 242, 0.92);
    border-bottom: 1px solid var(--border-soft);
}
.app-nav .brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    font-weight: 800; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--orange-hot), var(--red-deep));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -0.02em;
}
.app-nav .nav-right {
    display: flex; align-items: center; gap: 18px;
}
.app-nav .user-pill {
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(242, 107, 29, 0.08);
    border: 1px solid rgba(242, 107, 29, 0.15);
    color: var(--orange-hot);
    font-size: 0.82rem; font-weight: 600;
    font-family: 'Space Mono', monospace;
}

/* ─── BUTTONS (lifted from index.html) ──────────────────────────── */
.btn-primary {
    padding: 11px 24px; border: none; border-radius: 50px;
    background: var(--orange-hot); color: var(--white);
    font-family: inherit; font-weight: 600; font-size: 0.88rem;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(242, 107, 29, 0.3);
    text-decoration: none; display: inline-block;
}
.btn-primary:hover {
    background: var(--red-deep); transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(242, 107, 29, 0.4);
    color: var(--white);
}
.btn-primary-lg { padding: 15px 36px; font-size: 0.95rem; }

.btn-ghost {
    padding: 10px 22px; border: 1.5px solid var(--text-primary);
    border-radius: 50px; background: transparent; color: var(--text-primary);
    font-family: inherit; font-weight: 600; font-size: 0.86rem;
    cursor: pointer; transition: all 0.3s; text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { background: var(--text-primary); color: var(--white); }

.btn-danger {
    padding: 11px 24px; border: none; border-radius: 50px;
    background: var(--red-deep); color: var(--white);
    font-family: inherit; font-weight: 600; font-size: 0.88rem;
    cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(196, 62, 28, 0.3);
    text-decoration: none; display: inline-block;
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(196, 62, 28, 0.4); color: var(--white); }

.accent {
    background: linear-gradient(135deg, var(--orange-hot), var(--red-deep));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ─── PAGE WRAPPER (used by inner pages with the nav) ──────────── */
.app-shell {
    padding: 96px 32px 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, #FFF5EC 100%);
}
.app-shell .page-head {
    max-width: 1200px; margin: 0 auto 28px;
    display: flex; align-items: end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.app-shell .page-head h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.app-shell .page-head .section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.14em; color: var(--orange-hot); margin-bottom: 8px;
}
.app-shell .page-content {
    max-width: 1200px; margin: 0 auto;
}

/* Full-bleed pages (e.g. Active Users) stretch to the whole window width, so
   a wide grid only needs sideways scrolling when the window is actually
   narrower than the table (phones). On a maximised desktop window it just
   fits. The grid's own .table-scroll still provides the scroll when needed. */
.app-shell .page-head--wide,
.app-shell .page-content--wide {
    max-width: 100%;
}

/* ─── ALERTS ────────────────────────────────────────────────────── */
.alert {
    max-width: 1200px; margin: 0 auto 18px;
    padding: 14px 20px; border-radius: 14px; font-size: 0.92rem;
    border: 1px solid transparent;
}
.alert-error {
    background: rgba(196, 62, 28, 0.08); color: var(--red-deep);
    border-color: rgba(196, 62, 28, 0.2);
}
.alert-success {
    background: rgba(242, 107, 29, 0.08); color: var(--orange-hot);
    border-color: rgba(242, 107, 29, 0.2);
}

/* ─── DATA TABLE ────────────────────────────────────────────────── */
.data-card {
    background: var(--white); border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 40px rgba(194, 62, 28, 0.04);
    overflow: hidden;
}
.data-card .table-meta {
    padding: 14px 22px;
    background: linear-gradient(180deg, #FFF5EC 0%, var(--white) 100%);
    border-bottom: 1px solid var(--border-soft);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem; color: var(--text-secondary);
    display: flex; justify-content: space-between; align-items: center;
}
.data-table {
    width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.data-table thead th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700; font-size: 0.74rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-secondary);
    background: #FFFAF5;
    border-bottom: 2px solid var(--border-soft);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(194, 62, 28, 0.04);
    color: var(--text-primary);
    vertical-align: top;
}
.data-table tbody tr:hover td {
    background: rgba(242, 107, 29, 0.04);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .cid-cell {
    font-family: 'Space Mono', monospace;
    color: var(--orange-hot); font-weight: 700;
}
.data-table .truncate {
    max-width: 320px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
}
.row-actions { display: flex; gap: 8px; }
.row-actions a {
    padding: 6px 14px; border-radius: 50px; font-size: 0.78rem;
    font-weight: 600; text-decoration: none;
    background: rgba(242, 107, 29, 0.1); color: var(--orange-hot);
    transition: all 0.2s;
}
.row-actions a:hover { background: var(--orange-hot); color: var(--white); }

.empty-state {
    padding: 60px 20px; text-align: center; color: var(--text-light);
}

/* ─── FORM CARD ─────────────────────────────────────────────────── */
.form-card {
    background: var(--white); border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 40px rgba(194, 62, 28, 0.04);
    padding: 32px; max-width: 720px; margin: 0 auto;
}
.form-card h2 {
    font-size: 1.4rem; font-weight: 800; margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.form-card .form-sub {
    color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-weight: 600; font-size: 0.82rem;
    color: var(--text-primary);
}
.form-control {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid rgba(194, 62, 28, 0.12);
    border-radius: 12px; font-family: inherit; font-size: 0.92rem;
    background: var(--white); color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none; border-color: var(--orange-hot);
    box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-actions {
    display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
.field-error {
    color: var(--red-deep); font-size: 0.82rem; margin-top: 4px;
}
.summary-error {
    background: rgba(196, 62, 28, 0.06); color: var(--red-deep);
    padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
    font-size: 0.86rem;
}

/* ─── LOGIN / LANDING (with globe) ──────────────────────────────── */
.globe-page {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF5EC 30%, #FFE4CC 60%, #FFD2A8 100%);
    position: relative;
}
.globe-page::before {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 120%; height: 80%;
    background: radial-gradient(ellipse at center, rgba(242, 107, 29, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.globe-page .stage {
    position: relative; z-index: 2;
    width: 100%; max-width: 460px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.globe-page h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
    margin-bottom: 8px;
    opacity: 0; animation: fadeSlideUp 0.8s ease 0.3s forwards;
}
.globe-page .tagline {
    font-size: 0.95rem; color: var(--text-secondary);
    margin-bottom: 28px;
    opacity: 0; animation: fadeSlideUp 0.8s ease 0.45s forwards;
}

/* ─── SMALL GLOBE (~25% of original 960px) ──────────────────────── */
.globe-wrapper-small {
    position: relative;
    width: 240px; height: 240px;
    max-width: 60vw; max-height: 60vw;
    margin-bottom: 24px;
    opacity: 0; animation: fadeIn 1s ease 0.2s forwards;
}
.globe-wrapper-small .globe-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -48%);
    width: 140%; height: 160%;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.12) 35%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 65%);
    border-radius: 50%; pointer-events: none;
    animation: glowPulse 4s ease infinite;
}
.globe-wrapper-small canvas {
    width: 100%; height: 100%; border-radius: 50%;
    position: relative; z-index: 1;
    cursor: grab; touch-action: none;
}
.globe-wrapper-small canvas:active { cursor: grabbing; }

/* Login form sits under the globe */
.login-card {
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 16px 48px rgba(194, 62, 28, 0.1);
    opacity: 0; animation: fadeSlideUp 0.8s ease 0.6s forwards;
}

/* Landing-page action grid (Active Users / Connections / Exit) */
.landing-actions {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px; width: 100%;
    opacity: 0; animation: fadeSlideUp 0.8s ease 0.6s forwards;
}
.landing-actions a {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 10px; padding: 22px;
    background: var(--white); border-radius: 18px;
    border: 1px solid var(--border-soft);
    text-decoration: none; color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 6px 24px rgba(194, 62, 28, 0.05);
}
.landing-actions a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(242, 107, 29, 0.15);
    border-color: rgba(242, 107, 29, 0.25);
}
.landing-actions a.danger:hover { border-color: rgba(196, 62, 28, 0.35); }
.landing-actions .icon-circle {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(242, 107, 29, 0.12), rgba(196, 62, 28, 0.05));
}
.landing-actions a.danger .icon-circle {
    background: linear-gradient(135deg, rgba(196, 62, 28, 0.15), rgba(196, 62, 28, 0.05));
}
.landing-actions svg { width: 22px; height: 22px; stroke: var(--orange-hot); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.landing-actions a.danger svg { stroke: var(--red-deep); }
.landing-actions h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.landing-actions p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glowPulse { 0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); } }

/* ─── FILTER CARD (above the data grid) ─────────────────────────── */
.filter-card {
    background: var(--white); border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 24px rgba(194, 62, 28, 0.04);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.filter-grid .form-group { margin-bottom: 0; }
.filter-grid .form-group label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 5px;
}
.filter-grid .form-control { padding: 10px 12px; font-size: 0.88rem; }
.filter-actions {
    display: flex; gap: 10px; margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(194, 62, 28, 0.08);
}

/* ─── PAGINATION BAR ────────────────────────────────────────────── */
.pagination-bar {
    margin-top: 18px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; flex-wrap: wrap;
    padding: 14px 22px;
    background: var(--white); border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 24px rgba(194, 62, 28, 0.04);
}
.pagination-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem; color: var(--text-secondary);
}
.pagination-status strong {
    color: var(--orange-hot);
    font-weight: 700;
}
.pagination-controls {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.page-btn {
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600;
    text-decoration: none;
    background: rgba(242, 107, 29, 0.08);
    color: var(--orange-hot);
    border: 1px solid transparent;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}
.page-btn:hover:not(.disabled) {
    background: var(--orange-hot);
    color: var(--white);
    transform: translateY(-1px);
}
.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-light);
    background: rgba(168, 146, 130, 0.08);
}

/* ─── HORIZONTAL-SCROLL TABLE WRAPPER ───────────────────────────── */
/* Wraps wide grids (Active Users, Statistics) so every column/value can
   be reached by scrolling sideways – nothing gets clipped. */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;          /* momentum scroll on iOS */
    scrollbar-width: thin;                       /* Firefox */
    scrollbar-color: var(--orange-light) transparent;
}
/* Inside a scroll wrapper, never wrap or truncate – the user reads every
   value by scrolling across, so the table grows to fit its content. */
.table-scroll .data-table { width: max-content; min-width: 100%; }
.table-scroll .data-table th,
.table-scroll .data-table td { white-space: nowrap; }

/* Slim, on-brand scrollbar (WebKit / Chromium / Edge) */
.table-scroll::-webkit-scrollbar { height: 10px; }
.table-scroll::-webkit-scrollbar-track {
    background: rgba(242, 107, 29, 0.06); border-radius: 50px;
}
.table-scroll::-webkit-scrollbar-thumb {
    background: var(--orange-light); border-radius: 50px;
}
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--orange-hot); }

/* The TheVersion column – monospace so build numbers line up. */
.data-table .version-cell {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    color: var(--red-deep);
    font-weight: 700;
}

/* ─── EMPLOYEES: PASSWORD COLUMN ────────────────────────────────── */
/* Passwords render masked (fixed-width dots, so length isn't leaked).
   Toggling .show-pw on the data card swaps mask ↔ real value. */
.data-table .pw-cell {
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
}
.data-table .pw-cell .pw-mask { color: var(--text-light); letter-spacing: 0.1em; }
.data-table .pw-cell .pw-real { display: none; color: var(--red-deep); font-weight: 700; }
.data-card.show-pw .pw-cell .pw-real { display: inline; }
.data-card.show-pw .pw-cell .pw-mask { display: none; }

/* Right-hand cluster of the table meta bar (toggle + order note). */
.table-meta-right { display: flex; align-items: center; gap: 14px; }

/* Small pill button that lives inside the table meta bar. */
.btn-table-toggle {
    padding: 6px 14px; border: none; border-radius: 50px;
    background: rgba(242, 107, 29, 0.1); color: var(--orange-hot);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.78rem;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-table-toggle:hover { background: var(--orange-hot); color: var(--white); }

/* ─── MINI GLOBE (page-header accent, reuses globe.js) ──────────── */
.stat-head-left { display: flex; align-items: center; gap: 18px; }
.globe-wrapper-mini {
    position: relative;
    width: 64px; height: 64px;
    flex: 0 0 auto;
}
.globe-wrapper-mini .globe-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; height: 160%;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.25) 25%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 65%);
    border-radius: 50%; pointer-events: none;
    animation: glowPulse 4s ease infinite;
}
.globe-wrapper-mini canvas {
    width: 100%; height: 100%; border-radius: 50%;
    position: relative; z-index: 1;
    cursor: grab; touch-action: none;
}
.globe-wrapper-mini canvas:active { cursor: grabbing; }

/* ─── STAT HEADLINE CARDS (Statistics page) ─────────────────────── */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.stat-card {
    background: var(--white); border-radius: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 6px 24px rgba(194, 62, 28, 0.04);
    padding: 22px 24px;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--orange-hot), var(--red-deep));
}
.stat-number {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1;
    background: linear-gradient(135deg, var(--orange-hot), var(--red-deep));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
    margin-top: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-secondary);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .app-nav { padding: 12px 18px; }
    .app-shell { padding: 86px 18px 48px; }
    .form-card { padding: 22px; }
    .data-table { font-size: 0.82rem; }
    .data-table thead th, .data-table tbody td { padding: 10px 12px; }
    .pagination-bar { flex-direction: column; align-items: stretch; }
    .pagination-controls { justify-content: center; }
    .stat-head-left { gap: 12px; }
    .globe-wrapper-mini { width: 48px; height: 48px; }
}

/* ═══ UPDATE 6: SORTABLE HEADERS, CHARTS, DASHBOARD ══════════════ */

/* ─── Sortable column headers ──────────────────────────────────── */
.data-table th a.sort-link {
    color: inherit; text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.data-table th a.sort-link:hover { color: var(--orange-hot); }
.data-table th a.sort-link.active { color: var(--orange-hot); }

/* ─── Drill-down links (report row → Active Users) ─────────────── */
.drill-link {
    color: var(--text-primary); font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(242, 107, 29, 0.45);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.drill-link:hover { color: var(--orange-hot); border-bottom-color: var(--orange-hot); }

/* ─── Chart cards ──────────────────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.chart-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 18px 20px 16px;
    box-shadow: 0 10px 28px rgba(196, 62, 28, 0.05);
    min-width: 0;
}
.chart-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.62rem; letter-spacing: 0.14em;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ─── Horizontal bars (top dealers / IDs / versions) ───────────── */
.hbar-row {
    display: grid;
    grid-template-columns: minmax(80px, 150px) 1fr 56px;
    gap: 10px; align-items: center;
    padding: 4px 0;
}
.hbar-label {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    color: var(--text-secondary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hbar-label a { color: inherit; text-decoration: none; }
.hbar-label a:hover { color: var(--orange-hot); }
.hbar-track {
    height: 14px; border-radius: 50px;
    background: rgba(242, 107, 29, 0.08);
    overflow: hidden;
}
.hbar-fill {
    height: 100%; border-radius: 50px;
    background: linear-gradient(90deg, var(--orange-light), var(--orange-hot));
}
.hbar-value {
    font-family: 'Space Mono', monospace; font-size: 0.7rem;
    color: var(--text-primary); font-weight: 700;
    text-align: right;
}

/* ─── Vertical bars (logins over time) ─────────────────────────── */
.vbar-wrap {
    display: flex; align-items: flex-end; gap: 3px;
    height: 150px; padding-top: 4px;
}
.vbar-wrap-sm { height: 110px; }
.vbar {
    flex: 1 1 0; min-width: 2px;
    background: linear-gradient(180deg, var(--orange-glow), var(--orange-hot));
    border-radius: 3px 3px 0 0;
    transition: filter 0.15s ease;
}
.vbar:hover { filter: brightness(0.82); }
.vbar-x {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-family: 'Space Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.06em; color: var(--text-light);
}

/* ─── Landing-page dashboard ───────────────────────────────────── */
.landing-dash {
    position: relative; z-index: 2;
    width: 100%; max-width: 880px;
    margin: 30px auto 0;
    display: flex; flex-direction: column; gap: 14px;
    opacity: 0; animation: fadeSlideUp 0.8s ease 0.75s forwards;
}
.dash-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.dash-chip {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 14px 16px 12px;
    box-shadow: 0 10px 28px rgba(196, 62, 28, 0.05);
    text-align: left;
}
.dash-number {
    font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em;
    color: var(--orange-hot); line-height: 1.15;
}
.dash-number-sm {
    font-size: 1.05rem; padding-top: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-light); margin-top: 4px;
}
.dash-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
