@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
    --fit-red:      #F15162;
    --fit-red-2:    #F4705A;
    --dark:         #1D2228;
    --steel:        #303740;
    --aqua:         #41D8B4;
    --orange:       #FF9D57;
    --midnight:     #29294C;
    --bg:           #f4f6f8;
}

* { font-family: 'Poppins', sans-serif; }

body {
    background: var(--bg);
    background-image:
        radial-gradient(at 85% 5%,  rgba(241,81,98,0.05)  0%, transparent 45%),
        radial-gradient(at 15% 95%, rgba(65,216,180,0.05) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--midnight);
}

/* ── Navbar ─────────────────────────────────────────── */
.vfit-nav {
    background: var(--dark);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.vfit-brand {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vfit-brand .heart {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, #F15162, #F4705A);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}

.vfit-brand strong { font-weight: 600; }

/* ── Buttons ────────────────────────────────────────── */
.btn-vfit {
    background: linear-gradient(90deg, var(--fit-red), var(--fit-red-2));
    color: white !important;
    border: none;
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn-vfit:hover { opacity: 0.88; }

.btn-export {
    background: rgba(29,111,66,0.07);
    color: #1d6f42 !important;
    border: 1.5px solid rgba(29,111,66,0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.btn-export:hover { background: rgba(29,111,66,0.14); border-color: rgba(29,111,66,0.6); }

.btn-vfit-ghost {
    background: rgba(241,81,98,0.10);
    color: var(--fit-red) !important;
    border: 1.5px solid var(--fit-red);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-vfit-ghost:hover { background: rgba(241,81,98,0.18); }

.btn-vfit-outline-dark {
    background: transparent;
    color: white !important;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: border-color 0.15s;
}
.btn-vfit-outline-dark:hover { border-color: white; }

/* ── Status / Type Badges ───────────────────────────── */
.badge-subscription { background: var(--dark)     !important; color: white !important; }
.badge-annual       { background: var(--midnight)  !important; color: white !important; }
.badge-onetime      { background: var(--steel)     !important; color: white !important; }
.badge-active       { background: var(--aqua)      !important; color: var(--dark) !important; font-weight: 600; }
.badge-inactive     { background: var(--fit-red)   !important; color: white !important; }
.badge-repeat       { background: var(--orange)    !important; color: var(--dark) !important; }
.badge-churn        { background: #6c757d          !important; color: white !important; }
.badge, span.badge  { font-size: 0.7rem; font-weight: 500; border-radius: 20px; padding: 3px 9px; }

/* ── Tables ─────────────────────────────────────────── */
.vfit-thead th {
    background: var(--dark) !important;
    color: white !important;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-color: var(--steel) !important;
}
.table td { font-size: 0.8rem; vertical-align: middle; }
.table-responsive { max-height: 70vh; overflow-y: auto; }
.vfit-thead th { position: sticky; top: 0; z-index: 1; }

/* ── Tabs ───────────────────────────────────────────── */
.nav-tabs { border-bottom: 2px solid #dee2e6; }
.nav-tabs .nav-link {
    color: var(--steel);
    font-size: 0.88rem;
    font-weight: 400;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
}
.nav-tabs .nav-link:hover { color: var(--fit-red); border-bottom-color: rgba(241,81,98,0.3); }
.nav-tabs .nav-link.active {
    color: var(--fit-red) !important;
    border-bottom: 2px solid var(--fit-red) !important;
    font-weight: 500;
    background: transparent;
}

/* ── Cards ──────────────────────────────────────────── */
.vfit-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(29,34,40,0.08);
    transition: transform 0.18s, box-shadow 0.18s;
}
.vfit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(29,34,40,0.13);
}
.vfit-card .card-header {
    background: white;
    color: var(--midnight);
    font-weight: 600;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px 16px 0 0 !important;
    padding: 10px 16px;
}

/* ── Detail labels ──────────────────────────────────── */
.detail-label { font-size: 0.7rem; color: #888; text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.detail-value { font-size: 0.88rem; color: var(--midnight); }

/* ── Activity types ─────────────────────────────────── */
.act-Call    { border-left: 4px solid var(--midnight); }
.act-Email   { border-left: 4px solid var(--aqua); }
.act-Meeting { border-left: 4px solid var(--orange); }
.act-Note    { border-left: 4px solid #aaa; }
.act-Follow-up { border-left: 4px solid var(--fit-red); }

/* ── Search box ─────────────────────────────────────── */
.vfit-search {
    border: 1.5px solid #ddd;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 0.82rem;
    outline: none;
    max-width: 360px;
    width: 100%;
}
.vfit-search:focus { border-color: var(--fit-red); box-shadow: 0 0 0 3px rgba(241,81,98,0.12); }

/* ── Renewal urgency rows ───────────────────────────── */
.urgent-high td { background: rgba(241,81,98,0.06); }
.urgent-mid  td { background: rgba(255,157,87,0.06); }

/* ── Stat cards ─────────────────────────────────────── */
.stat-card {
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    height: 100%;
    min-height: 82px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.stat-card::before {
    content: '';
    position: absolute;
    width: 140px; height: 140px;
    border-radius: 50%;
    right: -40px; top: -40px;
    background: rgba(255,255,255,0.13);
    pointer-events: none;
}
.stat-card::after {
    content: '';
    position: absolute;
    width: 90px; height: 90px;
    border-radius: 50%;
    right: 20px; bottom: -48px;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}
.stat-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.22);
    color: white;
    position: relative; z-index: 1;
}
.stat-number { font-size: 1.65rem; font-weight: 700; line-height: 1; color: white; position: relative; z-index: 1; }
.stat-label  { font-size: 0.6rem; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; margin-top: 4px; position: relative; z-index: 1; line-height: 1.3; }
.stat-sub    { font-size: 0.65rem; color: rgba(255,255,255,0.52); margin-top: 2px; position: relative; z-index: 1; white-space: nowrap; }

.stat-total   { background: linear-gradient(135deg, #29294C 0%, #5252a3 100%); }
.stat-active  { background: linear-gradient(135deg, #0ba882 0%, #2dd4b0 100%); }
.stat-warn    { background: linear-gradient(135deg, #e07c0b 0%, #f7a94a 100%); }
.stat-danger  { background: linear-gradient(135deg, #d92d4a 0%, #f4705a 100%); }
.stat-revenue { background: linear-gradient(135deg, #0d6e5a 0%, #0db87e 100%); }

/* ── Sortable table headers ─────────────────────────── */
.vfit-thead th { cursor: pointer; user-select: none; }
.vfit-thead th:hover { background: var(--steel) !important; }
.vfit-thead th::after { content: " ⇅"; opacity: 0.3; font-size: 0.65rem; }
.vfit-thead th[data-sort="asc"]::after  { content: " ↑"; opacity: 0.9; }
.vfit-thead th[data-sort="desc"]::after { content: " ↓"; opacity: 0.9; }

/* ── Logo in navbar ─────────────────────────────────── */
.vfit-logo-pill {
    background: white;
    border-radius: 8px;
    padding: 4px 10px;
    height: 36px;
    display: flex;
    align-items: center;
}
.vfit-logo-pill img { height: 26px; display: block; }

/* ── Table action column ────────────────────────────── */
.td-action { white-space: nowrap; }
.table tbody tr:hover td { background: rgba(241,81,98,0.03); }

/* ── Page header ────────────────────────────────────── */
.vfit-page-header {
    background: white;
    border-radius: 18px;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(29,34,40,0.08);
    border-left: 5px solid var(--fit-red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.vfit-page-header h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--midnight);
    font-size: 1.12rem;
    margin: 0;
}
.header-date { font-size: 0.74rem; color: #bbb; margin-top: 3px; }
.header-mini-stat { text-align: center; }
.header-mini-stat .val { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.header-mini-stat .lbl {
    font-size: 0.62rem; text-transform: uppercase;
    font-weight: 600; letter-spacing: 0.07em; color: #bbb; margin-top: 2px;
}
.header-divider { width: 1px; height: 32px; background: #eee; }
a.header-mini-stat, div.header-mini-stat[onclick] {
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    transition: background 0.15s;
}
a.header-mini-stat:hover, div.header-mini-stat[onclick]:hover { background: rgba(0,0,0,0.04); }

/* ── Section labels ─────────────────────────────────── */
.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #a0a0b0;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e4e4ee, transparent);
}

/* ── AI Insights panel ──────────────────────────────── */
.vfit-insights {
    background: linear-gradient(135deg, var(--dark) 0%, #1e1e3a 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(29,34,40,0.2);
}
.insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
    gap: 6px;
}
.insights-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--aqua);
    display: inline-block;
    animation: insightPulse 2.2s ease-in-out infinite;
}
@keyframes insightPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(65,216,180,0.5); }
    50%       { opacity: .8; box-shadow: 0 0 0 7px rgba(65,216,180,0); }
}
.insight-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 15px;
    display: flex;
    gap: 12px;
    height: 100%;
    transition: background 0.18s, transform 0.18s;
}
.insight-card:hover {
    background: rgba(255,255,255,0.085);
    transform: translateY(-2px);
}
.insight-urgent { border-left: 3px solid var(--fit-red)  !important; }
.insight-warn   { border-left: 3px solid var(--orange)   !important; }
.insight-info   { border-left: 3px solid var(--aqua)     !important; }

.insight-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.insight-urgent .insight-icon { background: rgba(241,81,98,0.15);  color: var(--fit-red); }
.insight-warn   .insight-icon { background: rgba(255,157,87,0.15);  color: var(--orange); }
.insight-info   .insight-icon { background: rgba(65,216,180,0.15);  color: var(--aqua);  }

.insight-title {
    font-size: 0.79rem; font-weight: 600;
    color: white; margin-bottom: 5px; line-height: 1.35;
}
.insight-body {
    font-size: 0.72rem; color: rgba(255,255,255,0.52);
    line-height: 1.55; margin-bottom: 9px;
}
.insight-link {
    font-size: 0.71rem; font-weight: 600;
    color: var(--aqua); text-decoration: none; letter-spacing: 0.01em;
}
.insight-link:hover { color: white; }

/* ── Header smart search ────────────────────────────────── */
.header-smart-search-wrap {
    flex: 1;
    min-width: 0;
    margin: 0 1.25rem;
}
.vfit-smart-search {
    width: 100%;
    border: 1.5px solid #e4e6ea;
    border-radius: 24px;
    padding: 9px 40px 9px 38px;
    font-size: 0.82rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: #f8f9fb;
    color: var(--midnight);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vfit-smart-search:focus {
    border-color: var(--fit-red);
    box-shadow: 0 0 0 3px rgba(241,81,98,0.10);
    background: white;
}
.vfit-smart-search::placeholder { color: #c0c0c8; font-size: 0.78rem; }

/* ── Search results banner ──────────────────────────────── */
.search-results-banner {
    background: white;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 2px 8px rgba(29,34,40,0.07);
    border-left: 4px solid var(--fit-red);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.83rem;
    color: var(--midnight);
}
/* ── Revenue section ────────────────────────────────────── */
.vfit-revenue {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0d2137 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 28px rgba(29,34,40,0.2);
}
.rev-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
    gap: 6px;
}
.rev-kpi {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.rev-kpi-icon {
    width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.rev-kpi-val  { font-size: 1.5rem; font-weight: 700; color: white; line-height: 1; }
.rev-kpi-lbl  { font-size: 0.67rem; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.35); letter-spacing: 0.07em; margin-top: 4px; }
.rev-chart-card {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px 16px;
    height: 100%;
}
.rev-chart-title {
    font-size: 0.75rem; font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 12px;
}

/* ── Agreement rows ─────────────────────────────────────── */
.agr-row:last-child { border-bottom: none !important; }
.agr-row:hover { background: rgba(241,81,98,0.03); border-radius: 8px; }

.search-query-pill {
    background: rgba(241,81,98,0.08);
    color: var(--fit-red);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── FY breakdown table ─────────────────────────────────── */
.rev-fy-table {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.78rem;
}
.rev-fy-head,
.rev-fy-row {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1.2fr 1fr 1.2fr 0.6fr;
    gap: 0;
}
.rev-fy-head {
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    color: rgba(255,255,255,0.4);
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.rev-fy-head > div,
.rev-fy-row  > div { padding: 2px 0; }
.rev-fy-head > div:not(:first-child),
.rev-fy-row  > div:not(:first-child) { text-align: right; padding-right: 4px; }
.rev-fy-row {
    padding: 9px 16px;
    color: rgba(255,255,255,0.65);
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.rev-fy-row:hover { background: rgba(255,255,255,0.04); }
.rev-fy-current {
    background: rgba(65,216,180,0.07) !important;
    border-left: 3px solid #41D8B4;
}
.rev-fy-label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.rev-fy-badge {
    font-size: 0.6rem;
    background: rgba(65,216,180,0.2);
    color: #41D8B4;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rev-fy-total {
    color: white;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR LAYOUT
═══════════════════════════════════════════════════════ */
.crm-layout {
    display: flex;
    min-height: 100vh;
}
.crm-sidebar {
    width: 220px;
    min-height: 100vh;
    background: var(--midnight);
    position: fixed;
    top: 0; left: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.crm-main {
    margin-left: 220px;
    flex: 1;
    min-height: 100vh;
    min-width: 0;
}

/* ── Sidebar brand ── */
.sidebar-brand {
    padding: 16px 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    transition: opacity 0.15s;
}
.sidebar-brand:hover { opacity: 0.82; }
.sidebar-brand-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #F15162, #F4705A);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(241,81,98,0.4);
}
.sidebar-brand-text {
    font-size: 0.9rem;
    color: white;
    letter-spacing: 0.01em;
}
.sidebar-brand-text strong { font-weight: 700; }

/* ── Sidebar nav ── */
.sidebar-nav {
    padding: 10px 10px;
    flex: 1;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,0.55);
    text-decoration: none !important;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 3px;
    transition: all 0.18s;
    letter-spacing: 0.01em;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.sidebar-link i { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.07);
    transform: translateX(2px);
}
.sidebar-link.active {
    color: var(--aqua) !important;
    background: rgba(65,216,180,0.12);
    font-weight: 600;
}
.sidebar-link.active i { color: var(--aqua); }

/* ── Sidebar group (expandable) ── */
.sidebar-group { margin-bottom: 3px; }
.sidebar-group-btn { margin-bottom: 0; }
.sidebar-chevron {
    margin-left: auto !important;
    width: auto !important;
    font-size: 0.65rem !important;
    transition: transform 0.2s;
    color: inherit;
}
.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
    padding-left: 8px;
}
.sidebar-submenu.open { max-height: 120px; }
.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px 7px 16px;
    border-radius: 8px;
    color: rgba(255,255,255,0.42);
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 1px;
}
.sidebar-sublink i { font-size: 0.8rem; width: 15px; text-align: center; flex-shrink: 0; }
.sidebar-sublink:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
}

/* ── Sidebar bottom CTA ── */
.sidebar-bottom {
    padding: 14px 10px 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--fit-red), var(--fit-red-2));
    color: white !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(241,81,98,0.35);
}
.sidebar-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Active region cards ── */
.active-region-card {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(41,41,76,0.07);
    box-shadow: 0 2px 8px rgba(41,41,76,0.05);
}
.arc-icon {
    width: 44px; height: 44px;
    background: rgba(65,216,180,0.12);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #1a9e80; font-size: 1.15rem;
    flex-shrink: 0;
}
.arc-icon-na {
    background: rgba(241,81,98,0.1);
    color: var(--fit-red);
}
.arc-body { flex: 1; }
.arc-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 2px;
}
.arc-count {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--midnight);
    line-height: 1;
}
.arc-total {
    font-size: 0.9rem;
    font-weight: 400;
    color: #bbb;
}
.arc-sub { font-size: 0.73rem; color: #bbb; margin-top: 2px; }
.arc-link {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--fit-red);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.arc-link:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD TOPBAR
═══════════════════════════════════════════════════════ */
.dash-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 28px;
    background: white;
    border-bottom: 1px solid rgba(41,41,76,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(41,41,76,0.05);
}
.dash-topbar .topbar-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}
.dash-topbar .topbar-search i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #bbb; font-size: 0.8rem; pointer-events: none;
}
.dash-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.topbar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.topbar-stat:hover { background: rgba(0,0,0,0.04); }
.topbar-stat .ts-val { font-size: 1.1rem; font-weight: 700; color: var(--midnight); line-height: 1; }
.topbar-stat .ts-lbl { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; font-weight: 600; margin-top: 2px; }
.topbar-divider { width: 1px; height: 28px; background: #ebebf0; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD HERO
═══════════════════════════════════════════════════════ */
.dash-hero {
    padding: 24px 28px 12px;
}
.dash-hero-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0 0 3px;
    letter-spacing: -0.02em;
}
.dash-hero-sub {
    font-size: 0.82rem;
    color: #a0a0b0;
    margin: 0 0 14px;
}
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s;
}
.hero-chip:hover { transform: translateY(-1px); }
.hero-chip.chip-red   { background: rgba(241,81,98,0.1); color: var(--fit-red); border: 1px solid rgba(241,81,98,0.2); }
.hero-chip.chip-aqua  { background: rgba(65,216,180,0.12); color: #1a9e80; border: 1px solid rgba(65,216,180,0.25); }
.hero-chip.chip-orange{ background: rgba(255,157,87,0.12); color: #c97a30; border: 1px solid rgba(255,157,87,0.25); }
.hero-chip.chip-steel { background: rgba(48,55,64,0.08); color: var(--steel); border: 1px solid rgba(48,55,64,0.15); }

/* ═══════════════════════════════════════════════════════
   PAGE HEADER (non-dashboard pages)
═══════════════════════════════════════════════════════ */
.page-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 28px;
    background: white;
    border-bottom: 1px solid rgba(41,41,76,0.07);
    box-shadow: 0 2px 8px rgba(41,41,76,0.05);
}
.page-topbar .back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.15s;
}
.page-topbar .back-link:hover { color: var(--midnight); background: rgba(0,0,0,0.04); }
.page-topbar .page-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--midnight);
    margin: 0;
}
.page-topbar .page-subtitle {
    font-size: 0.73rem;
    color: #aaa;
    margin: 0;
}

/* ── Section labels get extra top padding with sidebar layout ── */
.crm-main .section-label:first-of-type { margin-top: 4px; }
