/* Bakita Agent App — Phase 8.2 visual modernization (fintech mobile) */
:root {
  --bg: #eef2ff;
  --bg-soft: #f4f6fb;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #06b6d4;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --line: #e2e8f0;
  --shadow: 0 10px 28px rgba(79, 70, 229, 0.12);
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --space: 8px;
  /* Android WebView injects dp via --android-*; never use raw physical px */
  --sat: var(--android-sat, env(safe-area-inset-top, 0px));
  --sab: var(--android-sab, env(safe-area-inset-bottom, 0px));
  --ime: var(--android-ime, 0px);
  --safe-bottom: var(--sab);
  --nav-h: 60px;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  --grad-soft: linear-gradient(180deg, #4f46e5 0%, #6366f1 40%, #eef2ff 100%);
  --control-border: transparent;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
#app {
  min-height: 100dvh; max-width: 480px; margin: 0 auto;
  background: var(--bg-soft); position: relative;
}

.boot {
  min-height: 100dvh; display: grid; place-content: center; text-align: center; gap: 6px;
  color: var(--muted); background: var(--grad-soft);
}
.boot-logo {
  width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 16px;
  background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: var(--shadow);
  overflow: hidden; padding: 8px;
}
.boot-logo img { width: 100%; height: 100%; object-fit: contain; }
.boot-mark { font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; color: #fff; }

.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  /* floating nav sits above safe-area — keep last row of cards clear */
  padding-bottom: calc(var(--nav-h) + var(--sab) + 36px);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg-soft);
}
html[data-ime="1"] .screen {
  padding-bottom: calc(var(--ime) + 16px);
}
.screen-login {
  justify-content: flex-start;
  align-items: center;
  background: var(--grad-soft);
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(16px, var(--sat)) 0 max(24px, var(--sab));
  box-sizing: border-box;
}
html[data-ime="1"] .screen-login {
  padding-bottom: calc(var(--ime) + 20px);
  justify-content: flex-start;
}
.login-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 28px;
  transform: none;
  flex: 1 0 auto;
  min-height: calc(100dvh - max(16px, var(--sat)) - max(24px, var(--sab)) - 8px);
}
html[data-ime="1"] .login-stack {
  min-height: 0;
  justify-content: flex-start;
  padding-top: 8px;
}

/* —— Page chrome —— */
.page-chrome {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding: calc(12px + var(--sat)) 12px 12px;
  background: transparent;
}
.chrome-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 14px; border: 0;
  background: var(--surface); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-sm);
}
.chrome-back svg { width: 22px; height: 22px; display: block; }
.chrome-back:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.chrome-titles { text-align: center; min-width: 0; padding: 0 4px; }
.chrome-title {
  margin: 0; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em;
  line-height: 1.2; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chrome-sub {
  margin: 4px 0 0; font-size: .72rem; font-weight: 500; color: var(--muted);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chrome-spacer { width: 44px; height: 44px; }

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--sat)) 16px 8px; background: transparent;
}
.app-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit;
  min-height: 44px;
}
.app-brand-mark {
  width: 32px; height: 32px; border-radius: 0;
  display: block; object-fit: contain; flex-shrink: 0;
  background: transparent; box-shadow: none;
}
.app-brand-name {
  font-weight: 800; letter-spacing: .04em; font-size: 1.05rem; color: var(--ink);
  line-height: 1; display: flex; align-items: center;
  padding-top: 1px;
}
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0;
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
}
.icon-btn svg { width: 20px; height: 20px; display: block; }
.icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.pad { padding: 8px 16px 16px; }
.brand { font-size: 1.75rem; font-weight: 800; margin: 0 0 4px; color: #fff; letter-spacing: .04em; }
.sub { color: rgba(255,255,255,.85); margin: 0 0 18px; line-height: 1.45; font-size: .92rem; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.field input {
  width: 100%; min-height: 48px; border-radius: var(--radius); border: 0;
  background: var(--surface); color: var(--ink); padding: 0 16px; font-size: 1rem;
  outline: none; box-shadow: var(--shadow-sm);
}
.field input:focus {
  box-shadow: 0 0 0 3px rgba(79,70,229,.18), var(--shadow-sm);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; border: 0; border-radius: var(--radius); font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: var(--surface2); color: var(--ink); border: 0; margin-top: 10px;
  box-shadow: none;
}
.btn-ghost:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-cyan {
  background: #cffafe; color: #0e7490; font-weight: 700; border: 0;
  border-radius: 999px; min-height: 44px; padding: 0 14px; width: auto; font-size: .82rem;
}
/* Beranda saldo card only — do not change other .btn-cyan */
#dashTopup.btn-cyan {
  background: #ffffff;
  color: #6b3eea;
}
.btn-danger-outline {
  background: #fff5f5; color: var(--danger); border: 0; margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

.banner {
  border: 0; background: #fffbeb; color: #92400e;
  border-radius: var(--radius); padding: 12px 14px; font-size: .86rem; line-height: 1.45; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.banner-error { background: #fef2f2; color: #b91c1c; }
.banner-ok { background: #f0fdf4; color: #166534; }
.banner-warn { background: #fffbeb; color: #92400e; }

.topup-result-pad { text-align: center; }
.topup-result-pad .saldo-card-plain {
  margin: 0 0 14px;
  text-align: left;
}
.topup-result-pad .saldo-card-plain .amt {
  font-size: 1.45rem;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.topup-result-status {
  margin: 8px 0 0;
  font-size: .85rem;
  opacity: .9;
  font-weight: 600;
}
.topup-result-card {
  text-align: left;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px 16px;
  margin: 0 0 16px;
}
.topup-result-card .agen-buy-row strong {
  font-variant-numeric: tabular-nums;
}
.topup-result-card .agen-buy-row:last-child span,
.topup-result-card .agen-buy-row:last-child strong {
  color: var(--primary);
  font-weight: 700;
}

.dest-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
}
.dest-scan-card {
  width: min(100%, 420px);
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.dest-scan-title {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 700;
}
.dest-scan-card video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}
.dest-scan-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.dest-scan-close,
.dest-scan-file {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
}
.dest-scan-close {
  background: #334155;
  color: #f8fafc;
}
.dest-scan-file {
  background: #4f46e5;
  color: #fff;
}

.greet { padding: 0 16px 8px; color: var(--muted); font-size: .85rem; }
.greet strong { color: var(--ink); }

/* —— Premium dashboard (Bakita) —— */
.screen-home {
  background: var(--bg-soft);
}
.dash-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  width: 100%;
  /* Match Panel banner ~1974×797 (~2.48:1) — avoid tall empty letterbox strip */
  aspect-ratio: 1974 / 797;
  height: auto;
  min-height: 0;
  max-height: none;
  /* Same as page bg so residual edges never read as a tinted strip */
  background: var(--bg-soft);
}
.dash-top .app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
}
.dash-top .icon-btn {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
/* Full-bleed: soft bleed fill + contain foreground (shared with .page-hero).
   Foreground MUST stay contain — never cover (no crop of primary art). */
.hero-bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: blur(40px) saturate(1.25) brightness(1.02);
  transform: scale(1.45);
  transform-origin: center center;
  opacity: 0.92;
  pointer-events: none;
}
.hero-fg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  /* Dissolve baked PNG bottom edge into page bg (asset limitation, not crop) */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0,0,0,.55) 90%, transparent 100%);
}
.dash-top::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(22px, 7vw, 36px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(244, 246, 251, 0) 0%,
    rgba(244, 246, 251, 0.65) 55%,
    var(--bg-soft) 100%
  );
}
.dash-top.no-art {
  aspect-ratio: auto;
  min-height: 0;
  height: auto;
  background: transparent;
}
.dash-top.no-art::after {
  display: none;
}
.dash-top.no-art .app-header {
  position: relative;
}
.dash-top.no-art .dash-hero-copy {
  position: relative;
  bottom: auto;
  padding: 4px 16px 10px;
}
.dash-hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  max-width: 58%;
  padding: 0 16px 4px;
  box-sizing: border-box;
}
.dash-greet-label {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: #64748b;
}
.dash-greet-name {
  margin: 2px 0 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.2;
  word-break: break-word;
}
.dash-greet-sub {
  margin: 0;
  font-size: .72rem;
  color: #64748b;
  line-height: 1.35;
}

.dash-greet-inline {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* —— Shared page hero (Panel banner slots) ——
   Source ~2.5:1. Stage tracks asset aspect; bleed fills residual edges.
   Do NOT crop primary artwork with cover on .hero-fg. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  width: 100%;
  aspect-ratio: 1974 / 797;
  height: auto;
  min-height: 0;
  max-height: none;
  background: var(--bg-soft);
}
.page-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.page-hero.no-art {
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  background: transparent;
}
.page-hero.no-art::after { display: none; }
.page-hero.no-art .page-chrome {
  position: relative;
}
/* Hero→content seam only (do not alter pad L/R/bottom or body content) */
.page-hero + .pad {
  padding-top: 0;
}
.dash-top + .saldo-card {
  margin-top: 8px;
}
.page-chrome-on-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: transparent;
  align-items: flex-start;
}
.page-chrome-on-hero .chrome-back {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.chrome-titles-left { text-align: left; padding-left: 4px; }
.page-hero-hint {
  margin: 6px 0 0;
  font-size: .78rem;
  color: #475569;
  line-height: 1.35;
  max-width: 58%;
  font-weight: 500;
}
.page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  max-width: 72%;
}
.page-hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #4338ca;
  font-size: .65rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
}

.trust-block {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  box-shadow: var(--shadow-sm);
}
.trust-block img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.trust-block strong { display: block; font-size: .86rem; color: var(--ink); }
.trust-block p { margin: 2px 0 0; font-size: .72rem; color: var(--muted); line-height: 1.35; }
.trust-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  text-align: center;
}
.trust-trio strong { display: block; font-size: .68rem; color: var(--ink); }
.trust-trio span { display: block; margin-top: 2px; font-size: .58rem; color: var(--muted); line-height: 1.3; }

.topup-preset-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 6px;
}
.denom-card-product { position: relative; overflow: hidden; }
.rp-input {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.rp-prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-weight: 800;
  color: var(--primary);
  background: #eef2ff;
  font-size: .9rem;
  flex-shrink: 0;
}
.rp-input input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.trx-when {
  margin: 2px 0 0 !important;
  font-size: .68rem !important;
}
.trx-right { position: relative; padding-right: 14px; }
.trx-chev {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 600;
}

.saldo-card {
  margin: 4px 16px 16px; padding: 18px 18px 16px; border-radius: var(--radius-xl);
  background: var(--grad); color: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.saldo-card-premium {
  align-items: stretch;
  padding: 16px;
  gap: 12px;
}
.saldo-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
}
.saldo-ico svg { width: 22px; height: 22px; color: #fff; }
.saldo-main { flex: 1 1 auto; min-width: 0; }
.saldo-card .lbl {
  font-size: .78rem; opacity: .92; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.saldo-eye {
  appearance: none; border: 0; background: rgba(255,255,255,.16);
  color: #fff; width: 26px; height: 26px; border-radius: 999px;
  display: inline-grid; place-items: center; padding: 0; cursor: pointer;
}
.saldo-card .amt { font-size: 1.55rem; font-weight: 800; margin-top: 2px; letter-spacing: -.03em; }
.saldo-card .amt-hidden { letter-spacing: .12em; }
.saldo-card .skel { height: 28px; width: 140px; border-radius: 8px; background: rgba(255,255,255,.25); margin-top: 6px; }
.saldo-status {
  margin-top: 6px;
  font-size: .72rem;
  font-weight: 600;
  opacity: .95;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.saldo-dot {
  width: 7px; height: 7px; border-radius: 999px; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}
.btn-topup-pill {
  align-self: center;
  border: 0;
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  font-size: .82rem;
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
  white-space: nowrap;
  cursor: pointer;
}
.saldo-card-plain {
  margin: 0 16px 14px; padding: 18px; border-radius: var(--radius-xl);
  background: var(--grad); color: #fff; box-shadow: var(--shadow);
}
.saldo-card-plain .amt { font-size: 1.8rem; font-weight: 800; margin-top: 6px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 16px 10px;
}
.section-title {
  margin: 0; font-size: 1rem; font-weight: 800; color: var(--ink);
}
.section-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.shortcuts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 16px 18px;
}
.shortcuts-premium { gap: 10px; padding-bottom: 8px; }
.shortcuts-all { padding-top: 4px; }
.sc {
  background: var(--surface); border-radius: var(--radius); padding: 12px 6px 10px;
  text-align: center; font-size: .68rem; font-weight: 600; color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow-sm); border: 0;
  position: relative;
}
button.sc-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 108px;
  padding: 12px 8px 14px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  position: relative;
}
.sc-label { display: block; font-size: .72rem; font-weight: 800; line-height: 1.2; margin-top: 2px; }
.sc-arrow {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: .9rem;
  font-weight: 700;
  color: #a5b4fc;
  line-height: 1;
}
.sc:active { transform: scale(.97); }
.sc.soon { opacity: 1; pointer-events: none; }
.sc.soon .sc-label { opacity: .7; }
.sc-soon {
  display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 999px;
  font-size: .58rem; font-weight: 700; background: #e0e7ff; color: #4338ca;
}
.sc img {
  width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 auto 6px;
  border-radius: 14px;
}

.dash-promo {
  margin: 6px 16px 16px;
}
.dash-promo-viewport {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  touch-action: pan-y;
}
.dash-promo-track {
  position: relative;
}
.dash-promo-slide {
  display: none;
}
.dash-promo-slide.on { display: block; }
.dash-promo-slide img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  /* Assets are ~2170×241 (~9:1) — keep natural ratio, no cover crop */
  aspect-ratio: 2170 / 241;
  object-fit: contain;
}
.dash-promo-slide.broken { display: none !important; }
.dash-promo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dash-promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c7d2fe;
  cursor: pointer;
}
.dash-promo-dot.on {
  width: 18px;
  background: var(--primary);
}

.dash-trx-list { gap: 10px; }
.dash-trx-card {
  border-radius: 18px;
  padding: 12px 12px 12px 14px;
}
.dash-trx-card .trx-row {
  grid-template-columns: 44px 1fr auto 14px;
}
.trx-dest {
  font-weight: 600;
  color: var(--muted);
  font-size: .78rem;
}
.trx-chev {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}
.dash-empty { margin-top: 0; }

.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(480px, 100%);
  bottom: var(--sab);
  z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.97);
  border-top: 0;
  padding: 4px 4px 6px;
  backdrop-filter: blur(16px);
  box-shadow: 0 -6px 24px rgba(15,23,42,.07);
  box-sizing: border-box;
}
.nav-float {
  width: calc(min(480px, 100%) - 20px);
  bottom: calc(8px + var(--sab));
  border-radius: 22px;
  padding: 6px 6px 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  border: 1px solid rgba(226, 232, 240, .9);
}
html[data-ime="1"] .nav { display: none; }
.nav a {
  text-align: center; text-decoration: none; color: var(--muted);
  font-size: .6rem; font-weight: 600; padding: 4px 2px; border-radius: 12px;
  min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
}
.nav a .nl { line-height: 1.1; }
.nav a.active { color: var(--primary); }
.nav a .ni {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px;
  margin-bottom: 0;
}
.nav a.active .ni { background: #eef2ff; }
.nav a .ni svg { width: 22px; height: 22px; display: block; }

@media (max-width: 360px) {
  .dash-hero-copy { max-width: 62%; }
  .dash-greet-name { font-size: 1.08rem; }
  .dash-greet-sub { font-size: .68rem; }
  .sc-card { min-height: 84px; padding: 10px 4px 12px; }
  .saldo-card-premium { flex-wrap: wrap; }
  .btn-topup-pill { width: 100%; }
}

.screen-home {
  padding-bottom: calc(var(--nav-h) + var(--sab) + 28px);
}

.list { padding: 0 16px 16px; display: grid; gap: 10px; }
.row {
  background: var(--surface); border-radius: var(--radius); padding: 14px 14px;
  box-shadow: var(--shadow-sm); border: 0;
}
.row h4 { margin: 0 0 4px; font-size: .92rem; font-weight: 700; }
.row p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.row-link { text-decoration: none; color: inherit; display: block; }
.trx-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
}
.trx-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: #eef2ff; font-size: .72rem; font-weight: 800; color: var(--primary);
  letter-spacing: .02em; overflow: hidden; flex-shrink: 0;
}
.trx-ico.pln { background: #fff7ed; color: #ea580c; }
.trx-ico.ewallet { background: #ecfeff; color: #0891b2; }
.trx-ico.game { background: #faf5ff; color: #7c3aed; }
.trx-ico.topup { background: #f0fdf4; color: #16a34a; }
.trx-ico.telkomsel { background: #fff5f5; color: #ed1c24; }
.trx-ico.has-art {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
}
.trx-ico.has-art img {
  width: 28px; height: 28px; object-fit: contain; display: block;
}
.trx-ico.has-art.pln { background: #fffbeb; border-color: #fde68a; }
.trx-ico.has-art.telkomsel { background: #fff5f5; border-color: #fecaca; }
.trx-ico.has-art.game { background: #f5f3ff; border-color: #ddd6fe; }
.trx-ico.has-art.topup { background: #f0fdf4; border-color: #bbf7d0; }
.trx-meta { min-width: 0; }
.trx-meta h4 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .92rem; margin: 0 0 2px;
}
.trx-meta p { font-size: .72rem; color: var(--muted); }
.trx-right { text-align: right; }
.trx-amt { font-weight: 800; font-size: .9rem; display: block; letter-spacing: -.01em; }
.badge {
  display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: .62rem; font-weight: 700; letter-spacing: .01em;
}
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-wait { background: #e0e7ff; color: #4338ca; }
.badge-fail { background: #fee2e2; color: #b91c1c; }
.badge-hold { background: #fef3c7; color: #b45309; }
.badge-cancel { background: #f1f5f9; color: #64748b; }

/* —— Modern receipt —— */
.receipt {
  margin: 0 16px 16px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.receipt-hero {
  padding: 20px 18px 16px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.receipt-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 28px; padding: 4px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  margin-bottom: 14px;
}
.receipt-status.badge-ok { background: #dcfce7; color: #15803d; }
.receipt-status.badge-wait { background: #e0e7ff; color: #4338ca; }
.receipt-status.badge-fail { background: #fee2e2; color: #b91c1c; }
.receipt-status.badge-hold { background: #fef3c7; color: #b45309; }
.receipt-status.badge-cancel { background: #f1f5f9; color: #64748b; }
.receipt-product {
  margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink);
}
.receipt-denom {
  margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--primary);
}
.receipt-dest {
  margin: 8px 0 0; font-size: .88rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.receipt-total {
  margin: 16px 18px 0; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface2); text-align: center;
}
.receipt-total .lbl {
  display: block; font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 4px;
}
.receipt-total .amt {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}
.receipt-section {
  margin: 16px 18px 18px; padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.receipt-section h3 {
  margin: 0 0 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.receipt-meta {
  display: grid; gap: 10px;
}
.receipt-meta-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.receipt-meta-row span {
  font-size: .78rem; color: var(--muted); font-weight: 500; flex-shrink: 0;
}
.receipt-meta-row strong {
  font-size: .82rem; font-weight: 700; text-align: right; word-break: break-all;
  color: var(--ink);
}
.receipt-meta-row.is-ref {
  align-items: stretch;
}
.receipt-meta-row strong.receipt-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  user-select: all;
}
.receipt-wallet-bal {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
}
.receipt-wallet-bal .receipt-meta-row { gap: 10px; }
.receipt-wallet-bal .receipt-meta-row span { color: #64748b; }
.receipt-wallet-bal .receipt-meta-row strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt-dest-lbl {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}
.receipt-token {
  margin: 14px 18px 0;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  text-align: center;
}
.receipt-token .lbl {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.receipt-token .token-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 4.2vw, 1.28rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.35;
  word-break: break-word;
  user-select: all;
  -webkit-user-select: all;
}
.receipt-token .btn-copy-token {
  margin-top: 10px;
  min-height: 40px;
  width: 100%;
  font-size: .85rem;
}
.receipt-pln .receipt-hero {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 72%);
}

.empty {
  margin: 8px 16px 16px; padding: 22px 16px; border-radius: var(--radius);
  background: var(--surface); border: 0; box-shadow: var(--shadow-sm);
  color: var(--muted); font-size: .88rem; line-height: 1.45; text-align: center;
}
.empty-action {
  display: inline-flex; margin-top: 10px; min-height: 44px; align-items: center;
  padding: 0 14px; border-radius: 12px; border: 0;
  background: #eef2ff; color: var(--primary); font-weight: 700; text-decoration: none;
}

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 12px;
  width: 100%;
}
.chips-sub {
  padding-top: 0;
  margin-top: -4px;
}
.chip {
  border: 0; background: var(--surface); border-radius: 999px;
  padding: 10px 14px; font-size: .78rem; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-sm); min-height: 40px;
  box-sizing: border-box;
}
.chips > .chip {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.chip-btn { cursor: pointer; font-family: inherit; }
.chip-btn.on {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: var(--shadow);
}
.filter-chips {
  display: flex;
  padding: 0 0 8px; overflow-x: auto; flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px; padding-left: 4px; padding-right: 4px;
  width: auto;
}
.filter-chips > .chip {
  width: auto;
  flex: 0 0 auto;
}

/* Phase 8.3 — Top Up 3×2 preset grid */
.topup-pick-head {
  margin: 0 0 12px;
}
.topup-pick-title {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.topup-limit-hint {
  margin: 4px 0 0;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
  letter-spacing: .01em;
}
.topup-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}
.topup-preset-btn {
  appearance: none;
  border: 0;
  margin: 0;
  min-height: 44px;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topup-preset-btn.on {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}

/* Phase 8.3 — in-app confirm modal */
.agen-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--sab, env(safe-area-inset-bottom, 0px)));
}
.agen-modal {
  width: min(100%, 400px);
  background: var(--surface);
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow);
}
.agen-modal-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}
.agen-modal-body {
  margin: 0 0 18px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted);
}
.agen-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.agen-modal-actions .btn { margin: 0; min-height: 44px; }
.agen-modal-actions .btn-ghost { margin-top: 0; }
.agen-modal-actions-single {
  grid-template-columns: 1fr;
}
.agen-update-modal .agen-update-ver {
  margin: 8px 0 0;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
}
.agen-update-backdrop {
  z-index: 1300;
}
.agen-modal-actions-stack {
  grid-template-columns: 1fr;
}
.agen-buy-row-shortfall strong { color: #b91c1c; }
.agen-insufficient-sheet .agen-modal-title { color: #b91c1c; }

.agen-buy-sheet {
  max-height: min(85vh, 560px);
  overflow-y: auto;
}
.agen-buy-rows {
  display: grid;
  gap: 0;
}
.agen-buy-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  font-size: .9rem;
}
.agen-buy-row:last-child { border-bottom: 0; }
.agen-buy-row span { color: var(--muted); }
.agen-buy-row strong { color: var(--ink); text-align: right; font-weight: 700; }
.agen-buy-row.is-detail {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.agen-buy-row.is-detail strong {
  text-align: left;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.agen-buy-row[data-checkid] span,
.agen-buy-row.is-checkid span { color: var(--primary); font-weight: 600; }
.agen-buy-row.is-checkid strong { color: var(--primary); }

.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pay-method-btn strong {
  font-size: .95rem;
  font-weight: 700;
}
.pay-method-btn span {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}
.pay-method-btn.on {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}
.receipt-actions {
  margin-top: 12px;
}
.receipt-actions-tri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.btn-receipt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  margin: 0;
  padding: 8px 6px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.15;
  width: 100%;
}
.btn-receipt:active {
  transform: scale(.98);
}
.btn-receipt:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn-receipt-ico {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--primary);
}
.btn-receipt-primary {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-receipt-primary .btn-receipt-ico {
  color: #fff;
}
.rcpt-sheet-foot .btn-receipt {
  flex-direction: row;
  gap: 6px;
  min-height: 44px;
  font-size: .82rem;
  padding: 8px 4px;
}
html.agen-modal-open,
html.agen-modal-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
.agen-receipt-backdrop {
  padding: 12px;
  padding-bottom: calc(12px + var(--sab, env(safe-area-inset-bottom, 0px)));
  align-items: flex-end;
}
.agen-toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(72px + var(--sab, env(safe-area-inset-bottom, 0px)));
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 360px);
  pointer-events: none;
}
.agen-toast {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.agen-toast.on {
  opacity: 1;
  transform: translateY(0);
}
.agen-toast-ok {
  background: #0f172a;
  color: #fff;
}
.agen-toast-info {
  background: #0f766e;
  color: #fff;
}
.agen-toast-err {
  background: #7f1d1d;
  color: #fff;
}
.agen-receipt-action-sheet {
  width: 100%;
  max-width: 400px;
  max-height: min(88vh, 640px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}
.agen-receipt-studio {
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 820px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
}
.rcpt-action-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 12px;
  overscroll-behavior: contain;
}
.rcpt-action-foot {
  padding: 10px 16px calc(14px + var(--sab, 0px));
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.rcpt-action-foot .btn {
  width: 100%;
  min-height: 48px;
  margin: 0;
}
.rcpt-preview-stage-sm {
  padding: 8px 6px 10px;
  margin-bottom: 8px;
}
.rcpt-preview-stage-sm .receipt-preview-paper {
  font-size: 9.5px;
  line-height: 1.22;
  max-height: none;
  overflow: visible;
}
.agen-receipt-print-sheet {
  max-height: min(88vh, 640px);
  overflow-y: auto;
  padding: 0 0 8px;
}
.rcpt-sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.rcpt-sheet-head .agen-modal-title {
  margin: 0;
}
.rcpt-sheet-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.rcpt-sheet-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.rcpt-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 8px;
  overscroll-behavior: contain;
}
.rcpt-sheet-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px calc(12px + var(--sab, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid #f1f5f9;
  backdrop-filter: blur(8px);
}
.rcpt-preview-stage {
  display: flex;
  justify-content: center;
  padding: 12px 8px 16px;
  margin-bottom: 4px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}
.receipt-preview-paper {
  margin: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  padding: 12px 10px;
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.28;
  letter-spacing: 0;
  white-space: pre;
  overflow: visible;
  max-height: none;
  color: #0f172a;
  tab-size: 1;
  transition: width .2s ease;
}
.receipt-preview-paper[data-mm="58"] {
  width: calc(32ch + 20px);
  max-width: 92%;
}
.receipt-preview-paper[data-mm="80"] {
  width: calc(48ch + 20px);
  max-width: 96%;
}
.rcpt-section {
  margin: 0 0 14px;
  padding: 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-sm);
}
.rcpt-section-title {
  margin: 0 0 10px;
  font-size: .86rem;
  font-weight: 800;
  color: var(--ink);
}
.rcpt-field-label {
  display: block;
  margin: 0 0 6px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.rcpt-input,
.rcpt-textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  min-height: 44px;
}
.rcpt-input:focus,
.rcpt-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.rcpt-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.rcpt-hint {
  margin: 8px 0 4px;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.35;
}
.rcpt-check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 2px 0;
  padding: 4px 2px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.rcpt-check input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.rcpt-check span {
  flex: 1 1 auto;
  line-height: 1.3;
}
.rcpt-paper-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rcpt-paper-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.rcpt-paper-btn strong {
  font-size: .95rem;
  font-weight: 800;
}
.rcpt-paper-btn span {
  font-size: .72rem;
  color: var(--muted);
}
.rcpt-paper-btn.on {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}
.rcpt-paper-btn:focus-visible,
.rcpt-align-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.rcpt-align-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.rcpt-align-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
}
.rcpt-align-btn.on {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}
.rcpt-msg {
  margin: 0 0 10px;
}
.rcpt-link-btn {
  width: 100%;
  margin: 0 0 8px;
  min-height: 44px;
}
.chk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  margin: 6px 0;
}
.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 6px 0;
}
.qris-expired-box {
  margin: 8px 12px 12px;
  padding: 14px 12px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  text-align: center;
}
.qris-expired-title {
  font-weight: 700;
  color: #9a3412;
  font-size: .92rem;
  line-height: 1.35;
}
.qris-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 12px 0;
}
.qris-timer-lbl {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
}
.qris-timer.is-ok .qris-timer-lbl { color: var(--primary); }
.qris-timer.is-warn .qris-timer-lbl { color: #b45309; }
.qris-timer.is-danger .qris-timer-lbl { color: #dc2626; }
.qris-timer + .qris-wrap { margin-top: 10px; }
.qris-timer-until {
  margin: 8px 0 0;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}
#qrisCountdown {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: .06em;
  font-weight: 800;
  min-width: 4.4em;
  display: inline-block;
  text-align: center;
  padding: 3px 9px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--primary);
}
#qrisCountdown.is-ok {
  background: #eef2ff;
  color: var(--primary);
}
#qrisCountdown.is-warn {
  background: #fffbeb;
  color: #b45309;
}
#qrisCountdown.is-danger {
  background: #fef2f2;
  color: #dc2626;
  animation: qrisCountdownPulse 1s ease-in-out infinite;
}
.agen-buy-row.is-countdown-warn span,
.agen-buy-row.is-countdown-danger span { font-weight: 700; }
.agen-buy-row.is-countdown-warn span { color: #b45309; }
.agen-buy-row.is-countdown-danger span { color: #dc2626; }
@keyframes qrisCountdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  #qrisCountdown.is-danger { animation: none; }
}

@media (max-width: 360px) {
  .btn-receipt { font-size: .72rem; padding: 8px 4px; }
  .receipt-preview-paper { font-size: 10px; }
  .receipt-preview-paper[data-mm="58"] { width: calc(32ch + 16px); max-width: 94%; }
  .receipt-preview-paper[data-mm="80"] { width: calc(48ch + 16px); max-width: 98%; }
}
@media (min-width: 768px) {
  .agen-receipt-backdrop { align-items: center; }
  .agen-receipt-studio { max-width: 440px; }
}

@media (min-width: 480px) {
  .agen-modal-backdrop { align-items: center; }
}

.pending-draft-card {
  margin: 0 16px 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pending-draft-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.pending-draft-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #b45309;
  margin-bottom: 4px;
}
.pending-draft-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}
.pending-draft-meta {
  margin: 4px 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.pending-draft-right {
  text-align: right;
  flex-shrink: 0;
}
.pending-draft-amt {
  margin-top: 6px;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
}
.pending-draft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pending-draft-actions .btn { margin: 0; min-height: 44px; }
.pending-draft-actions .btn-ghost { margin-top: 0; }
.pending-draft-actions .btn-primary:only-child { grid-column: 1 / -1; }

/* Phase 8.9 — price_changed dialog */
.agen-price-changed .agen-price-rows {
  margin: 8px 0 12px;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}
.agen-price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.agen-price-row:last-child { border-bottom: 0; }
.agen-price-row span { color: var(--muted); font-size: .82rem; }
.agen-price-row strong { font-weight: 700; }
.agen-price-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.agen-price-actions .btn { margin: 0; min-height: 44px; }

.detect-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 14px; padding: 8px 12px; border-radius: 999px;
  background: #eef2ff; border: 0;
  font-weight: 700; font-size: .86rem; color: var(--primary);
}
.detect-pill.muted { background: var(--surface2); color: var(--muted); font-weight: 500; }

.denom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.denom-grid-product {
  gap: 8px;
}
.denom-vwrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
}
.denom-vwrap > .denom-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  margin-bottom: 0;
}
.denom-vwrap .denom-btn.denom-card-product {
  height: 148px;
  min-height: 148px;
}
.denom-vwrap .denom-btn.denom-card-data {
  height: 186px;
  min-height: 186px;
}
.denom-btn.denom-card-data .denom-card-title,
.denom-btn.denom-card-data .denom-card-validity,
.denom-btn.denom-card-data .denom-card-detail,
.denom-btn.denom-card-data .denom-card-rule,
.denom-btn.denom-card-data .denom-card-price {
  flex: 0 0 auto;
}
.denom-btn {
  border: 0; background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 14px 8px; cursor: pointer; text-align: center;
  font-family: inherit; box-shadow: var(--shadow-sm);
  min-height: 64px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.denom-btn strong { display: block; font-size: 1rem; }
.denom-btn span { display: block; margin-top: 4px; font-size: .72rem; color: var(--muted); }
.denom-btn.selected {
  background: var(--grad); color: #fff; box-shadow: var(--shadow);
}
.denom-btn.selected span { color: rgba(255,255,255,.85); }

/* Visual hint only — still tappable; fresh wallet gate runs on tap */
.denom-btn.denom-over-balance {
  opacity: 0.55;
}
.denom-btn.denom-card-product.denom-over-balance {
  opacity: 0.62;
}
.denom-btn.denom-card-product.denom-over-balance .denom-card-price {
  opacity: 0.95;
}

/* Product packs (MLBB / Pulsa) — title + underline + art + price pill */
.denom-btn.denom-card-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 148px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 10px 6px 10px;
  border-radius: 14px;
  box-shadow: none;
  color: #0f172a;
  overflow: hidden;
  box-sizing: border-box;
}
.denom-btn.denom-card-product .denom-card-title {
  display: block;
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}
/* DATA-only: validity under quota; does not affect Pulsa cards */
.denom-btn.denom-card-product .denom-card-validity {
  display: block;
  margin: 2px 0 0;
  font-size: .65rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.denom-btn.denom-card-product .denom-card-detail {
  display: block;
  margin: 2px 0 0;
  font-size: .6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto;
}
.denom-btn.denom-card-product .denom-card-rule {
  display: block;
  width: 36px;
  height: 0;
  margin: 6px auto 8px;
  border: 0;
  border-top: 1.5px solid #0f172a;
}
.denom-btn.denom-card-product .denom-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 64px;
  margin: 0 0 10px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 70%, rgba(255,255,255,.85) 0%, transparent 70%);
}
.denom-btn.denom-card-product .denom-card-art img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.denom-btn.denom-card-product .denom-card-art-fallback {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  background: #64748b;
}
.denom-btn.denom-card-product .denom-card-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 12px;
  min-height: 30px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* MLBB / game — soft mint frame; harga tetap Bakita */
.denom-btn.denom-card-product.theme-game {
  background: #e8f8ef;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-game.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

/* Telkomsel pulsa — soft red frame; harga tetap Bakita */
.denom-btn.denom-card-product.theme-telkomsel {
  background: #fff5f5;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-telkomsel.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

/* Other pulsa */
.denom-btn.denom-card-product.theme-pulsa {
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-pulsa.selected {
  background: #e0e7ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

/* PLN token */
.denom-btn.denom-card-product.theme-pln {
  background: #fffbeb;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-pln.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

/* OVO e-wallet — soft purple frame; harga tetap Bakita */
.denom-btn.denom-card-product.theme-ovo {
  background: #f5f0ff;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-ovo.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

/* Other e-wallet brands */
.denom-btn.denom-card-product.theme-ewallet {
  background: #f0f9ff;
  border: 1.5px solid #c7d2fe;
}
.denom-btn.denom-card-product.theme-ewallet.selected {
  background: #eef2ff;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .28);
}

.denom-btn.denom-card-product.selected { color: #0f172a; }
.denom-btn.denom-card-product.selected .denom-card-title { color: #0f172a; }
.denom-btn.denom-card-product.selected .denom-card-validity { color: #475569; }
.denom-btn.denom-card-product.selected .denom-card-detail { color: #475569; }
.denom-btn.denom-card-product.selected .denom-card-price {
  background: var(--grad);
  box-shadow: var(--shadow);
}

@media (max-width: 380px) {
  .denom-btn.denom-card-product { min-height: 132px; padding: 10px 6px 8px; }
  .denom-btn.denom-card-product .denom-card-title { font-size: .72rem; }
  .denom-btn.denom-card-product .denom-card-art img { width: 44px; height: 44px; }
  .denom-btn.denom-card-product .denom-card-price { font-size: .68rem; padding: 6px 10px; }
}

.confirm-card, .card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm); border: 0;
}
.confirm-card.ok { box-shadow: 0 0 0 2px #c7d2fe, var(--shadow-sm); }
.cc-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; font-size: .9rem;
  border-bottom: 0;
}
.cc-row + .cc-row { border-top: 1px solid var(--line); }
.cc-row:last-of-type { margin-bottom: 8px; }
.cc-row span { color: var(--muted); font-size: .82rem; }
.cc-row strong { font-weight: 700; }

.hint-muted { color: var(--muted); font-size: .78rem; line-height: 1.45; margin: 10px 0; }

/* Loading: prepare purchase / Check ID */
.agen-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin: 16px 0 8px;
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.agen-busy-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(79, 70, 229, .18);
  border-top-color: var(--primary, #4f46e5);
  animation: agen-spin .75s linear infinite;
}
.agen-busy-title {
  margin: 2px 0 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.agen-busy-sub {
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  max-width: 260px;
}
.agen-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.agen-busy-overlay .agen-busy-card {
  margin: 0;
  width: min(300px, 100%);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
@keyframes agen-spin {
  to { transform: rotate(360deg); }
}

.qris-wrap {
  margin: 16px auto; padding: 16px; background: #fff; border-radius: var(--radius-lg);
  width: min(260px, 82vw); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.qris-img { width: 100%; height: auto; display: block; border-radius: 8px; }
.msg { font-size: .9rem; margin: 10px 0; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--danger); }

.login-card {
  margin: 0 18px; padding: 28px 18px 22px; border-radius: var(--radius-xl);
  background: var(--surface); box-shadow: var(--shadow);
  width: calc(100% - 36px);
  position: relative;
}
.login-hero {
  width: 72px; height: 72px; object-fit: contain; display: block;
  margin: 0 auto 14px; border-radius: 18px;
  box-shadow: none; background: transparent;
}
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(12px + var(--sat)) 16px 8px;
}
.top-title { font-weight: 800; font-size: 1.12rem; }

.help-list .row h4 { color: var(--primary); }
.skeleton-line {
  height: 14px; border-radius: 8px; background: linear-gradient(90deg, #e2e8f0, #f8fafc, #e2e8f0);
  background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 6px 0;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

@media (max-width: 360px) {
  .saldo-card .amt { font-size: 1.4rem; }
  .sc { font-size: .62rem; }
  .shortcuts { gap: 8px; }
  .chrome-title { font-size: 1.02rem; }
  .receipt-total .amt { font-size: 1.35rem; }
}

/* —— Shared premium inputs (Pulsa / Game / Trx / Help) —— */
.field-premium label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.input-premium {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  border: 1px solid rgba(226, 232, 240, .95);
}
.input-premium-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  flex-shrink: 0;
}
.input-premium input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  color: var(--ink);
}
.input-premium-clear {
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.input-premium-clear[hidden] { display: none !important; }
.input-premium-action {
  appearance: none;
  border: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.input-premium-action:active {
  transform: scale(0.96);
}
.input-premium-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.dest-helper-tip {
  margin: 8px 2px 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #b45309;
}
.dest-helper-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  margin: 0;
}

/* Paket Data / Lainnya — operator picker modal */
.data-op-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.data-op-modal-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.picker-page-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
}
.data-op-modal-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.data-op-modal-btn--grid {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 8px;
  min-height: 108px;
  padding: 14px 10px;
}
.data-op-modal-btn--grid .data-op-modal-text {
  align-items: center;
}
.data-op-modal-btn--grid .data-op-modal-chev {
  display: none;
}
.data-op-modal-btn:active {
  transform: scale(.98);
  background: #eef2ff;
}
.data-op-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: var(--grad);
}
.data-op-mark[hidden] {
  display: none !important;
}
.data-op-mark-wrap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.data-op-modal-btn--grid .data-op-mark-wrap {
  width: 48px;
  height: 48px;
}
.data-op-mark-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}
.data-op-modal-btn--grid .data-op-mark-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.data-op-modal-btn--grid .data-op-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: .8rem;
}
.data-op-modal-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.data-op-modal-text strong {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
}
.data-op-modal-btn--grid .data-op-modal-text strong {
  font-size: .88rem;
  font-weight: 800;
}
.data-op-modal-text small {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  line-height: 1.25;
}
.data-op-modal-btn--grid .data-op-modal-text small {
  font-size: .65rem;
  font-weight: 500;
  max-width: 9.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.data-op-modal-chev {
  font-size: 1.25rem;
  font-weight: 700;
  color: #a5b4fc;
  line-height: 1;
}

/* Transaction cards (reference-style) */
.trx-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trx-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  border: 1px solid rgba(226, 232, 240, .8);
}
.trx-card .trx-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: .78rem;
}
.trx-card-main { min-width: 0; }
.trx-card-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.trx-card-dest {
  margin-top: 2px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}
.trx-card-when {
  margin-top: 2px;
  font-size: .68rem;
  color: #94a3b8;
}
.trx-card-saldo {
  margin-top: 3px;
  font-size: .68rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -.01em;
}
.trx-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.trx-card-amt {
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.trx-card .trx-chev {
  color: #cbd5e1;
  font-size: 1.2rem;
  font-weight: 700;
}
.filter-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Help cards */
.screen-legal {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(12px + var(--sab));
  box-sizing: border-box;
}
.legal-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 12px 8px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  border: 1px solid var(--line);
}
.legal-frame {
  display: block;
  width: 100%;
  height: min(72dvh, calc(100dvh - 168px - var(--sab)));
  min-height: 420px;
  border: 0;
  background: #fff;
}
.help-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 16px;
}
.help-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
a.help-card:active {
  transform: scale(0.985);
}
.help-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: var(--primary);
  flex-shrink: 0;
}
.help-ico-topup { background: #e0f2fe; color: #0284c7; }
.help-ico-trx { background: #ffedd5; color: #c2410c; }
.help-ico-saldo { background: #fee2e2; color: #b91c1c; }
.help-ico-wa { background: #dcfce7; color: #15803d; }
.help-ico-terms { background: #ede9fe; color: #6d28d9; }
.help-card-body { min-width: 0; display: grid; gap: 4px; }
.help-card-body strong {
  font-size: .92rem;
  font-weight: 800;
  color: var(--ink);
}
.help-card-body span {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
}
.help-card-chev {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* Larger product cards — still 360-safe (minmax grid + min-width:0) */
.denom-btn.denom-card-product {
  min-height: 152px;
  padding: 10px 4px 10px;
  border-radius: 16px;
}
.denom-btn.denom-card-product .denom-card-title { font-size: .7rem; }
.denom-btn.denom-card-product .denom-card-art img {
  width: 48px;
  height: 48px;
}
.denom-btn.denom-card-product .denom-card-price {
  padding: 6px 8px;
  min-height: 28px;
  font-size: .62rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.denom-grid { gap: 8px; }
.topup-preset-grid {
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.topup-preset-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: .78rem;
  padding: 8px 4px;
}
.topup-preset-amt {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chrome-title { font-size: 1.22rem; }
.chrome-sub { font-size: .78rem; }
.sc-card { min-height: 118px; }
.sc img { width: 48px; height: 48px; }
.sc-label { font-size: .76rem; }
.saldo-card .amt { font-size: 1.7rem; }

.pad {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}
#app {
  overflow-x: clip;
}

@media (max-width: 380px) {
  /* Keep aspect-aware hero; only soften bleed cost on small GPUs */
  .hero-bleed { filter: blur(28px) saturate(1.2) brightness(1.02); transform: scale(1.35); }
  .denom-btn.denom-card-product { min-height: 138px; }
  .denom-btn.denom-card-product .denom-card-art img { width: 42px; height: 42px; }
  .denom-btn.denom-card-product .denom-card-price { font-size: .58rem; padding: 5px 6px; }
  .denom-btn.denom-card-product .denom-card-title { font-size: .65rem; }
}

@media (min-width: 400px) {
  .denom-btn.denom-card-product .denom-card-title { font-size: .76rem; }
  .denom-btn.denom-card-product .denom-card-price { font-size: .7rem; padding: 7px 10px; }
  .denom-btn.denom-card-product .denom-card-art img { width: 56px; height: 56px; }
}

/* —— Open-nominal E-Wallet quote —— */
.open-nominal-box {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(79, 70, 229, 0.07) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );
}
.open-nom-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.open-nom-toggle input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent, #4f46e5);
  flex-shrink: 0;
}
.open-nom-amount {
  margin-top: 12px;
}
.open-nom-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.open-nom-hint.is-warn {
  color: #b45309;
}
.open-nom-quote {
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.open-nom-quote .agen-buy-row {
  padding: 9px 0;
  font-size: 0.88rem;
}
.open-nom-quote-total {
  border-bottom: 0 !important;
  margin-top: 2px;
  padding-top: 11px !important;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}
.open-nom-quote-total span {
  color: var(--ink) !important;
  font-weight: 700;
}
.open-nom-quote-total strong {
  color: var(--primary, #4f46e5) !important;
  font-size: 1.02rem;
}
.open-nom-buy {
  margin-top: 12px;
  width: 100%;
}

/* —— PPOB BPJS check-only —— */
.ppob-check-box {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(79, 70, 229, 0.07) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );
}
.ppob-check-box .btn {
  width: 100%;
}
.ppob-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.ppob-result.is-ok {
  border-color: rgba(22, 163, 74, 0.35);
}
.ppob-result.is-fail {
  border-color: rgba(185, 28, 28, 0.28);
  background: #fef2f2;
}
.ppob-result.is-fail .ppob-result-title {
  color: #b91c1c;
  margin-bottom: 6px;
}
.ppob-result-reason {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #7f1d1d;
  line-height: 1.4;
}
.ppob-result-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
}
.ppob-result .agen-buy-row {
  padding: 8px 0;
  font-size: 0.88rem;
}

/* —— PBB wilayah chips + premium daerah select —— */
.ppob-pbb-pickers {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
}
.ppob-pbb-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.ppob-pbb-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.ppob-pbb-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: 0 -2px;
}
.ppob-pbb-chips::-webkit-scrollbar {
  display: none;
}
.ppob-pbb-chip {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 40px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.12s ease;
}
.ppob-pbb-chip:active {
  transform: scale(0.97);
}
.ppob-pbb-chip.is-on {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.ppob-pbb-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 8px 0;
}
.ppob-pbb-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ppob-pbb-select.is-picked {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.06);
}
.ppob-pbb-select.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.ppob-pbb-select-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  flex-shrink: 0;
}
.ppob-pbb-select.is-picked .ppob-pbb-select-ico {
  background: var(--grad);
  color: #fff;
}
.ppob-pbb-select-text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.ppob-pbb-select-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ppob-pbb-select-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.ppob-pbb-select-chev {
  color: #94a3b8;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
  flex-shrink: 0;
}
.ppob-pbb-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* iOS zoom guard */
  border: 0;
  background: transparent;
}
.ppob-pbb-select.is-disabled .ppob-pbb-select-native {
  cursor: not-allowed;
}

.ppob-pbb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px 0 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.ppob-pbb-search--sheet {
  margin-bottom: 10px;
}
.ppob-pbb-search-ico {
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.ppob-pbb-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  min-height: 48px;
}
.ppob-pbb-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.ppob-pbb-search-clear {
  appearance: none;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.ppob-pbb-search-hint {
  margin: 8px 2px 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.ppob-pbb-hit-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ppob-pbb-sheet-hits {
  max-height: min(48dvh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 4px;
}
.ppob-pbb-sheet-hits .ppob-pbb-hit-list {
  max-height: none;
  margin-top: 0;
}
.ppob-pbb-hit {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.ppob-pbb-hit:active {
  background: #eef2ff;
}
.ppob-pbb-hit strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.ppob-pbb-hit small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
button.ppob-pbb-select {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
