/* ═══════════════════════════════════════════════════════════════════════════
   ByteDashboard — Modern Enterprise SaaS Design System
   Primary: Indigo 600 (#4F46E5)   Secondary: Violet 600 (#7C3AED)
   Font: Plus Jakarta Sans
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-dark:        #F8FAFC;   /* page surface  (Slate 50)  */
    --bg-card:        #FFFFFF;   /* raised cards  (White)     */
    --bg-card-hover:  #F8FAFC;   /* card hover    (Slate 50)  */

    /* Brand */
    --primary:        #4F46E5;   /* Indigo 600 */
    --secondary:      #7C3AED;   /* Violet 600 */
    --accent-blue:    #4F46E5;   /* alias → primary           */
    --accent-purple:  #7C3AED;   /* alias → secondary         */

    /* Semantic */
    --accent-green:   #10B981;   /* Emerald 500  */
    --accent-yellow:  #F59E0B;   /* Amber  500   */
    --accent-red:     #EF4444;   /* Red    500   */

    /* Text */
    --text-primary:   #0F172A;   /* Slate 900 */
    --text-secondary: #64748B;   /* Slate 500 */

    /* Borders */
    --border-color:   #E2E8F0;   /* Slate 200 */

    /* Shadows — indigo-tinted */
    --shadow-card:  0 4px 20px -2px rgba(79, 70, 229, 0.10);
    --shadow-hover: 0 10px 25px -5px rgba(79, 70, 229, 0.15),
                    0 8px 10px -6px rgba(79, 70, 229, 0.10);
    --shadow-btn:   0 4px 14px 0 rgba(79, 70, 229, 0.30);
    --glass-shadow: var(--shadow-card);

    /* ── Legacy / compatibility aliases ── */
    --bg-secondary:  #F8FAFC;
    --bg-hover:      #F1F5F9;
    --primary-color: #4F46E5;
    --card-bg:       #FFFFFF;
    --bg-muted:      #F8FAFC;
    --border:        #E2E8F0;
    --text-muted:    #64748B;
    --accent:        #4F46E5;
}

/* ── Dark Theme Overrides ──────────────────────────────────────────────────── */
html[data-theme="dark"] {
    /* Tells the UA to render native form controls (selects, dropdown
       popups, scrollbars) using the dark colour scheme. Without this
       flag the option-list popup that Chromium opens for a <select>
       still renders with a light system theme even though our CSS
       vars flip — because that popup is OS-painted, not DOM. */
    color-scheme: dark;

    /* Backgrounds */
    --bg-dark:        #0B1120;   /* page surface (deep slate)   */
    --bg-card:        #111827;   /* raised cards (Slate 900-ish)*/
    --bg-card-hover:  #1E293B;   /* card hover                  */

    /* Text */
    --text-primary:   #F1F5F9;   /* Slate 100 */
    --text-secondary: #94A3B8;   /* Slate 400 */

    /* Borders */
    --border-color:   #1F2937;   /* Slate 800 */

    /* Shadows — desaturated so they sit gently on dark surfaces */
    --shadow-card:  0 4px 20px -2px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.45),
                    0 8px 10px -6px rgba(0, 0, 0, 0.35);
    --shadow-btn:   0 4px 14px 0 rgba(79, 70, 229, 0.45);
    --glass-shadow: var(--shadow-card);

    /* Legacy aliases */
    --bg-secondary:  #0F172A;
    --bg-hover:      #1E293B;
    --card-bg:       #111827;
    --bg-muted:      #0F172A;
    --border:        #1F2937;
    --text-muted:    #94A3B8;
}

/* Images that are intrinsically dark-ink (like the Byte logo) stay legible
   on dark backgrounds by getting inverted brightness — the purple stays,
   the dark-ink bits lighten up. Apply only to the logo-mark class. */
html[data-theme="dark"] .theme-invert-on-dark {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* ── Theme toggle switch ──────────────────────────────────────────────────── */
.theme-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}
.theme-switch:hover { border-color: var(--primary); color: var(--text-primary); }
.theme-switch input { position: absolute; opacity: 0; pointer-events: none; }

.theme-switch .track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 99px;
    background: var(--border-color);
    transition: background 0.25s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.theme-switch .thumb {
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.25s ease, background 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
}
.theme-switch input:checked ~ .track {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.theme-switch input:checked ~ .track .thumb {
    transform: translateX(18px);
    background: #0F172A;
    color: #E2E8F0;
}
.theme-switch .thumb svg { width: 10px; height: 10px; stroke-width: 2.5; }
.theme-switch .label-text { pointer-events: none; }

/* Compact variant for the auth pages — icon-only floating button */
.theme-switch.compact {
    width: auto;
    padding: 6px 10px;
    gap: 8px;
    font-size: 11px;
}
.theme-switch.compact .track { width: 34px; height: 20px; }
.theme-switch.compact .thumb { width: 16px; height: 16px; }
.theme-switch.compact input:checked ~ .track .thumb { transform: translateX(14px); }

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

/* ── Base ───────────────────────────────────────────────────────────────────── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ═══ SIDEBAR ═══════════════════════════════════════════════════════════════ */
.sidebar {
    width: 256px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(79, 70, 229, 0.04);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    padding: 0 8px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

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

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke-width: 2;
}

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

.nav-item.active {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

.nav-item.active svg { color: var(--primary); }

.nav-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 0 4px;
}

.dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-green);
    flex-shrink: 0;
}

/* ═══ MAIN CONTENT ═══════════════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    margin-left: 256px;
    padding: 36px 40px;
    min-height: 100vh;
}

/* ── Dashboard Header ────────────────────────────────────────────────────────── */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 36px;
}

h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.time-display { text-align: right; }

#current-time {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.date {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ═══ KPI CARDS ═════════════════════════════════════════════════════════════ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.kpi-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: 0.7;
}

.kpi-card.purple { color: var(--secondary); }
.kpi-card.blue   { color: var(--primary); }
.kpi-card.yellow { color: var(--accent-yellow); }
.kpi-card.red    { color: var(--accent-red); }
.kpi-card.green  { color: var(--accent-green); }

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: currentColor;
    font-size: 18px;
}

.kpi-icon::before { filter: invert(1); }

.kpi-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ── Page Header ─────────────────────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.actions {
    display: flex;
    gap: 10px;
}

/* ═══ BUTTONS ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; }

.btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(79, 70, 229, 0.40);
}

.btn.secondary,
.btn.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn.secondary:hover,
.btn.btn-secondary:hover {
    /* var(--bg-hover) flips between Slate-100 (light) and Slate-800 (dark)
       so the hover state stays readable in both themes. The previous
       hardcoded #F1F5F9 left dark-mode buttons white-on-white. */
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn.danger {
    background: var(--accent-red);
    color: #fff;
}

.btn.danger:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* ─── Controls ────────────────────────────────────────────────────────────── */
.controls-bar { margin-bottom: 20px; }

.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    outline: none;
}

.search-box input::placeholder { color: var(--text-secondary); }
.search-box i, .search-box svg { color: var(--text-secondary); }

/* ═══ TABLE ═════════════════════════════════════════════════════════════════ */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

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

th {
    text-align: left;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    vertical-align: middle;
}

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

tr:hover td { background: rgba(79, 70, 229, 0.025); }

/* ── Prior-year Xero status indicator ──
   Small circular dot rendered IN-LINE BEFORE the current Xero Status
   pill on the SA worklist. Driven by `prior_xero_status` from the
   joined query (see db_manager.get_all_sa_clients). Colour is set
   inline via the `style` attribute because the colour comes from
   the data, not from a fixed status class. The cell uses
   `white-space: nowrap` so the dot and pill always stay on the
   same line — previously the dot wrapped to a second row when the
   column was narrow. Hover the dot to see the full prior-year label. */
tr td .prior-xero-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    cursor: help;
}

/* ── Row highlight: SA wizard completed ──
   Used by /self-assessment to make rows where the client has finished
   their wizard form jump out of the list. Green left-edge stripe + a
   subtle emerald wash on every cell. The hover override stays but is
   tinted toward green so the highlight survives interaction. */
tr.row-wizard-done td {
    background: rgba(16, 185, 129, 0.06);
}
tr.row-wizard-done td:first-child {
    box-shadow: inset 4px 0 0 #10B981;
}
tr.row-wizard-done:hover td {
    background: rgba(16, 185, 129, 0.10);
}

.company-info { display: flex; flex-direction: column; gap: 2px; }
.company-name  { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.company-number { font-size: 12px; color: var(--text-secondary); }

.days-normal  { color: var(--text-secondary); }
.days-warning { color: var(--accent-yellow); font-weight: 600; }
.days-overdue { color: var(--accent-red);    font-weight: 700; }

/* ═══ STATUS SELECT ═════════════════════════════════════════════════════════ */
.status-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    width: 100%;
    max-width: 170px;
    transition: border-color 0.15s;
}

.status-select:focus { border-color: var(--primary); }
.status-select option { background: var(--bg-card); color: var(--text-primary); }

.status-select.status-not-started    { color: var(--text-secondary); }
.status-select.status-started        { color: var(--primary);        border-color: var(--primary);        background: rgba(79,70,229,0.05); }
.status-select.status-sent-to-client { color: var(--secondary);      border-color: var(--secondary);      background: rgba(124,58,237,0.05); }
.status-select.status-missing-information { color: var(--accent-red); border-color: var(--accent-red);    background: rgba(239,68,68,0.05); }
.status-select.status-ready-to-submit     { color: var(--accent-green); border-color: var(--accent-green); background: rgba(16,185,129,0.05); }
.status-select.status-ready-for-review    { color: var(--accent-yellow); border-color: var(--accent-yellow); background: rgba(245,158,11,0.05); }

/* ═══ FILTERS ═══════════════════════════════════════════════════════════════ */
.filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    min-width: 140px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.filter-select option { background: var(--bg-card); color: var(--text-primary); }

/* ── Toggle Label ─────────────────────────────────────────────────────────── */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toggle-label:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.toggle-label span { color: var(--text-primary); }

/* ═══ BADGES ════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    /* Themed surface — Slate-100 in light, Slate-800 in dark — so the
       Reference pill on the SA worklist doesn't render as a white box
       on a dark background. */
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.xero-filed {
    background: rgba(16,185,129,0.10);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
}

.xero-draft {
    background: rgba(245,158,11,0.10);
    color: #D97706;
    border: 1px solid rgba(245,158,11,0.25);
}

.xero-sent-to-client {
    background: rgba(79,70,229,0.10);
    color: var(--primary);
    border: 1px solid rgba(79,70,229,0.25);
}

.xero-ready-for-review {
    background: rgba(124,58,237,0.10);
    color: var(--secondary);
    border: 1px solid rgba(124,58,237,0.25);
}

.xero-unknown {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ═══ ICON BUTTONS ══════════════════════════════════════════════════════════ */
.btn-delete, .btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover { background: rgba(239,68,68,0.10);  color: var(--accent-red); }
.btn-icon:hover   { background: rgba(79,70,229,0.10); color: var(--primary); }

/* ═══ MODAL ═════════════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(79, 70, 229, 0.18);
}

.modal-content.large { max-width: 800px; }

.modal-content h2 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ═══ FORM GROUPS ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.10);
}

/* ═══ COMMENTS ══════════════════════════════════════════════════════════════ */
.comments-preview {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.comments-preview:hover { background: var(--bg-hover); }

.has-comments  { color: var(--primary); }
.no-comments   { color: #CBD5E1; }

.comment-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* ═══ CLIENT COUNT BAR ══════════════════════════════════════════════════════ */
.client-count-bar {
    padding: 10px 16px;
    background: rgba(79, 70, 229, 0.06);
    border-left: 3px solid var(--primary);
    margin-bottom: 14px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-count-bar strong { color: var(--text-primary); font-weight: 600; }
.client-count-bar span   { color: var(--primary); font-weight: 700; font-size: 15px; }

/* ═══ ANIMATIONS ════════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.fade-in { animation: fadeIn 0.2s ease-out; }
