/* Stokped Digital — area member, gaya dashboard pakai.io.
   Disalin dari template-dashboard-satu-digital (token :root, shell,
   komponen, breakpoint) — verbatim sebisa mungkin, disesuaikan untuk
   halaman live /member, /toko, /checkout, /invoice.
   Dipakai HANYA oleh halaman area member; landing/claim/admin tetap
   memakai site.css. Tidak ada perubahan backend/API di sini. */
:root {
  color-scheme: light dark;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --surface-3: #e4e9f2;
  --ink: #131a29;
  --ink-2: #46536b;
  --ink-3: #7c879e;
  --line: #dde3ee;
  --line-strong: #c9d2e3;
  --brand: #16a34a;
  --brand-ink: #ffffff;
  --brand-soft: #e7f6ec;
  --brand-soft-ink: #15803d;
  --ok: #0d7a4f;
  --ok-soft: #e2f4ec;
  --warn: #9a6206;
  --warn-soft: #fdf0d5;
  --bad: #b3261e;
  --bad-soft: #fbe7e5;
  --amber: #e8930c;
  --rust: #9c3d1e;
  --rust-hover: #84331a;
  --sidebar-bg: #ffffff;
  --sidebar-ink: #2a3448;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px -6px rgba(16, 24, 40, .08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119;
    --surface: #151b28;
    --surface-2: #1b2334;
    --surface-3: #232e45;
    --ink: #edf1f8;
    --ink-2: #b3bdd2;
    --ink-3: #7f8ba3;
    --line: #263049;
    --line-strong: #33415f;
    --brand: #4ade80;
    --brand-ink: #0d1424;
    --brand-soft: #122b1d;
    --brand-soft-ink: #86efac;
    --ok: #3ecf8e;
    --ok-soft: #123528;
    --warn: #f2b04a;
    --warn-soft: #3a2c10;
    --bad: #ff8a80;
    --bad-soft: #3d1a17;
    --amber: #f2a93b;
    --rust: #c05a33;
    --rust-hover: #cd6a42;
    --sidebar-bg: #111725;
    --sidebar-ink: #c3cbdd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px -6px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-soft-ink); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; font-size: .86em; }

/* --- Shell: sidebar + topbar + konten ------------------------------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex: 0 0 264px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column;
}
.brand { padding: 20px 20px 14px; display: flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
}
.brand-text h1 { margin: 0; font-size: 16.5px; letter-spacing: -.01em; }
.brand-text p { margin: 0; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.toggle-side {
  margin-left: auto; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.toggle-side svg { transition: transform .22s ease; }
.shell.collapsed .toggle-side svg { transform: scaleX(-1); }
.nav { padding: 6px 12px; overflow-y: auto; flex: 1; }
.nav-label {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; color: var(--ink-3);
  padding: 16px 10px 6px;
}
.nav a {
  display: flex; gap: 11px; align-items: center;
  padding: 10px; border-radius: 9px;
  font-weight: 600; font-size: 14px; min-height: 42px;
  color: var(--sidebar-ink); text-decoration: none;
}
.nav a svg { flex: none; width: 19px; height: 19px; opacity: .75; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--brand-soft); color: var(--brand-soft-ink); }
.nav a .count {
  margin-left: auto; background: var(--surface-3);
  font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px;
}
.side-foot { padding: 14px; border-top: 1px solid var(--line); }
.wallet-mini { background: var(--surface-2); border-radius: 12px; padding: 13px 14px; }
.wallet-mini .wm-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-3); }
.wallet-mini .wm-amount { font-size: 19px; font-weight: 800; margin: 2px 0 10px; }
.side-note { font-size: 12px; color: var(--ink-3); padding: 4px 2px 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; gap: 12px; align-items: center; padding: 12px 28px;
}
.topbar h2 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.topbar .crumb { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 0; }
.burger {
  display: none; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  place-items: center;
}
.spacer { flex: 1; }
.user-chip { display: flex; gap: 10px; align-items: center; }
.user-chip .who { text-align: right; line-height: 1.3; }
.user-chip .who b { display: block; font-size: 13.5px; }
.user-chip .who span { font-size: 12px; color: var(--ink-3); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand-soft-ink);
  border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.scrim {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(8, 12, 20, .45);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.content { padding: 26px 28px 56px; max-width: 1180px; width: 100%; margin: 0 auto; }
.page-head { margin-bottom: 20px; }
.page-head h3 { margin: 0 0 4px; font-size: 23px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 62ch; }

/* Sidebar collapse (desktop) */
@media (min-width: 761px) {
  .shell.collapsed .sidebar { width: 78px; flex-basis: 78px; }
  .shell.collapsed .brand { flex-direction: column; justify-content: center; padding: 16px 8px 10px; }
  .shell.collapsed .brand-text, .shell.collapsed .nav-label, .shell.collapsed .side-foot { display: none; }
  .shell.collapsed .toggle-side { margin: 8px auto 0; }
  .shell.collapsed .nav a { font-size: 0; justify-content: center; }
  .shell.collapsed .nav a .count { display: none; }
  .sidebar, .shell.collapsed .sidebar { transition: width .22s ease, flex-basis .22s ease; }
}

/* --- Kartu, grid, stat ---------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 20px; }
.card h4 { margin: 0 0 4px; font-size: 15.5px; letter-spacing: -.01em; }
.card .sub { color: var(--ink-2); font-size: 13.5px; margin: 0 0 14px; }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.two-col { grid-template-columns: 1.9fr 1fr; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.stat { padding: 18px 20px; }
.stat .stat-label { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--ink-3); }
.stat .stat-label svg { width: 16px; height: 16px; }
.stat .stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.stat .stat-sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.stat .stat-sub b { color: var(--ok); }
.section-block { margin-top: 16px; }
.section-block > h4 { margin: 0 0 10px; font-size: 15.5px; }

/* --- Tombol, badge, chip -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 13.5px; font-family: inherit;
  padding: 8px 15px; min-height: 38px; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--ink-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); border-color: var(--brand); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-soft-ink); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); background: var(--bad-soft); }
.btn.rust { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn.rust:hover { background: var(--rust-hover); border-color: var(--rust-hover); }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn svg { width: 15px; height: 15px; }
.btn.ghost { background: var(--surface); }
.badge {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 12px; font-weight: 700; border-radius: 99px;
  padding: 3px 10px; white-space: nowrap;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--brand-soft); color: var(--brand-soft-ink); }
.badge.mut { background: var(--surface-2); color: var(--ink-2); }
.chip {
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 7px 14px; font-weight: 700; font-size: 13px; min-height: 36px;
  background: var(--surface); color: var(--ink); cursor: pointer; font-family: inherit;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* --- Tabel ------------------------------------------------------------ */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th {
  font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); font-weight: 700;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  white-space: nowrap; text-align: left;
}
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.t-main { font-weight: 700; }
.t-sub { color: var(--ink-3); font-size: 12.5px; }
.amt-pos { color: var(--ok); font-weight: 700; }
.amt-neg { font-weight: 700; }

/* --- Form -------------------------------------------------------------- */
.field { margin-bottom: 14px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
input[type=text], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 14px; padding: 9px 12px; min-height: 40px;
}
input::placeholder { color: var(--ink-3); }
input[type=text] { text-transform: uppercase; }
input[type=password], input[type=number], input[type=tel], input[type=email], select { text-transform: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--brand); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.notice {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--warn-soft); color: var(--warn);
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 600;
}
.notice svg { flex: none; width: 18px; height: 18px; }
.msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.msg.info { color: var(--ink-3); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 180px; }
.back-link { color: var(--ink-3); text-decoration: none; font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--ink); }
.foot-note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 34px; }

/* --- Timeline ---------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 9px 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 5px; top: 26px; bottom: -4px;
  width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--surface-3); margin-top: 5px; position: relative; z-index: 1;
}
.timeline li.done .dot { background: var(--ok); }
.timeline li.now .dot { background: var(--brand); }
.timeline .tl-title { font-weight: 700; font-size: 14px; }
.timeline .tl-sub { color: var(--ink-3); font-size: 12.5px; }

/* --- Katalog produk ---------------------------------------------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input[type=text] { flex: 1; min-width: 200px; text-transform: none; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prod { display: flex; flex-direction: column; overflow: hidden; }
.prod .thumb {
  height: 118px; display: flex; align-items: flex-end; padding: 14px; position: relative;
}
.prod .thumb .glyph { color: #fff; font-size: 30px; font-weight: 800; line-height: 1; }
.prod .thumb .sku {
  position: absolute; top: 10px; right: 10px;
  background: rgba(10, 14, 24, .55); color: #fff;
  font-size: 11px; font-family: "JetBrains Mono", ui-monospace, monospace;
  border-radius: 99px; padding: 2px 8px;
}
.prod .thumb .hot {
  position: absolute; top: 10px; left: 10px;
  background: var(--amber); color: #231600;
  font-size: 11px; font-weight: 800; border-radius: 99px; padding: 2px 8px;
}
.th-muse { background: linear-gradient(120deg, #8a5a12, #c98f1b 55%, #e7b93c); }
.th-ai { background: linear-gradient(120deg, #14532d, #16a34a 60%, #4ade80); }
/* Toko (Stokped Digital): judul seksi katalog dua bagian. */
body[data-page="toko"] .section-title { font-size: 20px; margin: 28px 0 12px; letter-spacing: -.01em; color: #0F172A; }
body[data-page="toko"] .section-title .count { font-size: 14px; font-weight: 600; color: var(--ink-3); }
/* Kartu produk digital: baris garansi, sebaris dengan .stock di kartu token. */
.prod .warranty { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 4px 0 12px; }
.prod .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.prod .body h4 { margin: 0; font-size: 16px; }
.prod .body .desc { color: var(--ink-2); font-size: 13.5px; flex: 1; margin: 4px 0 10px; }
.prod .price .now { font-size: 19px; font-weight: 800; }
.prod .price .was { color: var(--ink-3); text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.prod .stock { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 4px 0 12px; }
.prod .save { color: var(--ok); font-size: 13px; font-weight: 700; }

/* --- Wallet ------------------------------------------------------------ */
.wallet-balance { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.qr-box { text-align: center; }
.qr-box img { display: block; width: 260px; max-width: 100%; height: auto; margin: 16px auto; }

/* --- Top-up (halaman /topup, pola pakai.io: 3 langkah) ------------------ */
.step { margin-bottom: 16px; }
.step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px;
}
.step-head h4 { margin: 0; }
.step-head p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.amount-wrap {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); padding: 2px 8px 2px 16px;
}
.amount-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.amount-wrap .cur { font-weight: 800; font-size: 20px; color: var(--ink-2); flex: none; }
.amount-wrap input[type=number] {
  border: 0; padding: 10px 4px; font-size: 22px; font-weight: 800; min-height: 48px;
}
.amount-wrap input[type=number]:focus { box-shadow: none; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.method-card {
  display: flex; gap: 14px; align-items: center;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 16px; background: var(--surface); cursor: pointer;
}
.method-card.selected { border-color: var(--brand); background: var(--brand-soft); }
.method-logo {
  width: 54px; height: 54px; border-radius: 10px; flex: none;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.method-info { flex: 1; min-width: 0; }
.method-info b { display: block; font-size: 15px; }
.method-info span { font-size: 13px; color: var(--ink-2); }
.sum-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.sum-row:last-child { border-bottom: 0; }
.sum-row .k { color: var(--ink-3); font-weight: 600; }
.sum-row .v { font-weight: 700; text-align: right; margin-left: auto; }
.sum-row.total .v { font-size: 17px; }
.sum-row.newbal { background: var(--ok-soft); border-radius: 8px; padding: 9px 10px; margin-top: 6px; }
.sum-row.newbal .k { color: var(--ok); }
.sum-row.newbal .v { color: var(--ok); font-size: 17px; }
.trust { text-align: center; font-size: 13px; color: var(--ink-3); font-weight: 600; margin: 12px 0 0; }
.receipt { text-align: center; padding: 6px 0 2px; }
.receipt .ok-circle {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--ok-soft); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto 12px;
  font-size: 30px; font-weight: 800;
}
.receipt h4 { font-size: 19px; }

/* --- Breakpoint -------------------------------------------------------- */
@media (max-width: 1020px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .sidebar.open {
    display: flex; position: fixed; left: 0; top: 0;
    box-shadow: var(--shadow);
  }
  .burger { display: grid; }
  .toggle-side { display: none; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 10px 16px; }
  .user-chip .who { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  td { display: flex; justify-content: space-between; gap: 14px; padding: 6px 12px; text-align: right; }
  td::before { content: attr(data-l); color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-align: left; }
  td.cell-main { display: block; text-align: left; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Fase 3 langkah 6 (item 45) — badge status supplier + tabel
   kesehatan/peringatan (dipakai kartu Kesehatan & Peringatan, item 43).
   TIDAK ADA gaya banner mode uji di sini (hanya bila D2-A; D2-B dipilih). */
.badge.sup-ok { background: var(--ok-soft); color: var(--ok); }
.badge.sup-degraded { background: var(--warn-soft); color: var(--warn); }
.badge.sup-down { background: var(--bad-soft); color: var(--bad); }
.badge.sup-unknown { background: var(--surface-2); color: var(--ink-2); }
.health-age { color: var(--ink-3); font-size: 12.5px; }
.alert-sev { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.alert-sev.crit { background: var(--bad-soft); color: var(--bad); }
.alert-sev.warn { background: var(--warn-soft); color: var(--warn); }
.alert-sev.info { background: var(--brand-soft); color: var(--brand-soft-ink); }
tr.alert-open { background: var(--warn-soft); }

/* Tampilan hasil penyerahan (item 47/48) — baris "Hasil" bertopeng di
   Produk Saya + halaman invoice, pola easy-copy pakai.io. */
.delivery-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.delivery-label { font-weight: 700; color: var(--ink-2); }
.delivery-field { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.delivery-field:last-child { border-bottom: 0; }
.delivery-field > span:first-child { font-weight: 600; color: var(--ink-2); min-width: 70px; }
.delivery-field code { word-break: break-all; }
.delivery-pre { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; font-size: 13px; margin: 8px 0; }

/* --- Tema admin gaya Template Admin Multi Supplier (2026-12-02) ------ */
/* Berlaku HANYA untuk halaman admin (body[data-page^="admin-"]): sistem
   desain template — sidebar putih 264px, latar #F8FAFC, kartu putih
   radius 12px + border #E5E7EB, tombol utama hijau gelap #047857,
   badge/pil §4 spec, tabel header abu UPPERCASE tanpa zebra. Halaman
   member (data-page lain) TIDAK berubah. Template TIDAK punya dark mode,
   jadi halaman admin dipaksa terang (menimpa prefers-color-scheme).
   TIDAK ada banner "data contoh" / pil "Mode Template" / pil era di sini
   — itu milik template konsep saja; admin live memakai DATA LIVE. */
body[data-page^="admin-"] {
  --bg: #F8FAFC;
  --surface: #ffffff;
  --surface-2: #F1F5F9;
  --surface-3: #E5E7EB;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --brand: #047857;
  --brand-ink: #ffffff;
  --brand-soft: #D1FAE5;
  --brand-soft-ink: #065F46;
  --ok: #065F46;
  --ok-soft: #D1FAE5;
  --warn: #92400E;
  --warn-soft: #FEF3C7;
  --bad: #B91C1C;
  --bad-soft: #FEE2E2;
  --amber: #92400E;
  --rust: #9C3D1E;
  --rust-hover: #7C2D12;
  --sidebar-bg: #ffffff;
  --sidebar-ink: #334155;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --radius: 12px;
  color-scheme: light;
  font-size: 14px;
}
/* Sidebar template: item aktif latar mint pucat + teks hijau gelap. */
body[data-page^="admin-"] .nav a { border-radius: 8px; }
body[data-page^="admin-"] .nav a.active { background: #ECFDF5; color: #047857; }
body[data-page^="admin-"] .nav a .count { background: #F1F5F9; color: #475569; }
body[data-page^="admin-"] .nav-label { color: #6B7280; }
/* Template TIDAK punya topbar terpisah: halaman diawali H1 + subtitle.
   Topbar hanya jadi strip ramping mobile (burger + judul); di desktop
   disembunyikan. Tombol Keluar pindah ke footer sidebar. */
body[data-page^="admin-"] .topbar { display: none; }
@media (max-width: 760px) {
  body[data-page^="admin-"] .topbar {
    display: flex; background: #ffffff; border-bottom: 1px solid #E5E7EB;
    padding: 10px 16px; backdrop-filter: none;
  }
  body[data-page^="admin-"] .topbar h2 { font-size: 17px; }
}
/* Judul halaman template: H1 28px + subtitle abu-abu. */
body[data-page^="admin-"] .page-head h1 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; color: #0F172A; }
body[data-page^="admin-"] .page-head h3 { margin: 0 0 4px; font-size: 28px; letter-spacing: -.02em; color: #0F172A; }
body[data-page^="admin-"] .page-head p { color: #475569; }
body[data-page^="admin-"] .card > h2 { font-size: 17px; margin: 0 0 4px; }
body[data-page^="admin-"] .card > h3 { font-size: 15px; margin: 14px 0 8px; }
body[data-page^="admin-"] .sub { color: #475569; font-size: 14px; }
/* Tombol template: radius 8px; utama hijau gelap; pil aktif hijau. */
body[data-page^="admin-"] .btn { border-radius: 8px; }
body[data-page^="admin-"] .btn.sm { border-radius: 8px; }
body[data-page^="admin-"] .chip.on { background: #047857; border-color: #047857; color: #ffffff; }
/* Tombol polos di dalam kartu/tabel admin (render app.js) — samakan
   dengan tombol sekunder kecil template. */
body[data-page^="admin-"] .card button:not(.btn):not(.chip) {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #D1D5DB; background: #ffffff; color: #0F172A;
  border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700;
  padding: 5px 11px; min-height: 34px; cursor: pointer;
}
body[data-page^="admin-"] .card button:not(.btn):not(.chip):hover { border-color: #6B7280; }
/* Badge template (§4 spec): hijau, biru, amber, merah, abu-abu, ungu, pink. */
body[data-page^="admin-"] .badge.ok { background: #D1FAE5; color: #065F46; }
body[data-page^="admin-"] .badge.warn { background: #FEF3C7; color: #92400E; }
body[data-page^="admin-"] .badge.bad { background: #FEE2E2; color: #B91C1C; }
body[data-page^="admin-"] .badge.info, body[data-page^="admin-"] .badge.blue { background: #DBEAFE; color: #1D4ED8; }
body[data-page^="admin-"] .badge.mut, body[data-page^="admin-"] .badge.gray { background: #F3F4F6; color: #374151; }
body[data-page^="admin-"] .badge.purple { background: #EDE9FE; color: #6D28D9; }
body[data-page^="admin-"] .badge.pink { background: #FCE7F3; color: #BE185D; }
body[data-page^="admin-"] .badge.green { background: #D1FAE5; color: #065F46; }
/* .pill — dipakai renderer app.js (status submission/supplier/alert/
   garansi/promo). Warna mengikuti badge §4 spec. */
body[data-page^="admin-"] .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px;
  white-space: nowrap; background: #F3F4F6; color: #374151;
}
body[data-page^="admin-"] .pill.pending, body[data-page^="admin-"] .pill.pending_manual,
body[data-page^="admin-"] .pill.open, body[data-page^="admin-"] .pill.warn,
body[data-page^="admin-"] .pill.degraded { background: #FEF3C7; color: #92400E; }
body[data-page^="admin-"] .pill.boost_pending, body[data-page^="admin-"] .pill.info { background: #DBEAFE; color: #1D4ED8; }
body[data-page^="admin-"] .pill.approved, body[data-page^="admin-"] .pill.ok,
body[data-page^="admin-"] .pill.active, body[data-page^="admin-"] .pill.resolved,
body[data-page^="admin-"] .pill.replaced { background: #D1FAE5; color: #065F46; }
body[data-page^="admin-"] .pill.rejected, body[data-page^="admin-"] .pill.bad,
body[data-page^="admin-"] .pill.failed, body[data-page^="admin-"] .pill.crit,
body[data-page^="admin-"] .pill.down { background: #FEE2E2; color: #B91C1C; }
body[data-page^="admin-"] .pill.paused, body[data-page^="admin-"] .pill.ended,
body[data-page^="admin-"] .pill.unknown, body[data-page^="admin-"] .pill.mut { background: #F3F4F6; color: #374151; }
/* Tabel template: header abu sangat muda + UPPERCASE, tanpa zebra,
   hover abu muda, baris terpilih mint. Angka rata kanan (.num). */
body[data-page^="admin-"] th { background: #F9FAFB; text-transform: uppercase; color: #6B7280; }
body[data-page^="admin-"] td { border-bottom: 1px solid #F1F5F9; }
body[data-page^="admin-"] tbody tr:hover { background: #F8FAFC; }
body[data-page^="admin-"] tbody tr.selected { background: #ECFDF5; }
body[data-page^="admin-"] td.num, body[data-page^="admin-"] th.num { text-align: right; }
body[data-page^="admin-"] .table-scroll { overflow-x: auto; }
/* Kotak "jujur" (catatan Model A/B di antrean klaim) gaya sub-panel template. */
body[data-page^="admin-"] .honest {
  background: #F8FAFC; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; color: #475569; line-height: 1.6;
}
body[data-page^="admin-"] .honest b { color: #0F172A; }
/* Timeline template: lingkaran bernomor/centang 28px; selesai hijau. */
body[data-page^="admin-"] .timeline li::before { left: 13px; top: 32px; bottom: -4px; }
body[data-page^="admin-"] .timeline .dot {
  width: 28px; height: 28px; margin-top: 0; flex: none;
  display: grid; place-items: center; color: #ffffff;
  font-size: 15px; font-weight: 800; background: #E5E7EB;
}
body[data-page^="admin-"] .timeline li.done .dot { background: #059669; }
body[data-page^="admin-"] .timeline li.done .dot::after { content: "✓"; }
body[data-page^="admin-"] .timeline li.now .dot { background: #047857; }
/* Grid 3 kantong wallet: menumpuk di mobile. */
body[data-page^="admin-"] .pocket-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  body[data-page^="admin-"] .pocket-grid { grid-template-columns: 1fr; }
  /* Template: tabel mobile di-scroll horizontal, bukan jadi kartu. */
  body[data-page^="admin-"] table { min-width: 640px; }
  body[data-page^="admin-"] thead { display: table-header-group; }
  body[data-page^="admin-"] tbody tr { display: table-row; padding: 0; border-bottom: 1px solid #F1F5F9; }
  body[data-page^="admin-"] td { display: table-cell; padding: 13px 16px; text-align: left; }
  body[data-page^="admin-"] td::before { content: none; }
  body[data-page^="admin-"] td.cell-main { display: table-cell; }
}
/* Halaman login admin: kartu tengah sempit gaya template. */
body[data-page^="admin-"] .login-wrap { max-width: 440px; margin: 56px auto 40px; padding: 0 16px; }
body[data-page^="admin-"] .login-wrap h1 { font-size: 28px; margin: 10px 0 8px; letter-spacing: -.02em; }
body[data-page^="admin-"] .login-wrap .login-sub { color: #64748B; margin: 0 0 20px; font-size: 14.5px; }
body[data-page^="admin-"] .login-wrap .card { padding: 24px; }

/* Pesanan: nama produk satu baris (dulu "Muse Token 1B" terlipat di kolom sempit);
   tabel sudah bisa di-scroll horizontal lewat .tbl-wrap. */
body[data-page="admin-pesanan"] .tbl-wrap td:nth-child(2) { white-space: nowrap; }

/* Dashboard v2 — grafik, donat, pesanan terbaru, perhatian. Semua
   di-scope ke halaman hub admin agar halaman lain tidak berubah. */
body[data-page="admin-hub"] .chart-wrap { position: relative; height: 260px; }
body[data-page="admin-hub"] .chart-wrap.donut { max-width: 360px; margin: 0 auto; }
body[data-page="admin-hub"] .section-title { font-size: 20px; margin: 28px 0 4px; letter-spacing: -.01em; color: #0F172A; }
body[data-page="admin-hub"] .section-sub { color: #475569; margin: 0 0 4px; }
body[data-page="admin-hub"] .stat-sub .up { color: #065F46; font-weight: 700; }
body[data-page="admin-hub"] .stat-sub .down { color: #B91C1C; font-weight: 700; }
body[data-page="admin-hub"] a.link { color: #047857; text-decoration: none; font-weight: 700; }
body[data-page="admin-hub"] a.link:hover { text-decoration: underline; }
body[data-page="admin-hub"] .att-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
body[data-page="admin-hub"] .att-item:last-child { border-bottom: 0; padding-bottom: 0; }
body[data-page="admin-hub"] .att-item:first-child { padding-top: 2px; }
body[data-page="admin-hub"] .att-item .badge { flex: none; margin-top: 1px; }
body[data-page="admin-hub"] .att-title { font-weight: 700; font-size: 13.5px; }
body[data-page="admin-hub"] .att-title a { color: #0F172A; text-decoration: none; }
body[data-page="admin-hub"] .att-title a:hover { color: #047857; text-decoration: underline; }
body[data-page="admin-hub"] .att-sub { font-size: 12.5px; color: #64748B; margin-top: 2px; }

/* --- Dashboard member gaya Satu Digital (2026-12-04) ------------------ */
/* Berlaku untuk halaman member ber-shell Satu (body[data-shell="satu"]:
   /member/, /topup/, /toko/, /pesanan/, /produk-saya/). Halaman lain
   (/checkout/, /invoice/, admin, beranda) TIDAK berubah — checkout dan
   invoice sengaja tidak memakai shell ini (alur standalone: checkout
   tamu dan detail pembayaran bertoken). Palet krem Satu (#F7F3EE) +
   aksen TETAP hijau Stokped #16a34a (bukan merah bata Satu). Judul
   display pakai stack serif sistem — tanpa dependensi font baru.
   Halaman ini dipaksa terang (seperti Satu, yang tidak punya dark
   mode). */
body[data-shell="satu"] {
  --bg: #F7F3EE;
  --surface: #ffffff;
  --surface-2: #FBF8F3;
  --surface-3: #EDE6DD;
  --ink: #1C1917;
  --ink-2: #57534E;
  --ink-3: #6B625A;
  --line: #EDE6DD;
  --line-strong: #DDD3C5;
  --brand: #16a34a;
  --brand-ink: #ffffff;
  --brand-soft: #E7F6EC;
  --brand-soft-ink: #15803D;
  --ok: #1E7A4C;
  --ok-soft: #E6F4EA;
  --bad: #B3261E;
  --bad-soft: #FBE7E5;
  --sidebar-bg: #F7F3EE;
  --sidebar-ink: #292524;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 4px 16px -6px rgba(28, 25, 23, .07);
  --radius: 16px;
  color-scheme: light;
}
/* Sidebar krem Satu: tanpa kartu putih, hanya garis pemisah. */
body[data-shell="satu"] .sidebar { background: var(--sidebar-bg); }
body[data-shell="satu"] .brand-mark { background: transparent; }
body[data-shell="satu"] .brand-mark svg { width: 40px; height: 40px; display: block; border-radius: 11px; }
/* Kartu profil di atas sidebar (pengganti wallet-mini di bawah). */
body[data-shell="satu"] .side-profile {
  display: flex; gap: 12px; align-items: center;
  margin: 2px 14px 6px; padding: 14px;
  background: linear-gradient(135deg, #EAF7EE, #D8F0DF);
  border: 1px solid #CBE9D4; border-radius: 16px;
}
body[data-shell="satu"] .side-profile-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
body[data-shell="satu"] .side-profile-text { min-width: 0; flex: 1; }
body[data-shell="satu"] .side-profile-text b {
  display: block; font-size: 14px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
body[data-shell="satu"] .side-profile-text span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
body[data-shell="satu"] .side-profile .btn { flex: none; }
/* Menu: ikon dalam kotak kecil; item aktif latar hijau pucat + teks
   hijau gelap + garis aksen kiri. */
body[data-shell="satu"] .nav a svg {
  width: 28px; height: 28px; padding: 5px; opacity: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
body[data-shell="satu"] .nav a.active {
  background: var(--brand-soft); color: var(--brand-soft-ink);
  box-shadow: inset 3px 0 0 var(--brand);
}
body[data-shell="satu"] .nav a.active svg { border-color: #CBE9D4; background: #fff; }
/* Tombol Keluar di bawah sidebar (teks merah). */
body[data-shell="satu"] .side-logout {
  display: flex; gap: 10px; align-items: center; width: 100%;
  padding: 10px; border: 0; border-radius: 9px;
  background: transparent; color: var(--bad);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  text-align: left;
}
body[data-shell="satu"] .side-logout:hover { background: var(--bad-soft); }
body[data-shell="satu"] .side-logout svg { width: 19px; height: 19px; flex: none; }
body[data-shell="satu"] .shell.collapsed .side-profile { display: none; }
/* Header bar: kartu putih (bukan blur). */
body[data-shell="satu"] .topbar { background: var(--surface); backdrop-filter: none; }
body[data-shell="satu"] .topbar h2 { font-size: 17px; }
body[data-shell="satu"] .btn.pill { border-radius: 99px; }
/* Judul display serif + kartu statistik ala Satu. */
body[data-shell="satu"] .sd-head {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px;
}
body[data-shell="satu"] .sd-head .btn { flex: none; margin-top: 6px; }
body[data-shell="satu"] .sd-display {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: 34px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15;
}
body[data-shell="satu"] .sd-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
body[data-shell="satu"] .sd-stats { grid-template-columns: 1.35fr 1fr; margin-bottom: 16px; }
body[data-shell="satu"] .sd-hero {
  position: relative; overflow: hidden;
  padding: 22px 24px;
  background: linear-gradient(135deg, #EAF7EE, #D8F0DF);
  border: 1px solid #CBE9D4; border-radius: 20px;
}
body[data-shell="satu"] .sd-hero::before {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(22, 163, 74, .14);
  box-shadow: 0 0 0 28px rgba(22, 163, 74, .05), 0 0 0 56px rgba(22, 163, 74, .03);
  pointer-events: none;
}
body[data-shell="satu"] .sd-hero > * { position: relative; z-index: 1; }
body[data-shell="satu"] .sd-hero-label {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
}
body[data-shell="satu"] .sd-hero-label svg { width: 18px; height: 18px; }
body[data-shell="satu"] .sd-hero-value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
body[data-shell="satu"] .sd-hero-pockets { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
body[data-shell="satu"] .sd-hero-note { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
body[data-shell="satu"] .sd-stat { padding: 22px 24px; }
body[data-shell="satu"] .sd-stat .stat-value { font-size: 32px; }
body[data-shell="satu"] .sd-activity { margin-bottom: 16px; }
body[data-shell="satu"] .sd-card-head {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
body[data-shell="satu"] .sd-card-head h4 { margin: 0; }
body[data-shell="satu"] .sd-link {
  color: var(--brand-soft-ink); text-decoration: none;
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
body[data-shell="satu"] .sd-link:hover { text-decoration: underline; }
body[data-shell="satu"] .act-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 9px; vertical-align: 1px;
}
body[data-shell="satu"] .act-dot.dot-pos { background: var(--ok); }
body[data-shell="satu"] .act-dot.dot-neg { background: var(--bad); }
body[data-shell="satu"] .amt-neg { color: var(--bad); }
/* Footer strip ala Satu: chip metode bayar + copyright + tautan. */
body[data-shell="satu"] .sd-foot {
  display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3); font-weight: 600;
}
body[data-shell="satu"] .sd-foot-label { font-weight: 700; color: var(--ink-2); }
body[data-shell="satu"] .sd-pay-chip {
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 3px 12px; font-weight: 800; color: var(--ink); background: var(--surface);
}
body[data-shell="satu"] .sd-foot-sep { flex: 1; }
body[data-shell="satu"] .sd-foot a { color: var(--ink-2); text-decoration: none; }
body[data-shell="satu"] .sd-foot a:hover { color: var(--ink); text-decoration: underline; }
/* --- Popup akun di header (port dari beranda, token dipetakan) -------- */
body[data-shell="satu"] .home-acct { position: relative; display: flex; align-items: center; }
body[data-shell="satu"] .home-acct-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
body[data-shell="satu"] .home-acct-btn:hover { background: var(--surface-2); }
body[data-shell="satu"] .home-acct-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
body[data-shell="satu"] .home-acct-btn svg { width: 20px; height: 20px; display: block; }
body[data-shell="satu"] .home-acct-initial {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
body[data-shell="satu"] .home-acct-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 20;
  width: 300px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(28, 25, 23, .18);
  padding: 18px;
}
body[data-shell="satu"] .home-acct-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
body[data-shell="satu"] .home-acct-sub { font-size: 13px; color: var(--ink-3); margin: 0 0 4px; }
body[data-shell="satu"] .home-acct-box { margin-top: 14px; }
body[data-shell="satu"] .home-acct-pop label { margin-top: 10px; }
body[data-shell="satu"] .home-acct-pop .btn { margin-top: 14px; }
body[data-shell="satu"] .home-acct-links { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
body[data-shell="satu"] .home-acct-links a { white-space: nowrap; }
body[data-shell="satu"] .home-acct-pop input[type=text] { text-transform: none; }
body[data-shell="satu"] .home-acct-passwrap { position: relative; }
body[data-shell="satu"] .home-acct-passwrap input { padding-right: 42px; }
body[data-shell="satu"] .home-acct-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 8px; padding: 0;
  background: transparent; color: var(--ink-3);
  display: grid; place-items: center; cursor: pointer;
}
body[data-shell="satu"] .home-acct-eye:hover { color: var(--ink); background: var(--surface-2); }
body[data-shell="satu"] .home-acct-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
body[data-shell="satu"] .home-acct-eye svg { width: 20px; height: 20px; display: block; }
body[data-shell="satu"] .home-acct-pop .msg { margin-top: 10px; }
body[data-shell="satu"] .home-acct-user { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
body[data-shell="satu"] .home-acct-user-initial {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}
body[data-shell="satu"] .home-acct-user-text { min-width: 0; flex: 1; }
body[data-shell="satu"] .home-acct-user-label { margin: 0; font-size: 12px; color: var(--ink-3); }
body[data-shell="satu"] .home-acct-user-name { margin: 1px 0 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-shell="satu"] .home-acct-user-email { margin: 1px 0 0; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-shell="satu"] .home-acct-menu { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: 12px; }
body[data-shell="satu"] .home-acct-menu a {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 8px; border-bottom: 1px solid var(--line); border-radius: 8px;
}
body[data-shell="satu"] .home-acct-menu a svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
body[data-shell="satu"] .home-acct-menu a:hover { color: var(--brand-soft-ink); background: var(--surface-2); }
body[data-shell="satu"] .home-acct-menu a:hover svg { color: var(--brand); }
body[data-shell="satu"] .home-acct-menu a:last-child { border-bottom: 0; }
body[data-shell="satu"] .home-acct-pop button.home-acct-logout { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
body[data-shell="satu"] .home-acct-logout svg { width: 16px; height: 16px; }
/* Mobile: kartu statistik menumpuk; topbar tetap muat. */
@media (max-width: 760px) {
  body[data-shell="satu"] .sd-stats { grid-template-columns: 1fr; }
  body[data-shell="satu"] .sd-display { font-size: 28px; }
}
@media (max-width: 560px) {
  body[data-shell="satu"] .topbar .btn.pill { padding: 6px 11px; font-size: 12.5px; min-height: 34px; }
  body[data-shell="satu"] .topbar h2 { font-size: 16px; }
  body[data-shell="satu"] .sd-head { flex-direction: column; }
  body[data-shell="satu"] .sd-head .btn { margin-top: 0; }
}

/* --- Skeleton loading (halaman member, scope Satu) ---------------------- */
/* Batang abu-abu beranimasi halus sebagai pengganti angka/teks yang belum
   dimuat — pengguna tidak pernah melihat angka yang salah (mis. "Rp0")
   atau teks "Memuat…" telanjang. Bila fetch gagal, JS mengganti skeleton
   dengan "—" / pesan gagal yang jujur, bukan skeleton selamanya. */
body[data-shell="satu"] .sk {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #EAE3D8 25%, #F6F0E7 50%, #EAE3D8 75%);
  background-size: 200% 100%;
  animation: sd-shimmer 1.4s linear infinite;
}
body[data-shell="satu"] .sk + .sk { margin-top: 10px; }
body[data-shell="satu"] .sk-lg { height: 34px; border-radius: 9px; }
body[data-shell="satu"] .sk-sm { height: 12px; }
body[data-shell="satu"] .sk-balance { display: inline-block; width: 92px; height: 12px; vertical-align: middle; }
body[data-shell="satu"] .sk-btn { height: 38px; border-radius: 10px; }
body[data-shell="satu"] .sk-rows { display: grid; padding: 2px 0; }
body[data-shell="satu"] .sk-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
body[data-shell="satu"] .sk-row:last-child { border-bottom: 0; }
body[data-shell="satu"] .sk-row .sk { margin-top: 0; }
@keyframes sd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 560px) {
  body[data-shell="satu"] .sk-row { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-shell="satu"] .sk { animation: none; }
}
