/* ERASALDO — dibuat untuk HP murah & mata yang sudah tidak muda: huruf besar, tombol besar, kontras tinggi. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #1b1f23;
  --muted: #545e68;
  --line: #d6d0c4;
  --primary: #14532d;
  --primary-ink: #ffffff;
  --primary-dark: #0e3d21;
  --ok-bg: #e5f2e8;
  --ok-ink: #14532d;
  --warn-bg: #fff3d1;
  --warn-ink: #6b4500;
  --bad-bg: #fbe9e9;
  --bad-ink: #8f1d1d;
  --focus: #1d4ed8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--primary); font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top {
  background: var(--primary);
  color: var(--primary-ink);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top .brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top .who { font-size: .85rem; text-align: right; }
.top form { margin: 0; }
.top button { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff; border-radius: 8px; padding: 8px 14px; min-height: 44px; font-size: .9rem; font-weight: 700; cursor: pointer; }

main { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
main.wide { max-width: 1100px; }
h1 { font-size: 1.45rem; line-height: 1.25; margin: 8px 0 16px; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.saldo .label { color: var(--muted); font-size: .9rem; margin: 0; }
.saldo .amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.01em; margin: 0; font-variant-numeric: tabular-nums; }

.menu { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 520px) { .menu.three { grid-template-columns: repeat(3, 1fr); } .menu.four { grid-template-columns: repeat(2, 1fr); } }
.tile {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px; min-height: 84px; text-decoration: none; color: var(--ink);
}
.tile:active, .tile:hover { border-color: var(--primary); }
.tile svg { flex: none; width: 40px; height: 40px; color: var(--primary); }
.tile .t { font-size: 1.15rem; font-weight: 800; display: block; }
.tile .d { font-size: .85rem; color: var(--muted); display: block; font-weight: 400; }

.links { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.links a { display: block; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-decoration: none; }

label { display: block; font-weight: 700; margin: 14px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; font-size: 1.15rem; padding: 14px 12px; border: 2px solid #9b9486; border-radius: 8px; background: #fff; color: var(--ink);
}
input.big { font-size: 1.5rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
textarea { min-height: 96px; font-size: 1rem; }

.btn {
  display: block; width: 100%; min-height: 58px; margin: 18px 0 8px;
  background: var(--primary); color: var(--primary-ink); border: 0; border-radius: var(--radius);
  font-size: 1.15rem; font-weight: 800; cursor: pointer; text-align: center; text-decoration: none; padding: 14px;
}
.btn:hover { background: var(--primary-dark); }
.btn[disabled] { opacity: .65; cursor: wait; }
.btn.secondary { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); }
.btn.danger { background: var(--bad-ink); }
.btn.inline { display: inline-block; width: auto; min-height: 44px; margin: 4px 6px 4px 0; padding: 8px 16px; font-size: 1rem; }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; margin: 0; }
.choice input { width: 26px; height: 26px; flex: none; accent-color: var(--primary); }
.choice .n { font-weight: 800; font-size: 1.1rem; flex: 1; }
.choice .p { font-weight: 800; font-variant-numeric: tabular-nums; }
.choice.off { opacity: .6; cursor: not-allowed; }
.choice.off .p { font-weight: 600; font-size: .85rem; color: var(--bad-ink); }
.bad-ink { color: var(--bad-ink); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: .75rem; font-weight: 800; vertical-align: middle; }
.choice .saran { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.choice { flex-wrap: wrap; }
.choice .sub { flex-basis: 100%; padding-left: 38px; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.choice .p small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); text-align: right; }
.pill { white-space: nowrap; display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 800; font-size: .8rem; }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.hlist { display: grid; gap: 10px; margin: 12px 0; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.hrow.off { opacity: .65; }
.hrow .hn { grid-column: 1 / -1; display: flex; flex-direction: column; }
.hrow .hi { min-width: 0; }
.hrow .hi input { width: 100%; min-width: 0; min-height: 48px; font-size: 1.15rem; text-align: right; }
.hrow .hu { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list a.li-act { justify-content: flex-end; border-top: 1px solid var(--line); padding: 10px 14px; font-weight: 700; color: var(--primary); min-height: 44px; align-items: center; }
.struk { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; max-width: 360px; margin-left: auto; margin-right: auto; }
.struk .sn-name { font-size: 1.2rem; font-weight: 800; text-align: center; margin: 0; }
.struk .small, .struk .center { text-align: center; }
.struk hr { border: 0; border-top: 1px dashed var(--line); margin: 12px 0; }
.struk .token { font-size: 1.2rem; padding: 12px 6px; }
.struk .status-ok { text-align: center; font-weight: 800; letter-spacing: .1em; margin: 10px 0 0; }
.center { text-align: center; }
.btn.wa { background: #1a7f37; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--ok-bg); }

.note { border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; font-weight: 600; }
.note.ok { background: var(--ok-bg); color: var(--ok-ink); }
.note.warn { background: var(--warn-bg); color: var(--warn-ink); }
.note.bad { background: var(--bad-bg); color: var(--bad-ink); }

dl.rows { margin: 0; }
dl.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dl.rows div:last-child { border-bottom: 0; }
dl.rows dt { color: var(--muted); }
dl.rows dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.target { font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; margin: 4px 0; }

.status { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.st-SUKSES, .st-diterima { background: var(--ok-bg); color: var(--ok-ink); }
.st-GAGAL, .st-ditolak { background: var(--bad-bg); color: var(--bad-ink); }
.st-PENDING, .st-PENDING_LAMA, .st-DIKIRIM, .st-DITAHAN, .st-menunggu { background: var(--warn-bg); color: var(--warn-ink); }

.result { text-align: center; padding: 22px 16px; }
.result .big { font-size: 1.6rem; font-weight: 800; margin: 6px 0; }
.token { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.55rem; font-weight: 800; letter-spacing: .04em; background: #fff; border: 2px dashed var(--primary); border-radius: var(--radius); padding: 14px 8px; margin: 12px 0; word-spacing: .2em; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.list a, .list .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 400; }
.list .l b { display: block; }
.list .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plus { color: var(--ok-ink); font-weight: 800; }
.minus { color: var(--ink); font-weight: 800; }

table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #efebe3; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat .v { font-size: clamp(1.15rem, 5vw, 1.5rem); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grid.stats .wide { grid-column: 1 / -1; }
.grid.stats .card { margin-bottom: 0; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid.actions .btn { margin: 0; }
.grid.actions { margin: 4px 0 16px; }
.scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.stat .k { color: var(--muted); font-size: .85rem; }
.ownernav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.ownernav a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .9rem; }
.ownernav a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0; }
.inline-form input, .inline-form select { width: auto; min-width: 110px; min-height: 44px; font-size: 1rem; padding: 8px 10px; }
.inline-form label { margin: 0; font-size: .85rem; }

@media print {
  .top, .noprint, .btn { display: none !important; }
  body { background: #fff; font-size: 14px; }
  main { padding: 0; max-width: 80mm; }
  .card { border: 0; }
  .struk { border: 0; padding: 0; max-width: none; }
}

/* Animasi "sedang diproses" (masukan owner 25 Nov 2026). Dimatikan bila pengguna meminta gerak dikurangi. */
.spin { display: inline-block; width: 1.1em; height: 1.1em; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -0.15em; margin-right: .45em; }
.spin.spin-lg { width: 64px; height: 64px; border-width: 7px; color: var(--primary); margin: 0 0 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; background: rgba(246, 244, 239, .96); }
.busy-box { max-width: 360px; width: 100%; }
.busy-box p { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.busy-box p.small { font-size: .9rem; font-weight: 600; }
.progress { position: relative; height: 10px; margin: 16px 0; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress::after { content: ''; position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 999px; background: var(--primary); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { left: -38%; } 100% { left: 100%; } }
.steps { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; display: grid; gap: 6px; }
.steps { max-width: 300px; margin-left: auto; margin-right: auto; }
.steps + p { margin-top: 16px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.steps li.done { color: var(--ok-ink); }
.steps li.now { color: var(--ink); font-weight: 800; }
.steps li.wait { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; border-right-color: currentColor; opacity: .6; }
  .progress::after { animation: none; width: 100%; opacity: .45; }
}
