/* ─────────────────────────────────────────────────────────────
   Fongué Performance — Dashboard
   Brand: Orbitron (headings) + Inter (body)
         #9cec13 neon-lime accent · #ffbf00 gold · #141414 dark
───────────────────────────────────────────────────────────── */

/* ── Google Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* brand */
    --lime:           #9cec13;
    --lime-dim:       rgba(156,236,19,.12);
    --lime-glow:      0 0 16px rgba(156,236,19,.35);
    --gold:           #ffbf00;
    --gold-dim:       rgba(255,191,0,.12);

    /* dark palette */
    --bg:             #0d0d0d;
    --bg-card:        #161616;
    --bg-card-hover:  #1c1c1c;
    --bg-input:       #1a1a1a;
    --sidebar-bg:     #101010;
    --border:         #252525;
    --border-strong:  #333333;

    /* text */
    --text-primary:   #f0f0f0;
    --text-secondary: #8a8a8a;
    --text-muted:     #555555;

    /* status */
    --success:        #22c55e;
    --success-bg:     rgba(34,197,94,.12);
    --warning:        #f59e0b;
    --warning-bg:     rgba(245,158,11,.12);
    --danger:         #ef4444;
    --danger-bg:      rgba(239,68,68,.12);
    --info:           #38bdf8;
    --info-bg:        rgba(56,189,248,.12);

    /* layout */
    --sidebar-width:  252px;
    --header-h:       58px;
    --radius:         10px;
    --radius-sm:      6px;
    --shadow:         0 1px 4px rgba(0,0,0,.5);
    --shadow-md:      0 8px 24px rgba(0,0,0,.6);
    --transition:     .15s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* Orbitron helper */
.font-orbitron { font-family: 'Orbitron', sans-serif; }

/* ─────────────────────────────────────────────────────────────
   LOGIN PAGE
───────────────────────────────────────────────────────────── */
.login-body { background: #0a0a0a; }

.login-page {
    min-height: 100vh;
    display: flex;
}

.login-brand {
    width: 44%;
    background: #0a0a0a;
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}
/* neon glow backdrop */
.login-brand::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(156,236,19,.08) 0%, transparent 70%);
    pointer-events: none;
}
.login-brand-inner {
    max-width: 360px;
    position: relative;
    z-index: 1;
}
.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    border: 1px solid var(--lime);
    box-shadow: var(--lime-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--lime);
    letter-spacing: -1px;
    margin-bottom: 28px;
}
.login-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    margin-bottom: 12px;
    line-height: 1.3;
}
.login-brand p {
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 36px;
}
.login-features { display: flex; flex-direction: column; gap: 12px; }
.login-feature {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: .85rem;
}
.feat-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--lime); flex-shrink: 0;
    box-shadow: 0 0 6px var(--lime);
}

/* Form panel */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--bg-card);
}
.login-form-inner { width: 100%; max-width: 380px; }
.login-form-inner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
    margin-bottom: 6px;
}
.login-sub { color: var(--text-secondary); margin-bottom: 32px; font-size: .88rem; }

.demo-hint {
    margin-top: 24px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .8rem;
    color: var(--text-secondary);
}
.demo-hint code {
    background: var(--border);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: .78rem;
    color: var(--lime);
}

/* ─────────────────────────────────────────────────────────────
   APP SHELL
───────────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

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

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
}
.sidebar-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--lime);
    box-shadow: 0 0 10px rgba(156,236,19,.25);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px; font-weight: 900;
    color: var(--lime); flex-shrink: 0;
    letter-spacing: -.5px;
}
.sidebar-brand { flex: 1; }
.sidebar-brand-name {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: .75rem; font-weight: 700;
    color: #fff; line-height: 1.2; letter-spacing: .3px;
}
.sidebar-brand-sub {
    display: block;
    font-size: .68rem;
    color: var(--text-muted);
    letter-spacing: .05em;
}
.sidebar-close {
    display: none; background: none; border: none;
    color: var(--text-muted); font-size: 18px; padding: 4px; line-height: 1;
}

/* Nav */
.sidebar-nav {
    flex: 1; padding: 10px 8px; overflow-y: auto;
}
.nav-section-label {
    font-size: .65rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted); padding: 8px 8px 4px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: .86rem; font-weight: 500;
    transition: background var(--transition), color var(--transition);
    margin-bottom: 1px; text-decoration: none;
}
.nav-item:hover {
    background: rgba(156,236,19,.06);
    color: var(--lime);
    text-decoration: none;
}
.nav-item.active {
    background: var(--lime-dim);
    color: var(--lime);
    border-left: 2px solid var(--lime);
    padding-left: 8px;
}
.nav-icon { display: flex; align-items: center; flex-shrink: 0; }

/* Footer */
.sidebar-footer {
    padding: 12px 12px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
}
.sidebar-user { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.sidebar-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--lime-dim); border: 1px solid var(--lime);
    color: var(--lime); display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    display: block; font-size: .8rem; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-user-role { display: block; font-size: .68rem; color: var(--text-muted); }
.sidebar-logout {
    color: var(--text-muted); display: flex; align-items: center;
    padding: 6px; border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.sidebar-logout:hover { color: var(--lime); background: var(--lime-dim); text-decoration: none; }

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.7); z-index: 199;
}

/* ── Main wrapper ───────────────────────────────────────────── */
.main-wrap {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex; flex-direction: column; min-width: 0;
}

/* ── Top bar ────────────────────────────────────────────────── */
.topbar {
    height: var(--header-h);
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px; position: sticky; top: 0; z-index: 100;
}
.topbar-menu-btn {
    display: none; background: none; border: none;
    color: var(--text-secondary); padding: 4px; border-radius: 6px;
}
.topbar-title { flex: 1; }
.topbar-title h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: .85rem; font-weight: 700;
    letter-spacing: .5px; color: var(--text-primary);
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--lime-dim); border: 1px solid var(--lime);
    color: var(--lime); display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}

/* ── Page content ───────────────────────────────────────────── */
.page-content {
    flex: 1; padding: 28px 28px 56px;
    max-width: 1400px; width: 100%;
}
.page-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 24px; gap: 16px;
}
.page-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem; font-weight: 800;
    letter-spacing: .5px; color: #fff; margin-bottom: 4px;
}
.page-sub { color: var(--text-secondary); font-size: .85rem; }

/* ─────────────────────────────────────────────────────────────
   COMPONENTS
───────────────────────────────────────────────────────────── */

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px; margin-bottom: 20px;
}
.stats-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.stat-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -.5px; line-height: 1.1;
    color: #fff;
}
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.stat-trend { font-size: .73rem; margin-top: 6px; }
.trend-up   { color: var(--lime); }
.trend-down { color: var(--danger); }
.trend-neutral { color: var(--text-muted); }

/* Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; margin-bottom: 18px;
}
.card-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.card-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px; border-bottom: 1px solid var(--border);
}
.card-title { font-weight: 600; font-size: .9rem; color: var(--text-primary); }
.card-subtitle { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Table */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th {
    text-align: left; padding: 9px 14px;
    font-size: .68rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--border);
    white-space: nowrap; background: var(--sidebar-bg);
}
.data-table td {
    padding: 11px 14px; border-bottom: 1px solid var(--border);
    color: var(--text-primary); vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-card-hover); }

/* Search & filter */
.search-input {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .83rem; outline: none;
    width: 210px;
    background: var(--bg-input); color: var(--text-primary);
    transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--lime); }
.filter-select {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .83rem; outline: none;
    background: var(--bg-input); color: var(--text-primary); cursor: pointer;
}

/* Avatar cell */
.avatar-cell { display: flex; align-items: center; gap: 9px; }
.mini-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--lime-dim); color: var(--lime);
    font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    border: 1px solid rgba(156,236,19,.2);
}

/* Row actions */
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.action-btn {
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 5px 7px;
    color: var(--text-muted); display: flex; align-items: center;
    transition: all var(--transition);
}
.action-btn:hover { color: var(--lime); border-color: var(--lime); background: var(--lime-dim); text-decoration: none; }
.action-btn-success:hover { color: var(--lime); border-color: var(--lime); background: var(--lime-dim); }

/* Badges */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    font-size: .7rem; font-weight: 600;
    letter-spacing: .03em; white-space: nowrap;
}
.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger); }
.badge-info     { background: var(--info-bg);    color: var(--info); }
.badge-orange   { background: rgba(234,88,12,.12); color: #f97316; }
.badge-neutral  { background: rgba(255,255,255,.06); color: var(--text-secondary); }
.badge-lime     { background: var(--lime-dim); color: var(--lime); }

/* Alerts */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 18px; font-size: .86rem; font-weight: 500;
}
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(239,68,68,.3); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(34,197,94,.3); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: .83rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: var(--lime); color: #0a0a0a; border-color: var(--lime);
}
.btn-primary:hover {
    background: #aaff1a; border-color: #aaff1a;
    box-shadow: var(--lime-glow); text-decoration: none; color: #0a0a0a;
}
.btn-ghost {
    background: transparent; color: var(--text-secondary);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.04); color: var(--text-primary);
    text-decoration: none;
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 5px 11px; font-size: .78rem; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: .8rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .86rem; color: var(--text-primary);
    background: var(--bg-input); outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(156,236,19,.1);
}
.form-group textarea { resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-row-between {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; font-size: .82rem;
}
.form-note { margin-top: 10px; font-size: .78rem; color: var(--text-muted); }

/* Password toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.pw-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted);
    padding: 0; display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--lime); }

/* Checkbox */
.checkbox-label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: auto; cursor: pointer; accent-color: var(--lime); }
.text-link { color: var(--lime); font-size: .82rem; }

/* Mono */
.mono { font-family: 'Courier New', monospace; font-size: .8rem; color: var(--lime); }

/* Utility */
.text-success { color: var(--lime) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger  { color: var(--danger) !important; }
.text-muted   { color: var(--text-muted) !important; }
.hidden       { display: none !important; }

/* ─────────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────────── */
.modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.75); z-index: 500;
    align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp .18s ease;
}
.modal-lg { max-width: 620px; }
@keyframes slideUp {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: .88rem; font-weight: 700; letter-spacing: .3px;
}
.modal-close {
    background: none; border: none; font-size: 18px;
    color: var(--text-muted); line-height: 1; padding: 4px;
    border-radius: 4px; transition: color var(--transition);
}
.modal-close:hover { color: var(--lime); }
.modal-body { padding: 20px; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px;
}

/* ─────────────────────────────────────────────────────────────
   PIPELINE STRIP (Sales)
───────────────────────────────────────────────────────────── */
.pipeline-strip {
    display: flex; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; margin-bottom: 18px;
}
.pipeline-stage {
    flex: 1; padding: 13px 14px;
    border-right: 1px solid var(--border); text-align: center;
}
.pipeline-stage:last-child { border-right: none; }
.pipeline-stage-name {
    font-size: .65rem; color: var(--text-muted);
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.pipeline-stage-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem; font-weight: 700; color: #fff;
}
.pipeline-stage-val { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* ─────────────────────────────────────────────────────────────
   PROGRAMS GRID
───────────────────────────────────────────────────────────── */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; margin-bottom: 18px;
}
.program-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    transition: border-color var(--transition);
}
.program-card:hover { border-color: var(--border-strong); }
.program-card-top { padding: 18px 18px 14px; flex: 1; }
.program-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.program-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700; font-size: .88rem; color: #fff; letter-spacing: .2px;
}
.program-category { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }
.program-desc { font-size: .82rem; color: var(--text-secondary); line-height: 1.55; }
.program-meta {
    display: flex; flex-wrap: wrap; gap: 8px 14px;
    padding: 11px 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.program-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: .76rem; color: var(--text-secondary);
}
.program-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
}
.program-price { display: flex; align-items: baseline; gap: 3px; }
.price-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem; font-weight: 700; color: var(--lime);
}
.price-period { font-size: .75rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────────
   ANALYTICS
───────────────────────────────────────────────────────────── */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.analytics-card-wide { grid-column: 1 / -1; }
.chart-area { padding: 16px; position: relative; height: 260px; }

.integration-placeholder {
    padding: 36px 24px; text-align: center; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.integration-placeholder p { font-size: .86rem; max-width: 280px; }
.integration-note { padding: 12px 20px 16px; font-size: .8rem; text-align: center; }

.social-metrics { padding: 4px 0; }
.social-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 20px; border-bottom: 1px solid var(--border);
    font-size: .84rem;
}
.social-row:last-child { border-bottom: none; }
.social-platform { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.social-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   SETTINGS
───────────────────────────────────────────────────────────── */
.settings-layout {
    display: grid; grid-template-columns: 190px 1fr;
    gap: 22px; align-items: start;
}
.settings-nav {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 6px;
    display: flex; flex-direction: column; gap: 2px;
}
.settings-nav-item {
    background: none; border: none; text-align: left;
    padding: 9px 12px; border-radius: var(--radius-sm);
    font-size: .84rem; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    transition: all var(--transition);
}
.settings-nav-item:hover { background: rgba(255,255,255,.04); color: var(--text-primary); }
.settings-nav-item.active { background: var(--lime-dim); color: var(--lime); font-weight: 600; }

.settings-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.settings-section-header { margin-bottom: 22px; }
.settings-section-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: .88rem; font-weight: 700; letter-spacing: .3px;
    color: #fff; margin-bottom: 4px;
}
.settings-section-header p { font-size: .83rem; color: var(--text-secondary); }
.settings-form .btn { margin-top: 4px; }

.integration-block {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 15px 18px; margin-bottom: 14px;
    transition: border-color var(--transition);
}
.integration-block:hover { border-color: var(--border-strong); }
.integration-block-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.integration-block-head > div:nth-child(2) { flex: 1; }
.integration-block-head strong { font-size: .88rem; display: block; color: var(--text-primary); }
.integration-block-head p { font-size: .78rem; color: var(--text-secondary); margin-top: 2px; }
.integration-logo {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .82rem; flex-shrink: 0;
}
.integration-block .form-group { margin-bottom: 0; }

/* Toggle switch */
.toggle-group { margin-bottom: 20px; }
.toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row strong { font-size: .86rem; font-weight: 600; display: block; margin-bottom: 2px; }
.toggle-row p { font-size: .78rem; color: var(--text-secondary); }
.toggle-switch { position: relative; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
    display: block; width: 38px; height: 20px;
    background: var(--border-strong); border-radius: 20px;
    position: relative; transition: background var(--transition);
}
.toggle-track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 14px; height: 14px; background: #fff; border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.toggle-switch input:checked + .toggle-track { background: var(--lime); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }

.session-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 13px 0;
}
.session-row strong { font-size: .86rem; display: block; }
.session-row p { font-size: .78rem; color: var(--text-secondary); margin-top: 2px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

/* ─────────────────────────────────────────────────────────────
   ATHLETES / SALES shared helpers
───────────────────────────────────────────────────────────── */
.prog-pill {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 20px;
    font-size: .7rem; font-weight: 600;
    background: var(--lime-dim); color: var(--lime); white-space: nowrap;
}
.tag-chip {
    display: inline-block; padding: 1px 6px; border-radius: 10px;
    font-size: .7rem; background: rgba(255,255,255,.06);
    color: var(--text-secondary); margin: 1px;
}
.source-badge { font-size: .76rem; color: var(--text-secondary); text-transform: capitalize; }
.contact-tags { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.hidden-col { display: none; }
.mt-8 { margin-top: 8px; }

.empty-state {
    padding: 52px 24px; text-align: center; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: .88rem;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .stats-row          { grid-template-columns: 1fr 1fr; }
    .stats-row-5        { grid-template-columns: 1fr 1fr; }
    .analytics-grid     { grid-template-columns: 1fr; }
    .analytics-card-wide { grid-column: auto; }
    .settings-layout    { grid-template-columns: 1fr; }
    .settings-nav       { flex-direction: row; overflow-x: auto; flex-wrap: nowrap; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .sidebar-close { display: block; }
    .main-wrap { margin-left: 0; }
    .topbar-menu-btn { display: flex; }
    .page-content { padding: 18px 14px 40px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .pipeline-strip { display: grid; grid-template-columns: repeat(3,1fr); }
    .login-brand { display: none; }
}

@media (max-width: 480px) {
    .stats-row      { grid-template-columns: 1fr; }
    .programs-grid  { grid-template-columns: 1fr; }
    .stats-row-5    { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   ATHLETE CARD GRID
───────────────────────────────────────────────────────────── */
.cards-toolbar {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center;
}

.athlete-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
@media (min-width: 768px)  { .athlete-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .athlete-grid { grid-template-columns: repeat(3, 1fr); } }

.athlete-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; flex-direction: column;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.athlete-card:hover {
    border-color: rgba(156,236,19,.35);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transform: translateY(-1px);
}

/* Card header */
.athlete-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 14px 10px;
}
.athlete-avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.athlete-avatar-initials {
    background: var(--lime-dim); border: 1px solid rgba(156,236,19,.25);
    color: var(--lime); display: flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 700;
}
.athlete-card-identity { flex: 1; min-width: 0; }
.athlete-name {
    font-weight: 600; font-size: .88rem; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.athlete-meta-row {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 3px;
}
.athlete-meta-row .badge { font-size: .65rem; padding: 1px 6px; }

/* Card body */
.athlete-card-body {
    padding: 0 14px 8px; flex: 1;
    display: flex; flex-direction: column; gap: 6px;
}
.athlete-milestone-row {
    display: flex; flex-direction: column; gap: 4px;
    padding: 8px 10px;
    background: rgba(255,255,255,.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.milestone-item { display: flex; align-items: baseline; gap: 6px; }
.milestone-label {
    font-size: .64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted); flex-shrink: 0; width: 32px;
}
.milestone-value { font-size: .81rem; color: var(--text-primary); flex: 1; }
.milestone-date  {
    font-size: .71rem; font-weight: 600; flex-shrink: 0;
    background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 10px;
}
.athlete-card-footer-info {
    display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
    padding-top: 2px;
}
.athlete-expiry { font-size: .74rem; color: var(--text-secondary); }
.athlete-billing-pill { font-size: .74rem; font-weight: 500; }

/* Card footer: quick actions */
.athlete-card-footer {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-top: 1px solid var(--border);
}
.card-action-btn {
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 5px 9px;
    font-size: .82rem; cursor: pointer; line-height: 1;
    color: var(--text-primary); text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.card-action-btn:hover {
    border-color: var(--lime); background: var(--lime-dim); text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   SLIDE-IN DRAWER
───────────────────────────────────────────────────────────── */
.drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    z-index: 399;
    animation: fadeIn .2s ease;
}
.drawer-overlay.open { display: block; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.athlete-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(460px, 100vw);
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0,0,0,.6);
    z-index: 400;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.athlete-drawer.open { transform: translateX(0); }

.drawer-header {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer-athlete-id { display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0; }
.drawer-name {
    font-family: 'Orbitron', sans-serif;
    font-size: .9rem; font-weight: 700; color: #fff; letter-spacing: .2px;
}
.drawer-meta { font-size: .76rem; color: var(--text-secondary); margin-top: 2px; }
.drawer-close {
    background: none; border: none; color: var(--text-muted);
    cursor: pointer; padding: 6px; border-radius: var(--radius-sm);
    flex-shrink: 0; display: flex; align-items: center;
    transition: color var(--transition), background var(--transition);
}
.drawer-close:hover { color: var(--lime); background: var(--lime-dim); }

.drawer-body {
    flex: 1; overflow-y: auto; padding: 0;
}

/* Sections inside drawer */
.drawer-section {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.drawer-section-label {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--text-muted); margin-bottom: 10px;
}

/* 2-column action grid */
.drawer-action-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.drawer-action-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 9px 11px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
    font-size: .82rem; color: var(--text-primary); font-family: inherit;
    text-decoration: none; transition: all var(--transition); text-align: left;
}
.drawer-action-btn:hover {
    border-color: var(--lime); background: var(--lime-dim);
    color: var(--text-primary); text-decoration: none;
}
.drawer-action-btn.drawer-action-danger:hover { border-color: var(--danger); background: var(--danger-bg); }
.drawer-action-btn.drawer-action-disabled { opacity: .4; pointer-events: none; }
.da-icon { font-size: 1rem; flex-shrink: 0; }

/* Expiry readonly display */
.drawer-expiry-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.drawer-expiry-label {
    font-size: .76rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.drawer-expiry-readonly {
    flex: 1; padding: 6px 10px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: .84rem; outline: none; cursor: default;
}

/* Extend panel */
.extend-date-input {
    padding: 7px 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-input);
    color: var(--text-primary); font-size: .84rem; outline: none;
}
.extend-date-input:focus { border-color: var(--lime); }

/* Drawer tabs */
.drawer-tabs {
    display: flex; border-bottom: 1px solid var(--border);
    flex-shrink: 0; padding: 0 18px;
    position: sticky; top: 0; background: var(--bg-card); z-index: 1;
}
.tab-btn {
    flex: 1; padding: 10px 4px;
    background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: .82rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--lime); border-bottom-color: var(--lime); }

.drawer-tab-panel { padding: 16px 18px; }
.drawer-empty { color: var(--text-muted); font-size: .84rem; padding: 4px 0; }

/* Profile info grid */
.drawer-profile-section { padding: 12px 18px; }
.drawer-profile-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
}
.profile-field {}
.profile-field-label {
    font-size: .63rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-muted); margin-bottom: 1px;
}
.profile-field-value {
    font-size: .82rem; color: var(--text-primary);
}
.profile-field-value a { color: var(--lime); }

/* ─────────────────────────────────────────────────────────────
   BILLING & HISTORY ROWS
───────────────────────────────────────────────────────────── */
.billing-row {
    display: grid; grid-template-columns: 1fr auto auto;
    gap: 10px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.billing-row:last-child { border-bottom: none; }

.history-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.history-row:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────────────────────── */
.dashboard-cols { display: grid; grid-template-columns: 1fr 380px; gap: 20px; margin-top: 20px; align-items: start; }
@media (max-width: 900px) { .dashboard-cols { grid-template-columns: 1fr; } }

/* ── Calendar ─────────────────────────────────────────────── */
.calendar-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.calendar-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-dow-row {
    display: grid; grid-template-columns: repeat(7,1fr); gap: 2px;
    border-bottom: 1px solid var(--border); padding-bottom: 6px; margin-bottom: 4px;
}
.calendar-dow-row span {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-muted); text-align: center; padding: 4px 0;
}
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day {
    min-height: 52px; padding: 5px 4px;
    border-radius: 6px; cursor: pointer;
    transition: background var(--transition);
}
.cal-day:hover  { background: rgba(255,255,255,.05); }
.cal-day.outside { opacity: .25; pointer-events: none; }
.cal-day.today  { outline: 1px solid var(--lime); outline-offset: -1px; }
.cal-day.today .cal-day-num { color: var(--lime); font-weight: 700; }
.cal-day.selected { background: var(--lime-dim); }
.cal-day-num {
    font-size: .73rem; color: var(--text-secondary);
    line-height: 1; margin-bottom: 4px;
}
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; }
.cal-dot  { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.cal-dot.task      { background: var(--lime); }
.cal-dot.expiry    { background: #f97316; }
.cal-dot.milestone { background: #60a5fa; }

/* Filter chips */
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
    padding: 4px 12px; border-radius: 20px; font-size: .73rem;
    cursor: pointer; border: 1px solid var(--border);
    color: var(--text-muted); user-select: none;
    transition: background .12s, color .12s, border-color .12s;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text-secondary); }
.filter-chip.active.all       { background: rgba(255,255,255,.08); color: var(--text-primary); border-color: var(--border-strong); }
.filter-chip.active.task      { background: var(--lime); color: #000; border-color: var(--lime); }
.filter-chip.active.expiry    { background: #f97316; color: #000; border-color: #f97316; }
.filter-chip.active.milestone { background: #60a5fa; color: #000; border-color: #60a5fa; }

/* Day detail panel */
#day-detail {
    margin-top: 16px; padding: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.day-detail-title { font-size: .84rem; font-weight: 600; color: var(--text-primary); }
.day-event-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .82rem;
}
.day-event-row:last-child { border-bottom: none; }
.day-event-row .cal-dot { margin-top: 5px; flex-shrink: 0; }

/* ── Task panel (right column) ────────────────────────────── */
.task-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
}
.task-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.task-panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: .82rem; font-weight: 700;
    letter-spacing: .05em; color: var(--text-primary);
}
.task-count-badge {
    background: var(--lime); color: #000;
    font-size: .70rem; font-weight: 700;
    padding: 1px 8px; border-radius: 20px;
}

/* Task rows */
.task-section-label {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--text-muted); margin: 14px 0 6px;
}
.task-section-label:first-child { margin-top: 0; }
.task-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.task-row:last-child { border-bottom: none; }
.task-row-body  { flex: 1; min-width: 0; }
.task-row-title { font-size: .84rem; font-weight: 500; color: var(--text-primary); }
.task-row-meta  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .73rem; color: var(--text-muted); margin-top: 3px; }
.task-row-athlete { color: var(--text-secondary); }
.task-complete-btn {
    flex-shrink: 0; padding: 4px 10px;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: .76rem;
    color: var(--text-muted); cursor: pointer;
    transition: all var(--transition);
}
.task-complete-btn:hover { border-color: var(--lime); color: var(--lime); background: var(--lime-dim); }
.task-overdue-chip {
    background: rgba(239,68,68,.15); color: #fca5a5;
    padding: 1px 7px; border-radius: 10px; font-size: .68rem; white-space: nowrap;
}
.task-due-chip {
    background: rgba(255,255,255,.06); color: var(--text-secondary);
    padding: 1px 7px; border-radius: 10px; font-size: .68rem; white-space: nowrap;
}
