/* Dashboard Zebzeb Studio — meme DA "Signal" que le launcher, pour coherence
   visuelle entre les deux produits. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-grad: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 100%);
    --green: #34d399;
    --red: #ff4d5e;
    --amber: #f5a623;

    --bg: #07080e;
    --bg-sidebar: #0a0c14;
    --panel: #101320;
    --panel-2: #141828;
    --border: #1e2336;
    --border-soft: #171b2b;
    --text: #e9ecf7;
    --muted: #8d94ad;
    --dim: #5b6178;

    --grid-line: rgba(124, 92, 255, 0.055);
    --glow-1: rgba(124, 92, 255, 0.18);
    --glow-2: rgba(34, 211, 238, 0.12);
    --chip-bg: rgba(255, 255, 255, 0.06);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.hidden { display: none !important; }

.bg-grid {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 62% 8%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at 62% 8%, #000 0%, transparent 78%);
}

.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(680px 420px at 74% -6%, var(--glow-1) 0%, transparent 70%),
                radial-gradient(560px 380px at 12% 104%, var(--glow-2) 0%, transparent 72%);
}

/* ---------- Logo commun ---------- */
.logo-mark {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad);
    clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
    position: relative;
    margin: 0 auto;
}
.logo-mark::before {
    content: ''; position: absolute; inset: 2px; background: var(--bg-sidebar);
    clip-path: polygon(28% 0, 72% 0, 100% 28%, 100% 72%, 72% 100%, 28% 100%, 0 72%, 0 28%);
}
.logo-mark span {
    position: relative; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 28px;
    background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Login ---------- */
.login-screen {
    position: relative; z-index: 1;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}

.login-card {
    width: 360px;
    padding: 36px 32px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex; flex-direction: column; gap: 14px;
    text-align: center;
}

.login-title {
    font-family: 'Chakra Petch', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 2px; margin-top: 14px;
}
.login-title em { font-style: normal; color: var(--accent-2); }
.login-sub { font-size: 12px; color: var(--muted); margin-bottom: 10px; }

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field span {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.6px; color: var(--muted);
}
.field input {
    padding: 11px 13px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.field input:focus { outline: none; border-color: var(--accent); }

.field-error {
    padding: 9px 12px;
    background: rgba(255, 77, 94, 0.1);
    border: 1px solid rgba(255, 77, 94, 0.35);
    border-radius: 4px;
    color: var(--red);
    font-size: 12px;
    text-align: left;
}

/* ---------- Boutons communs ---------- */
.btn-primary {
    padding: 12px 20px;
    background: var(--accent-grad);
    border: none;
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary.sm { padding: 9px 16px; font-size: 11px; display: flex; align-items: center; gap: 8px; }

.btn-ghost {
    padding: 11px 18px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-ghost.sm { padding: 9px 14px; font-size: 10.5px; }

.btn-danger {
    padding: 11px 18px;
    background: rgba(255, 77, 94, 0.12);
    border: 1px solid rgba(255, 77, 94, 0.4);
    color: var(--red);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 1.5px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-danger:hover { background: rgba(255, 77, 94, 0.2); }
.btn-danger.sm { padding: 9px 14px; font-size: 10.5px; }

/* ---------- Layout app ---------- */
.app { position: relative; z-index: 1; display: flex; height: 100vh; }

.sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 26px 16px 20px;
}

.logo { text-align: center; margin-bottom: 30px; }
.logo .logo-mark { width: 60px; height: 60px; margin-bottom: 10px; }
.logo .logo-mark span { font-size: 24px; }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-main { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 2.5px; }
.logo-sub { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: var(--accent-2); letter-spacing: 3px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
    position: relative;
    display: flex; align-items: center; gap: 13px;
    padding: 12px 14px;
    color: var(--muted);
    text-decoration: none;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px;
    border-radius: 4px;
    cursor: pointer;
    background: none; border: none; width: 100%; text-align: left;
}
.nav-item i { width: 16px; font-size: 13px; }
.nav-item:hover { color: var(--text); background: rgba(124, 92, 255, 0.07); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(124,92,255,0.16) 0%, rgba(124,92,255,0.02) 100%); }
.nav-item.active i { color: var(--accent-2); }
.nav-item.quit:hover { color: var(--red); background: rgba(255,77,94,0.08); }

.sidebar-bottom { display: flex; flex-direction: column; gap: 10px; }

.admin-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
}
.user-avatar {
    width: 30px; height: 30px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad);
    border-radius: 3px;
    font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 13px; color: #fff;
}
.user-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.user-name { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--accent-2); letter-spacing: 1px; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 36px;
    border-bottom: 1px solid var(--border);
}

.game-filter { display: flex; gap: 6px; }
.chip {
    padding: 8px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 1.2px;
    border-radius: 3px;
    cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: rgba(124,92,255,0.14); border-color: var(--accent); color: var(--text); }

.content { flex: 1; overflow-y: auto; padding: 28px 36px; }
.content::-webkit-scrollbar { width: 7px; }
.content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---------- Tableau de contenu ---------- */
.data-table { display: flex; flex-direction: column; gap: 8px; }

.data-row {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.data-row:hover { border-left-color: var(--accent-2); transform: translateX(2px); }

.data-row-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 2px;
    background: var(--chip-bg);
    color: var(--accent-2);
    white-space: nowrap;
}
.data-row-badge.draft { color: var(--muted); }

.game-command-actions { display: flex; align-items: center; gap: 6px; cursor: default; }
.btn-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 5px 9px;
    border-radius: 2px;
    border: 1px solid var(--border);
    background: var(--chip-bg);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.btn-mini:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent-2); }
.btn-mini:disabled { opacity: 0.5; cursor: default; }
.game-command-status { font-size: 10.5px; color: var(--muted); min-width: 90px; }

.data-row-main { flex: 1; min-width: 0; }
.data-row-title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
.data-row-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-row-date { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--dim); white-space: nowrap; }

.empty-state {
    text-align: center; padding: 70px 20px; color: var(--muted);
    background: var(--panel); border: 1px dashed var(--border); border-radius: 4px;
}
.empty-state i { font-size: 30px; margin-bottom: 14px; color: var(--accent-2); opacity: 0.6; }
.empty-state h3 { font-family: 'Chakra Petch', sans-serif; font-size: 14px; letter-spacing: 1.5px; margin-bottom: 6px; }
.empty-state p { font-size: 12px; }

/* ---------- Modale d'édition ---------- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(4,5,12,0.76);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 400;
}

.modal {
    width: 620px; max-width: calc(100vw - 60px); max-height: calc(100vh - 60px);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 5px;
    display: flex; flex-direction: column;
    box-shadow: 0 26px 70px rgba(0,0,0,0.6);
}

.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-soft);
}
.modal-head h3 { font-family: 'Chakra Petch', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 1.4px; }
.modal-close { width: 28px; height: 28px; background: none; border: none; color: var(--muted); cursor: pointer; border-radius: 3px; font-size: 13px; }
.modal-close:hover { background: var(--chip-bg); color: var(--text); }

.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 1.4px; color: var(--muted);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

.form-input, .form-select {
    padding: 10px 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); }

textarea.form-input { resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6; }

/* ---------- Editeur riche (toolbar + zone contenteditable) ---------- */
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.rte-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
}
.rte-btn:hover { background: var(--chip-bg); color: var(--text); border-color: var(--border); }

.rte-select {
    height: 30px;
    padding: 0 6px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
}

.rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; }

.rte-editable {
    min-height: 220px;
    max-height: 420px;
    overflow-y: auto;
    border-radius: 0 0 4px 4px;
    line-height: 1.6;
    font-size: 13px;
}
.rte-editable:focus { outline: none; border-color: var(--accent); }
.rte-editable p { margin-bottom: 10px; }
.rte-editable h2, .rte-editable h3 { font-family: 'Chakra Petch', sans-serif; margin: 12px 0 8px; }
.rte-editable blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--muted); margin: 10px 0; }
.rte-editable ul, .rte-editable ol { padding-left: 22px; margin-bottom: 10px; }

.form-checkbox { display: flex; align-items: center; gap: 9px; }

/* ---------- Tickets : thread admin ---------- */
.tk-admin-thread { display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; margin-top: 14px; padding-right: 4px; }
.tk-msg { max-width: 78%; padding: 10px 13px; border-radius: 8px; display: flex; flex-direction: column; gap: 3px; }
.tk-msg.mine { align-self: flex-end; background: var(--accent-grad); color: #fff; }
.tk-msg.staff { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.tk-msg p { margin: 0; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; }
.tk-msg-sender { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.04em; }
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-checkbox label { font-size: 12.5px; color: var(--text); }

.modal-actions {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border-soft);
    background: var(--panel-2);
}
.modal-actions .spacer { flex: 1; }

/* ---------- Fiche joueur (modale "Joueurs") ---------- */

.player-summary { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }

.player-avatar {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-grad);
    font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 19px; color: #fff;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}
.player-avatar.suspended { background: linear-gradient(115deg, var(--amber) 0%, #ffcc66 100%); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.16); }
.player-avatar.banned { background: linear-gradient(115deg, var(--red) 0%, #ff8a94 100%); box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.16); }

.player-summary-info { min-width: 0; flex: 1; }
.player-summary-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.player-summary-name { font-family: 'Chakra Petch', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0.4px; }
.player-summary-email { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-pill {
    font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.2px;
    padding: 3px 9px; border-radius: 20px;
    background: var(--chip-bg); color: var(--accent-2);
    white-space: nowrap;
}
.status-pill.suspended { color: var(--amber); background: rgba(245, 166, 35, 0.14); }
.status-pill.banned { color: var(--red); background: rgba(255, 77, 94, 0.14); }
.status-pill.role { color: var(--accent-2); background: rgba(34, 211, 238, 0.12); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 10px; }
.stat-tile {
    display: flex; flex-direction: column; gap: 5px;
    padding: 10px 12px;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 4px;
}
.stat-label { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 1.2px; color: var(--dim); text-transform: uppercase; }
.stat-value { font-size: 13px; font-weight: 600; color: var(--text); }
.stat-value.muted { color: var(--dim); font-weight: 400; }

.modal-section {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 16px;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 5px;
}
.modal-section-head { display: flex; align-items: center; gap: 8px; }
.modal-section-head i { font-size: 12px; color: var(--accent-2); width: 14px; text-align: center; }
.modal-section-head span { font-family: 'Chakra Petch', sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 1.3px; color: var(--text); }

.modal-note {
    font-size: 11.5px; line-height: 1.55; color: var(--muted);
    padding: 9px 11px;
    background: rgba(124, 92, 255, 0.06);
    border-left: 2px solid var(--accent);
    border-radius: 0 3px 3px 0;
}
.modal-note.warn { background: rgba(255, 77, 94, 0.08); border-left-color: var(--red); color: var(--text); }

.perm-super-row {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.perm-super-row:hover { border-color: var(--accent); }
.perm-super-row.active { border-color: var(--accent); background: rgba(124, 92, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(124, 92, 255, 0.25); }
.perm-super-row input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.perm-super-row-text { font-size: 12px; line-height: 1.5; color: var(--muted); }
.perm-super-row-text strong { color: var(--text); font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.6px; margin-right: 4px; }

.perm-groups { display: flex; flex-direction: column; gap: 12px; transition: opacity 0.2s ease; }
.perm-groups.perm-disabled { opacity: 0.35; pointer-events: none; }

.perm-group-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.1px; color: var(--dim); text-transform: uppercase; margin-bottom: 7px; }
.perm-group-items { display: flex; flex-wrap: wrap; gap: 8px; }

.perm-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px 6px 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11.5px; color: var(--muted);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    user-select: none;
}
.perm-toggle:hover { border-color: var(--accent-2); color: var(--text); }
.perm-toggle:has(input:checked) { background: rgba(34, 211, 238, 0.10); border-color: var(--accent-2); color: var(--text); }
.perm-toggle input { width: 13px; height: 13px; accent-color: var(--accent-2); cursor: pointer; }

.mini-list { display: flex; flex-direction: column; }
.mini-list-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12px;
}
.mini-list-item:last-child { border-bottom: none; padding-bottom: 2px; }
.mini-list-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.mini-list-main .dim { color: var(--dim); }
.mini-list-meta { flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.mini-list-amount { font-weight: 600; }
.mini-list-amount.positive { color: var(--green); }
.mini-list-amount.negative { color: var(--red); }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 24px; right: 26px; display: flex; flex-direction: column; gap: 9px; z-index: 500; }
.toast {
    display: flex; align-items: center; gap: 12px;
    min-width: 260px; padding: 13px 17px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast i { color: var(--accent-2); }
.toast.ok i { color: var(--green); }
.toast.err i { color: var(--red); }
.toast span { font-size: 12.5px; }

/* ---------- Groupes de nav (Contenu / Communauté / Boutique) ---------- */
.nav-group-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.6px;
    color: var(--dim);
    margin: 16px 0 6px 14px;
}
.nav-group-label:first-child { margin-top: 0; }

/* ---------- Badges statut supplementaires (joueurs / whitelist / tx) ---------- */
.data-row-badge.ok { color: var(--green); background: rgba(52, 211, 153, 0.14); }
.data-row-badge.danger { color: var(--red); background: rgba(255, 77, 94, 0.14); }

/* ---------- Barre de recherche joueurs ---------- */
.search-row { margin-bottom: 14px; max-width: 360px; }

/* ---------- KPI de l'onglet Transactions ---------- */
.kpi-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.kpi-box {
    flex: 1;
    min-width: 160px;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kpi-box-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 1.2px; color: var(--muted); }
.kpi-box-val { font-family: 'Chakra Petch', sans-serif; font-size: 22px; font-weight: 700; }
