/* ============================================================
   EccCRM v2 — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --bg:        #080C14;
    --card:      #0F1824;
    --card2:     #131E2C;
    --border:    #1A2840;
    --highlight: #0D1929;
    --accent:    #00C2FF;
    --accent2:   #FF6B35;
    --success:   #00D68F;
    --warning:   #FFB800;
    --danger:    #FF4560;
    --gold:      #FFB800;
    --purple:    #A855F7;
    --text:      #DCE8F5;
    --muted:     #4A6080;
    --dim:       #2A3F58;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius:    10px;
    --sidebar-w: 232px;
    --topbar-h:  58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0,194,255,.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(255,107,53,.03) 0%, transparent 50%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══ SIDEBAR ═══════════════════════════════════════════════ */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-w); height: 100vh;
    background: var(--card);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 100; transition: transform .25s ease;
    overflow-y: auto;
}
.sidebar-logo {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -.5px; }

.sidebar-agent-card {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 16px; margin: 10px 10px 0;
    background: var(--highlight); border: 1px solid var(--border); border-radius: var(--radius);
    flex-shrink: 0;
}
.agent-avatar {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg,rgba(0,194,255,.2),rgba(255,107,53,.2));
    border: 1px solid rgba(0,194,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--accent);
    flex-shrink: 0;
}
.agent-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.agent-num  { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 10px 8px; }
.nav-section-label {
    font-size: 9.5px; font-weight: 700; color: var(--muted);
    letter-spacing: 1.2px; padding: 8px 10px 4px;
    text-transform: uppercase;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8.5px 11px; border-radius: 8px;
    border-left: 3px solid transparent;
    color: var(--text); font-size: 13px; font-weight: 500;
    margin-bottom: 2px; transition: all .14s;
    text-decoration: none;
}
.nav-item:hover { background: var(--highlight); text-decoration: none; }
.nav-item.active {
    background: rgba(0,194,255,.1);
    border-left-color: var(--accent);
    color: var(--accent); font-weight: 700;
}
.nav-item.nav-logout:hover { background: rgba(255,69,96,.1); color: var(--danger); }
.nav-icon { font-size: 14px; width: 18px; flex-shrink: 0; }

/* ═══ MAIN WRAPPER ══════════════════════════════════════════ */
.main-wrapper { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
    height: var(--topbar-h);
    background: var(--card); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 26px; gap: 14px;
    position: sticky; top: 0; z-index: 50;
}
.sidebar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }
.topbar-title { font-family: var(--font-head); font-size: 15px; font-weight: 800; flex: 1; }
.topbar-right { font-size: 12px; color: var(--muted); }

.page-content { padding: 28px 30px; flex: 1; }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.page-header h1 { font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.page-header .subtitle { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ═══ CARDS ════════════════════════════════════════════════ */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}
.card-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.card-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.card-title { font-weight: 700; font-size: 13.5px; }
.card-subtitle { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ═══ STAT CARDS ════════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 24px; }
.stats-grid-5 { grid-template-columns: repeat(5,1fr); }

.stat-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 16px;
    position: relative; overflow: hidden;
    transition: border-color .2s;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--stat-color, var(--accent));
}
.stat-card:hover { border-color: var(--stat-color, var(--accent)); }
.stat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 8px; }
.stat-value { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--stat-color, var(--accent)); line-height: 1; }
.stat-sub   { font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.stat-note  { font-size: 10px; margin-top: 3px; }
.stat-icon  { position: absolute; top: 14px; right: 14px; font-size: 22px; opacity: .45; }

/* ═══ FINANCIAL EQUATION BAR ════════════════════════════════ */
.fin-equation {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 18px;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 12px; margin-bottom: 20px;
}
.fin-eq-part { font-weight: 700; }
.fin-eq-op   { color: var(--muted); }
.fin-eq-result { font-size: 14px; font-weight: 800; }

/* ═══ TIME PILLS ════════════════════════════════════════════ */
.time-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.time-pill {
    padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--muted);
    font-size: 11px; font-weight: 700; cursor: pointer;
    font-family: var(--font-body); transition: all .12s;
    text-decoration: none; display: inline-block;
}
.time-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.time-pill.active { background: rgba(0,194,255,.12); border-color: var(--accent); color: var(--accent); }

/* ═══ TABLES ════════════════════════════════════════════════ */
.table-wrapper {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.table-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
    padding: 4px 13px; border-radius: 6px;
    border: 1px solid var(--border); background: transparent;
    color: var(--muted); font-size: 11.5px; font-family: var(--font-body);
    cursor: pointer; transition: all .12s; font-weight: 500;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: rgba(0,194,255,.1); border-color: var(--accent); color: var(--accent); font-weight: 700; }

.search-box { margin-left: auto; position: relative; }
.search-box input {
    background: var(--highlight); border: 1px solid var(--border);
    border-radius: 7px; height: 32px; padding: 0 10px 0 30px;
    color: var(--text); font-family: var(--font-body); font-size: 12.5px;
    width: 210px; outline: none; transition: border-color .14s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box::before { content:'🔍'; position:absolute; left:9px; top:50%; transform:translateY(-50%); font-size:11px; pointer-events:none; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data-table thead tr { background: var(--highlight); }
table.data-table th {
    padding: 9px 12px; text-align: left;
    font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; color: var(--muted);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data-table td {
    padding: 10px 12px; border-bottom: 1px solid var(--border);
    color: var(--text); vertical-align: middle;
}
table.data-table tbody tr { transition: background .1s; }
table.data-table tbody tr:hover { background: var(--highlight); }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tfoot td { background: var(--highlight); padding: 10px 12px; font-weight: 700; border-top: 2px solid var(--border); }

.table-empty { text-align: center; padding: 44px 20px; color: var(--muted); font-size: 13.5px; }
.table-empty .empty-icon { font-size: 36px; display: block; margin-bottom: 10px; }

.pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; border-top: 1px solid var(--border);
    font-size: 11.5px; color: var(--muted);
}

/* ═══ CLEAN QUEUE BANNER ════════════════════════════════════ */
.queue-banner {
    background: rgba(0,214,143,.08); border: 1px solid rgba(0,214,143,.2);
    border-radius: 8px; padding: 9px 14px; margin-bottom: 14px;
    font-size: 11.5px; color: var(--success);
    display: flex; gap: 9px; align-items: center;
}
.admin-only-banner {
    background: rgba(255,107,53,.08); border: 1px solid rgba(255,107,53,.2);
    border-radius: 8px; padding: 9px 14px; margin-bottom: 10px;
    font-size: 11.5px; color: var(--accent2);
    display: flex; gap: 9px; align-items: center;
}
.info-banner {
    background: rgba(0,194,255,.07); border: 1px solid rgba(0,194,255,.2);
    border-radius: 8px; padding: 9px 14px; margin-bottom: 14px;
    font-size: 11.5px; color: var(--accent);
    display: flex; gap: 9px; align-items: center;
}

/* ═══ FORMS ══════════════════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.full-width { grid-column: 1 / -1; }
.form-group { margin-bottom: 8px; }
.form-label {
    display: flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; color: var(--muted); margin-bottom: 5px;
}
.form-control {
    width: 100%; background: var(--highlight); border: 1px solid var(--border);
    border-radius: 7px; height: 36px; padding: 0 11px;
    color: var(--text); font-family: var(--font-body); font-size: 13px;
    outline: none; transition: border-color .14s, box-shadow .14s; appearance: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,194,255,.08); }
.form-control:disabled, .form-control[readonly] { background: var(--card2); color: var(--muted); cursor: not-allowed; }
textarea.form-control { height: auto; min-height: 80px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M5 7L0 0h10z' fill='%234A6080'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px;
}
.form-control.is-invalid { border-color: var(--danger); }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 3px; }
.form-hint  { font-size: 11px; color: var(--muted); margin-top: 3px; }
.form-divider { grid-column: 1/-1; border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Commission field highlight */
.commission-field {
    background: rgba(255,184,0,.08); border: 1px solid rgba(255,184,0,.25);
    border-radius: 8px; padding: 10px 12px;
}
.commission-field .form-control { border-color: rgba(255,184,0,.3); }
.commission-field .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,184,0,.08); }

/* Admin-only field wrapper */
.admin-field-wrap {
    position: relative;
}
.admin-lock-overlay {
    background: rgba(255,107,53,.06); border: 1px solid rgba(255,107,53,.2);
    border-radius: 7px; padding: 8px 10px;
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: var(--accent2);
}

/* Info boxes */
.info-box {
    grid-column: 1/-1; padding: 11px 13px; border-radius: 8px;
    font-size: 11.5px; color: var(--muted); display: flex; gap: 9px; align-items: flex-start;
}
.info-box strong { color: var(--text); }
.info-box.accent  { background: rgba(0,194,255,.07);  border: 1px solid rgba(0,194,255,.2); }
.info-box.success { background: rgba(0,214,143,.07);  border: 1px solid rgba(0,214,143,.2); }
.info-box.warning { background: rgba(255,184,0,.07);  border: 1px solid rgba(255,184,0,.2); }
.info-box.danger  { background: rgba(255,69,96,.07);  border: 1px solid rgba(255,69,96,.2); }
.info-box.gold    { background: rgba(255,184,0,.07);  border: 1px solid rgba(255,184,0,.2); }

/* ═══ REFUND PANEL ══════════════════════════════════════════ */
.refund-panel {
    border: 1px solid rgba(255,69,96,.3); border-radius: var(--radius);
    padding: 18px; margin-top: 18px;
    background: rgba(255,69,96,.04);
}
.refund-panel-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,69,96,.2);
}
.refund-amounts {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px;
}
.refund-amount-box {
    background: var(--highlight); border-radius: 8px;
    padding: 12px 14px; border: 1px solid var(--border);
}
.refund-amount-label { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 6px; }
.refund-amount-value { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.refund-impact {
    background: rgba(255,69,96,.08); border: 1px solid rgba(255,69,96,.2);
    border-radius: 7px; padding: 10px 13px; font-size: 11.5px; color: var(--muted); margin-top: 12px;
}

/* ═══ BUTTONS ════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 7px; border: none;
    font-family: var(--font-body); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all .14s; text-decoration: none;
    white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: linear-gradient(135deg,var(--accent),#0099CC); color: #000; }
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-danger   { background: rgba(255,69,96,.14); border: 1px solid rgba(255,69,96,.3); color: var(--danger); }
.btn-danger:hover { background: rgba(255,69,96,.24); }
.btn-ghost    { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-accent2  { background: linear-gradient(135deg,var(--accent2),#CC5529); color: #fff; }
.btn-success  { background: rgba(0,214,143,.12); border: 1px solid rgba(0,214,143,.3); color: var(--success); }
.btn-success:hover { background: rgba(0,214,143,.22); }
.btn-gold     { background: linear-gradient(135deg,var(--gold),#CC9200); color: #000; }
.btn-gold:hover { opacity: .88; }
.btn-sm  { padding: 5px 12px; font-size: 11.5px; border-radius: 6px; }
.btn-xs  { padding: 3px 9px;  font-size: 11px;   border-radius: 5px; }

/* ═══ BADGES ══════════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
.badge-auto   { background: rgba(0,214,143,.1); color: var(--success); border: 1px solid rgba(0,214,143,.2); font-size: 9.5px; }
.badge-locked { background: rgba(255,184,0,.1); color: var(--gold);    border: 1px solid rgba(255,184,0,.2); font-size: 9.5px; }
.badge-admin  { background: rgba(255,107,53,.1); color: var(--accent2); border: 1px solid rgba(255,107,53,.2); font-size: 9.5px; }
.admin-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,107,53,.1); border: 1px solid rgba(255,107,53,.25);
    border-radius: 5px; padding: 2px 8px; font-size: 10px; color: var(--accent2); font-weight: 700;
}

/* ═══ FLASH MESSAGES ════════════════════════════════════════ */
.flash { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; font-size: 13.5px; font-weight: 500; }
.flash button { background: none; border: none; cursor: pointer; font-size: 18px; opacity: .55; color: inherit; }
.flash-success { background: rgba(0,214,143,.1);  color: var(--success); border-bottom: 1px solid rgba(0,214,143,.2); }
.flash-error   { background: rgba(255,69,96,.1);  color: var(--danger);  border-bottom: 1px solid rgba(255,69,96,.2); }
.flash-warning { background: rgba(255,184,0,.1);  color: var(--gold);    border-bottom: 1px solid rgba(255,184,0,.2); }
.flash-info    { background: rgba(0,194,255,.08); color: var(--accent);  border-bottom: 1px solid rgba(0,194,255,.2); }

/* ═══ LOGIN PAGE ═════════════════════════════════════════════ */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 100%; max-width: 420px; padding: 0 20px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg,var(--accent),var(--accent2)); font-size: 24px; margin-bottom: 12px;
}
.login-logo h1 { font-family: var(--font-head); font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.login-logo p  { font-size: 13px; color: var(--muted); margin-top: 4px; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 30px 26px; }
.login-card .form-control { height: 42px; font-size: 13.5px; }
.login-card .form-group { margin-bottom: 14px; }
.login-submit { width: 100%; height: 44px; font-family: var(--font-head); font-size: 14.5px; margin-top: 4px; }
.login-footer { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 18px; font-size: 13px; }
.remember-me { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.remember-me input[type=checkbox] { accent-color: var(--accent); width: 13px; height: 13px; }

/* ═══ DASHBOARD ══════════════════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.breakdown-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.breakdown-row:last-child { border-bottom: none; }
.progress-track { height: 5px; background: var(--highlight); border-radius: 3px; margin-top: 4px; }
.progress-fill  { height: 5px; border-radius: 3px; transition: width .6s ease; }

/* ═══ PROFILE ════════════════════════════════════════════════ */
.profile-grid { display: grid; grid-template-columns: 250px 1fr; gap: 18px; }
.profile-avatar-big {
    width: 80px; height: 80px; border-radius: 20px; margin: 0 auto 14px;
    background: linear-gradient(135deg,rgba(0,194,255,.3),rgba(255,107,53,.3));
    border: 2px solid rgba(0,194,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--accent);
}

/* Monthly earnings table */
.earnings-table th { background: var(--highlight); }
.earnings-totals-row td { background: rgba(255,184,0,.06); font-weight: 700; }

/* ═══ ADMIN DRILLDOWN ════════════════════════════════════════ */
.drilldown-banner {
    background: var(--card2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px;
    display: flex; gap: 20px; flex-wrap: wrap; align-items: center;
}
.drilldown-stat { text-align: center; min-width: 90px; }
.drilldown-stat-val { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.drilldown-stat-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .6px; }

/* ═══ PAYOUT TRACKER ════════════════════════════════════════ */
.payout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.quick-pay-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); }
.quick-pay-row:last-child { border-bottom: none; }

/* ═══ CUSTOMER SEARCH RESULTS ═══════════════════════════════ */
.csr-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card2); border: 1px solid var(--border);
    border-radius: 8px; z-index: 20; max-height: 180px; overflow-y: auto;
    margin-top: 4px; display: none;
}
.csr-item { padding: 9px 13px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--border); transition: background .1s; }
.csr-item:hover { background: var(--highlight); }
.csr-item:last-child { border-bottom: none; }

/* ═══ UTILITIES ══════════════════════════════════════════════ */
.text-accent  { color: var(--accent);  }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger);  }
.text-muted   { color: var(--muted);   }
.text-gold    { color: var(--gold);    }
.text-mono    { font-family: 'Courier New', monospace; }
.fw-bold  { font-weight: 700; }
.fw-800   { font-weight: 800; }
.font-head { font-family: var(--font-head); }
.d-flex { display: flex; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.mt-4 { margin-top: 22px; } .mb-4 { margin-bottom: 22px; }
.w-full { width: 100%; }

/* ═══ OVERLAY ════════════════════════════════════════════════ */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.overlay.show { display: block; }

/* ═══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .stats-grid-5 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .dash-grid  { grid-template-columns: 1fr; }
    .refund-amounts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.6); }
    .main-wrapper { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .page-content { padding: 18px 14px; }
    .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .payout-grid  { grid-template-columns: 1fr; }
    .drilldown-banner { flex-direction: column; align-items: flex-start; }
    .table-toolbar { flex-direction: column; align-items: stretch; }
    .search-box { margin-left: 0; }
    .search-box input { width: 100%; }
    .refund-amounts { grid-template-columns: 1fr; }
    .stats-grid-5 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
