/* Talangin — sistem tampilan mobile-first.
   Satu kolom selebar ponsel; di layar lebar tetap satu kolom di tengah. */

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f2f3f8;
  --surface-3: #e9eaf2;
  --line: #e7e8f0;
  --ink: #0f1020;
  --ink-2: #565a70;
  --ink-3: #9396ab;
  --brand: #5b4bf5;
  --brand-2: #8a5cff;
  --brand-soft: #efecff;
  --brand-ink: #ffffff;
  --good: #0f9f58;
  --good-soft: #e3f6eb;
  --bad: #e23a3f;
  --bad-soft: #fdebec;
  --warn: #b86e00;
  --warn-soft: #fff3db;
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 16, 32, 0.04), 0 6px 20px rgba(15, 16, 32, 0.05);
  --shadow-lg: 0 -8px 40px rgba(15, 16, 32, 0.16);
  --hero: linear-gradient(135deg, #4f3ff0 0%, #7b4dff 55%, #a35cff 100%);
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tabbar-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --col: 560px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b12;
    --surface: #15151f;
    --surface-2: #1c1c28;
    --surface-3: #252534;
    --line: #262636;
    --ink: #f3f3f8;
    --ink-2: #aeb0c4;
    --ink-3: #75778e;
    --brand: #8b7dff;
    --brand-2: #a98bff;
    --brand-soft: #221f42;
    --brand-ink: #0b0b12;
    --good: #3ccf86;
    --good-soft: #0f2a1d;
    --bad: #ff6b6f;
    --bad-soft: #301719;
    --warn: #f0b04a;
    --warn-soft: #2d2412;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 -8px 40px rgba(0, 0, 0, 0.6);
    --hero: linear-gradient(135deg, #3b2fc4 0%, #5e3bd6 55%, #7c44de 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 22px; font-weight: 750; }
h2 { font-size: 17px; font-weight: 720; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; flex: none; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 10px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ─── kerangka ─── */

.app { display: none; max-width: var(--col); margin: 0 auto; min-height: 100dvh; position: relative; }
.app.on { display: block; }
.app.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.app.has-actionbar { padding-bottom: calc(84px + var(--safe-b)); }

@media (min-width: 600px) {
  body { background: var(--surface-2); }
  .app { background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
}

.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  min-height: 60px;
}
.appbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.appbar .title { flex: 1; min-width: 0; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.appbar .title small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }

.group-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 70%;
  border: 0; background: var(--surface); box-shadow: var(--shadow);
  padding: 6px 12px 6px 6px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.group-pill .mark {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hero); color: #fff; font-size: 12px; font-weight: 800;
}

.page { padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.page > * { animation: rise 0.28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page > *, .sheet, .toast { animation: none !important; transition: none !important; } }

.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: center; gap: 8px; padding: 0 2px; }
.section-head h2 { flex: 1; font-size: 16px; }
.section-head .link { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px; }

/* ─── tombol ─── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em;
  background: var(--surface-2); color: var(--ink);
  transition: transform 0.08s ease, filter 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 32%, transparent); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.sm { height: 34px; padding: 0 13px; border-radius: 11px; font-size: 13px; }
.btn.lg { height: 52px; border-radius: 16px; font-size: 15.5px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow); flex: none;
}
.icon-btn.flat { background: var(--surface-2); box-shadow: none; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.good { background: var(--good-soft); color: var(--good); box-shadow: none; }
.icon-btn.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.icon-btn:active { transform: scale(0.94); }

/* ─── avatar ─── */

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 750; font-size: 14px;
  color: #fff; background: var(--av, #8a8fa8);
}
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 3px var(--surface), var(--shadow); }

/* ─── hero saldo ─── */

.hero {
  position: relative; overflow: hidden;
  background: var(--hero); color: #fff; border-radius: 26px; padding: 20px 20px 16px;
  box-shadow: 0 16px 36px -12px rgba(79, 63, 240, 0.55);
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}
.hero-label { font-size: 13px; font-weight: 600; opacity: 0.82; }
.hero-amount { font-size: 36px; font-weight: 800; letter-spacing: -0.035em; margin-top: 2px; line-height: 1.1; }
.hero-sub { font-size: 13.5px; opacity: 0.9; margin-top: 4px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px;
  background: rgba(255, 255, 255, 0.13); border-radius: 16px; padding: 10px 6px;
}
.hero-stats div { text-align: center; }
.hero-stats span { display: block; font-size: 11.5px; opacity: 0.8; font-weight: 600; }
.hero-stats b { font-size: 14.5px; font-weight: 750; }

/* ─── aksi cepat ─── */

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button {
  border: 0; background: none; cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.quick .qi {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow);
  transition: transform 0.08s ease;
}
.quick button:active .qi { transform: scale(0.93); }

/* ─── kartu dan daftar ─── */

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.flush { padding: 4px 0; }
.card.tint { background: var(--brand-soft); box-shadow: none; }

.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; position: relative;
  width: 100%; border: 0; background: none; text-align: left; cursor: default;
}
.item + .item::before { content: ''; position: absolute; top: 0; left: 68px; right: 0; height: 1px; background: var(--line); }
.item.noav + .item.noav::before, .list.plain .item + .item::before { left: 16px; }
.item.tap { cursor: pointer; }
.item.tap:active { background: var(--surface-2); }
.item .body { flex: 1; min-width: 0; }
.item .t { font-weight: 680; font-size: 14.5px; letter-spacing: -0.01em; }
.item .s { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.item .trail { display: flex; align-items: center; gap: 8px; flex: none; text-align: right; }
.item .amt { font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.item .amt small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.item.done { opacity: 0.55; }

.ic-tile {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); color: var(--ink-2);
}
.ic-tile.brand { background: var(--brand-soft); color: var(--brand); }
.ic-tile.good { background: var(--good-soft); color: var(--good); }
.ic-tile.bad { background: var(--bad-soft); color: var(--bad); }
.ic-tile.warn { background: var(--warn-soft); color: var(--warn); }

.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 800;
}

.handles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.handle {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 10px;
  background: var(--surface-2); font-size: 12px; font-weight: 650; border: 0; cursor: pointer; color: var(--ink);
}
.handle b { font-weight: 750; font-variant-numeric: tabular-nums; }
.handle svg { color: var(--ink-3); }

.empty { text-align: center; padding: 28px 20px; color: var(--ink-3); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic-tile { width: 52px; height: 52px; border-radius: 18px; }
.empty b { color: var(--ink); font-size: 15px; }

/* ─── gulir mendatar ─── */

.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.run-card {
  width: 240px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; border: 0; text-align: left;
}
.run-card .t { font-weight: 750; font-size: 15px; letter-spacing: -0.015em; }
.run-card .s { font-size: 12.5px; color: var(--ink-3); }

.wallet-card {
  width: 190px; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); box-shadow: var(--shadow); border: 0; text-align: left;
}
.wallet-card .amt { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wallet-card.add { align-items: center; justify-content: center; color: var(--brand); background: var(--brand-soft); box-shadow: none; cursor: pointer; font-weight: 700; width: 130px; }

/* ─── segmen dan chip ─── */

.seg { display: flex; background: var(--surface-3); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button {
  flex: 1; height: 36px; border: 0; border-radius: 11px; background: none; cursor: pointer;
  font-weight: 700; font-size: 13.5px; color: var(--ink-2);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 650; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink-2); flex: none;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ─── status sesi ─── */

.steps { display: flex; align-items: center; gap: 6px; }
.steps .st { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 650; color: var(--ink-3); }
.steps .st i { height: 4px; border-radius: 4px; background: var(--surface-3); display: block; }
.steps .st.on { color: var(--brand); }
.steps .st.on i { background: var(--brand); }
.steps.cancel .st i { background: var(--bad-soft); }

.bill {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 18px; background: var(--brand-soft);
}
.bill .label { font-size: 12.5px; font-weight: 650; color: var(--brand); }
.bill .amt { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; }
.kv span { color: var(--ink-2); }
.kv b { font-variant-numeric: tabular-nums; }
.kv.total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; font-size: 15.5px; }

/* ─── warung ─── */

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 12px;
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.product.off { opacity: 0.5; }
.product .pic {
  height: 64px; border-radius: 13px; display: grid; place-items: center; font-size: 26px; font-weight: 800;
  background: var(--surface-2); color: var(--ink-3);
}
.product .t { font-weight: 700; font-size: 14px; line-height: 1.25; }
.product .p { font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.product .p small { font-weight: 600; color: var(--ink-3); font-size: 11.5px; }

.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--brand-soft); border-radius: 12px; height: 36px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.stepper b { font-variant-numeric: tabular-nums; color: var(--brand); }

.floatbar {
  position: fixed; left: 0; right: 0; z-index: 25; margin: 0 auto; max-width: var(--col);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); padding: 0 12px; pointer-events: none;
}
.floatbar .inner {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 20px; background: var(--ink); color: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: rise 0.2s ease both;
}
.floatbar .inner .s { font-size: 12px; opacity: 0.7; }
.floatbar .btn.primary { box-shadow: none; }

/* ─── bar aksi bawah (halaman rincian) ─── */

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0 auto; max-width: var(--col);
  padding: 12px 16px calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: flex; gap: 10px;
}
.actionbar .btn { flex: 1; height: 50px; border-radius: 16px; }
.actionbar .note { flex: 1; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

/* ─── tab bar ─── */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0 auto; max-width: var(--col);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tabbar button {
  border: 0; background: none; cursor: pointer; height: 100%; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 650; color: var(--ink-3);
}
.tabbar button.on { color: var(--brand); }
.tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface); }
.tabbar .fab {
  width: 56px; height: 56px; border-radius: 20px; margin: -22px auto 0; display: grid; place-items: center;
  background: var(--hero); color: #fff; box-shadow: 0 10px 24px -6px rgba(91, 75, 245, 0.6);
  transition: transform 0.1s ease;
}
.tabbar button:active .fab { transform: scale(0.92); }

/* ─── lembar bawah ─── */

.sheet-bg {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 8, 16, 0); transition: background 0.2s ease;
}
.sheet-bg.open { background: rgba(8, 8, 16, 0.45); }
.sheet {
  width: 100%; max-width: var(--col); max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.sheet-bg.open .sheet { transform: none; }
.sheet.full { height: 92dvh; }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px 8px; flex: none; }
.sheet-head h2 { font-size: 19px; }
.sheet-head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.sheet form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-body { padding: 8px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 18px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--surface); flex: none; display: flex; flex-direction: column; gap: 10px; }
.menu { display: flex; flex-direction: column; }
.menu .item { border-radius: 16px; cursor: pointer; }
.menu .item:active { background: var(--surface-2); }
.menu .item + .item::before { display: none; }

/* ─── formulir ─── */

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus, .select:focus, .money:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }

.money {
  display: flex; align-items: center; gap: 6px; height: 58px; padding: 0 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface);
}
.money span { font-weight: 700; color: var(--ink-3); font-size: 17px; }
.money input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.money.sm { height: 44px; padding: 0 10px; border-radius: 12px; }
.money.sm span { font-size: 13px; }
.money.sm input { font-size: 16px; font-weight: 750; }

.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 700; text-align: center;
}
.pick input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-list label { cursor: pointer; }
.radio-list input { position: absolute; opacity: 0; pointer-events: none; }
.radio-list .opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.radio-list .opt b { display: block; font-size: 14px; }
.radio-list .opt small { color: var(--ink-3); font-size: 12px; }
.radio-list input:checked + .opt { border-color: var(--brand); background: var(--brand-soft); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.switch input { position: absolute; opacity: 0; }
.switch .tog { width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; flex: none; transition: background 0.15s ease; }
.switch .tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.15s ease; }
.switch input:checked + .tog { background: var(--brand); }
.switch input:checked + .tog::after { transform: translateX(18px); }

.toggle-chip { position: relative; }
.toggle-chip input { position: absolute; opacity: 0; }
.toggle-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-3); cursor: pointer; }
.toggle-chip input:checked + span { background: var(--bad-soft); color: var(--bad); }

.fin-item { display: grid; grid-template-columns: 1fr 132px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fin-item.out .money { opacity: 0.4; }

details.more summary { list-style: none; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }

/* ─── kode grup ─── */

.code-box { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface-2); }
.code-box .code { flex: 1; font-size: 24px; font-weight: 800; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }

/* ─── memuat ─── */

.sk { border-radius: 14px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ─── notifikasi ─── */

#toastHost { position: fixed; left: 0; right: 0; top: calc(12px + var(--safe-t)); z-index: 80; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: drop 0.24s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.toast.bad { background: var(--bad); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ─── layar masuk ─── */

.auth { min-height: 100dvh; display: flex; flex-direction: column; max-width: 440px; margin: 0 auto; padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b)); }
.auth-top { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 20px 0; }
.auth-logo { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--hero); color: #fff; font-weight: 800; font-size: 28px; box-shadow: 0 14px 30px -10px rgba(91, 75, 245, 0.6); }
.auth h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.auth h1 em { font-style: normal; background: var(--hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-points { display: flex; flex-direction: column; gap: 12px; }
.auth-points div { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); font-weight: 550; }
.auth-bottom { display: flex; flex-direction: column; gap: 12px; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.dev-login { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }

.demo-flag { position: sticky; top: 0; z-index: 60; text-align: center; font-size: 12px; font-weight: 700; padding: 6px; background: var(--warn-soft); color: var(--warn); }

.splash { min-height: 100dvh; display: grid; place-items: center; }
.splash .auth-logo { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.92); opacity: 0.7; } }

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }

/* ─── tambahan ─── */
.page.still > * { animation: none; }
.seg label { position: relative; display: block; }
.seg .segbtn {
  display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 11px;
  font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.seg input:checked + .segbtn { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.seg input:focus-visible + .segbtn, .pick input:focus-visible + .opt, .radio-list input:focus-visible + .opt { outline: 2px solid var(--brand); outline-offset: 2px; }
button:focus-visible, .run-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.stepper input:focus { outline: none; }
.card.tint { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.google-btn { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow); gap: 12px; }
.auth-logo:has(img) { background: none; overflow: hidden; width: 76px; height: 76px; box-shadow: 0 14px 30px -10px rgba(212, 32, 47, 0.55); }
.auth-logo img { width: 100%; height: 100%; display: block; }
