:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --ink: #0a1a33;
  --muted: #4a5f80;
  --line: #d3e2f6;
  --line-strong: #b3c9ea;
  --primary: #1d4ed8;
  --blue: #1e3a8a;
  --grad: linear-gradient(135deg, #38bdf8 0%, #2563eb 52%, #1e3a8a 100%);
  --grad-hover: linear-gradient(135deg, #1fa9ec 0%, #1d4fd0 52%, #172f72 100%);
  --primary-hover: #1e40af;
  --primary-soft: #e0edff;
  --ok: #12703f;
  --ok-soft: #e3f5ec;
  --warn: #8a5300;
  --warn-soft: #fcf1da;
  --bad: #b3281f;
  --bad-soft: #fbe6e4;
  --radius: 6px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--font);
  min-height: 100vh;
  min-height: 100dvh;
  background-image: linear-gradient(160deg, #e3f2ff 0%, #d6e6fc 55%, #c9d9f6 100%);
  background-attachment: scroll;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- topbar ---------- */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 0 0 transparent; border-image: var(--grad) 1; position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 15px var(--font-display); letter-spacing: 0; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand small { font: 500 11px var(--font); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .06em; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.who { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

.page { max-width: 1040px; margin: 0 auto; padding: 20px 16px 64px; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--bg); border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--grad-hover); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: #e4b4b0; }
.btn-danger:hover:not(:disabled) { background: var(--bad-soft); border-color: var(--bad); }
.btn-ok { color: var(--ok); border-color: #a9d8bf; }
.btn-ok:hover:not(:disabled) { background: var(--ok-soft); border-color: var(--ok); }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn { width: 32px; height: 32px; border: 0; background: transparent; border-radius: var(--radius); font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* ---------- form ---------- */
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field-label { font-size: 13px; font-weight: 500; }
.field-hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 40px; padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
textarea { min-height: 180px; resize: vertical; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; }
input:disabled, textarea:disabled, select:disabled { background: var(--bg); color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.grow { flex: 1 1 200px; min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; font-size: 14px; cursor: pointer; background: var(--surface); }
.seg input:checked + span { background: var(--grad); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }

/* ---------- tab ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: transparent; padding: 10px 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected=true] { color: var(--primary); border-image: var(--grad) 1; border-bottom-width: 2px; border-bottom-style: solid; }
.tab-count { margin-left: 6px; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; color: var(--muted); }

/* ---------- ringkasan ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.stat { padding: 12px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: 12px; color: var(--muted); }
.stat dd { margin: 2px 0 0; font: 600 22px var(--font-display); }
.stat.ok dd { color: var(--ok); } .stat.warn dd { color: var(--warn); } .stat.bad dd { color: var(--bad); }
.stats dl, dl.stats { margin: 0; }

.balance { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.balance small { display: block; opacity: .85; font-size: 13px; }
.balance strong { font: 600 32px/1.2 var(--font-display); }
.balance .btn { border-color: #fff; background: #fff; color: var(--primary); }
.balance .btn:hover:not(:disabled) { background: var(--primary-soft); }

/* ---------- panel & tabel ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel, .panel + .table-wrap, .table-wrap + .panel { margin-top: 16px; }
.panel h2, .section-title { font-size: 17px; margin-bottom: 4px; }
.lead { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .grow { max-width: 320px; }
.toolbar select { width: auto; }
.spacer { flex: 1; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f1f6ff; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f1f6ff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .btn + .btn { margin-left: 6px; }
.sub { display: block; font-size: 12px; color: var(--muted); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line); }

.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 10px; }
.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); }

.notice { border-left: 3px solid var(--primary); background: var(--primary-soft); padding: 10px 14px; font-size: 14px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 14px; }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); }
.notice.bad { border-color: var(--bad); background: var(--bad-soft); }
.notice code, code.pw { font: 600 13px ui-monospace, Menlo, Consolas, monospace; background: rgba(255,255,255,.7); padding: 1px 6px; border-radius: 3px; user-select: all; }

.layout-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 860px) { .layout-2 { grid-template-columns: 1.5fr 1fr; align-items: start; } }

/* ---------- auth ---------- */
.auth { max-width: 880px; margin: 0 auto; padding: 40px 16px; display: grid; gap: 32px; }
@media (min-width: 800px) { .auth { grid-template-columns: 1fr 380px; align-items: center; padding-top: 72px; } }
.auth-copy h1 { font-size: 34px; line-height: 1.15; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { color: var(--muted); max-width: 42ch; }
.auth-copy .brand { margin-bottom: 28px; }
.auth-copy .brand img { width: 44px; height: 44px; }
.auth-box { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid transparent; border-image: var(--grad) 1; border-radius: 0; padding: 22px; box-shadow: 0 18px 40px -22px rgba(20,60,140,.45); }
.auth-box .tabs { margin: 0 0 18px; }
.auth-box .tab { flex: 1; text-align: center; }

/* ---------- modal ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 8px; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--ink); box-shadow: 0 20px 50px -10px rgba(10,26,51,.35); }
dialog.modal-wide { width: min(760px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(10,26,51,.45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 18px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0 0 16px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.modal-body h3 { font-size: 15px; margin: 18px 0 8px; }
.modal-body .table-wrap { max-height: 260px; overflow: auto; }

.hint-count { font-size: 13px; color: var(--muted); }

/* ---------- mobile: tabel jadi daftar bertumpuk ---------- */
@media (max-width: 680px) {
  .who { display: none; }
  .brand small { display: none; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  table.stack thead { position: absolute; left: -9999px; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td { border: 0; padding: 3px 0; text-align: left !important; display: flex; justify-content: space-between; gap: 12px; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex: none; padding-top: 2px; }
  table.stack td.actions { justify-content: flex-start; padding-top: 8px; flex-wrap: wrap; gap: 6px; }
  table.stack td.actions::before, table.stack td[data-label=""]::before { display: none; }
  .toolbar .grow { max-width: none; }
  .auth-copy h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.layout-2 > .panel + .panel { margin-top: 0; }

/* ---------- ONEX: tombol Google & aksen ---------- */
.btn-google { gap: 10px; min-height: 44px; font-size: 15px; }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; letter-spacing: .04em; }
.auth-note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.who-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.balance small, .balance strong { color: #fff; }

/* =====================================================================
   ONEX — Liquid Glass + Capsule (semua sudut membulat, tidak ada yang tajam)
   ===================================================================== */
:root {
  --radius: 999px;          /* kapsul: tombol, input, tab, badge */
  --radius-lg: 28px;        /* kartu & panel */
  --radius-md: 20px;        /* textarea, notice, sel tabel */
  --glass: linear-gradient(135deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.38) 100%);
  --glass-strong: linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.58) 100%);
  --glass-border: rgba(255,255,255,.75);
  --glass-blur: blur(22px) saturate(180%);
  --glass-shadow: 0 10px 34px -10px rgba(20,60,140,.28), 0 2px 6px rgba(20,60,140,.06), inset 0 1.5px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.35);
}

/* latar berwarna agar kaca punya sesuatu untuk diburamkan */
body { background-color: #e1eeff; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 36% at 12% 8%, rgba(125,211,252,.55), transparent 70%),
    radial-gradient(46% 40% at 92% 18%, rgba(37,99,235,.34), transparent 70%),
    radial-gradient(52% 46% at 72% 98%, rgba(56,189,248,.34), transparent 70%),
    radial-gradient(38% 32% at 4% 88%, rgba(30,58,138,.26), transparent 70%);
}

/* ---------- permukaan kaca ---------- */
.panel, .stats, .table-wrap, .auth-box, dialog.modal, .notice, .tabs, .topbar {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.panel, .stats, .table-wrap, .auth-box { border-radius: var(--radius-lg); }
.table-wrap { overflow: hidden; overflow-x: auto; }
.panel { padding: 22px; }

/* topbar = kapsul melayang */
.topbar { position: sticky; top: 10px; z-index: 20; width: calc(100% - 20px); max-width: 1040px; margin: 10px auto 0; border-radius: 999px; border-image: none; }
.topbar-inner { max-width: none; height: 58px; padding: 0 12px 0 14px; }
.brand img { border-radius: 50%; width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(20,60,140,.3); }
.auth-copy .brand img { width: 48px; height: 48px; }
.brand small { border-radius: 999px; background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8); padding: 2px 9px; }
.who-avatar { border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(20,60,140,.25); }

/* ---------- tombol kapsul ---------- */
.btn {
  border-radius: 999px; min-height: 42px; padding: 0 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px -6px rgba(20,60,140,.35), inset 0 1.5px 0 rgba(255,255,255,.95);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover:not(:disabled) { background: rgba(255,255,255,.95); border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(20,60,140,.45), inset 0 1.5px 0 #fff; }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 32px; padding: 0 14px; }
.btn-primary {
  background: var(--grad); border-color: rgba(255,255,255,.35); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(30,70,170,.6), inset 0 1.5px 0 rgba(255,255,255,.55), inset 0 -2px 4px rgba(0,40,80,.18);
}
.btn-primary:hover:not(:disabled) { background: var(--grad-hover); border-color: rgba(255,255,255,.5); }
.btn-danger { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(251,230,228,.7)); border-color: rgba(228,180,176,.9); }
.btn-ok { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(227,245,236,.75)); border-color: rgba(169,216,191,.95); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.6); box-shadow: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; }
.icon-btn:hover { background: rgba(255,255,255,.7); }
.btn-google { min-height: 48px; }

/* ---------- input kapsul ---------- */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select {
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.6); border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 5px rgba(20,60,140,.10), inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
select { padding-right: 14px; }
textarea {
  border-radius: var(--radius-md); padding: 14px 18px;
  background: rgba(255,255,255,.6); border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 6px rgba(20,60,140,.10), inset 0 1px 0 rgba(255,255,255,.6);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(37,99,235,.65); box-shadow: 0 0 0 4px rgba(37,99,235,.20), inset 0 2px 5px rgba(20,60,140,.08); background: rgba(255,255,255,.85); }
input:disabled, textarea:disabled, select:disabled { background: rgba(255,255,255,.35); }
:focus-visible { outline: 2px solid rgba(37,99,235,.7); outline-offset: 3px; border-radius: 999px; }
.seg { border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid var(--glass-border); padding: 3px; gap: 2px; }
.seg span { border-radius: 999px; background: transparent; padding: 7px 18px; }
.seg input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 4px 10px -4px rgba(30,70,170,.6); }
.check input { border-radius: 6px; }

/* ---------- tab kapsul ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; width: max-content; max-width: 100%; border-bottom: 1px solid var(--glass-border); margin: 22px 0 18px; }
.tab { border-radius: 999px; padding: 9px 18px; margin: 0; border: 0; transition: background .15s, color .15s; }
.tab:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.tab[aria-selected=true] { color: #fff; background: var(--grad); border: 0; border-image: none; box-shadow: 0 6px 14px -6px rgba(30,70,170,.65), inset 0 1.5px 0 rgba(255,255,255,.45); }
.tab-count { border-radius: 999px; background: rgba(255,255,255,.65); }
.tab[aria-selected=true] .tab-count { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.5); color: #fff; }
.auth-box .tabs { width: 100%; }

/* ---------- ringkasan ---------- */
.stat { border-right-color: rgba(255,255,255,.7); }
.balance {
  border-radius: var(--radius-lg); position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 40px -16px rgba(30,70,170,.65), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 8px rgba(0,40,80,.18);
}
.balance::before { content: ""; position: absolute; inset: 0 0 52% 0; background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0)); pointer-events: none; }
.balance > * { position: relative; }

/* ---------- tabel ---------- */
th { background: rgba(255,255,255,.35); }
td, th { border-bottom-color: rgba(255,255,255,.7); }
tbody tr:hover { background: rgba(255,255,255,.45); }
.badge { border-radius: 999px; padding: 2px 11px; border: 1px solid rgba(255,255,255,.7); }
.badge-ok { background: rgba(227,245,236,.85); } .badge-warn { background: rgba(252,241,218,.9); } .badge-bad { background: rgba(251,230,228,.9); }
.pager { border-top-color: rgba(255,255,255,.7); }
td.mono { word-break: normal; overflow-wrap: anywhere; }

/* ---------- notice, kode, toast ---------- */
.notice { border-radius: var(--radius-md); border-left: 1px solid var(--glass-border); padding: 12px 18px; }
.notice.warn { background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(252,241,218,.7)); }
.notice.bad { background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(251,230,228,.75)); }
.notice code, code.pw { border-radius: 999px; padding: 3px 12px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); }

/* ---------- modal & auth ---------- */
dialog.modal { border-radius: 32px; padding: 0; overflow: hidden; background: var(--glass-strong); }
dialog.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(10,30,80,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-head { background: rgba(255,255,255,.35); border-bottom-color: rgba(255,255,255,.7); padding: 14px 14px 14px 24px; }
.modal-body { padding: 22px; }
.auth-box { border-image: none; border-top: 1px solid var(--glass-border); padding: 28px; border-radius: 36px; }
.auth-copy h1 { padding-bottom: .06em; }

/* tanpa dukungan backdrop-filter: pakai latar hampir solid agar tetap terbaca */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .stats, .table-wrap, .auth-box, dialog.modal, .notice, .tabs, .topbar, .btn, input, select, textarea { background: rgba(255,255,255,.92); }
}
@media (max-width: 680px) {
  .topbar { top: 8px; width: calc(100% - 16px); margin-top: 8px; }
  .page { padding-top: 12px; }
  .stat { border-bottom-color: rgba(255,255,255,.7); }
  .tabs { width: 100%; overflow-x: auto; }
  .panel { padding: 18px; }
  table.stack tr { border-bottom-color: rgba(255,255,255,.7); }
}
@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr 1fr; padding: 6px; }
  .stat, .stat:last-child { border: 0; padding: 10px 14px; }
  .stat dd { font-size: 20px; }
}
@media (min-width: 681px) { td.mono { white-space: nowrap; overflow-wrap: normal; } }

/* =====================================================================
   ONEX — Dashboard gaya aplikasi (beranda, ikon, navigasi bawah)
   Warna biru muda → biru tua.
   ===================================================================== */
:root {
  --grad-hero: linear-gradient(135deg, #5cc8fb 0%, #2f6fe8 48%, #16327e 100%);
  --card: rgba(255,255,255,.88);
  --card-shadow: 0 10px 28px -14px rgba(20,60,140,.35), 0 1px 3px rgba(20,60,140,.08);
}
.ico { display: inline-flex; line-height: 0; flex: none; }

.app-shell { min-height: 100vh; }
.app-page { max-width: 560px; padding: 18px 14px calc(150px + env(safe-area-inset-bottom, 0px)); }
.page-title { font-size: 24px; margin: 6px 4px 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }

/* ---------- kartu saldo ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 34px; padding: 26px 26px 24px;
  background: var(--grad-hero);
  box-shadow: 0 22px 44px -18px rgba(30,70,170,.7), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 12px rgba(0,40,80,.2);
}
.hero::before { content: ""; position: absolute; inset: 0 0 60% 0; background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; opacity: .92; }
.hero-amount { display: block; font: 700 clamp(38px, 11vw, 48px)/1.15 var(--font-display); margin: 8px 0 2px; letter-spacing: -.02em; }
.hero-sub { font-size: 15px; opacity: .88; }
.hero-sub b { font-weight: 700; opacity: 1; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s, transform .15s;
}
.hero-pill:hover { background: rgba(255,255,255,.32); }
.hero-pill:active { transform: scale(.97); }

/* ---------- menu ikon ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; padding: 14px 10px;
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 30px; box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.tile { display: grid; justify-items: center; gap: 8px; padding: 10px 2px 8px; border: 0; border-radius: 24px; background: transparent; cursor: pointer; min-width: 0; transition: background .15s, transform .15s; }
.tile:hover, .tile.is-hot { background: rgba(30,95,216,.09); }
.tile:active { transform: scale(.96); }
.tile-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px -8px rgba(20,60,140,.55), inset 0 1.5px 0 rgba(255,255,255,.45); }
.tile-label { font-size: 13px; font-weight: 600; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tone-green { background: linear-gradient(135deg, #60a5fa, #1e40af); }
.tone-teal { background: linear-gradient(135deg, #38bdf8, #0e6fb8); }
.tone-sky { background: linear-gradient(135deg, #22d3ee, #1d4ed8); }
.tone-lime { background: linear-gradient(135deg, #818cf8, #1e3a8a); }

/* ---------- kartu lebar ---------- */
.wide-card {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; padding: 16px 18px; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 30px; box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: transform .15s;
}
.wide-card:active { transform: scale(.985); }
.wide-ico { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--grad-hero); box-shadow: 0 8px 16px -8px rgba(30,70,170,.6), inset 0 1.5px 0 rgba(255,255,255,.45); }
.wide-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.wide-text strong { font: 600 19px var(--font-display); color: var(--ink); }
.wide-text span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wide-go { color: var(--muted); }

/* ---------- kartu statistik ---------- */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.metric {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--glass-border); border-radius: 28px; box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.metric-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.m-ok { background: #e3f5ec; color: #12703f; }
.m-warn { background: #fcf1da; color: #b26a00; }
.m-bad { background: #fbe6e4; color: #b3281f; }
.m-info { background: #e1ecfd; color: #1d5fd0; }
.metric-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.metric strong { display: block; font: 700 24px/1.2 var(--font-display); }

/* ---------- navigasi bawah ---------- */
.bottom-nav {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 20px), 540px);
  display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; align-items: end; padding: 10px 6px 8px;
  background: rgba(255,255,255,.9); border: 1px solid var(--glass-border); border-radius: 36px;
  box-shadow: 0 16px 40px -14px rgba(20,60,140,.45), inset 0 1.5px 0 #fff;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.nav-item { display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; min-width: 0; }
.nav-ico { width: 52px; height: 40px; border-radius: 999px; display: grid; place-items: center; transition: background .15s, color .15s; }
.nav-item[aria-current=page] { color: #1d4ed8; font-weight: 600; }
.nav-item[aria-current=page] .nav-ico { background: rgba(30,95,216,.14); }
.nav-fab { position: relative; display: grid; justify-items: center; gap: 4px; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.fab-ico {
  width: 76px; height: 76px; margin-top: -42px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--grad-hero); border: 5px solid rgba(255,255,255,.95);
  box-shadow: 0 14px 28px -8px rgba(30,70,170,.7), 0 0 0 6px rgba(30,95,216,.12), inset 0 2px 0 rgba(255,255,255,.4);
  transition: transform .15s;
}
.nav-fab:active .fab-ico { transform: scale(.94); }
.nav-fab[aria-current=page] .fab-label { color: #1d4ed8; }

/* ---------- profil ---------- */
.profile { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 30px 22px; }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 10px 24px -10px rgba(30,70,170,.6); margin-bottom: 8px; object-fit: cover; }
.profile-fallback { display: grid; place-items: center; background: var(--grad-hero); color: #fff; }
.profile .lead { margin-bottom: 18px; word-break: break-all; }

@media (max-width: 380px) {
  .tile-ico { width: 50px; height: 50px; }
  .tile-ico svg { width: 24px; height: 24px; }
  .hero { padding: 22px 20px 20px; }
}

/* ---------- header logo (selalu di atas) ---------- */
.app-header {
  position: sticky; top: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: linear-gradient(180deg, rgba(225,238,255,.92) 60%, rgba(225,238,255,0));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.app-header a { display: inline-flex; }
.app-header .app-logo img { height: 42px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(30,70,170,.25)); }
.app-header + .app-page { padding-top: 8px; }
.brand-wordmark img { width: 190px; height: auto; border-radius: 0; box-shadow: none; }

/* ---------- tombol menu (hendel) & laci samping ---------- */
.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(255,255,255,.85); border: 1px solid var(--glass-border); box-shadow: var(--card-shadow), inset 0 1.5px 0 #fff;
  transition: transform .15s, background .15s;
}
.menu-btn:hover { background: #fff; }
.menu-btn:active { transform: scale(.94); }
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(10,30,80,.38); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; z-index: 41; top: 10px; bottom: 10px; right: 10px; width: min(300px, calc(100vw - 40px)); padding: 14px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.94); border: 1px solid var(--glass-border); border-radius: 32px; box-shadow: 0 24px 60px -16px rgba(10,30,80,.55);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transform: translateX(calc(100% + 24px)); transition: transform .25s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.menu-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.menu-open .drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 6px 4px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.drawer-who { display: grid; min-width: 0; flex: 1; }
.drawer-who strong { font: 600 16px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-who span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left; cursor: pointer; }
.drawer-item:hover { background: rgba(30,95,216,.08); }
.drawer-item[aria-current=page] { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(30,70,170,.6); }
.drawer-out { margin-top: auto; color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }

/* ---------- ONEX: halaman Tarik ---------- */
.tarik > * + * { margin-top: 14px; }
.tarik .panel { border-radius: 30px; }
.panel-accent { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(186,222,255,.6)); border-color: rgba(255,255,255,.9); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { min-height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.8); color: #1d4ed8; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: inset 0 1.5px 0 #fff; }
.chip:hover { background: #fff; }
.chip:active { transform: scale(.96); }
.preview { display: grid; gap: 2px; padding: 14px 18px; margin-bottom: 14px; border-radius: 22px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); font-size: 14px; }
.preview strong { font: 700 24px var(--font-display); color: #1d4ed8; }

/* ---------- status Ditinjau & Captcha, kartu harga ---------- */
.badge-info { background: rgba(224,237,255,.95); color: #1d4ed8; }
.badge-cap { background: rgba(237,233,254,.95); color: #5b21b6; }
.m-cap { background: #ede9fe; color: #5b21b6; }
.price-card { cursor: default; }
.price-card:active { transform: none; }

/* ---------- logo teks ONEX ---------- */
.logo-text {
  display: inline-block; font: 700 italic 34px/1 var(--font-display); letter-spacing: .08em; padding: 4px 6px 6px 2px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #1e3a8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 8px rgba(30,70,170,.25));
}
.logo-lg { font-size: 58px; }
.logo-sm { font-size: 24px; }
.brand .logo-text { letter-spacing: .08em; font-weight: 700; }
.app-header a, .app-header a:hover, .brand { text-decoration: none; }

/* ---------- logo e-wallet ---------- */
.ew-logo { display: inline-block; height: 28px; width: auto; max-width: 100%; vertical-align: middle; object-fit: contain; }
.ew-linkaja { height: 36px; }
.ew-text { font-weight: 600; }
td .ew-logo { height: 22px; } td .ew-linkaja { height: 28px; }
.ew-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ew-opt {
  display: grid; place-items: center; min-height: 64px; padding: 10px 12px; border-radius: 22px; cursor: pointer;
  background: rgba(255,255,255,.75); border: 2px solid var(--glass-border); box-shadow: inset 0 1.5px 0 #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ew-opt:hover { background: #fff; }
.ew-opt:active { transform: scale(.97); }
.ew-opt[aria-checked=true] { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.18), inset 0 1.5px 0 #fff; background: #fff; }
.ew-opt .ew-logo { height: 30px; } .ew-opt .ew-linkaja { height: 40px; }
td.mono .ew-logo { height: 22px; }


/* =====================================================================
   ONEX — Notifikasi (toast): kartu kaca di atas layar
   ===================================================================== */
#toasts {
  position: fixed; z-index: 1000; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit;
  inset: auto; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%);
  width: min(440px, calc(100vw - 20px)); display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
#toasts:not(:popover-open):not([popover]) { display: flex; }
.toast {
  position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 32px; align-items: center; gap: 12px;
  padding: 12px 10px 15px 12px; border-radius: 26px; overflow: hidden; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(240,247,255,.93));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 18px 40px -14px rgba(10,30,80,.45), 0 3px 10px rgba(10,30,80,.10), inset 0 1.5px 0 #fff;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transition: transform .18s ease, opacity .18s ease;
  animation: toast-in .32s cubic-bezier(.2,.9,.25,1.15) both;
}
.toast.bump { animation: toast-bump .3s ease; }
.toast.leaving { animation: toast-out .24s ease forwards; pointer-events: none; }
.toast-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 8px 16px -8px rgba(10,30,80,.55), inset 0 1.5px 0 rgba(255,255,255,.5); }
.toast-body { display: grid; gap: 1px; min-width: 0; }
.toast-title { font: 600 15px/1.25 var(--font-display); color: var(--ink); }
.toast-msg { font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.toast-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(10,26,51,.06); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 2px; }
.toast-x:hover { background: rgba(10,26,51,.12); color: var(--ink); }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; transform-origin: left center; border-radius: 0 4px 4px 0; }
.toast-ok   .toast-ico, .toast-ok   .toast-bar { background: linear-gradient(135deg, #22c58b, #0e8f7a); }
.toast-bad  .toast-ico, .toast-bad  .toast-bar { background: linear-gradient(135deg, #f0625a, #c0322a); }
.toast-warn .toast-ico, .toast-warn .toast-bar { background: linear-gradient(135deg, #fbbf24, #e08a0a); }
.toast-info .toast-ico, .toast-info .toast-bar { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.toast-bad { background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(254,240,238,.95)); }
.toast-ok  { background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(236,250,244,.95)); }
.toast-warn { background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,247,229,.95)); }
@keyframes toast-in  { from { opacity: 0; transform: translateY(-18px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(.96); max-height: 0; margin-bottom: -10px; padding-top: 0; padding-bottom: 0; } }
@keyframes toast-bump { 40% { transform: scale(1.03); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.bump, .toast.leaving { animation-duration: .01s; } .toast-bar { animation-duration: 0s !important; } }

/* =====================================================================
   ONEX — Ramah HP (semua halaman)
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
body { overflow-x: clip; }
button, a, .tile, .nav-item, .ew-opt, .chip { touch-action: manipulation; }
img { max-width: 100%; }
.app-shell { min-height: 100dvh; }

/* input 16px: iOS tidak lagi zoom otomatis saat fokus */
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { font-size: 16px; }
textarea { font-size: 15px; }
@media (max-width: 680px) { textarea { font-size: 16px; } }

/* baris "jumlah + Minta Gmail" */
.claim-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.claim-row .hint-count { grid-column: 1 / -1; }
.claim-row input { text-align: center; }
.claim-row .btn { width: 100%; }
.form-actions { align-items: center; }

@media (max-width: 680px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .btn { min-height: 46px; }
  .btn-sm { min-height: 38px; padding: 0 14px; }
  .icon-btn { width: 40px; height: 40px; }
  .toolbar { gap: 8px; }
  .toolbar .grow { flex: 1 1 100%; }
  .toolbar select { flex: 1 1 100%; width: 100%; }
  .row > .btn { flex: 1 1 auto; }
  .row-end { justify-content: stretch; }
  .row-end > .btn { flex: 1 1 100%; }
  .form-actions .spacer { display: none; }
  .form-actions .hint-count { flex: 1 1 100%; }
  .form-actions .btn { flex: 1 1 100%; }
  .panel { border-radius: 26px; }
  .auth { padding: 24px 14px 40px; gap: 22px; }
  .auth-box { padding: 22px; border-radius: 30px; }
  .page-title { font-size: 22px; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dt { margin-top: 8px; font-size: 12px; }
  .hero-actions .hero-pill { flex: 1 1 0; justify-content: center; padding: 0 12px; }
  .tabs { scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { scroll-snap-align: start; min-height: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }

  /* dialog jadi lembar bawah (bottom sheet) */
  dialog.modal, dialog.modal-wide {
    width: calc(100vw - 16px); max-width: none; margin: auto auto calc(8px + env(safe-area-inset-bottom, 0px)); border-radius: 28px;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
  }
  dialog.modal[open] { display: flex; flex-direction: column; animation: sheet .26s cubic-bezier(.2,.8,.2,1); }
  dialog.modal .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .modal-head { position: static; flex: none; padding: 12px 12px 12px 20px; }
  .modal-body .table-wrap { max-height: 40dvh; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (max-width: 400px) {
  .app-page { padding-left: 10px; padding-right: 10px; }
  .tiles { padding: 12px 4px; gap: 2px; }
  .tile-label { font-size: 12px; }
  .metric { padding: 12px; gap: 10px; }
  .metric-ico { width: 40px; height: 40px; }
  .metric strong { font-size: 21px; }
  .metric-label { font-size: 11px; letter-spacing: .05em; }
  .bottom-nav { width: calc(100% - 14px); padding: 8px 2px 6px; }
  .nav-item, .nav-fab { font-size: 12px; }
  .nav-ico { width: 44px; height: 38px; }
  .fab-ico { width: 68px; height: 68px; margin-top: -38px; }
  .wide-text strong { font-size: 17px; }
  .wide-ico { width: 52px; height: 52px; }
  .toast { grid-template-columns: 38px minmax(0, 1fr) 30px; gap: 10px; padding: 11px 8px 14px 10px; border-radius: 24px; }
  .toast-ico { width: 38px; height: 38px; }
  .ew-picker { gap: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .app-page { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .fab-ico { width: 60px; height: 60px; margin-top: -26px; }
}
@media (min-width: 681px) { #toasts { top: 18px; } }

/* ---------- perapian HP tahap 2 ---------- */
.topbar-inner { min-width: 0; }
.topbar-end { flex: none; }
.brand { flex: 1 1 auto; }
@media (max-width: 680px) {
  table.stack td { flex-wrap: wrap; align-items: baseline; }
  table.stack td > :not(.btn):not(.sub):not(input) { text-align: right; }
  table.stack td .sub { flex: 1 0 100%; text-align: right; overflow-wrap: anywhere; }
  table.stack td.actions .btn { flex: 1 1 auto; }
  table.stack td input[type=checkbox] { width: 22px; height: 22px; }
}
@media (max-width: 400px) { .hide-xs { display: none !important; } }

.app-header + .app-page { padding-top: 12px; }

/* ---------- aturan & syarat (profil) ---------- */
.profile-page { display: grid; gap: 14px; }
.legal .lead { margin-bottom: 12px; }
.acc { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 8px; overflow: hidden; }
.acc > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; cursor: pointer; list-style: none; font: 600 15px var(--font-display); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary > .ico { color: var(--primary); flex: none; }
.acc > summary > span:nth-child(2) { flex: 1; min-width: 0; }
.acc-chev { display: inline-flex; color: var(--muted); transition: transform .2s ease; }
.acc[open] > summary { border-bottom: 1px solid var(--line); background: var(--primary-soft); }
.acc[open] .acc-chev { transform: rotate(90deg); }
.acc-list { margin: 0; padding: 12px 16px 14px 34px; display: grid; gap: 9px; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.acc-list li::marker { color: var(--primary); font-weight: 600; }
.legal-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- logo gambar ONEX ---------- */
.logo-img { display: block; height: 42px; width: auto; max-width: 100%; }
.logo-img-sm { height: 30px; }
.brand-wordmark .logo-img { width: min(280px, 72vw); height: auto; }
