/* ============================================================
   Client dashboard — mirrors the landing's product mock:
   left sidebar, hairline stat grid, big chart, feed vitals.
   Accent remapped violet → Hermès orange.
   ============================================================ */

:root {
  --violet: #f37021;
  --violet-2: #ff8b3d;
  --violet-dim: rgba(243, 112, 33, 0.15);
}

body { background: #0a0a0a; }

/* flat solid surfaces (no strokes, no gradients) */
.card, .table-card {
  background: #0d0d0d;
  border: none;
  border-radius: 12px;
  box-shadow: none;
}
pre.code { background: #0d0d0d; border: none; border-radius: 8px; }
.input { background: #161616; border: 1px solid #262626; border-radius: 8px; }
.btn { border-radius: 8px; }
.btn.ghost { background: #161616; border: 1px solid #262626; }
.key-reveal { border: none; background: rgba(243, 112, 33, 0.1); border-radius: 12px; }
th, td { border-color: #1c1c1c; }
.kv { border-color: #1c1c1c; }

/* ---------- shell ---------- */

.dash { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }

.dside {
  background: #0d0d0d; border-right: 1px solid #1f1f1f;
  padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dside .brand { padding: 4px 10px 18px; }
.usel {
  display: flex; align-items: center; gap: 9px;
  background: #161616; border: none; border-radius: 8px;
  padding: 9px 11px; font-size: 12.5px; color: #d4d4d4;
}
.usel .car { margin-left: auto; color: #737373; }
.grp { color: #737373; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin: 18px 10px 6px; }
.mi {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: none; border: none; color: #a1a1a1;
  padding: 8px 10px; border-radius: 6px; font-size: 13px; font-family: inherit;
}
.mi:hover { color: #fafafa; }
.mi.on { background: #1d1d1d; color: #fafafa; }
.mi .ic { width: 16px; text-align: center; }
.dside .foot { margin-top: 26px; padding: 0 10px; color: #525252; font-size: 11px; }

/* ---------- top toolbar ---------- */

.dtop {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-bottom: 1px solid #1f1f1f;
  background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(8px);
}
.dtop h1 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dtop .sp { flex: 1; }
.tcluster { display: flex; align-items: center; }
.tcluster > * + * { border-left: 1px solid #1c1c1c; }
.titem { display: flex; align-items: center; gap: 9px; padding: 0 16px; height: 34px; }
.tl { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: #525252; }
.tv { font-family: var(--mono); font-size: 12px; color: #d4d4d4; letter-spacing: 0.02em; }
.dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: d-pulse 1.7s infinite; }
@keyframes d-pulse { 0% { box-shadow: 0 0 0 0 rgba(243, 112, 33, 0.5); } 100% { box-shadow: 0 0 0 8px rgba(243, 112, 33, 0); } }
.rbtn { background: none; border: none; color: #737373; cursor: pointer; }
.tcluster .rbtn { border-left: 1px solid #1c1c1c; }
.rbtn:hover { color: #fafafa; }
.rbtn svg { display: block; }
.rbtn.spin svg { animation: d-spin .6s linear; }
@keyframes d-spin { to { transform: rotate(360deg); } }

.dmain { padding: 22px; min-width: 0; }
.dsec { display: none; }
.dsec.on { display: block; animation: d-fade .18s ease; }
@keyframes d-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- stat grid ---------- */

.stats {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px; margin-bottom: 14px;
}
.st {
  background: #0d0d0d;
  border-radius: 12px; padding: 14px 16px;
}
.st .l { font-size: 11px; color: #737373; margin-bottom: 7px; }
.st .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.st .d { font-size: 10px; margin-left: 6px; }
.st .d.up { color: var(--violet-2); }
.st .d.dn { color: #ef4444; }
.st svg { display: block; margin-top: 9px; width: 100%; height: 24px; }

/* ---------- chart + vitals row ---------- */

.drow { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; align-items: stretch; }
.bigchart {
  position: relative; overflow: hidden;
  border: none; border-radius: 12px; padding: 16px;
  background: #0d0d0d;
}
.bigchart::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 200px at 90% -12%, rgba(243, 112, 33, 0.14), transparent 70%);
}
.bigchart .t { display: flex; justify-content: space-between; color: #737373; font-size: 11px; margin-bottom: 12px; }

/* dot-matrix usage chart */
.dotwrap { position: relative; height: 170px; }
.dotgrid { display: grid; height: 100%; grid-template-rows: repeat(12, 1fr); }
.dotgrid i { place-self: center; width: 4px; height: 4px; border-radius: 50%; background: #232323; }
.dotgrid i.on { background: var(--violet); }
.dotline {
  position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(243, 112, 33, 0.45);
  display: none; pointer-events: none;
}
.dottip {
  position: absolute; top: 2px; transform: translateX(-50%);
  background: #fff; color: #0a0a0a; border-radius: 10px; padding: 8px 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); white-space: nowrap;
  display: none; pointer-events: none; z-index: 2;
}
.dottip .dottip-d { display: block; font-size: 10px; letter-spacing: 0.06em; color: #8a8a8a; margin-bottom: 2px; }
.dottip .dottip-v { font-size: 14px; font-weight: 700; }
.vrow { padding: 12px 0; border-bottom: 1px solid #191919; }
.vrow:last-child { border-bottom: none; }
.vrow .lr { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.vrow .lr .k { color: #d4d4d4; }
.vrow .lr .k b { color: #fafafa; }
.vrow .lr .v { font-family: var(--mono); color: var(--violet-2); }
.seg { display: flex; gap: 2px; height: 4px; border-radius: 2px; overflow: hidden; }
.seg i { display: block; height: 100%; }
.seg .a { background: var(--violet); }
.seg .b { background: #eab308; }
.seg .c { background: #7f1d1d; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .drow, .board-grid, .board-grid.even { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dside { position: static; height: auto; border-right: none; border-bottom: 1px solid #1f1f1f; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- live board panels ---------- */

.board-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; margin-top: 14px; }
.board-grid.even { grid-template-columns: 1fr 1fr; }
.bhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #232326;
}
.bhead h3 { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.bhead .muted { font-size: 11px; }

.card > table th { padding: 10px 18px; }
.odd-cell { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.odd-cell .mv-d { color: var(--violet-2); font-size: 10px; }
.odd-cell .mv-u { color: #60a5fa; font-size: 10px; }
.score-chip { font-family: var(--mono); font-weight: 700; color: var(--violet-2); }
.state-txt { color: #737373; font-size: 11px; }

.moves { padding: 6px 18px 12px; max-height: 352px; overflow-y: auto; }
.mvrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #191919; font-size: 12.5px; }
.mvrow:last-child { border-bottom: none; }
.mvrow .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvrow .mkt { font-family: var(--mono); font-size: 10.5px; color: #737373; background: #161616; border-radius: 4px; padding: 2px 7px; white-space: nowrap; }
.mvrow .prc { font-family: var(--mono); font-size: 11.5px; color: #a1a1a1; white-space: nowrap; }
.mvrow .pct { font-family: var(--mono); font-size: 11.5px; font-weight: 700; min-width: 54px; text-align: right; }
.pct.dn { color: var(--violet-2); }
.pct.up { color: #60a5fa; }

.soon { padding: 6px 18px 12px; }
.soonrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #191919; font-size: 12.5px; }
.soonrow:last-child { border-bottom: none; }
.soonrow .tm { font-family: var(--mono); font-size: 11px; color: var(--violet-2); background: rgba(243, 112, 33, 0.12); border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.soonrow .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soonrow .sp { color: #737373; font-size: 11px; white-space: nowrap; }

.cov { padding: 10px 18px 16px; }
.covrow { display: grid; grid-template-columns: 96px 1fr 52px; gap: 10px; align-items: center; padding: 7px 0; font-size: 12px; }
.covrow .nm { color: #d4d4d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.covrow .bar { height: 6px; border-radius: 3px; background: #161616; position: relative; }
.covrow .bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--violet); }
.covrow .ct { font-family: var(--mono); color: #737373; text-align: right; }

.empty-note { color: #525252; font-size: 12px; padding: 16px 0; text-align: center; }

/* ---------- sports & events browser ---------- */

.fbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.fsel {
  background: #0d0d0d; border: 1px solid #232326; border-radius: 8px;
  color: #d4d4d4; font-family: inherit; font-size: 12px; padding: 8px 10px;
  max-width: 280px; outline: none;
}
.fsel:focus { border-color: var(--violet); }
.fsel:disabled { opacity: 0.45; }
.fsel option { background: #0d0d0d; }
#evBody tr.evrow { cursor: pointer; }
#evBody tr.evrow:hover td { background: #141414; }
#evBody tr.evrow.on td { background: #1a120b; }
.lgc { color: #a1a1a1; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deepchip {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  background: rgba(243, 112, 33, 0.14); color: var(--violet-2);
  font-size: 10px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
  vertical-align: 1px;
}
.pager { display: flex; align-items: center; gap: 12px; margin: 12px 2px; }
.pbtn {
  background: #0d0d0d; border: 1px solid #232326; border-radius: 8px;
  color: #a1a1a1; width: 30px; height: 28px; cursor: pointer; font-family: inherit;
}
.pbtn:hover:not(:disabled) { color: #fafafa; border-color: #333333; }
.pbtn:disabled { opacity: 0.35; cursor: default; }
.mkpanel { margin-top: 16px; padding: 0; overflow: hidden; }
.mkscroll { max-height: 420px; overflow-y: auto; }
.mkpanel .prc { color: var(--violet-2); text-align: right; }

/* ---------- in-dashboard documentation (plain, no color coding) ---------- */

.docs { max-width: 780px; margin: 0 auto; }
.docs-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.docs-top h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 4px; }
.docs-top .muted { font-size: 12.5px; line-height: 1.6; }
.docs h3 { font-size: 15px; font-weight: 700; margin: 28px 0 10px; }
.docs h4 { font-size: 12.5px; font-weight: 600; margin: 22px 0 6px; font-family: var(--mono); color: #d4d4d4; }
.docs p { color: #a1a1a1; font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.docs p b { color: #fafafa; }
.docs p code {
  font-family: var(--mono); font-size: 12px;
  background: #161616; padding: 1px 5px; border-radius: 4px; color: #d4d4d4;
}
.docs .ep {
  font-family: var(--mono); font-size: 12.5px; color: #d4d4d4;
  padding: 6px 2px; border-bottom: 1px solid #161616;
}
.docs .ep:first-of-type { border-top: 1px solid #161616; }
.docs pre.code { margin: 10px 0 14px; }
.docs .table-card { margin-bottom: 14px; }

/* ---------- admin console ---------- */

.alert-row {
  display: flex; gap: 12px; align-items: center;
  padding: 13px 18px; margin-bottom: 10px;
  border-radius: 12px; font-size: 13px;
}
.alert-row.critical { background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); }
.alert-row.warn { background: rgba(250, 204, 21, 0.08); border: 1px solid rgba(250, 204, 21, 0.28); }
.alert-row .msg { color: #a1a1a1; }

.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-top: 1px solid #1c1c1c;
}
.rank-row:first-of-type { border-top: none; }
.rank-row .ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(243, 112, 33, 0.14); color: var(--violet-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.rank-row .name { flex: 1; font-weight: 600; font-size: 13.5px; }
.rank-row .name small { display: block; color: #737373; font-weight: 400; font-size: 12px; margin-top: 2px; }
.rank-row .num { font-weight: 700; font-size: 13.5px; }

.vitrow {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid #1c1c1c; font-size: 12.5px;
}
.vitrow:first-of-type { border-top: none; }
.vitrow .vk { display: flex; align-items: center; gap: 9px; color: #a1a1a1; }
.vitrow .vk b { color: #fafafa; font-weight: 600; }
.vitrow .vv { color: #d4d4d4; font-family: var(--mono); font-size: 12px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #a1a1a1; cursor: pointer; }
.check input { accent-color: var(--violet); }
td select.input { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; }
