
/* v6 "Struk" — redesign penuh (2026-11-14). Kontrak: .impeccable/surfaces/storefront-v6.md
 * kertas #FBFAF7 · meja #E7E4DC · tinta #1B1A17 · pudar #6E6A61 · stempel #C22E1E · dash #B5B0A4
 * Spline Sans Mono (data/aksi) + Hanken Grotesk (prosa) · dot leaders · tepi sobekan · cap status
 * seed: none (unavailable) — direction dipilih user dari galeri 9 konsep */

:root {
  --desk: #e7e4dc;
  --paper: #fbfaf7;
  --ink: #1b1a17;
  --muted: #6e6a61;
  --faint: #a9a498;
  --dash: #b5b0a4;
  --stamp: #c22e1e;
  --well: #f1efe8;
  --wa: #1f7a4d;               /* tombol komplain WhatsApp — warna platform, satu tempatan */
  --color-success: #1e7a46;    /* arah nominal positif di riwayat saldo */
  --color-error: var(--stamp);
  --mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --sheet-w: 500px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--muted) var(--desk); }
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--stamp);
}
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a { color: inherit; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
img, svg, video { max-width: 100%; display: block; }
main { flex: 1; }
.num, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- lembar kertas ---------- */
.sheet { max-width: var(--sheet-w); margin: 14px auto 30px; background: var(--paper); box-shadow: 0 1px 2px rgba(27, 26, 23, 0.10), 0 18px 36px -14px rgba(27, 26, 23, 0.22); }
.perf { height: 11px; background-image: radial-gradient(circle at 8px 11px, var(--desk) 4.5px, transparent 5px); background-size: 16px 11px; background-repeat: repeat-x; }
.perf-bottom { height: 11px; background-image: radial-gradient(circle at 8px 0px, var(--desk) 4.5px, transparent 5px); background-size: 16px 11px; background-repeat: repeat-x; }
.sheet-body { padding: 4px 20px 26px; }

/* ---------- garis struk ---------- */
.dash { border: 0; border-top: 1.5px dashed var(--dash); margin: 16px 0; }
.line { display: flex; align-items: baseline; padding: 8px 0; }
.lead { flex: 1; min-width: 24px; border-bottom: 2px dotted var(--dash); margin: 0 8px; transform: translateY(-4px); }

/* ---------- kepala lembar ---------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 12px; }
h1 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: break-word; min-width: 0; }
h1.tight { text-transform: uppercase; }
.home-title { font-size: 30px; }
.sub { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); margin-top: 6px; }
.stamp-no { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; padding-top: 6px; }
.stamp-no strong { color: var(--ink); display: block; }

/* ---------- seksi & catatan ---------- */
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0 2px; }
.sec b { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; min-width: 0; }
.sec span { font-size: 12px; color: var(--muted); white-space: nowrap; }
h2.cat-name { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; }
.note { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; margin: 4px 0; overflow-wrap: break-word; }
.note a { color: var(--ink); }
.buy-note { margin-top: 12px; color: var(--muted); font-size: 12px; }

/* ---------- form gaya mengisi struk ---------- */
.fill { display: block; padding: 8px 0 2px; min-width: 0; }
.fill label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 4px; text-transform: uppercase; }
.fill input, .fill select {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1.6px dashed var(--dash);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 5px 0 6px;
  outline: none;
}
.fill input::placeholder { color: var(--muted); }
.fill input:focus-visible, .fill select:focus-visible { border-bottom-color: var(--ink); border-bottom-style: solid; outline: none; }
.fill select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b1a17' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; }

/* ---------- tautan ---------- */
a.u { color: var(--ink); text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--dash); text-underline-offset: 4px; }
a.u:hover { text-decoration-color: var(--ink); }
.back { display: inline-block; padding-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-decoration: none; text-transform: uppercase; }
.back:hover { color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 11.5px; }
.crumbs a { color: var(--muted); }

/* ---------- identitas pembeli: baris UNTUK ---------- */
.who { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 10px; color: var(--muted); }
.who a { color: var(--ink); text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--dash); text-underline-offset: 4px; }
.who a:hover { text-decoration-color: var(--ink); }

/* ---------- baris pilihan paket (radio) ---------- */
.opt-row { display: flex; align-items: flex-start; gap: 4px; }
.opt-row .opt { flex: 1; min-width: 0; }
.opt { display: flex; align-items: baseline; padding: 9px 0; cursor: pointer; min-width: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.radio { flex: none; width: 17px; height: 17px; border: 1.6px solid var(--ink); border-radius: 50%; margin-right: 12px; position: relative; top: 2px; }
.opt input:checked + .radio::after { content: ""; position: absolute; inset: 3px; background: var(--ink); border-radius: 50%; }
.opt input:focus-visible + .radio { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:disabled + .radio { border-color: var(--faint); }
.opt:has(input:disabled) { cursor: default; }
.opt .col { min-width: 0; flex: 1; }
.opt .row1 { display: flex; align-items: baseline; min-width: 0; }
.opt .name { overflow-wrap: break-word; min-width: 0; }
.opt .price { font-weight: 700; white-space: nowrap; }
.opt .price .rp { font-size: 12px; font-weight: 400; color: var(--muted); }
.opt.out { color: var(--muted); }
.opt.out .name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.opt.out .price { color: var(--muted); font-weight: 400; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--stamp); border: 1.5px solid var(--stamp); border-radius: 3px; padding: 1px 6px; white-space: nowrap; text-transform: uppercase; align-self: center; }
.opt-info { flex: none; align-self: center; padding: 4px 6px; font: 700 15px/1 var(--mono); color: var(--muted); text-decoration: none; }
.opt-info:hover { color: var(--ink); }

/* ---------- chip filter kategori ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
.chip { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border: 1.5px solid var(--dash); border-radius: 999px; padding: 4px 12px; color: var(--muted); text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ---------- bar beli tempel ---------- */
.buy-form { display: block; padding-bottom: 210px; }
.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  max-width: var(--sheet-w);
  margin-inline: auto;
  background: var(--paper);
  border-top: 1.5px dashed var(--dash);
  box-shadow: 0 -10px 28px rgba(27, 26, 23, 0.14);
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}
.buybar .fill { padding: 2px 0 0; }
.bar-metode { display: flex; align-items: baseline; gap: 10px; }
.bar-metode > span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.bar-metode select { flex: 1; min-width: 0; }
.bar-check { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; cursor: pointer; }
.bar-check input { width: 14px; height: 14px; margin: 0; accent-color: var(--ink); }
.field-hint { margin-top: 4px; font-family: var(--sans); font-size: 11.5px; color: var(--muted); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 20px;
  border: 0; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font: 700 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: #33312c; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.6px var(--ink); }
.btn-ghost:hover { background: var(--well); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); color: var(--paper); }
.btn-wa:hover { background: #175f3c; }
.btn-mini { min-height: 30px; padding: 0 10px; font-size: 10.5px; }

/* ---------- header situs: strip kertas tipis ---------- */
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 13px; text-decoration: none; transition: top 120ms ease-out; }
.skip-link:focus-visible { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1.5px dashed var(--dash); }
.header-row { max-width: 568px; margin-inline: auto; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; }
.brand { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav-link { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px 0; }
.nav-link:hover { color: var(--ink); }
.acct { position: relative; }
.acct-trigger { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); padding: 8px 0; }
.acct-trigger::-webkit-details-marker { display: none; }
.acct-trigger .acct-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct[open] .chevron { transform: rotate(180deg); }
.chevron { transition: transform 120ms ease-out; }
.acct-panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--paper); border: 1.5px dashed var(--dash); padding: 8px; z-index: 50; box-shadow: 0 10px 24px rgba(27, 26, 23, 0.16); }
.acct-head { padding: 2px 8px 10px; border-bottom: 1.5px dashed var(--dash); margin-bottom: 6px; font-size: 12px; }
.acct-head .acct-mail { font-family: var(--sans); font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow-wrap: break-word; }
.acct-panel a, .acct-panel button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; font: 700 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-panel a:hover, .acct-panel button:hover { background: var(--well); }
.acct-out { color: var(--stamp); }

/* ---------- footer: catatan kaki kertas ---------- */
.site-footer { border-top: 1.5px dashed var(--dash); padding: 18px 10px 28px; }
/* bar beli fixed menutup dasar layar — beri ruang SETELAH footer agar footer terbaca sampai akhir */
body:has(.buybar) .site-footer { padding-bottom: calc(320px + env(safe-area-inset-bottom)); }
.footer-inner { max-width: 568px; margin-inline: auto; font-family: var(--sans); font-size: 12.5px; color: #5d5950; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.foot-links a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
.foot-links a:hover { text-decoration-color: var(--ink); }
.foot-copy { margin: 10px 0 0; }

/* ---------- beranda ---------- */
.op-line { display: flex; align-items: baseline; padding: 10px 0; font-size: 15px; font-weight: 700; text-decoration: none; }
.op-line .cnt { font-weight: 400; font-size: 12px; color: var(--muted); white-space: nowrap; }
.op-line:hover .lead { border-bottom-color: var(--ink); }

/* ---------- hasil pencarian ---------- */
.search-row { text-decoration: none; }
.search-row .name { font-weight: 700; overflow-wrap: break-word; }
.search-row .sr-meta { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.search-row .price { font-weight: 700; white-space: nowrap; }
.search-row .price .rp { font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- kepala halaman umum ---------- */
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-count { color: var(--muted); font-size: 12px; }
.page-lead { font-family: var(--sans); color: var(--muted); font-size: 14px; max-width: 54ch; margin: 8px 0 16px; }

/* ---------- daftar kunci-nilai (baris struk) ---------- */
.kv-list { border-top: 2px solid var(--ink); margin-top: 8px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1.5px dashed var(--dash); }
.kv > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.kv > span:last-child { text-align: right; overflow-wrap: break-word; min-width: 0; font-weight: 700; }

/* ---------- halaman produk ---------- */
.stack { display: grid; gap: 10px; }
.stack > div { min-width: 0; }
.stack label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; margin-bottom: 4px; text-transform: uppercase; }
.stack input:not([type="checkbox"]):not([type="hidden"]), .stack select {
  width: 100%; min-width: 0; border: 0; border-bottom: 1.6px dashed var(--dash); border-radius: 0;
  background: transparent; font: inherit; color: var(--ink); padding: 6px 0; outline: none;
}
.stack input::placeholder { color: var(--muted); }
.stack input:focus-visible, .stack select:focus-visible { border-bottom-color: var(--ink); border-bottom-style: solid; outline: none; }
.stack select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 20px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b1a17' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center; }
.check { display: flex; align-items: flex-start; gap: 8px; font-family: var(--sans); font-size: 13px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 0.25em; accent-color: var(--ink); }
.form-error { padding: 10px 12px; border: 1.5px dashed var(--stamp); color: var(--stamp); font-size: 13px; margin: 10px 0; }

/* ---------- halaman bayar / bukti ---------- */
.pay-sheet .sheet-body { padding-bottom: 30px; }
.stamp-zone { text-align: center; padding: 10px 0 2px; }
.stamp { display: inline-block; padding: 10px 26px 7px; border: 4px double var(--stamp); border-radius: 6px; color: var(--stamp); font-size: 26px; font-weight: 700; letter-spacing: 0.3em; text-indent: 0.3em; text-transform: uppercase; transform: rotate(-7deg); }
.stamp-wait { border-style: dashed; border-color: var(--ink); color: var(--ink); border-width: 2.5px; }
.stamp-ok { animation: cap 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.4s backwards; }
@keyframes cap {
  from { transform: rotate(-7deg) scale(2.1); opacity: 0; filter: blur(2px); }
  60%  { transform: rotate(-6deg) scale(0.96); opacity: 1; filter: blur(0); }
  to   { transform: rotate(-7deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stamp-ok { animation: none; } }
.stamp-when { font-size: 12px; color: var(--muted); margin-top: 14px; }
.qr-box { padding: 16px; border: 2px dashed var(--dash); border-radius: 6px; background: var(--well); text-align: center; }
.qr-card { width: min(260px, 100%); margin-inline: auto; }
.qr-svg svg { width: 100%; height: auto; }
.qr-hint { margin-top: 10px; font-family: var(--sans); font-size: 12.5px; color: var(--ink); }
.qr-hint strong { color: var(--ink); }
.qr-cancel { display: flex; justify-content: center; margin-top: 12px; }
.countdown-pill { font-variant-numeric: tabular-nums; }
.countdown-pill.urgent { color: var(--stamp); }
.result { margin: 8px 0 0; padding: 12px; background: var(--well); border: 1.5px dashed var(--dash); color: var(--ink); font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.ref-code { display: inline-flex; align-items: center; gap: 6px; }
.ref-text { font-weight: 700; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1.5px solid var(--dash); border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--ink); }
.copy-btn .i-check { display: none; }
.copy-btn.copied .i-copy { display: none; }
.copy-btn.copied .i-check { display: block; color: var(--color-success); }

/* ---------- cek status ---------- */
.status-form { display: flex; align-items: flex-end; gap: 12px; }
.status-form .fill { flex: 1; min-width: 0; padding-bottom: 0; }
.status-form .btn { flex: none; margin-bottom: 2px; }
.status-form + .form-error { width: fit-content; }

/* ---------- status pill (tabel) ---------- */
.status-pill { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1.5px solid var(--dash); border-radius: 999px; padding: 3px 10px; color: var(--muted); white-space: nowrap; }
.st-pending_payment, .st-processing { border-color: var(--ink); color: var(--ink); }
.st-success { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.st-failed, .st-cancelled, .st-expired { border-color: var(--stamp); color: var(--stamp); }

/* ---------- notifikasi (catatan struk) ---------- */
.notice { padding: 12px 14px; border: 1.5px dashed var(--dash); background: var(--well); font-family: var(--sans); font-size: 13.5px; margin: 12px 0; }
.notice-ok { border-color: var(--ink); }
.notice-warn { }
.notice-err { border-color: var(--stamp); color: var(--stamp); background: var(--paper); }
.notice a { color: var(--ink); }
.notice-err a { color: var(--stamp); }
.notice-body { margin-bottom: 10px; }
.notice-action { display: block; width: fit-content; margin-top: 10px; }
.failed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- keadaan kosong ---------- */
.empty { max-width: 60ch; margin-inline: auto; padding: 30px 24px; border: 2px dashed var(--dash); text-align: center; font-family: var(--sans); font-size: 14px; color: var(--muted); }
main > .empty { max-width: calc(var(--sheet-w) - 40px); background: var(--paper); box-shadow: 0 1px 2px rgba(27, 26, 23, 0.10), 0 18px 36px -14px rgba(27, 26, 23, 0.22); margin-block: 14px 30px; padding: 44px 30px; }
.empty-title { font: 700 14px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- kompatibilitas: halaman error di route (BuyError, DuplicatePage, dst.) ---------- */
.narrow-page { max-width: 540px; margin: 26px auto; padding: 0 10px; }
.narrow-page h1 { font-size: 22px; text-transform: uppercase; margin-bottom: 12px; }
.card { background: var(--paper); border: 2px dashed var(--dash); padding: 18px; font-family: var(--sans); font-size: 14px; box-shadow: 0 10px 24px -14px rgba(27, 26, 23, 0.25); }
.card-title { font: 700 16px/1.3 var(--mono); margin: 0 0 12px; }
.card p { margin: 0 0 10px; }
.card .btn { margin-top: 6px; }
.pay-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pay-amount { font-variant-numeric: tabular-nums; }

/* ---------- akun & saldo ---------- */
.auth-col { max-width: var(--sheet-w); margin-inline: auto; }
.auth-divider { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 14px 0; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: 1.5px solid var(--dash); border-radius: 999px; padding: 3px 10px; color: var(--muted); white-space: nowrap; }
.badge-ok { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.badge-warn { border-color: var(--stamp); color: var(--stamp); }
.wallet-card { border-block: 3px double var(--ink); padding: 16px 0; margin: 14px 0; }
.wallet-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.wallet-amount { display: block; margin-top: 6px; font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallet-meta { margin-top: 6px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); overflow-wrap: break-word; }
.wallet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

/* ---------- tabel data (riwayat) ---------- */
.table-wrap { overflow-x: auto; margin-top: 8px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--ink); color: var(--muted); font: 700 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.table-wrap td { padding: 10px; border-bottom: 1.5px dashed var(--dash); font-variant-numeric: tabular-nums; vertical-align: top; }
.ref-cell { white-space: nowrap; }
.ref-cell a { font-weight: 700; }
.wa-inline { display: inline-flex; margin-left: 8px; vertical-align: middle; }

/* ---------- auth ---------- */
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border: 1.6px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font: 700 14px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.btn-google:hover { background: var(--well); }

/* ---------- halaman statis ---------- */
.static-page { max-width: 62ch; font-family: var(--sans); font-size: 14.5px; }
.static-page p, .static-page li { color: var(--ink); }
.static-page p + p, .static-page ul, .static-page h2 { margin-top: 12px; }
.static-page h2 { font: 700 15px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.static-page a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
.steps-list { display: grid; gap: 8px; padding-left: 1.25em; }
.form-narrow { max-width: 420px; }
.pay-card { margin-top: 14px; }

/* ---------- responsif ---------- */
@media (min-width: 720px) {
  body { padding-top: 26px; }
  .sheet { box-shadow: 0 1px 2px rgba(27, 26, 23, 0.10), 0 24px 48px -16px rgba(27, 26, 23, 0.26); }
  .header-row { padding: 0 14px; }
}
