/* Veloz Store — gaya iOS (Human Interface, mode gelap) dengan tint logo: V ungu + petir peach.
   Kontras diuji WCAG AA: teks sekunder 5,9:1 di kartu; ungu #8B5CF6 hanya untuk ikon/seleksi (≥3:1),
   teks tautan di atas kartu memakai #A78BFA (6,3:1); tombol #7C3AED + putih 5,7:1. */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-var.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #000000; --g1: #1C1C1E; --g2: #2C2C2E; --g3: #3A3A3C;
  --sep: rgba(84, 84, 88, .65);
  --txt: #FFFFFF; --t2: rgba(235, 235, 245, .6); --t3: rgba(235, 235, 245, .3);
  --tint: #8B5CF6; --tint-t: #A78BFA; --btn: #7C3AED; --btn-h: #6D28D9;
  --peach: #FCD59B; --grad: linear-gradient(135deg, #8B5CF6 0%, #5B21B6 100%);
  /* status: berhasil = ungu, proses = peach, gagal = merah redup (satu-satunya warna di luar logo), dikembalikan = abu */
  --ok: #A78BFA; --ok-bg: rgba(139, 92, 246, .18); --warn: #FCD59B; --warn-bg: rgba(252, 213, 155, .16); --err: #FF8A9A; --err-bg: rgba(255, 138, 154, .14); --gray: #AEAEB2; --gray-bg: rgba(174, 174, 178, .16);
  /* material iOS "chrome": cukup pekat agar isi di belakang hanya tampak sebagai blur samar */
  --glass: rgba(22, 22, 24, .82); --glass-fx: saturate(180%) blur(30px);
  --spring: cubic-bezier(.32, .72, 0, 1); --ease: cubic-bezier(.32, .72, 0, 1);
  /* pegas ringan (overshoot ±5%) untuk sheet & popover */
  --spring-ls: cubic-bezier(.34, 1.3, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  /* lama, dipakai panel admin */
  --card: var(--g1); --card2: var(--g2); --line: var(--sep); --mut: var(--t2); --acc: var(--peach); --pri-t: var(--tint-t);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 17px/1.35 var(--font); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* .shell membungkus isi halaman (dibuat app.js): footer menempel di bawah & mengecil di belakang sheet */
.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--bg); transition: transform .42s var(--ease), border-radius .42s var(--ease); }
.shell > main { flex: 1 0 auto; padding-bottom: 40px; }
.shell > .nav, .shell > .ltitle, .shell > main, .shell > .foot { flex-shrink: 0; }
.shell.behind { transform: scale(.96); border-radius: 14px; overflow: clip; }
img { max-width: 100%; display: block; }
a { color: var(--tint-t); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 10px; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--t2); } .small { font-size: 13px; } .acc, .price { color: var(--peach); }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 2px; border-radius: 10px; }
/* skala iOS */
.t-large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.025em; }
.t-title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; }
.t-head { font-size: 17px; line-height: 22px; font-weight: 600; }
.t-sub { font-size: 15px; line-height: 20px; }
.t-foot { font-size: 13px; line-height: 18px; }
.t-cap { font-size: 12px; line-height: 16px; }

/* ---------- navbar kaca + Large Title ---------- */
/* navbar: lapisan kaca muncul bertahap mengikuti scroll (--nb 0..1, diatur app.js) */
.nav { position: sticky; top: 0; z-index: 40; view-transition-name: nav;
  /* material chrome langsung di elemen navbar (backdrop-filter di ::before hanya mem-blur isi navbar sendiri di Chrome) */
  background-color: rgba(22, 22, 24, calc(.82 * var(--nb, 0))); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx);
  border-bottom: .5px solid rgba(84, 84, 88, calc(.65 * var(--nb, 0))); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background-color: rgba(22, 22, 24, var(--nb, 0)); } .tabbar, .paybar { background: #161618; } }
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 56px; position: relative; }
.nav .brand { display: flex; align-items: center; min-height: 44px; min-width: 0; flex: 0 1 auto; }
.nav .brand img { height: 28px; width: auto; max-width: min(165px, calc(100vw - 32px - 104px)); object-fit: contain; object-position: left center; }
/* ikon Cari & Akun selalu rata kanan (tidak menumpuk di tengah header) */
.nav .kanan { margin-left: auto; }
.nav .ib { flex: none; }
.nav .mini { display: none; position: absolute; left: 50%; transform: translate(-50%, 4px); font-size: 17px; font-weight: 600; opacity: 0; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; pointer-events: none; will-change: opacity, transform; }
.nav .sp { flex: 1; }
.ib { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; color: var(--tint); background: none; border: 0; cursor: pointer; }
.ib:hover { background: var(--g1); }
.nav .dsk { display: none; }
.nav .search-d { display: none; }
.nav .dsk-btn { display: none; }
.nav .brand.dsk-brand { display: none; }
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--tint); font-size: 17px; margin-left: -8px; }
@media (min-width: 900px) {
  .nav .wrap { height: 64px; gap: 16px; }
  .nav .brand img { height: 36px; }
  .nav .dsk { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--txt); font-size: 15px; font-weight: 500; }
  .nav .dsk:hover { background: var(--g1); }
  .nav .search-d { display: block; flex: 1; max-width: 420px; margin: 0 auto; }
  .nav .ib.m { display: none; }
  .nav .dsk-btn { display: inline-flex; }
  .nav .back { display: none; }
  .nav .brand.dsk-brand { display: flex; }
  .nav .mini { display: none; }
  #findm { display: none; }
}
.ltitle { padding-top: 6px; padding-bottom: 12px; }
.ltitle .eye { min-height: 18px; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--t2); margin-bottom: 2px; }
.ann { background: var(--g1); color: var(--txt); font-size: 15px; padding: 12px 16px; border-radius: 14px; margin: 4px 0 12px; display: flex; gap: 10px; align-items: flex-start; }
.ann svg { color: var(--peach); flex: none; margin-top: 2px; }

/* ---------- tab bar bawah (HP) ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border-top: .5px solid var(--sep); display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; min-height: 48px; color: var(--t2); font-size: 10.5px; font-weight: 500; }
.tabbar a[aria-current="page"] { color: var(--tint); }
.tabbar a svg { width: 26px; height: 26px; }
body.has-tab { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .tabbar { display: none; } body.has-tab { padding-bottom: 0; } }

/* ---------- tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--btn); color: #fff; font: 600 17px var(--font); cursor: pointer; text-decoration: none; transition: transform .25s var(--spring), background .2s; }
.btn:hover { background: var(--btn-h); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.pill { border-radius: 999px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.xs { min-height: 32px; padding: 0 14px; font-size: 15px; border-radius: 999px; font-weight: 700; }
.btn.block { width: 100%; }
.btn.ghost, .btn.gray { background: var(--g2); color: var(--tint-t); }
.btn.ghost:hover, .btn.gray:hover { background: var(--g3); }
.btn.light { background: #fff; color: #000; }
.btn.light:hover { background: #E5E5EA; }
.btn.danger { background: var(--err-bg); color: var(--err); }
.btn.danger:hover { background: rgba(255, 138, 154, .22); }
/* WhatsApp = tombol sekunder (bukan hijau WhatsApp) */
.btn.wa { background: var(--g2); color: #fff; }
.btn.wa:hover { background: var(--g3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } .btn:active, .press:active { transform: none; } }

/* ---------- daftar berkelompok iOS ---------- */
.group-h { font-size: 13px; color: var(--t2); text-transform: uppercase; letter-spacing: .02em; margin: 22px 16px 7px; }
.group-f { font-size: 13px; color: var(--t2); margin: 7px 16px 0; }
.group { background: var(--g1); border-radius: 16px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; position: relative; color: var(--txt); background: none; border: 0; width: 100%; text-align: left; font: inherit; }
.cell + .cell::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.cell.ico + .cell::before, .cell + .cell.ico::before { left: 60px; }
a.cell:active, button.cell:active { background: var(--g2); }
.cell .tx { flex: 1; min-width: 0; }
.cell .tx small { display: block; color: var(--t2); font-size: 13px; margin-top: 1px; }
.cell .val { color: var(--t2); font-size: 17px; text-align: right; }
.cell .chev { color: var(--t3); flex: none; }
.sq { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--tint-t); }
.sq svg { width: 18px; height: 18px; }
/* hanya warna logo: ungu transparan, satu sorotan peach per grup */
.sq.peach { background: var(--warn-bg); color: var(--peach); }
.cell label { margin: 0; font-weight: 400; font-size: 17px; width: 110px; flex: none; }
.cell input, .cell select { border: 0; background: none; padding: 0; min-height: 22px; flex: 1; text-align: right; font-size: 17px; box-shadow: none !important; }
.cell input:focus { outline: none; }
.cell:focus-within { background: var(--g2); }

/* ---------- form umum ---------- */
label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 0; background: var(--g2); color: var(--txt); font: 17px var(--font); }
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(235, 235, 245, .45); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--tint); }
.hint { font-size: 13px; color: var(--t2); margin: 6px 0 0; }
.msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; margin: 10px 0; }
.msg.ok { background: var(--ok-bg); color: #C4B5FD; }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.info { background: var(--g2); color: var(--txt); }
.card { background: var(--g1); border-radius: 18px; padding: 16px; }
.sec { margin: 28px 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.sec-h h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sec-h a { font-size: 17px; }

/* ---------- pencarian ---------- */
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--t2); pointer-events: none; }
.search input { padding-left: 36px; background: rgba(118, 118, 128, .24); border-radius: 10px; min-height: 44px; font-size: 17px; }
.find { margin: 4px 0 14px; }

/* ---------- hero "Today" (carousel) ---------- */
.today { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.today::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
@media (min-width: 640px) { .hcard { aspect-ratio: 16 / 7; } }
.hcard > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .78) 100%); }
.hcard .v { position: absolute; right: 5%; top: 9%; width: 34%; max-width: 420px; opacity: .95; filter: drop-shadow(0 18px 40px rgba(20, 0, 60, .55)); }
@media (min-width: 640px) { .hcard .v { width: 38%; right: 4%; top: 50%; transform: translateY(-50%); } }
.hcard .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.hcard .in .btn { min-height: 44px; }
.hcard .eye { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hcard h2 { font-size: 21px; line-height: 25px; max-width: 58%; font-weight: 800; letter-spacing: -.025em; margin: 4px 0 6px; }
.hcard p { display: none; color: rgba(255, 255, 255, .85); font-size: 15px; max-width: 460px; margin: 0 0 14px; }
@media (min-width: 640px) { .hcard p { display: block; } }
@media (min-width: 640px) { .hcard .in { padding: 32px; right: 40%; } .hcard h2 { font-size: 34px; line-height: 40px; max-width: none; } }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; min-height: 7px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--txt); opacity: .3; transition: transform .35s var(--spring-ls), opacity .22s var(--ease); }
.dots i.on { transform: scale(1.35); opacity: 1; }

/* ---------- strip kepercayaan ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { display: flex; gap: 10px; align-items: center; background: var(--g1); border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 17px; color: var(--t2); }
.trust b { display: block; color: var(--txt); font-weight: 600; font-size: 15px; }
.trust small { display: none; font-size: 13px; }
@media (min-width: 640px) { .trust small { display: block; } }

/* ---------- unggulan PB ---------- */
.feat { display: grid; gap: 12px; }
@media (min-width: 680px) { .feat { grid-template-columns: 1fr 1fr; } }
.fcard { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--grad); color: #fff; display: block; }
.fcard > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--spring); }
.fcard .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .7) 40%, transparent 75%); }
.fcard .in { text-shadow: 0 1px 2px rgba(0, 0, 0, .6); } .fcard .in .btn { flex: none; text-shadow: none; }
.fcard .v { position: absolute; right: 6%; top: 10%; width: 42%; filter: drop-shadow(0 14px 30px rgba(20, 0, 60, .5)); }
.fcard .in { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: flex-end; gap: 12px; }
.fcard .in > div { flex: 1; min-width: 0; }
.fcard .eye { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--peach); }
.fcard h3 { font-size: 22px; line-height: 26px; font-weight: 700; margin: 2px 0 2px; }
.fcard .pr { font-size: 15px; color: rgba(255, 255, 255, .85); }
.fcard .pr b { color: var(--peach); }
.badge { display: inline-block; background: var(--peach); color: #1C1C1E; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.fcard .badge { position: absolute; top: 12px; left: 12px; }
.fcard.soon .badge { background: rgba(255, 255, 255, .9); }
.press { transition: transform .3s var(--spring); }
.press:active { transform: scale(.97); }

/* ---------- kategori (chip kapsul) ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--g1); color: var(--txt); font: 500 15px var(--font); cursor: pointer; }
.chip svg { width: 16px; height: 16px; color: var(--t2); }
.chip[aria-selected="true"] { background: var(--txt); color: #000; }
.chip[aria-selected="true"] svg { color: #000; }
.chipwrap { padding: 4px 0; }

/* ---------- grid ikon ala App Store ---------- */
.icons { display: grid; gap: 18px 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
@media (max-width: 359px) { .icons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .icons { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; } }
.app { color: var(--txt); display: grid; gap: 6px; justify-items: center; text-align: center; }
.app .ic { width: 100%; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--grad); position: relative; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); transition: transform .3s var(--spring); }
.app .ic img { width: 100%; height: 100%; object-fit: cover; }
.app .ic .v { position: absolute; inset: 18%; width: 64%; }
.app .nm { font-size: 13px; line-height: 16px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app .sub { font-size: 12px; color: var(--t2); margin-top: -4px; }
.app .badge { position: absolute; left: 6px; top: 6px; font-size: 9px; padding: 2px 5px; }

/* ---------- daftar ala App Store ---------- */
.applist { background: var(--g1); border-radius: 18px; padding: 0 16px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--txt); position: relative; }
.arow + .arow::before { content: ''; position: absolute; top: 0; left: 76px; right: 0; border-top: .5px solid var(--sep); }
.arow .ic { width: 64px; height: 64px; border-radius: 22%; overflow: hidden; background: var(--grad); flex: none; position: relative; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.arow .ic img { width: 100%; height: 100%; object-fit: cover; }
.arow .ic .v { position: absolute; inset: 18%; width: 64%; }
.arow .rk { width: 18px; text-align: center; font-weight: 700; color: var(--t2); flex: none; font-size: 17px; }
.arow .tx { flex: 1; min-width: 0; }
.arow .tx b { display: block; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .tx small { display: block; color: var(--t2); font-size: 13px; margin-top: 2px; }
.arow .tx .price { font-size: 13px; font-weight: 600; }
.arow .get { flex: none; min-height: 44px; display: grid; place-items: center; }
.arow .get span { background: var(--g2); color: var(--tint-t); font-weight: 700; font-size: 15px; padding: 6px 16px; border-radius: 999px; }
.lists { display: grid; gap: 12px; }
@media (min-width: 900px) { .lists { grid-template-columns: 1fr 1fr; } }

.empty { text-align: center; padding: 34px 16px; color: var(--t2); background: var(--g1); border-radius: 18px; }
.empty h3 { color: var(--txt); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 50%, var(--g1) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- halaman produk ala App Store ---------- */
.phead { display: flex; gap: 16px; align-items: center; margin: 8px 0 18px; }
.phead .ic { width: 112px; height: 112px; border-radius: 22%; overflow: hidden; flex: none; background: var(--grad); position: relative; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.phead .ic img { width: 100%; height: 100%; object-fit: cover; }
.phead .ic .v { position: absolute; inset: 18%; width: 64%; }
.phead h1 { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.02em; }
.phead .pub { color: var(--t2); font-size: 15px; margin: 2px 0 8px; }
.phead .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--t2); background: var(--g1); padding: 4px 8px; border-radius: 6px; }
.tag svg { width: 13px; height: 13px; color: var(--tint); }
.stats-row { display: flex; background: var(--g1); border-radius: 16px; margin-bottom: 8px; }
.stats-row div { flex: 1; text-align: center; padding: 10px 4px; position: relative; }
.stats-row div + div::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: .5px solid var(--sep); }
.stats-row small { display: block; font-size: 11px; color: var(--t2); text-transform: uppercase; letter-spacing: .03em; }
.stats-row b { font-size: 17px; }
.buy { display: grid; gap: 4px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .buy { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; } .buy .side { position: sticky; top: 84px; } }
.stephd { display: flex; align-items: center; gap: 8px; margin: 22px 4px 8px; font-size: 17px; font-weight: 600; }
.stephd .no { width: 24px; height: 24px; border-radius: 12px; background: var(--btn); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.noms { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .noms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nom { position: relative; text-align: left; background: var(--g1); border: 0; border-radius: 14px; padding: 12px 14px; min-height: 72px; color: var(--txt); cursor: pointer; font: inherit; box-shadow: inset 0 0 0 1px transparent; transition: transform .25s var(--spring), box-shadow .2s, background .2s; }
.nom:active:not(:disabled) { transform: scale(.97); }
.nom b { display: block; font-size: 15px; font-weight: 600; line-height: 19px; padding-right: 22px; }
.nom .p { display: block; color: var(--peach); font-weight: 700; font-size: 15px; margin-top: 6px; }
.nom s { color: var(--t2); font-size: 12px; margin-left: 4px; font-weight: 400; }
.nom .ck { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 11px; background: var(--tint); color: #fff; display: none; place-items: center; }
.nom[aria-pressed="true"] { background: rgba(139, 92, 246, .18); box-shadow: inset 0 0 0 2px var(--tint); }
.nom[aria-pressed="true"] .ck { display: grid; }
.nom:disabled { opacity: .4; cursor: not-allowed; }
.nom .x { font-size: 12px; color: var(--err); font-weight: 600; display: block; margin-top: 4px; }
.grp { grid-column: 1 / -1; font-size: 13px; color: var(--t2); text-transform: uppercase; letter-spacing: .02em; margin: 8px 4px 0; }
.warn { font-size: 13px; color: var(--t2); margin: 7px 16px 0; }
.warn b { color: var(--txt); font-weight: 600; }
.sum .cell .val.price { color: var(--peach); font-weight: 700; }
.tut { white-space: pre-line; font-size: 15px; color: var(--txt); line-height: 21px; }
details.box { background: var(--g1); border-radius: 16px; }
details.box summary { padding: 13px 16px; cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after { content: '›'; color: var(--t3); font-size: 22px; transform: rotate(90deg); transition: transform .3s var(--spring); }
details.box[open] summary::after { transform: rotate(-90deg); }
details.box > div { padding: 0 16px 16px; }
.vbox { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.vbox iframe { width: 100%; height: 100%; border: 0; }
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border-top: .5px solid var(--sep); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; }
.paybar .i { flex: 1; min-width: 0; }
.paybar .i small { display: block; color: var(--t2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paybar .i b { color: var(--peach); font-size: 20px; font-weight: 700; }
.paybar .btn { min-width: 120px; }
@media (min-width: 900px) { .paybar { display: none; } }
.qris { font-size: 12px; font-weight: 900; letter-spacing: .06em; background: #fff; color: #000; padding: 4px 7px; border-radius: 5px; }

/* ---------- bottom sheet (dialog) ---------- */
dialog { border: 0; padding: 0; color: var(--txt); background: var(--g1); width: min(480px, 100vw); max-height: 92vh; border-radius: 20px; overflow: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog.sheet { margin: auto auto 0; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: up .35s var(--spring); }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 20px; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
dialog .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--g3); margin: 8px auto 0; }
dialog .hd { padding: 14px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
dialog .hd h2 { font-size: 20px; font-weight: 700; }
dialog .bd { padding: 12px 20px; }
dialog .ft { padding: 4px 20px 20px; display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--t2); } .kv dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.qrbox { background: #fff; border-radius: 16px; padding: 12px; width: min(280px, 100%); margin: 8px auto; }
.qrbox img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--txt); }

/* ---------- status pesanan: timeline ---------- */
.st { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; padding: 4px 10px 4px 7px; border-radius: 999px; white-space: nowrap; }
.st svg { width: 14px; height: 14px; flex: none; }
.st.success { color: var(--ok); background: var(--ok-bg); }
.st.awaiting_payment, .st.paid, .st.processing, .st.created { color: var(--warn); background: var(--warn-bg); }
.st.failed, .st.expired { color: var(--err); background: var(--err-bg); }
.st.refunded { color: var(--gray); background: var(--gray-bg); }
.ohead { text-align: center; padding: 18px 16px 20px; }
.ohead .big { width: 64px; height: 64px; border-radius: 32px; display: grid; place-items: center; margin: 0 auto 12px; }
.ohead .big svg { width: 34px; height: 34px; }
.ohead .big.ok { background: var(--ok-bg); color: var(--ok); }
.ohead .big.wait { background: var(--warn-bg); color: var(--warn); }
.ohead .big.bad { background: var(--err-bg); color: var(--err); }
.ohead .big.gray { background: var(--gray-bg); color: var(--gray); }
.ohead h1 { font-size: 22px; font-weight: 700; }
.ohead p { color: var(--t2); font-size: 15px; margin: 6px auto 0; max-width: 420px; }
.tl { list-style: none; margin: 0; padding: 6px 16px; background: var(--g1); border-radius: 16px; }
.tl li { display: flex; gap: 12px; position: relative; padding: 10px 0; }
.tl li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--g3); border-radius: 1px; }
.tl li.done:not(:last-child)::after { background: var(--tint); }
.tl .dot { width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--g2); color: var(--t2); }
.tl .dot svg { width: 16px; height: 16px; }
.tl li.done .dot { background: var(--tint); color: #fff; }
.tl li.now .dot { background: var(--peach); color: #1C1C1E; }
.tl li.bad .dot { background: var(--err-bg); color: var(--err); }
.tl li.gray .dot { background: var(--gray-bg); color: var(--gray); }
.tl li.num .dot { background: var(--btn); color: #fff; font-weight: 700; font-size: 13px; }
.tl b { display: block; font-size: 15px; font-weight: 600; }
.tl small { color: var(--t2); font-size: 13px; }
.sn { font: 600 17px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--g2); border-radius: 12px; padding: 14px; word-break: break-all; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 0 auto 40px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(118, 118, 128, .24); border-radius: 9px; padding: 2px; margin: 4px 0 8px; }
.seg a { text-align: center; padding: 7px; min-height: 36px; border-radius: 7px; color: var(--txt); font-size: 15px; font-weight: 500; display: grid; place-items: center; }
.seg a[aria-current="page"] { background: #636366; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); }
.pw { position: relative; flex: 1; display: flex; align-items: center; }
.pw button { background: none; border: 0; color: var(--tint); min-width: 44px; min-height: 44px; margin: -11px -12px -11px 0; cursor: pointer; display: grid; place-items: center; }

/* ---------- footer ---------- */
.foot { margin-top: auto; padding: 28px 0 32px; border-top: .5px solid var(--sep); font-size: 13px; color: var(--t2); }
.foot .wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; } }
.foot img { height: 30px; width: auto; margin-bottom: 10px; }
.foot h4 { color: var(--txt); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.foot a.l { color: var(--t2); display: flex; align-items: center; min-height: 36px; font-size: 15px; }
.foot .pay { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* ---------- panel admin (memakai gaya yang sama) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: .5px solid var(--sep); vertical-align: top; }
.tbl th { color: var(--t2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; background: var(--g1); border-radius: 16px; }
.stats { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--g1); border-radius: 16px; padding: 12px 14px; }
.stat small { color: var(--t2); font-size: 13px; display: block; }
.stat b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat.hi b { color: var(--peach); }
.atabs, .tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0; scrollbar-width: none; }
.tab { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--g1); color: var(--txt); font: 500 15px var(--font); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--txt); color: #000; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cols { display: grid; gap: 14px; } @media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(44, 44, 46, .95); color: var(--txt); padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; z-index: 60; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }

/* ---------- avatar, menu akun (popover), detail pesanan ---------- */
.avatar { width: 32px; height: 32px; border-radius: 16px; background: var(--btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.avatar.lg { width: 44px; height: 44px; border-radius: 22px; font-size: 19px; flex: none; }
.nav .btn.dsk-btn svg { margin-left: -2px; }
.pop { position: fixed; z-index: 60; width: 280px; background: rgba(44, 44, 46, .92); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); overflow: hidden; transform-origin: top right; animation: pop .25s var(--spring); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pop { background: #2C2C2E; } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.pop-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: .5px solid var(--sep); }
.pop-h b { display: block; font-size: 15px; } .pop-h small { color: var(--t2); font-size: 13px; word-break: break-all; }
.pop .cell { font-size: 17px; }
.ib.sm { width: 44px; height: 44px; color: var(--tint); flex: none; margin: -10px -6px; }
.mono, .secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.kv2 .tx small { font-size: 15px; color: var(--txt); margin-top: 4px; word-break: break-all; }
.ohead2 { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; }
.ohead2 small { display: block; color: var(--t2); font-size: 15px; }
.ohead2 > span:nth-child(2) { flex: 1; }
.oicon { width: 56px; height: 56px; border-radius: 22%; overflow: hidden; background: var(--grad); flex: none; position: relative; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.oicon img { width: 100%; height: 100%; object-fit: cover; } .oicon .v { position: absolute; inset: 18%; width: 64%; }
.orow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; color: var(--txt); width: 100%; background: none; border: 0; text-align: left; font: inherit; cursor: pointer; min-height: 72px; }
.orow + .orow::before { content: ''; position: absolute; top: 0; left: 80px; right: 0; border-top: .5px solid var(--sep); }
.orow:active { background: var(--g2); }
.orow .oicon { width: 52px; height: 52px; }
.orow .tx { flex: 1; min-width: 0; } .orow .tx b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .tx small { display: block; color: var(--t2); font-size: 13px; margin-top: 2px; }
.orow .rt { text-align: right; flex: none; display: grid; gap: 4px; justify-items: end; }
.idline { display: flex; align-items: center; gap: 2px; }
.stats.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.s3 .stat b { font-size: 19px; }
.hero-admin { display: flex; align-items: center; gap: 14px; background: var(--grad); border-radius: 20px; padding: 18px; color: #fff; margin-bottom: 8px; }
.hero-admin b { display: block; font-size: 20px; } .hero-admin small { color: rgba(255, 255, 255, .85); font-size: 15px; }
.orow { cursor: default; }
.openb { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 52px; }
.orow .idline .ib.sm { margin: -12px -10px -12px -4px; }

.orow2 { position: relative; padding: 12px 16px 6px; }
.orow2 + .orow2::before { content: ''; position: absolute; top: 0; left: 80px; right: 0; border-top: .5px solid var(--sep); }
.orow2 .openb .tx { flex: 1; min-width: 0; } .orow2 .openb .tx b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow2 .openb .tx small { display: block; color: var(--t2); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow2 .openb .oicon { width: 52px; height: 52px; }
.orow2 .meta { display: flex; align-items: center; gap: 8px; padding-left: 0; min-height: 44px; }
@media (min-width: 420px) { .orow2 .meta { padding-left: 64px; } }
.orow2 .meta .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.orow2 .meta .ib.sm { margin: 0 -10px 0 0; }
.orow2 .openb { width: 100%; }

/* ===================== ANIMASI ala iOS ===================== */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --spring-ls: linear(0, .06 3%, .25 8%, .55 15%, .82 23%, .97 31%, 1.04 40%, 1.05 46%, 1.03 56%, 1.01 68%, 1 80%, 1); }
}
/* tekan: mengecil + redup (120ms), lepas: kembali dengan pegas */
.btn, a.cell, button.cell, .fcard, .app, .arow, .nom, .chip, .tab, .openb, .hcard, .ib, .tabbar a, .press, details.box summary {
  transition: transform .38s var(--spring-ls), opacity .22s var(--ease), background-color .22s var(--ease);
}
.btn:active:not(:disabled), a.cell:active, button.cell:active, .fcard:active, .app:active, .arow:active, .nom:active:not(:disabled), .chip:active, .tab:active, .openb:active, a.hcard:active, .ib:active, .tabbar a:active, .press:active, details.box summary:active {
  transform: scale(.97); opacity: .78; transition-duration: .12s, .12s, .12s; transition-timing-function: var(--ease);
}
/* kontrol segmen / chip / tab admin: indikator bergeser */
.has-ind { position: relative; isolation: isolate; background: var(--g1); border-radius: 999px; padding: 2px; gap: 2px; margin-left: 0; margin-right: 0; width: fit-content; max-width: 100%; }
.has-ind > .chip, .has-ind > .tab { background: transparent; position: relative; z-index: 1; }
.has-ind > .chip[aria-selected="true"], .has-ind > .tab[aria-selected="true"] { background: transparent; color: #000; }
.seg-ind { position: absolute; left: 0; top: 2px; height: calc(100% - 4px); width: 100px; border-radius: 999px; background: var(--txt); z-index: 0; pointer-events: none;
  transition: transform .4s var(--spring-ls), width .4s var(--spring-ls), opacity .22s var(--ease); box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
/* daftar & grid: muncul bertahap saat pertama dimuat */
.stg { animation: naik .42s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes naik { from { opacity: 0; transform: translateY(8px); } }
/* skeleton shimmer ala iOS */
.skel { position: relative; overflow: hidden; background: var(--g1); animation: none; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06) 50%, transparent); animation: kilau 1.4s var(--ease) infinite; }
@keyframes kilau { to { transform: translateX(100%); } }
.app.skeleton .ic { background: var(--g1); } .app.skeleton .nm { width: 70%; height: 12px; border-radius: 6px; }
/* spinner kecil iOS di dalam tombol */
.spin { width: 18px; height: 18px; display: inline-block; flex: none; animation: putar .8s steps(8) infinite; }
@keyframes putar { to { transform: rotate(360deg); } }
.btn.busy { pointer-events: none; }
/* bottom sheet: naik dengan pegas; latar redup + blur memudar; tutup turun */
dialog.sheet { animation: sheetNaik .44s var(--spring-ls) both; touch-action: pan-y; }
@keyframes sheetNaik { from { transform: translateY(100%); } }
dialog.sheet.closing { animation: sheetTurun .28s var(--ease) both; }
@keyframes sheetTurun { to { transform: translateY(100%); } }
@media (min-width: 640px) { @keyframes sheetNaik { from { transform: translateY(40px) scale(.96); opacity: 0; } } @keyframes sheetTurun { to { transform: translateY(24px) scale(.97); opacity: 0; } } }
dialog::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pudar .38s var(--ease) both; }
dialog.closing::backdrop { animation: pudarKeluar .28s var(--ease) both; }
@keyframes pudar { from { opacity: 0; } }
@keyframes pudarKeluar { to { opacity: 0; } }
dialog .grab, dialog .hd { touch-action: none; cursor: grab; }
dialog .grab { width: 36px; height: 5px; border-radius: 3px; background: var(--g3); margin: 0 auto; position: relative; }
dialog .grab::before { content: ''; position: absolute; inset: -12px -40px; } /* area seret lebih besar */
dialog.sheet > .grab { margin-top: 8px; }
/* popover menu akun: dari avatar, skala 0.85 + fade dengan pegas */
.pop { animation: popMasuk .34s var(--spring-ls) both; transform-origin: top right; }
@keyframes popMasuk { from { opacity: 0; transform: scale(.85); } }
.pop.keluar { animation: popKeluar .16s var(--ease) both; }
@keyframes popKeluar { to { opacity: 0; transform: scale(.92); } }
/* HUD toast ala iOS: kapsul kaca di tengah bawah */
.toast { display: none; }
.hud { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: rgba(44, 44, 46, .82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); color: var(--txt); font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); white-space: nowrap; max-width: calc(100vw - 32px); transform: translateX(-50%); animation: hudMasuk .42s var(--spring-ls) both; pointer-events: none; }
.hud[popover] { inset: auto; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); margin: 0; border: 0; overflow: visible; width: auto; height: auto; }
@media (min-width: 900px) { .hud[popover] { bottom: 32px; } }
.hud svg { color: var(--tint-t); flex: none; } .hud.err svg { color: var(--err); }
.hud.keluar { animation: hudKeluar .24s var(--ease) both; }
@keyframes hudMasuk { from { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.9); } }
@keyframes hudKeluar { to { opacity: 0; transform: translateX(-50%) translateY(8px) scale(.96); } }
@media (min-width: 900px) { .hud { bottom: 32px; } }
.ib .ok-ikon { color: var(--tint-t); animation: hudMasuk2 .3s var(--spring-ls) both; }
@keyframes hudMasuk2 { from { opacity: 0; transform: scale(.6); } }
/* timeline: titik terisi & centang digambar saat status berubah */
.tl li.baru .dot { animation: isi .42s var(--spring-ls) both; }
.tl li.baru .dot path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: gambar .36s .14s var(--ease) forwards; }
@keyframes isi { from { transform: scale(.5); opacity: 0; } }
@keyframes gambar { to { stroke-dashoffset: 0; } }
/* transisi halaman (View Transitions API): maju geser dari kanan, mundur dari kiri; navbar & tab bar tetap */
@view-transition { navigation: auto; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
html:active-view-transition-type(maju)::view-transition-new(root) { animation-name: vtMasukKanan; }
html:active-view-transition-type(maju)::view-transition-old(root) { animation-name: vtKeluarKiri; }
html:active-view-transition-type(mundur)::view-transition-new(root) { animation-name: vtMasukKiri; }
html:active-view-transition-type(mundur)::view-transition-old(root) { animation-name: vtKeluarKanan; }
@keyframes vtMasukKanan { from { transform: translateX(28%); opacity: 0; } }
@keyframes vtKeluarKiri { to { transform: translateX(-12%); opacity: 0; } }
@keyframes vtMasukKiri { from { transform: translateX(-28%); opacity: 0; } }
@keyframes vtKeluarKanan { to { transform: translateX(12%); opacity: 0; } }
@keyframes vtPudar { from { opacity: 0; } }
/* cadangan bila View Transitions tidak didukung: isi memudar masuk */
html.no-vt .shell { animation: vtPudar .22s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .stg, dialog.sheet, .pop, .hud, .tl li.baru .dot, .shell { animation: vtPudar .12s linear both !important; }
  .tl li.baru .dot path { animation: none !important; stroke-dashoffset: 0 !important; }
  .shell.behind { transform: none; }
  .skel::after { animation: none; }
}

/* tinggi grid sama saat memuat & saat kosong (tanpa lompatan layout) */
#grid { min-height: 240px; }
#grid > .empty { min-height: 240px; display: grid; align-content: center; }

/* ---------------- panel admin: sidebar ala RZ (laci di HP), header, dashboard ---------------- */
html.noscroll { overflow: hidden; }
.adm { display: flex; min-height: 100vh; min-height: 100dvh; }
.aside { position: sticky; top: 0; height: 100vh; height: 100dvh; width: 256px; flex: none; display: flex; flex-direction: column; background: var(--g1); border-right: .5px solid var(--sep); padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; z-index: 60; }
.aside-h { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 4px 0 10px; }
.aside-h .brand img { height: 24px; width: auto; }
.aside-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--peach); background: var(--warn-bg); padding: 3px 7px; border-radius: 6px; }
.aside-x { margin-left: auto; display: none; }
.aside-l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--t2); margin: 18px 12px 6px; }
.mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; margin: 2px 0; border: 0; border-radius: 10px; background: none; color: var(--txt); font: 500 16px var(--font); text-align: left; cursor: pointer; text-decoration: none; transition: background .2s; }
.mi svg { color: var(--t2); flex: none; }
.mi:hover { background: var(--g2); }
.mi[aria-current="page"] { background: var(--ok-bg); font-weight: 600; }
.mi[aria-current="page"] svg { color: var(--tint-t); }
.aside-f { margin-top: auto; padding-top: 10px; border-top: .5px solid var(--sep); }
.aside-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 55; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.amain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.atop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px 8px 28px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border-bottom: .5px solid var(--sep); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .atop { background: #161618; } }
.atop h1 { font-size: 22px; font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menubtn { display: none; }
.prof { text-align: right; line-height: 1.25; min-width: 0; max-width: 40vw; }
.prof b, .prof small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof b { font-size: 15px; } .prof small { font-size: 13px; color: var(--t2); }
#v { padding: 22px 28px 56px; width: 100%; max-width: 1240px; }
@media (max-width: 1023px) {
  .aside { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 84vw); transform: translateX(-104%); transition: transform .38s var(--ease); box-shadow: 0 0 48px rgba(0, 0, 0, .6); }
  .aside.open { transform: none; }
  .aside-x, .menubtn { display: inline-grid; }
  .atop { padding: 6px 6px 6px 4px; gap: 4px; }
  #v { padding: 16px 16px 44px; }
}
@media (max-width: 520px) { .prof small { display: none; } .atop h1 { font-size: 20px; } }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.sechead h2 { font-size: 22px; font-weight: 700; }
.sechead.sub { margin: 20px 0 8px; } .sechead.sub .subhead { margin: 0; }
.subhead { font-size: 17px; font-weight: 700; margin: 20px 0 10px; display: flex; align-items: center; gap: 2px; }
#v .card h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#v .card + .card, #v .card + .cols2, #v .cols2 + .card, #v .cols2 + .cols2 { margin-top: 14px; }
.lead { margin: 10px 2px 0; max-width: 80ch; }
/* ⓘ penjelasan */
.nfo { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: -12px -10px -12px -8px; border: 0; background: none; color: var(--t2); cursor: pointer; border-radius: 50%; vertical-align: middle; flex: none; }
.nfo:hover { color: var(--tint-t); }
.tip[popover] { inset: 0; margin: auto; width: min(380px, calc(100vw - 32px)); height: fit-content; border: 0; border-radius: 18px; background: var(--g2); color: var(--txt); padding: 18px 18px 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .6); font-size: 15px; line-height: 1.45; }
.tip[popover]:popover-open { animation: tipin .32s var(--spring-ls); }
@keyframes tipin { from { opacity: 0; transform: scale(.94); } }
.tip::backdrop { background: rgba(0, 0, 0, .45); }
.tip b { display: block; font-size: 17px; margin-bottom: 6px; } .tip p { color: rgba(235, 235, 245, .85); margin: 0 0 14px; }
/* ringkasan keuangan: 4 kartu sejajar */
.sumgrid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .sumgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sumgrid { grid-template-columns: 1fr; } }
.sbox { background: var(--g1); border-radius: 18px; padding: 16px 16px 8px; min-width: 0; }
.sbox > .small { font-weight: 600; color: var(--txt); }
.omz { display: block; margin: 8px 0 8px; } .omz .small { color: var(--t2); display: inline-flex; align-items: center; }
.sbox .big { display: block; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ln { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; border-top: .5px solid var(--sep); }
.ln span { color: var(--t2); display: inline-flex; align-items: center; } .ln b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.ln.net span { color: var(--txt); font-weight: 600; } .ln.net b { color: var(--peach); font-weight: 800; font-size: 17px; }
/* rincian periode */
.periods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.periods .chips { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; overflow: visible; }
.range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.range input { width: auto; flex: 1 1 140px; max-width: 190px; }
.cols2 { display: grid; gap: 14px; } @media (min-width: 900px) { .cols2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.omzcard .ptot { display: block; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: -.025em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pbar { display: flex; gap: 2px; height: 12px; border-radius: 6px; overflow: hidden; margin: 16px 0 10px; background: var(--g2); }
.pbar span { min-width: 3px; } .pbar .m, .plegend i.m { background: #AEAEB2; } .pbar .b, .plegend i.b { background: var(--peach); } .pbar .u, .plegend i.u { background: var(--tint); } .pbar .kosong { flex: 1; }
.plegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--t2); }
.plegend span { display: inline-flex; align-items: center; gap: 6px; } .plegend i { width: 10px; height: 10px; border-radius: 3px; } .plegend em { font-style: normal; color: var(--txt); font-weight: 600; }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-top: .5px solid var(--sep); font-variant-numeric: tabular-nums; }
.brow:first-of-type { margin-top: 8px; } .brow span:first-child { display: inline-flex; align-items: center; }
.brow.min span:last-child { color: var(--t2); } .brow.net { font-weight: 700; } .brow.net span:last-child { color: var(--peach); font-size: 20px; font-weight: 800; }
/* sapaan + perlu perhatian */
.hello { margin-top: 22px; }
.hello-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hello-top h2 { font-size: 22px; } .hello-top p { margin: 4px 0 0; }
.perhatian { background: var(--warn-bg); border-radius: 16px; padding: 14px 16px 6px; }
.perhatian h3 { color: var(--peach); font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.perhatian ul { margin: 0; padding-left: 20px; } .perhatian li { margin: 0 0 10px; line-height: 1.45; font-size: 15px; }
.perhatian a { color: var(--peach); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msg svg { vertical-align: -2px; }
.stats.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 700px) { .stats.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
button.stat { border: 0; text-align: left; color: var(--txt); font: inherit; cursor: pointer; background: var(--g2); } button.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.tscroll.in { background: var(--g2); }
/* panduan singkat */
.guide { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.guide li { display: flex; gap: 14px; padding: 12px 0; border-top: .5px solid var(--sep); }
.guide .no { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--tint-t); font-weight: 700; font-size: 15px; }
.guide b { display: block; font-size: 17px; margin: 3px 0 4px; } .guide p { color: var(--t2); font-size: 15px; line-height: 1.45; margin: 0 0 8px; max-width: 70ch; }
@media (min-width: 1100px) { .guide { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
/* pesanan, pengaturan */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filterbar input { flex: 1 1 260px; } .filterbar select { flex: 0 1 230px; width: auto; }
.setgrid { display: grid; gap: 14px; } @media (min-width: 1000px) { .setgrid { grid-template-columns: 1fr 1fr; align-items: start; } }
.setgrid .card .btn[data-save], .setgrid form .btn { margin-top: 16px; }
.contoh { margin-top: 14px; padding: 12px 14px; background: var(--g2); border-radius: 12px; font-size: 15px; line-height: 1.45; }
.err-t { color: var(--err); }
.copyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--g2); border-radius: 12px; padding: 4px 4px 4px 14px; }
.copyrow .mono { word-break: break-all; }
label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; } label.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--tint); }
.keputusan { background: var(--g2); border-radius: 12px; padding: 10px 14px 2px; margin-top: 14px; }
.keputusan p { margin: 0 0 8px; line-height: 1.45; }
@media (min-width: 1024px) { .adm { background: linear-gradient(to right, var(--g1) 256px, var(--sep) 256px, var(--sep) 256.5px, transparent 256.5px); } }
.ln { font-size: 13.5px; } .ln span { white-space: nowrap; }
.ln.net { display: block; padding: 8px 0 6px; } .ln.net b { display: block; text-align: left; font-size: 22px; line-height: 28px; margin-top: 2px; }
.lk { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }

@media (max-width: 600px) {
  .tbl.rsp thead { display: none; }
  .tbl.rsp, .tbl.rsp tbody { display: block; }
  .tbl.rsp tr { display: block; padding: 10px 14px; border-bottom: .5px solid var(--sep); }
  .tbl.rsp tr:last-child { border-bottom: 0; }
  .tbl.rsp td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .tbl.rsp td[data-l]::before { content: attr(data-l); color: var(--t2); font-size: 13px; text-align: left; flex: none; }
  .tbl.rsp td:first-child { display: block; text-align: left; font-size: 15px; padding-bottom: 6px; }
  .tbl.rsp td:first-child::before { display: none; }
  .tbl.rsp td:empty { display: none; }
}
fieldset.pilih { border: 0; padding: 0; margin: 14px 0 0; }
fieldset.pilih legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; padding: 0; }
label.radio { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 6px 0 0; padding: 8px 14px; background: var(--g2); border-radius: 12px; font-weight: 400; cursor: pointer; }
label.radio input { width: 20px; height: 20px; min-height: 0; flex: none; accent-color: var(--tint); }
label.radio b { display: block; font-size: 16px; font-weight: 600; } label.radio small { display: block; font-size: 13px; color: var(--t2); }
label.radio:has(input:checked) { box-shadow: 0 0 0 2px var(--tint); }

/* hero beranda: gambar latar (picture: HP 1080 persegi, desktop 1600x900) + overlay gelap agar teks kontras AA */
.hcard.hero { background: #0A0810; }
.hcard.hero > picture > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hcard.hero .shade { background: linear-gradient(0deg, rgba(10, 8, 16, .9) 0%, rgba(10, 8, 16, .62) 42%, rgba(10, 8, 16, 0) 78%); }
.hcard.hero h2 { max-width: 82%; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.hcard.hero .eye { color: rgba(255, 255, 255, .86); }
@media (min-width: 640px) {
  .hcard.hero > picture > img.bg { object-position: 70% 50%; }
  .hcard.hero .shade { background: linear-gradient(90deg, rgba(10, 8, 16, .85) 0%, rgba(10, 8, 16, .7) 30%, rgba(10, 8, 16, 0) 60%); }
  .hcard.hero .in { top: 0; display: flex; flex-direction: column; justify-content: center; right: 45%; }
  .hcard.hero h2 { max-width: none; }
}
/* HP: teks hero mengisi ±80% tinggi kartu 16:9, jadi overlay bawah dibuat pekat sampai di atas label */
@media (max-width: 639px) {
  .hcard.hero .shade { background: linear-gradient(0deg, rgba(10, 8, 16, .92) 0%, rgba(10, 8, 16, .84) 55%, rgba(10, 8, 16, .6) 80%, rgba(10, 8, 16, .25) 100%); }
  .hcard.hero > picture > img.bg { object-position: 55% 22%; }
  .hcard.hero .eye { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
}
@media (min-width: 640px) { .hcard.hero .in { align-items: flex-start; } .hcard.hero .in .btn { padding: 0 28px; } }

/* ---------------- terjual, rating, Lagi Trending, urutan, notifikasi pembelian ---------------- */
.app .sold { font-size: 11px; line-height: 14px; color: var(--t2); margin-top: -4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .sub + .sold { margin-top: -3px; }
.fcard .meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.trow .ic { overflow: visible; }
.trow .ic img, .trow .ic .v { border-radius: inherit; }
.trow .ic > img { border-radius: 22%; }
.rkb { position: absolute; left: -6px; top: -6px; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--g3); color: #fff; box-shadow: 0 0 0 2px var(--g1); }
.rkb.top { background: var(--peach); color: #1A1206; }
.trow .tx small + small { margin-top: 1px; }
.sortbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sortbar[hidden] { display: none; }
.seg3 { display: inline-grid; grid-template-columns: repeat(3, auto); background: var(--g1); border-radius: 10px; padding: 2px; }
.seg3 button { min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--txt); font: 500 14px var(--font); cursor: pointer; transition: background .25s var(--ease); }
.seg3 button[aria-checked="true"] { background: var(--g3); font-weight: 600; }
.bnotif { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 12px; max-width: 420px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border: .5px solid var(--sep); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s var(--ease), transform .4s var(--spring-ls); }
.bnotif.on { opacity: 1; transform: none; pointer-events: auto; }
.bnotif .sq { width: 30px; height: 30px; }
.bnotif .tx { flex: 1; min-width: 0; font-size: 13px; line-height: 17px; }
.bnotif .tx b { font-weight: 600; } .bnotif .tx small { display: block; color: var(--t2); font-size: 12px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .bnotif { background: #161618; } }
@media (min-width: 900px) { .bnotif { left: 24px; right: auto; bottom: 24px; } }
@media (max-width: 599px) { .app .sold { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; } }

/* ---------------- kolom isian (semua formulir): label di atas, kotak 52px, fokus ungu tanpa geser layout ---------------- */
input, select, textarea { min-height: 52px; padding: 0 16px; border: 1px solid #48484A; border-radius: 12px; background: #2C2C2E; color: #fff; font: 17px var(--font); text-align: left; caret-color: #A78BFA; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
textarea { padding: 14px 16px; }
select { -webkit-appearance: none; appearance: none; }
/* placeholder: rgba(235,235,245,.45) di atas #2C2C2E hanya 3,6:1, jadi dinaikkan ke .6 = 5,2:1 (AA) */
input::placeholder, textarea::placeholder { color: rgba(235, 235, 245, .6); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #8B5CF6; box-shadow: inset 0 0 0 1px #8B5CF6, 0 0 0 4px rgba(139, 92, 246, .25); }
input[type="checkbox"], input[type="radio"] { min-height: 0; padding: 0; border: 0; box-shadow: none; }
.cell input, .cell select { border: 0; min-height: 0; box-shadow: none !important; }
.search input { border: 0; min-height: 44px; padding: 0 12px 0 36px; }
.fx[hidden] { display: none; }
.fields { display: grid; gap: 0; }
.fld { margin: 0 0 16px; min-width: 0; }
.fld > label { display: block; margin: 0 0 8px; font: 600 15px var(--font); color: #fff; }
.fi { position: relative; }
.fi > input, .fi > select { width: 100%; height: 52px; }
.fi[data-ic] > input, .fi[data-ic] > select { padding-left: 46px; }
.fi > input { padding-right: 52px; }
.fic, .fchev { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; color: rgba(235, 235, 245, .6); pointer-events: none; }
.fic { left: 16px; } .fchev { right: 16px; transform: rotate(90deg); }
.fi:focus-within .fic { color: #A78BFA; }
.fx { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 22px; background: none; color: rgba(235, 235, 245, .6); cursor: pointer; }
.fx > svg { background: #48484A; color: #fff; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.fx[data-eye] > svg { background: none; color: rgba(235, 235, 245, .7); width: 20px; height: 20px; padding: 0; }
.fh { margin: 6px 2px 0; font-size: 13px; line-height: 17px; color: rgba(235, 235, 245, .6); }
.fh:empty { display: none; }
.fe { margin: 6px 2px 0; font-size: 13px; line-height: 17px; color: #FF8A9A; }
.fld.err .fi > input, .fld.err .fi > select { border-color: #FF8A9A; box-shadow: inset 0 0 0 1px #FF8A9A; }
.fld.err .fi > input:focus { box-shadow: inset 0 0 0 1px #FF8A9A, 0 0 0 4px rgba(255, 138, 154, .2); }
.fld.err .fic { color: #FF8A9A; }
.fgrid2 { display: grid; gap: 0 12px; }
@media (min-width: 640px) { .fgrid2 { grid-template-columns: 2fr 1fr; } }
.kartu { background: var(--g1); border-radius: 18px; padding: 16px 16px 4px; }
.kartu .btn.block { margin: 0 0 16px; }
.sum .val.kosong { color: rgba(235, 235, 245, .6); font-weight: 400; }

/* ---------------- QRIS: poster tegak Otomapay (600x1040) dengan rasio asli, besar & responsif ---------------- */
.qrp { display: grid; gap: 14px; justify-items: center; }
.qrpost { position: relative; width: 100%; aspect-ratio: 600 / 1040; border-radius: 16px; overflow: hidden; background: #062348; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: zoom-in; }
@media (min-width: 481px) { .qrpost { width: clamp(300px, min(420px, 90vw, calc(70vh * .5769)), 420px); } }
.qrpost > .qrsk { position: absolute; inset: 0; border-radius: 0; }
.qrpost > .qrimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s var(--ease); }
.qrpost.siap > .qrimg { opacity: 1; }
.qrbig { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px;
  background: rgba(0, 0, 0, .62); color: #fff; font: 600 14px var(--font); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.qrpost:not(.siap) .qrbig { display: none; }
/* cadangan (poster gagal dimuat 2x): bingkai bergaya poster Otomapay, latar biru tua seperti aslinya */
.qrpost > .qrsk { background: #0B2C57; }
.qrcad { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 6% 6% 4%; background: #062348; color: #fff; text-align: center; font-family: var(--font); }
.qrcad .ob { margin: 2% 0 3%; } .qrcad .oblogo { font-size: clamp(18px, 6.4cqw, 28px); font-weight: 800; letter-spacing: -.02em; } .qrcad .oblogo::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .3em; border-radius: .2em; background: #7ED957; vertical-align: -.05em; }
.qrcad .obm { font-size: 14px; color: #C9D6EA; } .qrcad .obn { font-size: clamp(24px, 9cqw, 40px); font-weight: 800; margin: 2% 0 4%; }
.qrcad .obqr { width: 100%; background: #fff; border-radius: 14px; padding: 4% 6% 5%; color: #111; }
.qrcad .obt { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 12px; color: #555; margin-bottom: 3%; } .qrcad .obt b { font-size: 18px; color: #111; letter-spacing: .06em; }
.qrcad .obqr img { width: 100%; image-rendering: pixelated; }
.qrcad .obb { margin-top: auto; font-size: 13px; color: #C9D6EA; padding-top: 4%; } .qrcad .obf { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8FA3C3; margin-top: 2%; } .qrcad .obf b { color: #fff; }
.qrcad .obr { flex: none; min-height: 44px; margin: -4% 0 0; padding: 0 14px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .14); color: #fff; font: 600 12px var(--font); cursor: pointer; }
.qrcad:has(.obr) .ob { margin-top: 0; } .qrcad:has(.obr) .obn { margin-bottom: 2%; }
.qrpost { container-type: inline-size; }
.qrcad.gagal { justify-content: center; gap: 10px; } .qrcad.gagal p { margin: 0; color: #C9D6EA; }
.qrpost.habis { cursor: default; }
.qrpost.habis > .qrimg, .qrpost.habis > .qrcad { filter: blur(24px) grayscale(1); opacity: .35; }
.qrtutup { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(10, 8, 16, .82); color: #fff; font-size: 17px; }
.qrtutup[hidden] { display: none; }
.qrtutup span { width: 60px; height: 60px; border-radius: 30px; display: grid; place-items: center; background: var(--err-bg); color: var(--err); }
.qrinfo { text-align: center; } .qrinfo p { margin: 0 0 4px; }
.qrtot b { font-size: 24px; } .qrsisa { color: var(--t2); font-size: 15px; } .qrsisa .count { font-size: 17px; }
.qrid { display: flex; align-items: center; justify-content: center; gap: 2px; color: var(--t2); font-size: 14px; } .qrid .mono { color: var(--txt); margin-left: 4px; }
.qrexp { width: 100%; background: var(--err-bg); color: var(--err); border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.45; text-align: center; }
.qrexp b { color: var(--err); }
/* sheet QRIS: lebih lebar/tinggi di desktop, tombol utama menempel di bawah (sticky) */
dialog.qris-sheet { width: min(520px, 100vw); max-height: 92vh; max-height: 92dvh; }
dialog.qris-sheet .bd { padding: 6px 16px 14px; }
@media (max-width: 480px) {
  dialog.qris-sheet { width: 100vw; max-width: 100vw; }
  dialog.qris-sheet .ft { position: sticky; bottom: 0; z-index: 4; background: var(--g1); padding-top: 12px; box-shadow: 0 -10px 18px var(--g1); }
}
/* layar penuh: poster Otomapay sebesar mungkin di atas latar gelap blur */
dialog.qrfull { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px 16px 40px; border-radius: 0; background: transparent; display: grid; place-items: center; overflow: hidden; touch-action: none; box-shadow: none; }
dialog.qrfull::backdrop { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
dialog.qrfull img { max-width: 100%; max-height: calc(100dvh - 60px); object-fit: contain; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
dialog.qrfull .qrcad.besar { position: relative; inset: auto; height: min(calc(100dvh - 60px), calc((100vw - 32px) * 1.733)); aspect-ratio: 600 / 1040; border-radius: 18px; container-type: inline-size; }
dialog.qrfull p { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; }
.qrcard { margin-bottom: 12px; display: grid; gap: 12px; }
.qrbtn { display: grid; gap: 8px; }
/* info bayar & pesan "waktu habis" ditumpuk di sel yang sama (tinggi = yang terbesar) supaya CLS 0 saat waktu habis */
.qrbawah { display: grid; width: 100%; align-items: center; }
.qrbawah > * { grid-area: 1 / 1; }
.qrbawah > [hidden] { display: block; visibility: hidden; }
[hidden].btn, .btn[hidden] { display: none !important; }
.qrtutup { text-align: center; padding: 20px; } .qrtutup small { color: rgba(235, 235, 245, .75); font-size: 14px; line-height: 1.45; }
.qrpost > .qrimg[hidden] { display: none; }
.subgrid { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 -4px; font-size: 17px; font-weight: 700; }
.subgrid span { font-size: 13px; font-weight: 400; color: var(--t2); }
.subgrid + * { margin-top: 0; } .icons > .subgrid:not(:first-child) { margin-top: 14px; }
.qrpost:has(.qrcad) .qrbig { display: none; } /* cadangan: ketuk poster untuk layar penuh */
/* kolom daftar (Lagi Trending) boleh menyusut: nama produk panjang dipotong "…", halaman tidak melebar */
.lists { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.applist { min-width: 0; }
/* kartu grid: isi rapat ke atas, nama tepat 2 baris (baris ke-3 tidak terlihat separuh) */
.app { align-content: start; }
.app .nm { max-height: 32px; }
.msg.alasan { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; } .msg.alasan svg { flex: none; margin-top: 2px; }
.qrtuj { margin: 0 0 4px; color: var(--t2); font-size: 14px; } .qrtuj b { color: var(--txt); }
.warn.pasca { display: flex; align-items: center; gap: 6px; color: var(--peach); margin-bottom: 4px; }
.ftwa { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.tag.uji { background: color-mix(in srgb, var(--peach) 18%, transparent); color: var(--peach); }
.ujinote { margin: 8px 0 0; } .ujirow { grid-column: 1 / -1; } .ujirow .ujinote { margin: 0; }
.btn.big { min-height: 52px; font-size: 17px; } .hint.center { text-align: center; }
.ptanya { margin: 0 0 12px; }
.tujuan-besar { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; background: var(--g2); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.tujuan-besar b.mono { font-size: 26px; line-height: 1.2; letter-spacing: .04em; word-break: break-all; color: var(--txt); }
.tujuan-besar .nick { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ok, #34c759); }
/* teks tutorial & deskripsi produk (HTML aman dari teks-produk.js) */
.tp { color: rgba(235, 235, 245, .86); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.tp-h, .tp-p, .tp-ol, .tp-ul { margin: 0; }
.tp-h { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--tint-t); }
.tp-ol, .tp-ul { padding-left: 22px; display: grid; gap: 6px; }
.tp-ol li::marker { color: var(--tint-t); font-weight: 700; } .tp-ul li::marker { color: var(--tint-t); }
.tp-ol li, .tp-ul li { padding-left: 2px; }
/* jarak antarbagian (ditaruh setelah margin: 0 supaya tidak tertimpa) */
.tp > * + * { margin-top: 12px; }
.tp > * + .tp-h { margin-top: 16px; }
.tp > .tp-h + * { margin-top: 6px; }
