/* Guardian MGA — operations console.

   Dark theme, following the Credixo reference: near-black plane with a faint
   vertical striping, glass panels, two-tone headings where the emphasis word
   takes the accent, numbered section labels, pill buttons.

   Type: DM Sans for headings and figures, Roboto for body copy. Both
   self-hosted, so no external font request can fail mid-demo.

   Palette validated with the data-viz six checks (categorical, DARK, surface
   #121316, all-pairs): worst CVD ΔE 9.4, worst normal-vision ΔE 20.9, all
   slots ≥3:1. Dark is its own set of steps, not a flip of the light ones. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dmsans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/roboto-var.woff2') format('woff2');
}

:root {
  --plane: #08090b;
  --plane-2: #0b0d10;
  --surface: #101216;
  --surface-2: #15181d;
  --sidebar: #0a0b0e;

  --ink: #ffffff;
  --ink-2: #a8abb2;
  --muted: #6f7379;

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --grid: rgba(255, 255, 255, 0.07);

  /* The reference's pale blue carries emphasis in headings; the saturated
     step carries actions and series. */
  --accent-text: #9dbfe8;
  --accent: #3987e5;
  --accent-d: #2f74c9;
  --accent-wash: rgba(57, 135, 229, 0.14);

  --good: #0ca30c;
  --good-text: #38c738;
  --warning: #fab219;
  --critical: #e66767;

  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s-other: #4a4d54;

  --radius: 14px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background: var(--plane);
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  font-weight: 400;
}

/* The reference's faint vertical striping, at the edges of perception. */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.014) 0 1px,
      transparent 1px 62px),
    radial-gradient(120% 60% at 50% 0%, rgba(60,110,180,0.10), transparent 62%);
}
.layout, .login-overlay, .modal-overlay, .toast { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
a { cursor: pointer; text-decoration: none; color: inherit; }

/* Figures wear DM Sans and stay tabular so columns hold still. */
.k-val, .ls-val, .lgwp, .lval, .bar-top b, .tl-amt, .pc-price,
.ledger .lg .v, .tbl td, .k-delta, .rank {
  font-family: 'DM Sans', sans-serif;
  font-variant-numeric: tabular-nums;
}
.mono, .ls-sub, .lsub, .omult { font-variant-numeric: tabular-nums; }

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

/* ---- Sidebar ---------------------------------------------------------- */
.sidebar {
  width: 218px; background: var(--sidebar); color: var(--ink-2);
  display: flex; flex-direction: column; padding: 20px 12px;
  position: sticky; top: 0; height: 100vh; flex: none;
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 24px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(140deg, var(--accent), #1d4f92);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-weight: 700; color: #fff; font-size: 14px;
}
.brand-text { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: -0.01em; }
.brand-text span { color: var(--accent-text); margin-left: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border-radius: var(--radius-sm); color: var(--ink-2); font-size: 12.5px; font-weight: 400;
  transition: background .14s, color .14s;
}
.nav-item .ic { width: 14px; text-align: center; opacity: .55; font-size: 11px; }
.nav-item:hover { background: var(--surface-2); color: #fff; }
.nav-item.active {
  background: linear-gradient(100deg, rgba(57,135,229,.16), rgba(57,135,229,.04));
  border: 1px solid rgba(57,135,229,.22); color: #fff; font-weight: 500;
  padding: 8px 10px;
}
.nav-item.active .ic { opacity: 1; color: var(--accent-text); }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.nav-item.ghost { border: 1px solid var(--line); }
.env-pill { font-size: 10.5px; color: var(--muted); padding: 6px 10px; }
.env-pill::first-letter { color: var(--good-text); }

/* ---- Main ------------------------------------------------------------- */
.main { flex: 1; min-width: 0; padding: 22px 26px 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar h1 { font-size: 24px; letter-spacing: -0.028em; }
.crumb { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.btn-refresh {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-size: 14px; color: var(--ink-2);
}
.btn-refresh:hover { background: var(--surface-2); color: #fff; }
.avatar-me {
  width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(140deg, var(--accent), #1d4f92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 11.5px;
}
.view.hidden { display: none; }

/* ---- Panels ----------------------------------------------------------- */
.panel {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 20px; margin-bottom: 14px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.panel-head h3 {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 500; color: var(--muted); font-family: 'Roboto', sans-serif;
}
.panel-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.grid-2, .grid-3 { display: grid; gap: 14px; margin-bottom: 14px; }
.grid-2 { grid-template-columns: 1.7fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 > .panel, .grid-3 > .panel { margin-bottom: 0; }

.chart svg { width: 100%; height: 186px; display: block; }

/* ---- Live strip — the real figures, so it leads ----------------------- */
.live-strip {
  background: linear-gradient(160deg, rgba(57,135,229,.10), rgba(255,255,255,.012));
  border: 1px solid rgba(57,135,229,.20); border-radius: var(--radius);
  padding: 18px 20px 20px; margin-bottom: 14px;
}
.ls-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: .12em;
}
.ls-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ls-item { border-left: 1px solid var(--line); padding-left: 15px; }
.ls-item:first-child { border-left: none; padding-left: 0; }
.ls-val { font-size: 27px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: var(--ink); }
.ls-of { font-size: 15px; font-weight: 400; color: var(--muted); }
.ls-label { font-size: 12px; color: var(--ink-2); margin-top: 5px; }
.ls-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---- Illustrative KPIs — quieter than the real ones ------------------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi {
  background: linear-gradient(160deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px 13px; position: relative; overflow: hidden;
}
.kpi .k-label { font-size: 11.5px; color: var(--muted); }
.kpi .k-val { font-size: 20px; font-weight: 500; margin-top: 5px; letter-spacing: -0.028em; color: var(--ink-2); }
.kpi .k-delta { font-size: 11.5px; font-weight: 500; margin-top: 3px; display: inline-flex; align-items: center; gap: 3px; }
.k-delta.up { color: var(--good-text); }
.k-delta.down { color: var(--critical); }
.kpi .spark { position: absolute; right: 13px; bottom: 11px; width: 66px; height: 28px; opacity: .75; }

/* ---- Donut ------------------------------------------------------------ */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; flex: 1; }
.donut-legend .li { display: flex; align-items: center; gap: 9px; }
.donut-legend .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.donut-legend .lname { flex: 1; color: var(--ink-2); }
.donut-legend .lval { font-weight: 600; color: var(--ink); font-family: 'DM Sans', sans-serif; }

/* ---- Bars ------------------------------------------------------------- */
.bars { display: flex; flex-direction: column; gap: 13px; }
.bar-row .bar-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; color: var(--ink-2); }
.bar-row .bar-top b { font-weight: 600; color: var(--ink); }
.bar-track { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #6aa8ee); }

/* ---- Leaderboard ------------------------------------------------------ */
.leader { display: flex; flex-direction: column; gap: 11px; }
.leader .lr { display: flex; align-items: center; gap: 10px; }
.leader .rank { width: 15px; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.leader .lav {
  width: 27px; height: 27px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; font-size: 10.5px; font-weight: 500;
}
.leader .lmeta { flex: 1; min-width: 0; }
.leader .lnm { font-size: 12.5px; color: var(--ink); }
.leader .lsub { font-size: 11px; color: var(--muted); }
.leader .lgwp { font-size: 12.5px; font-weight: 600; color: var(--ink); }

/* ---- Tables ----------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 500; padding: 9px 20px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.tbl td { padding: 11px 20px; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: none; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: var(--ink); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 10px; font-weight: 500; }
.pill.active { background: rgba(12,163,12,.14); color: var(--good-text); }
.pill.live { background: var(--accent-wash); color: var(--accent-text); }
.pill.qr { background: rgba(250,178,25,.14); color: var(--warning); }
.pill.web { background: rgba(255,255,255,.06); color: var(--ink-2); }
.tbl-link { color: var(--accent-text); font-size: 11.5px; }
.tbl-link:hover { color: #fff; }
.tbl-empty { text-align: center; padding: 30px; color: var(--muted); }

/* ---- Products --------------------------------------------------------- */
.section-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-h { font-size: 20px; letter-spacing: -0.026em; }
.section-p { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; max-width: 76ch; line-height: 1.6; }
.section-p strong { color: var(--accent-text); font-weight: 400; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; }
.pcard {
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 17px 14px; display: flex; flex-direction: column;
}
.pcard .pc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.pcard .pc-emoji {
  font-size: 16px; width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
}
.pc-titles { flex: 1; min-width: 0; }
.pcard .pc-name { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.3; color: var(--ink); word-break: break-word; }
.pcard .pc-code { font-size: 10.5px; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin-top: 3px; }
.pcard .pc-tag { font-size: 12.5px; color: var(--ink-2); min-height: 34px; line-height: 1.5; }
.pc-status {
  flex: none; margin-top: 2px; font-size: 9px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 999px; white-space: nowrap;
}
.st-draft { background: rgba(255,255,255,.06); color: var(--ink-2); }
.st-approved { background: var(--accent-wash); color: var(--accent-text); }
.st-live { background: rgba(12,163,12,.16); color: var(--good-text); }
.st-retired { background: rgba(230,103,103,.14); color: var(--critical); }
.pc-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); margin: 10px 0 13px; }
.pc-meta em { color: var(--critical); font-style: normal; }
.pcard .pc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line-soft);
}
.pcard .pc-price { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.pc-actions { display: flex; gap: 6px; }
.pc-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink);
  font-size: 11.5px; padding: 5px 12px; border-radius: 999px;
  cursor: pointer; font-family: inherit; transition: background .14s, border-color .14s;
}
.pc-btn:hover { background: rgba(255,255,255,.09); }
.pc-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.pc-btn.primary:hover { background: var(--accent-d); }
.pc-btn.danger { color: var(--critical); padding: 5px 9px; }
.pc-btn.danger:hover { background: rgba(230,103,103,.12); border-color: rgba(230,103,103,.3); }

/* ---- Takaful ledger --------------------------------------------------- */
.ledger { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ledger .lg { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(255,255,255,.02); }
.ledger .lg .t { font-size: 11.5px; color: var(--muted); }
.ledger .lg .v { font-size: 19px; font-weight: 600; margin-top: 4px; letter-spacing: -0.028em; color: var(--ink); }
.ledger .lg.credit .v { color: var(--good-text); }
.ledger .lg.debit .v { color: var(--critical); }

/* ---- Parametric ------------------------------------------------------- */
.btn-fire {
  background: rgba(255,255,255,.04); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-size: 11.5px;
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
.btn-fire:hover { background: rgba(255,255,255,.09); }
.btn-fire:disabled { opacity: .45; cursor: default; }
.trigger-log { display: flex; flex-direction: column; }
.tl-empty { color: var(--muted); font-size: 12.5px; padding: 6px 0; line-height: 1.6; }
.tl-item { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tl-item:last-child { border-bottom: none; }
.tl-icon { font-size: 17px; }
.tl-body { flex: 1; min-width: 0; }
.tl-top { font-size: 12.5px; color: var(--ink); }
.tl-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tl-amt { text-align: right; font-weight: 600; font-size: 15px; color: var(--ink); }
.tl-amt span { display: block; font-size: 9px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; font-family: 'Roboto', sans-serif; }

/* ---- Buttons ---------------------------------------------------------- */
.btn-primary {
  background: var(--accent); color: #fff; border: none; border-radius: 999px;
  padding: 10px 20px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: background .14s;
}
.btn-primary:hover { background: var(--accent-d); }
.btn-ghost {
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 12px; cursor: pointer;
  color: var(--ink-2); font-family: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,.09); color: #fff; }
.btn-ghost.small { font-size: 11.5px; padding: 5px 12px; }

/* ---- Modal ------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(3,4,6,.72); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 36px 16px; z-index: 50; overflow-y: auto;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: #0d0f13; border: 1px solid var(--line); border-radius: var(--radius);
  width: 100%; max-width: 630px; padding: 22px 24px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 17px; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: #fff; }
.modal-intro { font-size: 12.5px; color: var(--ink-2); margin: 7px 0 16px; line-height: 1.6; }
.modal-intro strong { color: var(--accent-text); font-weight: 400; }
.pform label { display: block; font-size: 11.5px; color: var(--ink-2); margin-bottom: 12px; }
.pform input, .pform select, .pform textarea {
  width: 100%; margin-top: 5px; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 12.5px; font-family: inherit; outline: none;
  color: var(--ink); background: rgba(255,255,255,.03);
}
.pform input::placeholder, .pform textarea::placeholder { color: #55585e; }
.pform input:focus, .pform select:focus, .pform textarea:focus {
  border-color: rgba(57,135,229,.5); background: rgba(57,135,229,.06);
}
.pform select option { background: #0d0f13; color: var(--ink); }
.frow { display: flex; gap: 11px; }
.frow label { flex: 1; }
.frow label.narrow { flex: 0 0 88px; }
.frow.hidden { display: none; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 13px; }
.fieldset-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.fieldset-head h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-family: 'Roboto', sans-serif; font-weight: 500; }
.fieldset-head .hint { margin: 0; }
.qblock { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 13px; margin-bottom: 9px; background: rgba(255,255,255,.02); }
.qb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.qb-n { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.qb-del { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 2px 5px; }
.qb-del:hover { color: var(--critical); }
.opt-rows { margin-top: 8px; }
.opt-row { display: flex; gap: 8px; margin-bottom: 8px; }
.opt-row input.olabel { flex: 1; margin-top: 0; }
.opt-row input.omult { flex: 0 0 72px; margin-top: 0; }
.opt-row .odel { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.opt-row .odel:hover { color: var(--critical); }
.check { display: flex; align-items: center; gap: 9px; font-size: 12.5px; margin-top: 11px; cursor: pointer; color: var(--ink-2); }
.check input { width: auto; margin: 0; accent-color: var(--accent); }
.hint { font-size: 11px; color: var(--muted); margin: 3px 0 10px; line-height: 1.6; }
.form-msg { font-size: 12px; color: var(--critical); min-height: 17px; margin-bottom: 6px; line-height: 1.6; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }

/* ---- Toast ------------------------------------------------------------ */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #14171c; border: 1px solid var(--line); color: var(--ink);
  padding: 11px 20px; border-radius: 999px; font-size: 12.5px;
  box-shadow: 0 12px 36px rgba(0,0,0,.55); z-index: 60;
}
.toast.hidden { display: none; }
.toast a { color: var(--accent-text); text-decoration: underline; margin-left: 8px; }
.toast b { color: #fff; font-weight: 500; }

/* ---- Sign-in gate ----------------------------------------------------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 200; background: var(--plane);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-overlay.hidden { display: none; }
.layout.hidden { display: none; }
.login-card {
  width: 100%; max-width: 392px;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-card h2 { font-size: 19px; margin-bottom: 7px; }
.login-card > p { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.login-card label { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .11em; }
.login-card input {
  width: 100%; margin-top: 8px; padding: 11px 13px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; outline: none; color: var(--ink); background: rgba(255,255,255,.03);
}
.login-card input:focus { border-color: rgba(57,135,229,.5); background: rgba(57,135,229,.06); }
.login-card .btn-primary { width: 100%; margin-top: 16px; }
.login-msg { color: var(--critical); font-size: 12px; min-height: 17px; margin-top: 8px; }
.login-hint { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.6; }

/* ---- Demo-data banner ------------------------------------------------- */
.demo-banner {
  display: flex; align-items: flex-start; gap: 11px;
  background: linear-gradient(100deg, rgba(250,178,25,.09), rgba(255,255,255,.012));
  border: 1px solid rgba(250,178,25,.22); border-radius: var(--radius);
  padding: 13px 17px; margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
}
.demo-banner.hidden { display: none; }
.demo-banner strong { color: var(--ink); font-weight: 500; }
.demo-banner-tag {
  flex: none; background: var(--warning); color: #221800;
  font-size: 9px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-top: 1px; font-family: 'DM Sans', sans-serif;
}
.live-chip {
  display: inline-block; background: var(--good); color: #fff;
  font-size: 9px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; font-family: 'DM Sans', sans-serif;
}
.group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em;
  color: var(--muted); margin: 22px 0 11px;
}
.group-label span { text-transform: none; letter-spacing: 0; color: #55585e; }

@media (max-width: 1180px) {
  .ls-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
}
@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .ls-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 18px 14px 30px; }
}
