:root {
  --primary: #0E5A6B;
  --primary-soft: #E3EEF0;
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --ink: #1A1D1F;
  --muted: #5B6166;
  --line: #E4E2DA;
  --ok: #1E7A4C; --ok-bg: #E2F2E8;
  --warn: #8A5300; --warn-bg: #FCEFD9;
  --bad: #B3261E; --bad-bg: #FBE4E2;
  --radius: 16px;
  font-family: var(--font-utama, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; } /* hilangkan jeda ketuk di WebView */
.btn, .tile, .item, .nav a, .chips button, .tabs a, .stat { transition: transform .08s ease, opacity .08s ease; }
.btn:active, .tile:active, .item:active, .nav a:active, .chips button:active, .tabs a:active, a.stat:active { transform: scale(.97); opacity: .8; }
#bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--primary); z-index: 60; opacity: 0; transition: width .4s ease, opacity .2s; }
#bar.on { opacity: 1; width: 70%; transition: width 2.5s cubic-bezier(.1,.6,.3,1), opacity .1s; }
#bar.done { opacity: 0; width: 100%; transition: width .15s, opacity .3s .1s; }
#app.loading main { opacity: .55; transition: opacity .15s .1s; pointer-events: none; }
/* Tampilan seketika saat pindah menu: salinan halaman terakhir / kerangka abu-abu, sampai data asli tiba */
#app[data-sementara] main { pointer-events: none; }
#app.loading[data-sementara="kerangka"] main { opacity: 1; }
.kerangka { display: flex; flex-direction: column; gap: 14px; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(128,128,128,.12) 25%, rgba(128,128,128,.24) 37%, rgba(128,128,128,.12) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; }
.sk-baris { display: flex; gap: 12px; align-items: center; }
.sk-teks { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
a { color: var(--primary); text-decoration: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 88px; }
.wide #app { max-width: 1100px; padding-bottom: 32px; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; align-items: center; gap: 8px; min-height: 64px; position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 17px; margin: 0; flex: 1; }
.hero { background: var(--primary); color: #fff; padding: 24px 20px 60px; }
.hero .small { font-size: 13px; opacity: .85; }
.hero h1 { margin: 6px 0 8px; font-size: 24px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.18); }
.pull { margin-top: -40px; }
main, .pad { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card h2 { font-size: 15px; margin: 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; min-width: 0; }
.row > .btn.block { width: auto; flex: 1 1 0; min-width: 0; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--card); border-radius: 14px; padding: 14px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 700; margin-top: 4px; }
.big { font-size: 28px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }

label { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #D9D6CC; border-radius: 12px; padding: 0 14px; height: 46px; width: 100%; }
textarea { padding: 10px 14px; height: auto; resize: vertical; }
input[type=color] { padding: 4px; width: 64px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.btn { font: inherit; font-size: 15px; font-weight: 600; height: 48px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.sec { background: var(--primary-soft); color: var(--primary); }
.btn.line { background: #fff; color: var(--ink); border: 1px solid #D9D6CC; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #D9D6CC; }
.btn.sm { height: 40px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }

.badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.badge.ok, .b-sukses, .b-diterima { color: var(--ok); background: var(--ok-bg); }
.badge.warn, .b-pending, .b-menunggu, .b-antre, .b-proses { color: var(--warn); background: var(--warn-bg); }
.badge.bad, .b-gagal, .b-ditolak { color: var(--bad); background: var(--bad-bg); }
.note { border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.note.warn { background: var(--warn-bg); color: #6E4200; }
.note.info { background: var(--primary-soft); color: var(--ink); }
.note.bad { background: var(--bad-bg); color: var(--bad); }

.list { background: var(--card); border-radius: var(--radius); padding: 4px 16px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #EEECE6; }
.item:last-child { border-bottom: 0; }
.item .t { font-size: 14px; font-weight: 600; }
.item .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chips button { flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid #D9D6CC; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.chips button.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs { display: flex; gap: 20px; background: var(--card); padding: 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 2px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; }
.tabs a.on { border-color: var(--primary); color: var(--primary); font-weight: 700; }

.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: 72px; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; align-items: center; z-index: 10; }
.nav a { width: 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.nav a.on { color: var(--primary); font-weight: 700; }
.nav svg, .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.logo { width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.tile { background: var(--card); border-radius: 14px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); border: 0; font-family: inherit; cursor: pointer; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dot { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #C9C6BC; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dot.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.dot.run { border: 3px solid var(--primary); background: var(--primary-soft); }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #1A1D1F; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; width: max-content; max-width: min(90vw, 460px); text-align: center; line-height: 1.4; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
#toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.modal > div { background: #fff; border-radius: 16px; padding: 16px; max-width: 440px; width: 100%; max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.modal img { width: 100%; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #EEECE6; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }
.center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; font-size: 14px; }
.auth { padding: 32px 20px; display: flex; flex-direction: column; gap: 16px; }
.auth h1 { margin: 0; font-size: 26px; }

.judul { margin: 4px 4px 0; font-size: 15px; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; color: inherit; background: rgba(255,255,255,.16); flex-shrink: 0; }
.topbar .bell { background: var(--primary-soft); color: var(--primary); }
.bell .n { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.code { font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.45; min-height: 320px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; overflow-x: hidden; tab-size: 2; }
.ph { font-family: ui-monospace, monospace; font-size: 12px; }
.preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.unread { border-left: 3px solid var(--primary); padding-left: 10px; }

.item .grow { flex: 1; min-width: 0; }

/* ---------- Menu kategori (beranda) ---------- */
.gk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile .ic svg { width: 24px; height: 24px; }
.tile .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.tile .nm { text-align: center; line-height: 1.25; }
.gaya-bulat .gk, .gaya-kotak .gk { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.gaya-bulat .tile { background: none; padding: 2px 0; font-size: 11.5px; font-weight: 500; }
.gaya-bulat .tile .ic { width: 52px; height: 52px; border-radius: 50%; }
.gaya-kotak .gk { gap: 10px; }
.gaya-kotak .tile { padding: 12px 4px; font-size: 11.5px; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.gaya-kotak .tile .ic { width: 40px; height: 40px; border-radius: 12px; background: none; }
.gaya-kotak .tile .ic svg { width: 28px; height: 28px; }

/* ---------- Banner promo ---------- */
.banner { position: relative; }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; scrollbar-width: none; }
.bn-track::-webkit-scrollbar { display: none; }
.bn { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2 / 1; background: var(--primary-soft); }
.bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.bn-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .2s; }
.bn-dots i.on { width: 16px; background: #fff; }

/* ---------- Template beranda "Kartu Saldo" ---------- */
.hk-top { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); }
.hk-top .logo { width: 44px; height: 44px; border-radius: 22px; }
.hk-saldo { border-radius: 20px; padding: 18px; color: #fff; display: flex; flex-direction: column; gap: 6px;
  background: var(--primary); background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000)); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.hk-saldo .small { font-size: 13px; opacity: .85; }
.hk-saldo .row { margin-top: 8px; }
.hk-saldo .btn { flex: 1; background: rgba(255,255,255,.18); color: #fff; height: 42px; }
.topbar .logo { width: 40px; height: 40px; border-radius: 12px; }

/* ---------- Menu grid Toko (Builder) ---------- */
.msec { margin: 12px 4px 0; font-size: 15px; line-height: 1.4; color: var(--primary); position: relative; z-index: 1; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mtile { background: var(--card); border-radius: 16px; padding: 16px 6px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25; box-shadow: 0 1px 3px rgba(0,0,0,.06); min-height: 108px; }
.mtile .mi { width: 50px; height: 50px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.mtile .mi svg { width: 28px; height: 28px; stroke-width: 1.6; }
.mtile:active { transform: scale(.97); opacity: .85; }
.wide .mgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---------- Editor Tampilan Home (Builder) ---------- */
.tplpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tplpick button { font: inherit; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.tplpick button.on { border-color: var(--primary); background: var(--primary-soft); }
.tplpick .mini { height: 74px; border-radius: 8px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 5px; }
.tplpick .mini i { display: block; border-radius: 4px; background: #D9D6CC; }
.tplpick .mini .p { background: var(--primary); }
.tplpick b { font-size: 13px; }
.bnrow { display: flex; gap: 10px; align-items: center; }
.bnrow img { width: 96px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg); }
.ikrow { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid #EEECE6; }
.ikrow:last-child { border-bottom: 0; }
.ikrow .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ikrow .ic img { width: 100%; height: 100%; object-fit: cover; }
.kat-ikon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; border: 0; padding: 0; cursor: pointer; }
.kat-ikon img { width: 100%; height: 100%; object-fit: contain; }
.kat-ikon .ico { width: 24px; height: 24px; }
.kat-ikon.besar { width: 72px; height: 72px; cursor: default; }
.kat-ikon.besar .ico { width: 38px; height: 38px; }
.ikpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ikpick button { font: inherit; font-size: 11px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); cursor: pointer; }
.ikpick button .ico { width: 26px; height: 26px; color: var(--primary); }
.ikpick button.on { border-color: var(--primary); background: var(--primary-soft); }
.sticky-save { position: sticky; bottom: 80px; z-index: 6; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.ikrow .grow, .bnrow .grow { flex: 1; min-width: 0; }

/* ---------- Transaksi & member (Builder) ---------- */
.chips a { flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid #D9D6CC; background: #fff; font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; }
.chips a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.item > .ico:last-child { color: var(--muted); flex-shrink: 0; }
.trx-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.trx-ic svg { width: 22px; height: 22px; }
.trx-ic img { width: 100%; height: 100%; object-fit: cover; }
.trx-ic.besar { width: 64px; height: 64px; border-radius: 18px; }
.trx-ic.besar svg { width: 32px; height: 32px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #EEECE6; }
.kv:last-of-type { border-bottom: 0; }
.kv > span:last-child { text-align: right; word-break: break-word; min-width: 0; }
.resp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.resp summary { cursor: pointer; font-size: 14px; }
.resp pre { white-space: pre-wrap; word-break: break-all; font-size: 12px; margin: 8px 0 0; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 320px; overflow: auto; }
pre.data-digital { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; margin: 0; background: var(--bg); border: 1px dashed var(--line); padding: 12px; border-radius: 10px; max-height: 360px; overflow: auto; user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }

/* ---------- Halaman kustom ---------- */
.halaman-kustom { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; height: calc(100% - 72px); border: 0; background: var(--bg); }
.halaman-kustom.penuh { height: 100%; }
.halaman-sematan { width: 100%; height: 120px; border: 0; display: block; background: transparent; }
label.check { flex-direction: row; font-weight: 500; }

/* ---------- Store tema (Builder) ---------- */
.tema-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.wide .tema-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tema-kartu { background: var(--card); border-radius: 18px; overflow: hidden; border: 2px solid transparent; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; }
.tema-kartu.on { border-color: var(--primary); }
.tema-layar { width: 150px; flex-shrink: 0; height: 300px; overflow: hidden; background: var(--bg); position: relative; }
.tema-layar iframe { width: 390px; height: 780px; border: 0; transform: scale(.385); transform-origin: 0 0; pointer-events: none; }
.tema-info { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.tema-info h2 { margin: 0; font-size: 17px; }
.tema-info p { margin: 0; font-size: 13px; line-height: 1.45; flex: 1; }
.tema-info .row { flex-wrap: wrap; }
.modal-tinggi > div { max-width: 460px; }
.modal-tinggi .preview { height: 640px; max-height: 70vh; }
#tj a { white-space: nowrap; flex-shrink: 0; }

/* ---------- Nomor tujuan + tombol kontak ---------- */
.tujuan-baris { display: flex; gap: 8px; align-items: stretch; }
.tujuan-baris input { flex: 1; min-width: 0; }
.tujuan-baris .btn { width: 52px; padding: 0; flex-shrink: 0; height: auto; min-height: 46px; }

/* ---------- Isi saldo & bayar ---------- */
.metode { display: flex; flex-direction: column; gap: 8px; }
.metode-opsi { flex-direction: row !important; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 500; cursor: pointer; }
.metode-opsi:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.metode-opsi input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }
.metode-opsi .mi { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.metode-opsi .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.metode-opsi .s { font-size: 12px; color: var(--muted); font-weight: 400; }
.pilih-rek { margin-top: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.pilih-rek-judul { font-weight: 600; font-size: 14px; }
.pilih-rek-select { height: 48px; border-radius: 12px; }
.pilih-rek-cara { font-size: 13px; line-height: 1.5; color: var(--muted); background: #fff; border-radius: 10px; padding: 10px 12px; }
.pilih-rek-cara b { color: var(--ink); }
.pilih-rek-cara ol { margin: 6px 0 0; padding-left: 18px; }
.pilih-rek-cara li { margin: 2px 0; }

.tagihan { gap: 10px; }
.bayar { gap: 8px; }
.qr-box { background: #fff; padding: 10px; border-radius: 16px; border: 1px solid var(--line); margin: 8px 0 2px; line-height: 0; }
.qr-box svg, .qr-box img { width: 248px; height: 248px; max-width: 70vw; max-height: 70vw; display: block; }
.va-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 14px; background: var(--primary-soft); width: 100%; margin-top: 6px; }
.va-no { font-size: 24px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.sisa { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 8px 12px; margin-top: 6px; }
.bayar-ik { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ok); }
.bayar-ik .ico { width: 32px; height: 32px; }
.versi-baru ul { margin: 6px 0 0; padding-left: 18px; }
.kanal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.kanal-grid .check { font-size: 14px; }

/* ---------- Builder versi PC: sidebar seperti panel admin ---------- */
#side { display: none; }
.tb-akun { display: none; }
@media (min-width: 900px) {
  body.builder.login { --side: 264px; }
  body.builder.login.side-mini { --side: 76px; }
  body.builder.login #side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); z-index: 20; display: flex; flex-direction: column;
    background: #14181B; color: #C9CED3; transition: width .18s ease; }
  body.builder.login #app { max-width: none; margin: 0 0 0 var(--side); padding-bottom: 40px; transition: margin-left .18s ease; }
  body.builder.login .nav { display: none; }
  body.builder.login #toast { bottom: 28px; left: calc(50% + var(--side) / 2); }
  body.builder.login .sticky-save { bottom: 16px; }

  /* kepala sidebar */
  .sd-head { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.07); min-height: 76px; }
  .sd-head .logo { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
  .sd-brand { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .sd-brand b { color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sd-brand small { font-size: 12px; color: #8B939A; }
  .sd-mini { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); color: #C9CED3; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sd-mini:hover { background: rgba(255,255,255,.12); color: #fff; }

  /* daftar menu */
  .sd-menu { flex: 1; overflow-y: auto; padding: 10px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
  .sd-judul { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: 0; cursor: pointer; font: inherit;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7D868E; padding: 14px 10px 6px; }
  .sd-judul:hover { color: #C9CED3; }
  .sd-panah .ico { width: 14px; height: 14px; transition: transform .15s; }
  .sd-grup.tutup .sd-panah .ico { transform: rotate(-90deg); }
  .sd-grup.tutup .sd-isi { display: none; }
  .sd-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; margin: 1px 0; border-radius: 10px; color: #C9CED3;
    font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; text-align: left; white-space: nowrap; }
  .sd-item .ico { width: 20px; height: 20px; flex-shrink: 0; opacity: .85; }
  .sd-item span { overflow: hidden; text-overflow: ellipsis; flex: 1; }
  .sd-item:hover { background: rgba(255,255,255,.07); color: #fff; }
  .sd-item.on { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
  .sd-item.on .ico { opacity: 1; }
  .sd-n { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
  .sd-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.07); }

  /* sidebar diperkecil: ikon saja */
  body.side-mini .sd-brand, body.side-mini .sd-judul, body.side-mini .sd-item span { display: none; }
  body.side-mini .sd-head { flex-direction: column; padding: 14px 8px; gap: 10px; }
  body.side-mini .sd-grup.tutup .sd-isi { display: block; }
  body.side-mini .sd-grup + .sd-grup { border-top: 1px solid rgba(255,255,255,.07); margin-top: 6px; padding-top: 6px; }
  body.side-mini .sd-item { justify-content: center; padding: 11px 0; }
  body.side-mini .sd-n { position: absolute; top: 2px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }

  /* bilah atas & isi halaman */
  body.builder.login .topbar { padding: 12px 32px; min-height: 68px; box-shadow: 0 1px 0 var(--line); border-bottom: 0; }
  body.builder.login .topbar h1 { font-size: 19px; }
  body.builder.login .tb-akun { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 4px 6px 4px 4px; border-radius: 24px; }
  body.builder.login .tb-akun:hover { background: var(--bg); }
  .tb-akun .av { width: 38px; height: 38px; border-radius: 19px; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
  .tb-akun .nm { display: flex; flex-direction: column; line-height: 1.2; }
  .tb-akun .nm b { font-size: 14px; }
  .tb-akun .nm small { font-size: 12px; color: var(--muted); }
  body.builder.login main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 32px; gap: 16px; }
  body.builder.login .hero { padding: 28px max(32px, calc((100% - 1180px) / 2 + 32px)) 76px; }
  body.builder.login .hero h1 { font-size: 28px; }
  body.builder.login main.pull { margin-top: -48px; padding-top: 0; }
  body.builder.login .card { padding: 20px; }
  body.builder.login .modal > div { max-width: 520px; }
  body.builder.login .tema-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
  body.builder.login .mgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* beranda: dasbor dua kolom */
  .stat4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .stat4 .stat { padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .stat4 .v { font-size: 24px; }
  main.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
  main.dash > * { grid-column: 1 / -1; }
  main.dash > .d-stat { order: 1; }
  /* Dua kolom yang menumpuk sendiri: kiri (saldo supplier → transaksi terbaru), kanan (langkah, aplikasi, informasi) */
  main.dash > .d-kiri { order: 2; grid-column: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  main.dash > .d-kanan { order: 3; grid-column: 2; display: flex; flex-direction: column; gap: 16px; }
  body.builder.login .hero #out { display: none; }
}
@media (min-width: 1200px) {
  /* editor: pengaturan di kiri, pratinjau/rujukan menempel di kanan */
  body.builder.login main.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 24px; row-gap: 0; align-items: start; }
  body.builder.login main.editor > * { grid-column: 1; margin-bottom: 16px; }
  body.builder.login main.editor > .d-prev { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; }
  body.builder.login main.editor > .d-prev > * { flex-shrink: 0; }
  body.builder.login main.editor .d-prev .preview { height: min(640px, calc(100vh - 200px)) !important; }
  body.builder.login main.editor .code { min-height: calc(100vh - 330px); }
}

/* ---------- Aplikasi pengguna v8: tarik muat ulang, saldo, akun ---------- */
#ptr { position: fixed; top: 0; left: 50%; z-index: 70; width: 40px; height: 40px; margin-top: -44px; border-radius: 50%; background: #fff; color: var(--muted);
  box-shadow: 0 3px 10px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
#ptr .ico { width: 22px; height: 22px; }
#ptr.tarik { transition: none; }
#ptr.siap { color: var(--primary); }
#ptr.putar { opacity: 1; color: var(--primary); transition: transform .15s; }
#ptr.putar .ico { animation: ptr-putar .8s linear infinite; }
@keyframes ptr-putar { to { transform: rotate(360deg); } }
.nav a { min-width: 0; flex: 1; max-width: 88px; text-align: center; line-height: 1.2; }
.saldo-nilai { display: inline-flex; align-items: center; gap: 6px; }
.mata-saldo { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 15px;
  background: none; color: inherit; opacity: .75; cursor: pointer; flex-shrink: 0; }
.mata-saldo .ico { width: 20px; height: 20px; }
.mata-saldo:active { opacity: 1; }
.foto-profil { width: 52px; height: 52px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.foto-profil img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-profil.besar { width: 96px; height: 96px; font-size: 32px; }
.sk-ava .foto-profil, .ml-ava .foto-profil { width: 100%; height: 100%; border-radius: inherit; background: transparent; color: inherit; font-size: 24px; }
.akun-menu .item .ico:last-child { width: 18px; height: 18px; color: var(--muted); }
.akun-menu .badge { margin-right: 4px; }
.akun-hapus, .akun-hapus .trx-ic, .akun-hapus .mi { color: var(--bad) !important; }
.akun-hapus .trx-ic { background: var(--bad-bg); }
.versi-app { text-align: center; color: var(--muted); font-size: 12px; padding: 6px 16px 18px; }
.dokumen { font-size: 14.5px; line-height: 1.7; gap: 0; color: var(--ink, #1c2326); }
.dokumen p { margin: 0 0 12px; }
.dokumen .dok-h { font-size: 16px; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line, #E5E2DA); color: var(--primary); scroll-margin-top: 76px; }
.dokumen .dok-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dokumen .dok-ul { margin: 0 0 12px; padding-left: 20px; }
.dokumen .dok-ul li { margin-bottom: 6px; }
.dok-wadah { gap: 12px; }
.dok-kepala { gap: 12px; }
.dok-kepala .dok-judul { font-size: 19px; font-weight: 800; line-height: 1.25; }
.dok-daftar summary { font-weight: 700; cursor: pointer; }
.dok-daftar ol { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.dok-daftar button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--primary); text-align: left; cursor: pointer; }

/* ---------- Builder: editor menu navbar ---------- */
.nav-pratinjau { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.nav.statis { position: static; transform: none; max-width: none; width: 100%; border-top: 0; }
.nav-baris { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #EEECE6; }
.nav-baris:last-child { border-bottom: 0; }
.nav-baris .grow { flex: 1; min-width: 0; }
.nav-ik { width: 52px; height: 52px; border-radius: 14px; border: 1px dashed var(--primary); background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.nav-ik .ico { width: 26px; height: 26px; }
.nav-aksi { display: flex; flex-direction: column; gap: 6px; }
.nav-aksi .btn { width: 40px; padding: 0; height: 36px; }
body.builder .nav.statis { display: flex !important; }

/* ---------- Kotak cari produk ({{kotak_cari}}) ---------- */
.cari-produk { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--ink); min-width: 0; }
.cari-produk .ico { width: 22px; height: 22px; flex-shrink: 0; stroke-width: 2.2; }
.cari-produk input { border: 0; height: 100%; padding: 0; background: none; font-size: 16px; min-width: 0; flex: 1; }
.cari-produk input:focus { outline: 0; }
.cari-produk:focus-within { box-shadow: 0 0 0 2px var(--primary), 0 2px 10px rgba(0,0,0,.12); }

/* ---------- Menu bawah disembunyikan ---------- */
body.tanpa-nav #app { padding-bottom: 16px; }
body.tanpa-nav #toast { bottom: 28px; }
.kanal-grid .check input, label.check input { flex-shrink: 0; }
.isian { font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
.warna-baris input[type=color] { width: 56px; height: 46px; flex-shrink: 0; cursor: pointer; }
.warna-baris input[name=warna] { flex: 1; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Laporan (Builder) ---------- */
.lap-kartu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lap-kartu .stat { display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lap-kartu .stat .v { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lap-kartu .stat .s { font-size: 12px; color: var(--muted); }
.lap-kartu .stat.laba { background: var(--primary-soft); }
.unduh-lap { gap: 12px; }
.unduh-lap .btn .ico { width: 18px; height: 18px; }
.lap-dua { display: flex; flex-direction: column; gap: 14px; }
.kv.total { border-top: 2px solid var(--line); border-bottom: 0; margin-top: 2px; padding-top: 10px; }
.tbl-lap th { white-space: nowrap; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tbl-lap td, .tbl-lap th { padding: 9px 8px; }
.tbl-lap .ka { text-align: right; white-space: nowrap; }
.tbl-lap tbody tr:nth-child(even) td { background: #FAFAF8; }
.periode-form label { min-width: 130px; }
@media (min-width: 900px) {
  .lap-kartu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lap-kartu .stat .v { font-size: 22px; }
  .lap-dua { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .unduh-lap { flex-direction: row; align-items: center; }
  .unduh-lap .row { flex-shrink: 0; width: 320px; }
}

/* ---------- Kode OTP ---------- */
.otp-input { height: 60px; font-size: 28px; font-weight: 700; letter-spacing: .5em; text-align: center; padding-left: .5em; font-family: ui-monospace, monospace; }

/* ===== v12: verifikasi identitas & langganan (Builder) ===== */
.note.ok { background: var(--ok-bg); color: var(--ok); }
.kyc-langkah { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; }
.kyc-kalimat { border: 2px dashed var(--primary); border-radius: 14px; padding: 12px 14px; background: var(--primary-soft); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.kyc-kalimat small { color: var(--muted); font-size: 12px; }
.kyc-kalimat b { font-size: 20px; letter-spacing: .5px; color: var(--ink); }
.kyc-foto { display: flex; flex-direction: column; gap: 10px; }
.kf { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kf.ada { border-color: var(--ok); background: var(--ok-bg); }
.kf .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kf b { font-size: 14px; }
.kf small { font-size: 12px; color: var(--muted); line-height: 1.45; }
.kf .kf-st { color: var(--ink); font-weight: 600; }
.kf-ik { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.kf.ada .kf-ik { background: var(--ok); color: #fff; }
.check-baris { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.check-baris input { margin-top: 3px; flex-shrink: 0; width: auto; }
.paket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.paket { position: relative; display: block !important; cursor: pointer; }
.paket input { position: absolute; opacity: 0; pointer-events: none; }
.paket > span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; height: 100%; box-sizing: border-box; background: #fff; }
.paket input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary) inset; }
.paket b { font-size: 14px; color: var(--ink); }
.paket .hrg { font-size: 17px; font-weight: 800; color: var(--primary); }
.paket small { font-size: 12px; color: var(--muted); }
.lg-status .big { margin: 6px 0 2px; }
.lg-status.segera { box-shadow: inset 4px 0 0 var(--warn); }
.lg-status.habis { box-shadow: inset 4px 0 0 var(--bad); }
.lg-tg { color: var(--ink); }
@media (min-width: 900px) { .paket-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .paket-grid.metode { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== v12: Panel Admin utama ===== */
.nav a { position: relative; }
.nav-n { position: absolute; top: 4px; left: calc(50% + 6px); font-style: normal; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #E5484D; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body.admin .sd-head .logo { color: #fff; }
body.admin .sd-judul { cursor: default; }
.ad-aksi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-tindak { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 12px; color: var(--ink); border: 1px solid transparent; }
.ad-tindak .ik { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--muted); flex-shrink: 0; }
.ad-tindak .grow { display: flex; flex-direction: column; min-width: 0; }
.ad-tindak b { font-size: 20px; line-height: 1.1; }
.ad-tindak small { font-size: 12px; color: var(--muted); }
.ad-tindak > .ico:last-child { color: var(--muted); width: 16px; height: 16px; flex-shrink: 0; }
.ad-tindak.ada { border-color: var(--warn); background: var(--warn-bg); }
.ad-tindak.ada .ik { background: var(--warn); color: #fff; }
.ad-stat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-stat .stat { color: var(--ink); border: 1px solid var(--line); }
.ad-stat .stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ad-stat.kecil .stat { background: var(--bg); border: 0; }
.ad-stat.kecil .v { font-size: 17px; }
.ad-dua { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ad-chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.ad-chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ad-chart .bar i { display: block; width: 100%; max-width: 44px; background: var(--primary); border-radius: 8px 8px 3px 3px; min-height: 2px; }
.ad-chart .bar small { font-size: 12px; color: var(--muted); }
.ad-chart .nil { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ad-tabel { padding: 6px 4px !important; }
.ad-tabel th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px; white-space: nowrap; }
.ad-tabel td { padding: 10px; border-top: 1px solid #EEECE6; vertical-align: top; }
.ad-tabel .logo { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.ad-tabel tr.klik { cursor: pointer; }
.ad-tabel tr.klik:hover td { background: var(--bg); }
.ad-kepala .logo { width: 60px; height: 60px; }
.ad-tombol { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-tombol .btn { flex: 1 1 180px; flex-direction: row; gap: 6px; }
.cari-baris { display: flex; gap: 8px; }
.cari-baris input { flex: 1; }
.kyc-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kyc-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg); cursor: zoom-in; }
.kyc-galeri { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kyc-besar { margin: 0; background: var(--card); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.kyc-besar img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #1A1D1F; border-radius: 12px; cursor: zoom-in; min-height: 120px; }
.kyc-besar figcaption { display: flex; flex-direction: column; padding: 0 4px; }
.kyc-besar figcaption small { color: var(--muted); font-size: 12px; }
.kyc-cek { display: flex; flex-direction: column; gap: 10px; }
img.foto-kyc.gagal { object-fit: none; color: var(--muted); font-size: 12px; }
.foto-besar { overflow: auto; max-height: 70vh; background: #1A1D1F; border-radius: 12px; display: flex; align-items: center; justify-content: center; min-height: 260px; }
.foto-besar img { max-width: 100%; max-height: 68vh; transition: transform .2s; transform-origin: center; }
body.builder .modal.modal-foto > div { max-width: 920px; width: calc(100% - 24px); }
.alasan-pilih { display: flex; flex-wrap: wrap; gap: 6px; }
.alasan-pilih .btn { flex-direction: row; text-align: left; height: auto; min-height: 32px; padding: 6px 10px; font-size: 12px; }
.tg-list { display: flex; flex-direction: column; gap: 12px; }
.tg { gap: 10px; }
.tg img.bukti { max-width: 260px; width: 100%; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; background: var(--bg); min-height: 80px; }
.rek-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #EEECE6; }
.rek-baris input[name=atas_nama] { grid-column: 1 / 2; }
@media (min-width: 900px) {
  .ad-aksi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-stat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-dua { grid-template-columns: 1fr 1fr; align-items: start; }
  .kyc-galeri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rek-baris { grid-template-columns: 1fr 1.3fr 1.5fr auto; }
  .rek-baris input[name=atas_nama] { grid-column: auto; }
  .tg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.kyc-kalimat b { overflow-wrap: normal; word-break: keep-all; font-size: clamp(15px, 4.6vw, 20px); }
.kf .kf-kal { display: block; color: var(--ink); font-size: 13px; word-break: keep-all; overflow-wrap: normal; }
main > .ad-stat.kecil .stat { background: var(--card); }
.kv { align-items: center; }

/* ===== v13: loading spinner, notifikasi, scan ===== */
#spin { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 60; opacity: 0; transition: opacity .15s; }
#spin.on { opacity: 1; }
#spin i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: putar-spin .7s linear infinite; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
@keyframes putar-spin { to { transform: rotate(360deg); } }
.notif-item { position: relative; }
.notif-item .notif-isi { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item.baru .t { font-weight: 700; }
.titik-baru { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex-shrink: 0; align-self: center; }
.notif-detail { gap: 12px; }
.notif-detail .notif-penuh { font-size: 14px; line-height: 1.65; color: var(--ink); }
.notif-detail .notif-penuh p { margin: 0 0 10px; word-break: break-word; }
.scan-video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #000; }
.tujuan-baris .btn { flex-shrink: 0; }
.akt-bahaya .trx-ic { background: var(--bad-bg); color: var(--bad); }
.akt-bahaya .t { color: var(--bad); }

#toast.satu-baris { white-space: nowrap; }
input, select, textarea, button { font-family: inherit; }
/* ===== v14: pilihan font ===== */
.font-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.font-opsi { position: relative; display: block !important; cursor: pointer; }
.font-opsi input { position: absolute; opacity: 0; pointer-events: none; }
.font-opsi > span { display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; height: 100%; box-sizing: border-box; }
.font-opsi input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary) inset; }
.font-opsi b { font-size: 14px; }
.font-opsi .font-contoh { font-size: 18px; font-weight: 700; color: var(--ink); }
.font-opsi small { font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .font-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* ===== v14: password ===== */
.pw-baris { position: relative; display: block; }
.pw-baris input { padding-right: 48px; width: 100%; }
.lihat-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
input::placeholder, textarea::placeholder { font-weight: 400; }

/* Header halaman aplikasi member mengikuti warna utama toko (tidak berlaku di Builder / Admin) */
body:not(.builder) .topbar { background: var(--primary); color: #fff; border-bottom: 0; }
body:not(.builder) .topbar h1 { color: #fff; }
body:not(.builder) .topbar .btn.line { background: rgba(255, 255, 255, .16); border: 0; color: #fff; }
body:not(.builder) .topbar .bell { background: rgba(255, 255, 255, .16); color: #fff; }
body:not(.builder) .topbar a:not(.btn) { color: #fff; }

/* Judul halaman: tengah (bawaan) atau kiri (pilihan toko) */
body:not(.builder) .topbar > h1:only-child { text-align: center; }
body.judul-kiri .topbar > h1:only-child { text-align: left; }

/* Halaman gagal memuat (offline / server gangguan) */
.layar-galat { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); max-width: 440px; margin: 0 auto; }
.layar-galat h1 { margin: 6px 0 0; font-size: 22px; line-height: 1.3; }
.layar-galat > p { margin: 0; line-height: 1.55; max-width: 34ch; }
.galat-brand { display: flex; align-items: center; gap: 10px; position: absolute; top: calc(20px + env(safe-area-inset-top)); left: 0; right: 0; justify-content: center; font-size: 15px; }
.galat-brand:not(:has(.logo)) { display: none; }
.galat-brand .logo { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; box-shadow: 0 0 0 1px var(--line); }
.galat-ikon { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); position: relative; }
.galat-ikon::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--primary-soft); animation: galat-denyut 2.4s ease-out infinite; }
.galat-ikon svg { width: 46px; height: 46px; }
@keyframes galat-denyut { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .galat-ikon::after { animation: none; } }
.galat-aksi { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 12px; }
.galat-auto { font-size: 13px; min-height: 18px; }
.paket .hemat { position: absolute; top: -9px; right: 10px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 99px; }

/* Katalog produk (Builder) */
.kp-item { align-items: flex-start; }
.kp-item > input[type=checkbox] { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
.kp-bulk { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.kp-bulk select { flex: 1; min-width: 150px; }
@media (min-width: 900px) { .kp-bulk { bottom: 16px; } }

/* Aplikasi: produk gangguan, grid provider, kepala provider, tagihan */
.pick.gangguan { opacity: .55; cursor: not-allowed !important; }
.pick .lbl-gangguan { font-size: 11px; font-weight: 700; color: var(--bad, #B42318); background: #FDECEA; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.grid-provider { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; }
.grid-provider a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-align: center; font-size: 12px; line-height: 1.25; text-decoration: none; min-width: 0; }
.grid-provider .gp-logo { width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--primary); }
.grid-provider .gp-logo img { width: 100%; height: 100%; object-fit: contain; }
.grid-provider span.nm { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kepala-provider { display: flex; align-items: center; gap: 12px; }
.kepala-provider .gp-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.kepala-provider .gp-logo img { width: 100%; height: 100%; object-fit: contain; }
.tagihan-rinci .kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.tagihan-rinci .kv span:first-child { color: var(--muted); }
.tagihan-rinci .total { font-size: 18px; font-weight: 800; border-bottom: 0; }

/* Cara penggunaan (bawah setiap menu Builder) & pemeriksa kode */
.bantuan { margin-top: 8px; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px; font-size: 14px; }
.bantuan summary { cursor: pointer; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; list-style: none; }
.bantuan summary::-webkit-details-marker { display: none; }
.bantuan summary .ico { width: 18px; height: 18px; }
.bantuan ol { margin: 10px 0; padding-left: 20px; line-height: 1.65; color: var(--ink); }
.bantuan li + li { margin-top: 4px; }
.bantuan a { font-weight: 600; }
.periksa { display: flex; flex-direction: column; gap: 8px; }
.periksa summary { cursor: pointer; font-size: 14px; padding: 4px 0; }
.periksa .note { font-size: 13px; line-height: 1.5; margin: 0; }
.periksa .note div { margin-top: 2px; font-weight: 400; }

/* Struk transaksi (dicetak ke printer thermal & dibagikan sebagai JPG). Lebar 384px = kertas 58 mm, 576px = 80 mm */
.struk { background: #fff; color: #000; font-family: 'Courier New', Courier, monospace; font-size: 20px; line-height: 1.35; padding: 12px 10px 16px; font-weight: 600; }
.struk .s-kepala { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.struk .s-kepala img { max-width: 120px; max-height: 80px; object-fit: contain; filter: grayscale(1); }
.struk .s-nama { font-size: 24px; font-weight: 800; }
.struk .s-garis { border-top: 2px dashed #000; margin: 8px 0; }
.struk .s-baris { display: flex; justify-content: space-between; gap: 8px; }
.struk .s-baris > span:first-child { flex-shrink: 0; max-width: 45%; }
.struk .s-baris > span:last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.struk .s-sn { word-break: normal; overflow-wrap: anywhere; white-space: pre-line; text-align: center; font-size: 22px; font-weight: 800; margin: 6px 0; }
.struk .s-total { font-size: 24px; font-weight: 800; }
.struk .s-kaki { text-align: center; font-size: 18px; margin-top: 8px; }
.struk-pratinjau { background: #EDEBE4; border-radius: 12px; padding: 12px; max-height: 52vh; overflow: auto; text-align: center; }
.struk-pratinjau img { width: 100%; max-width: 320px; box-shadow: 0 2px 10px rgba(0,0,0,.12); background: #fff; }
.pg-gambar { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; }
.judul-tipe { margin: 14px 4px 8px; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ===== v18: komponen produk ({{produk:…}}, {{produk_provider:…}}, {{form_beli:…}}) & format tujuan ===== */
.produk-item { width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer; text-decoration: none; }
button.produk-item { background: none; border: 0; border-bottom: 1px solid var(--line); }
.produk-item .t { display: block; font-weight: 600; }
.produk-item .s { display: block; }
.produk-item .harga { font-weight: 700; color: var(--primary); white-space: nowrap; }
.produk-item.gangguan { opacity: .6; }
.produk-grup { margin: 14px 4px 6px; font-size: 15px; }
.form-beli { display: flex; flex-direction: column; gap: 10px; }
.form-beli .fb-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.form-beli .tujuan-baris { display: flex; gap: 8px; }
.form-beli .tujuan-baris input { flex: 1; min-width: 0; }
.komponen-salah { font-size: 14px; }
.pick.sorot { background: var(--primary-soft, #E6F0F2); }
#baris2 { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
#baris2[hidden] { display: none; }
.ft-box { display: flex; flex-direction: column; gap: 10px; }

/* Bebas nominal (e-wallet): isian nominal di konfirmasi pembelian */
.nominal-bebas { display: flex; flex-direction: column; gap: 8px; }
.nominal-bebas #nominal { font-size: 20px; font-weight: 700; }
.nominal-cepat { flex-wrap: wrap; }
.nominal-cepat button { cursor: pointer; }

/* Rincian detail transaksi: label tetap terbaca, nilai panjang turun ke baris berikut (tidak menimpa label) */
.rincian-trx .item > .grow { flex: 0 0 auto; max-width: 45%; }
.rincian-trx .item > div:last-child { flex: 1 1 0; min-width: 0; text-align: right; overflow-wrap: anywhere; }

/* Tab katalog Builder (Produk, Provider, …, Setelan & Excel): turun baris di layar HP agar semua tab terlihat */
.tabs.tabs-katalog { flex-wrap: wrap; overflow: visible; row-gap: 2px; }
.tabs.tabs-katalog a { flex: 0 0 auto; }

/* Geser tab Riwayat: animasi masuk dari arah geseran */
@keyframes masukKanan { from { transform: translateX(28px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes masukKiri { from { transform: translateX(-28px); opacity: .3; } to { transform: none; opacity: 1; } }
.masuk-kanan { animation: masukKanan .22s ease-out; }
.masuk-kiri { animation: masukKiri .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .masuk-kanan, .masuk-kiri { animation: none; } }

/* Fitur Builder terkunci saat trial/langganan habis */
.mtile { position: relative; }
.mtanda { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 8px; background: #FFF4D6; color: #8A5A00; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtanda.bad { background: #FDE4E4; color: #B42318; }
.sd-n.sd-titik { min-width: 8px; width: 8px; height: 8px; padding: 0; background: #E8A317; }
.cari-menu { display: flex; align-items: center; gap: 10px; background: var(--card, #fff); border: 1px solid var(--line, #E5E2DA); border-radius: 14px; padding: 0 14px; height: 50px; font-weight: 400; }
.cari-menu .cm-ic { color: var(--muted, #6b7280); display: flex; }
.cari-menu .cm-ic svg { width: 20px; height: 20px; }
.cari-menu input { border: 0; outline: 0; background: transparent; flex: 1; height: 100%; font: inherit; font-size: 15px; padding: 0; min-width: 0; }
.cari-menu:focus-within { border-color: var(--primary); }
.hub-tabs { margin-bottom: 2px; }
.mtile.terkunci, .sd-item.terkunci { opacity: .55; position: relative; }
.mtile .gembok { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line, #E5E2DA); display: grid; place-items: center; }
.mtile .gembok svg, .sd-item .gembok svg { width: 13px; height: 13px; }
.mtile { position: relative; }
.sd-item .gembok { margin-left: auto; display: inline-flex; }
.terkunci-kartu { text-align: center; align-items: center; }
.terkunci-ikon { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft, #E3EEF0); color: var(--primary); display: grid; place-items: center; margin: 4px auto 2px; }
.terkunci-ikon svg { width: 30px; height: 30px; }

/* ===== Checkout (lembar dari bawah) ===== */
.co-latar { position: fixed; inset: 0; z-index: 45; background: rgba(15, 23, 30, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s ease; }
.co-latar.buka { background: rgba(15, 23, 30, .5); }
/* Popup terbuka: halaman di belakang dikunci (body.kunci-gulir dipasang app.js), gulir di dalam popup tidak merambat ke belakang */
body.kunci-gulir { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.co-latar, .co-isi, .co-sheet, .modal, .modal > div { overscroll-behavior: contain; }
.co-sheet { width: 100%; max-width: 520px; max-height: 92vh; background: #F4F6F8; border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -8px 30px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); }
.co-latar.buka .co-sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .co-sheet, .co-latar { transition: none; } }
.co-pegangan { width: 40px; height: 4px; border-radius: 2px; background: #C9CED4; margin: 8px auto 0; flex-shrink: 0; }
.co-kepala { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 8px; flex-shrink: 0; }
.co-kepala h2 { margin: 0; font-size: 18px; }
.co-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.co-x svg { width: 18px; height: 18px; }
.co-isi { overflow-y: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.co-kartu { background: #fff; border-radius: 16px; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.co-judul { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid #EEF0F2; color: var(--ink); }
.co-judul svg { width: 18px; height: 18px; color: var(--primary); }
.co-produk { display: flex; gap: 12px; align-items: center; }
.co-ikon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.co-ikon img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.co-produk b { font-size: 15px; line-height: 1.3; display: block; }
.co-harga { color: var(--primary); font-weight: 700; margin-top: 2px; }
.co-baris { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 6px 0; border-top: 1px dashed #E6E8EB; }
.co-baris > span:first-child { color: var(--muted); }
.co-baris > :last-child { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.co-pot > :last-child { color: var(--ok); font-weight: 600; }
.co-total { border-top: 1px solid #E6E8EB; padding-top: 10px; font-size: 16px; }
.co-total b:last-child { color: var(--primary); }
.co-opsi { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #E6E8EB; border-radius: 14px; background: #FAFBFC; width: 100%; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.co-opsi.on { border-color: var(--primary); background: var(--primary-soft); }
.co-opsi b { display: block; font-size: 15px; }
.co-opsi small { color: var(--muted); font-size: 13px; }
.co-oikon { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
.co-oikon svg, .co-centang svg { width: 20px; height: 20px; }
.co-centang { color: var(--primary); }
.co-vhapus { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.co-vhapus svg { width: 14px; height: 14px; }
.co-kaki { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E6E8EB; flex-shrink: 0; }
.co-kaki small { display: block; color: var(--muted); font-size: 12px; }
.co-kaki b { font-size: 20px; color: var(--primary); }
.co-kaki .btn { min-width: 140px; height: 50px; border-radius: 14px; font-size: 16px; }
/* PIN */
.co-pin .co-sheet { background: #fff; }
.pin-isi { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 16px 22px; }
.pin-kotak { position: relative; display: flex; gap: 10px; cursor: text; }
.pin-kotak span { width: 42px; height: 50px; border-radius: 12px; border: 1.5px solid #D9DDE2; display: grid; place-items: center; }
.pin-kotak span.aktif { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pin-kotak span.isi::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.pin-kotak input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; font-size: 16px; }
/* Voucher */
.co-vform { display: flex; gap: 8px; }
.co-vform input { flex: 1; text-transform: uppercase; }
.co-vform .btn { flex-shrink: 0; }
.co-vgalat { color: var(--bad); font-size: 13px; min-height: 0; }
.co-vlist { display: flex; flex-direction: column; gap: 8px; }
.co-vitem { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px dashed var(--primary); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.co-vitem b { display: block; }
.co-vitem small { color: var(--muted); font-size: 12px; }
.co-vtag { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.co-vtag svg { width: 18px; height: 18px; }
.co-vpakai { color: var(--primary); font-weight: 700; font-size: 13px; }
.co-voucher .co-sheet { min-height: 55vh; }
.co-opsi .grow, .co-vitem .grow, .co-produk .grow { flex: 1; min-width: 0; }
.co-sheet .pin-kotak { flex-direction: row; }
.co-voucher .co-x { background: #fff; }
/* Builder: pengaturan nominal cepat isi saldo */
#daftarNom .nom-baris{gap:8px;margin-top:6px}
#pratinjauNom{flex-wrap:wrap;overflow:visible}
#pratinjauNom button{pointer-events:none}
#pratinjauNom button.salah{border-color:var(--danger,#c0392b);color:var(--danger,#c0392b)}

/* Geser tab (Riwayat, Notifikasi): isi mengikuti jari; browser tetap boleh gulir tegak */
[data-geser-isi] { touch-action: pan-y; will-change: transform; }
/* Isi yang sedang digeser tidak boleh melebarkan halaman (di HP, halaman bisa ikut melebar/mengecil) */
#app { overflow-x: clip; }
@keyframes masukKanan2 { from { transform: translate3d(40%,0,0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes masukKiri2 { from { transform: translate3d(-40%,0,0); opacity: 0; } to { transform: none; opacity: 1; } }
[data-geser-isi].masuk-kanan { animation: masukKanan2 .24s cubic-bezier(.2,.8,.2,1); }
[data-geser-isi].masuk-kiri { animation: masukKiri2 .24s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { [data-geser-isi].masuk-kanan, [data-geser-isi].masuk-kiri { animation: none; } }

/* Tab model segmen (Notifikasi): rapi, sama lebar, tidak terpotong */
.tabs.tabs-seg:not(#tj) { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; margin: 12px 16px 4px;
  border: 0; border-radius: 16px; background: var(--card); box-shadow: 0 6px 20px -12px rgba(0,0,0,.25); overflow: visible; }
.tabs.tabs-seg:not(#tj) a { border: 0; border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s; }
.tabs.tabs-seg:not(#tj) a.on { background: var(--primary); color: #fff; font-weight: 700; }

/* Beranda: prabayar & pascabayar sebagai dua kartu terpisah (pengaturan "pisahkan" di Builder) */
:not(main, body, #app):has(> .blok-tipe) { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.blok-tipe { background: var(--card, #fff); border-radius: 22px; padding: 14px 12px 10px; box-shadow: 0 0 0 1px var(--line, #EEF0F3); }
.blok-tipe + .blok-tipe { margin-top: 14px; }
.blok-tipe > .judul-tipe:first-child { margin-top: 2px; }

/* Beranda Builder: kolom kanan; di HP isinya mengalir biasa */
.d-kanan { display: contents; }
.d-info .info-isi { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.d-info h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.d-info h2 svg { width: 18px; height: 18px; color: var(--primary); }

/* HP: kolom kiri/kanan mengalir sesuai urutan: saldo, statistik, langkah, aplikasi, informasi, transaksi */
.d-kiri { display: contents; }
main.dash .d-trx { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 899px) {
  main.dash .d-saldo { order: 1; } main.dash > .d-stat { order: 2; } main.dash .d-steps { order: 3; }
  main.dash .d-app { order: 4; } main.dash .d-info { order: 5; } main.dash .d-trx { order: 6; }
}

/* {{kotak_referral}} */
.lencana-level { display: inline-flex; align-items: center; gap: 5px; background: var(--primary, #2563eb); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; text-decoration: none; }
.lencana-level .ico { width: 14px; height: 14px; }
.kotak-referral { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--card, #fff); border-radius: 16px; padding: 12px 14px; }
.kotak-referral .kr-teks { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kotak-referral .kr-teks small { color: var(--muted, #6b7280); font-size: 12px; }
.kotak-referral .kr-teks b { font-size: 20px; letter-spacing: 1.5px; }
.kotak-referral .kr-aksi { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Halaman masuk / daftar Builder (BosAplikasi) ---------- */
.ba-auth { padding: 0 0 28px; gap: 14px; max-width: 480px; margin: 0 auto; min-height: 100vh; }
.ba-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, #0E5A6B 0%, #0A4654 60%, #083A46 100%); color: #fff;
  padding: calc(28px + env(safe-area-inset-top)) 22px 64px; border-radius: 0 0 28px 28px; }
.ba-hero h1 { font-size: 27px; line-height: 1.15; letter-spacing: -.5px; margin: 18px 0 0; position: relative; }
.ba-hero p { margin: 8px 0 0; color: #D5E9ED; font-size: 15px; line-height: 1.5; position: relative; }
.ba-hero p b { color: #fff; }
.ba-bulat { position: absolute; border-radius: 50%; pointer-events: none; }
.ba-bulat.a { width: 260px; height: 260px; right: -90px; top: -70px; background: #127287; opacity: .55; }
.ba-bulat.b { width: 40px; height: 40px; right: 34px; top: calc(30px + env(safe-area-inset-top)); background: #F2B33D; opacity: .95; }
.ba-merek { display: flex; align-items: center; gap: 10px; position: relative; font-size: 18px; letter-spacing: -.2px; }
.ba-logo { width: 42px; height: 42px; display: block; }
.ba-logo svg { width: 100%; height: 100%; display: block; }
.ba-chip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; }
.ba-chip span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 10px; border-radius: 999px; }
.ba-chip .ico { width: 14px; height: 14px; stroke: #F2B33D; }
.ba-kartu { margin: -44px 16px 0; position: relative; gap: 14px; padding: 20px 18px; box-shadow: 0 12px 34px rgba(14, 58, 70, .12); border-radius: 22px; }
.ba-auth > .note, .ba-auth > p, .ba-auth > .ba-ajak { margin-left: 16px; margin-right: 16px; }
.ba-kolom { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.ba-isi { position: relative; display: block; }
.ba-isi input { padding-left: 44px; height: 50px; border-radius: 14px; background: #FAFAF7; }
.ba-isi input:focus { background: #fff; }
.ba-isi input[type=password], .ba-isi input.ada-mata { padding-right: 46px; }
.ba-ik { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #7A8A8F; display: flex; pointer-events: none; }
.ba-ik .ico { width: 19px; height: 19px; }
.ba-mata { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: #6B7B80; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.ba-mata .ico { width: 20px; height: 20px; }
.ba-mata:hover { background: var(--primary-soft); }
.ba-lupa { align-self: flex-end; font-size: 14px; font-weight: 600; margin-top: -4px; }
.ba-tombol { height: 52px; font-size: 16px; border-radius: 15px; box-shadow: 0 6px 16px rgba(14, 90, 107, .25); }
.ba-info { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #3F5157; background: var(--primary-soft); border-radius: 12px; padding: 10px 12px; line-height: 1.45; }
.ba-info .ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); margin-top: 1px; }
.ba-langkah { list-style: none; margin: 0 0 2px; padding: 0; display: flex; gap: 8px; font-size: 13px; font-weight: 600; color: #8A979B; }
.ba-langkah li { flex: 1; display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 3px solid #E7E5DD; }
.ba-langkah li.on { color: var(--primary); border-color: var(--primary); }
.ba-langkah li.ok { color: #1E7A4C; border-color: #8FD3AE; }
.ba-langkah i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #E7E5DD; color: #6B7B80; }
.ba-langkah li.on i { background: var(--primary); color: #fff; }
.ba-langkah li.ok i { background: #1E9A5E; color: #fff; }
.ba-ajak { display: flex; flex-direction: column; gap: 8px; align-items: stretch; text-align: center; color: var(--muted, #6B6F72); font-size: 14px; margin-top: 4px; }
.ba-ajak .btn { background: #fff; }
.ba-kaki { text-align: center; font-size: 12px; color: #8A9599; margin: 6px 16px 0; }
@media (min-width: 900px) {
  .ba-auth { padding-top: 32px; }
  .ba-hero { border-radius: 28px; margin: 0 16px; }
}

/* Builder → Mutasi Otomatis */
.mt-app { display: flex; gap: 12px; align-items: center; background: var(--primary-soft); border-radius: 14px; padding: 12px; }
.mt-app { flex-wrap: wrap; }
.mt-app > .grow { flex: 1 1 180px; min-width: 0; }
.mt-app > .btn { flex: 1 1 100%; }
.mt-kode { border: 2px dashed var(--primary); border-radius: 16px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.mt-kode-isi { font-size: 34px; font-weight: 800; letter-spacing: 4px; color: var(--primary); }
.mt-lain summary { cursor: pointer; font-size: 14px; padding: 6px 0; }
.mt-lain[open] { display: flex; flex-direction: column; gap: 8px; }

/* Perpindahan di menu Akun */
@keyframes halamanMasuk { from { opacity: 0; } to { opacity: 1; } }
#app.halaman-masuk > header, #app.halaman-masuk > main { animation: halamanMasuk .18s ease-out; }
.akun-menu .item { transition: background .12s ease; }
.akun-menu .item:active { transform: none; opacity: 1; background: rgba(0, 0, 0, .05); }
@media (prefers-reduced-motion: reduce) { #app.halaman-masuk > header, #app.halaman-masuk > main { animation: none; } }

/* FAQ: pertanyaan berupa akordeon */
.dokumen .dok-q { border-bottom: 1px solid var(--line, #E4E2DA); }
.dokumen .dok-q:last-child { border-bottom: 0; }
.dokumen .dok-q summary { cursor: pointer; font-weight: 600; padding: 12px 24px 12px 0; list-style: none; position: relative; }
.dokumen .dok-q summary::-webkit-details-marker { display: none; }
.dokumen .dok-q summary::after { content: '+'; position: absolute; right: 2px; top: 10px; color: var(--primary); font-weight: 700; font-size: 18px; }
.dokumen .dok-q[open] summary::after { content: '\2212'; }
.dokumen .dok-q .dok-j { padding: 0 0 10px; }

/* Layar pembuka aplikasi (public/app/awal.js) */
#layarAwal { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: #fff; transition: opacity .35s ease; }
#layarAwal.tutup { opacity: 0; pointer-events: none; }
#layarAwal.la-penuh img { width: 100%; height: 100%; object-fit: cover; display: block; }
#layarAwal.la-kotak img { max-width: min(90vw, 420px); max-height: 70vh; object-fit: contain; display: block; }
#layarAwal.la-logo img { width: 92px; height: 92px; border-radius: 22px; object-fit: cover; }
#layarAwal .la-putar { width: 26px; height: 26px; border: 3px solid rgba(0,0,0,.1); border-top-color: var(--primary, #0E5A6B); border-radius: 50%; animation: la-putar .8s linear infinite; }
@keyframes la-putar { to { transform: rotate(360deg); } }
/* Builder: pratinjau layar pembuka */
.la-atur { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.la-hp { width: 120px; height: 240px; border-radius: 18px; border: 6px solid #1f2937; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; }
.la-hp.la-penuh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-hp.la-kotak img { max-height: 70%; object-fit: contain; display: block; }
/* Builder: riwayat saldo & transaksi di kartu member */
.mr-riwayat { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.mr-riwayat .mr-list .item { padding: 10px 0; }
.mr-rinci { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mr-rinci[hidden], .mut-rinci[hidden] { display: none; }
/* Aplikasi: rincian mutasi saldo */
.mut-rinci { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.mut-rinci .kv { display: flex; justify-content: space-between; gap: 10px; }
.mut-rinci .kv span:last-child { text-align: right; word-break: break-word; }
.mr-rinci .kv, .mut-rinci .kv { padding: 4px 0; }

/* Builder: galeri tampilan siap pakai */
.preset-pilih { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.preset-kartu { font: inherit; text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; color: var(--ink); }
.preset-kartu.on, .preset-kartu:hover { border-color: var(--primary); }
.preset-kartu .muted { font-size: 12.5px; line-height: 1.45; }
.preset-cth { height: 96px; border-radius: 12px; background: #F2F4F7; display: flex; flex-direction: column; gap: 6px; padding: 0 0 8px; overflow: hidden; }
.preset-cth i { display: block; border-radius: 8px; margin: 0 10px; background: #fff; height: 14px; }
.preset-cth i:first-child { margin: 0; border-radius: 0; height: 34px; background: var(--primary); }
.preset-elegan i:first-child { border-radius: 0 0 16px 16px; background: linear-gradient(135deg, var(--primary), #0b2f38); height: 38px; }
.preset-elegan i:nth-child(2) { margin-top: -18px; height: 26px; box-shadow: 0 4px 10px rgba(16,24,40,.12); }
.preset-modern { background: #fff; border: 1px solid var(--line); }
.preset-modern i:first-child { background: none; height: 26px; margin: 8px 10px 0; border-radius: 0; box-shadow: inset 60px 0 0 #101828; width: 60%; }
.preset-modern i:nth-child(2) { background: var(--primary); height: 28px; border-radius: 14px; }
.preset-modern i:nth-child(3) { background: #F2F4F7; border-radius: 999px; }
.preset-bawaan i:first-child { background: #fff; border-bottom: 1px solid var(--line); }
.ikon-kategori { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.ikon-kategori svg { width: 26px; height: 26px; }
.ikon-kategori img { width: 100%; height: 100%; object-fit: cover; }
.md-top .ikon-kategori { background: var(--primary-soft); color: var(--primary); }

/* Profil Toko: baris file APK / AAB terbaru */
.file-baris{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.file-baris .grow{display:flex;flex-direction:column;min-width:150px}
.file-baris .s{font-size:12px}

/* ===== Riwayat & notifikasi: filter, muat lagi, tab di Halaman Kustom ===== */
.rw { display: flex; flex-direction: column; gap: 10px; }
.rw-isi { transition: opacity .15s; }
.rw-isi.rw-muat { opacity: .45; pointer-events: none; }
.rw-lagi[hidden] { display: none; }
.rw-filter { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.rw-filter .chips button { height: 34px; padding: 0 14px; }
.rw-filter .row { gap: 8px; align-items: center; flex-wrap: nowrap; }
.rw-filter input, .rw-filter select { margin: 0; min-width: 0; }
.rw-filter input[type="date"] { flex: 1; }
.rw-filter select { flex: 0 0 auto; width: auto; max-width: 42%; }
.rw-filter .rw-tgl[hidden] { display: none; }
[data-rw-tabs] [data-rw-ke] { cursor: pointer; user-select: none; }

/* Kartu kode OTP (masuk perangkat baru / daftar): tombol Batal & Masuk diberi jarak dari kolom kode */
#fotp > .row { margin-top: 18px; }
