/*
 * HOPPS Mini App 2.0 — identitas "Ungu Emas" (latar sinar emas, judul serif emas) + kartu & dasbor baru.
 * Warna diisi oleh app.js (applyTheme) dari palet tema toko / tema panel admin, versi gelap atau terang.
 * Nilai di bawah = Ungu Emas gelap, dipakai sebelum data toko termuat. Kartu memakai warna padat supaya
 * animasi background tidak pernah menembus ke teks (kontras semua tema sudah dicek ≥ 4,5:1).
 */
:root {
  --bg: #12021f; --bg2: #1c0230; --hero: #3b0a57; --hero-card: #3b0a57; --acc: #d4af37; --acc2: #f3d36b; --on-acc: #1c0230; --title: #f3d36b;
  --card: #251038; --card2: rgba(255,255,255,.09); --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.16);
  --text: #f6f1ff; --muted: #c4b5d9; --green: #3ddc97; --red: #ff6b81; --blue: #6fa8ff; --orange: #ffb84d; --violet: #b58cff;
  --input: rgba(0,0,0,.28); --sw-off: rgba(255,255,255,.18); --chip-bg: rgba(255,255,255,.07);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ray: rgba(212,175,55,.07); --glow-acc: rgba(212,175,55,.16); --glow1: rgba(212,175,55,.13); --glow2: rgba(59,10,87,.35); --gridc: rgba(140,170,255,.07);
  --card-hi: color-mix(in srgb, var(--card) 88%, var(--text));
  --shadow: 0 10px 30px rgba(0,0,0,.22);
  --f: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --f-brand: Georgia, 'Times New Roman', serif;
  --f-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 20px;
}
body.light { --shadow: 0 8px 24px rgba(40,20,70,.08); --line2: rgba(0,0,0,.14); --violet: #6a3fc4; }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); min-height: 100%; }
body { font: 15px/1.45 var(--f); background: transparent; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
main { overflow-x: hidden; padding: 12px 16px calc(112px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
body.notabs main { padding-bottom: calc(96px + var(--safe-b)); }
/* Tombol CTA di atas tab bar: beri ruang supaya isi paling bawah tidak tertutup. */
body.hascta:not(.notabs) main { padding-bottom: calc(170px + var(--safe-b)); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--green); } .warn { color: var(--orange); } .bad { color: var(--red); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* Judul panjang di baris "kiri ↔ kanan" memendek (elipsis) dan tidak pernah menimpa label status/waktu di kanan. */
.between > .ellipsis, .between > h4, .between > b, .between > h3 { min-width: 0; }
.between > .ellipsis { flex: 1; }
.between > .st, .between > .tag, .between > .sub, .between > .btn.sm, .between > .copy, .between > .sw, .between > span.p, .between > .n { flex: none; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt { margin-top: 12px; } .mt2 { margin-top: 20px; } .mb { margin-bottom: 12px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.num { font-variant-numeric: tabular-nums; }
h2 { font-size: 19px; letter-spacing: -.01em; line-height: 1.25; }
h3 { font-size: 16px; letter-spacing: -.01em; line-height: 1.3; }

/* boot & loading */
.boot { min-height: 70vh; display: grid; place-items: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card2); border-top-color: var(--acc); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--card), var(--card-hi), var(--card)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.fade { animation: fade .26s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ───────── Bilah atas (judul serif emas) ───────── */
.topbar { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; min-height: 48px; }
.topbar .tt { flex: 1; min-width: 0; }
.topbar h1, .topbar h2 { font: 700 22px/1.15 var(--f-brand); letter-spacing: .05em; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar p { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); position: relative; font-size: 18px; }
.ib svg { width: 20px; height: 20px; }
.ib .dot { top: -4px; right: -4px; }

/* header & hero */
.hero { border-radius: 24px; padding: 18px; position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--acc) 35%, var(--line));
  background: radial-gradient(circle at 15% 20%, var(--glow-acc), transparent 55%), linear-gradient(135deg, var(--hero-card), var(--card)); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 88% 10%, color-mix(in srgb, var(--acc) 12%, transparent) 0 3.5deg, transparent 3.5deg 15deg); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%); animation: shine 5s infinite; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hero h1 { font-family: var(--f-brand); color: var(--title); font-size: 26px; letter-spacing: .06em; line-height: 1.15; word-break: break-word; }
.hero p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pills { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pill { font-size: 11px; font-weight: 700; border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); color: var(--acc2); border-radius: 99px; padding: 4px 10px; background: color-mix(in srgb, var(--acc) 10%, transparent); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 14px; min-height: 42px; }
.head h2 { font: 700 21px/1.2 var(--f-brand); letter-spacing: .04em; color: var(--title); min-width: 0; overflow-wrap: anywhere; }
.head .small.muted + h2, .head h2.ellipsis { font-family: var(--f); letter-spacing: -.01em; color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); color: var(--acc2); white-space: nowrap; background: color-mix(in srgb, var(--acc) 8%, transparent); }
.tag.tbtn { cursor: pointer; }
/* ← Kembali: tombol bulat dengan panah, rapi di kiri atas */
.backlink { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; }

/* stats & kpi */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 11px 6px; text-align: center; cursor: pointer; min-width: 0; }
.stat b { display: block; font-size: 15px; color: var(--acc2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 11px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 13px 14px; min-width: 0; position: relative; overflow: hidden; }
.kpi[data-a] { cursor: pointer; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 20px; margin-top: 3px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { display: block; font-size: 11px; margin-top: 2px; font-weight: 600; }
.kpi.hero2 { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--acc) 40%, var(--line));
  background: radial-gradient(circle at 90% 0%, var(--glow-acc), transparent 60%), linear-gradient(135deg, var(--hero-card), var(--card)); }
.kpi.hero2 b { font-size: 28px; color: var(--acc2); }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; width: 42%; height: 34px; opacity: .9; }

/* inputs */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; margin-top: 14px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { background: none; border: 0; outline: none; flex: 1; padding: 13px 0; font-size: 14.5px; min-width: 0; }
.search input::placeholder, .f::placeholder { color: var(--muted); opacity: .8; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.f { width: 100%; background: var(--input); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.f:focus { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent); }
textarea.f { min-height: 100px; resize: vertical; line-height: 1.45; }
textarea.mono { font-family: var(--f-mono); font-size: 12.5px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

/* chips & segments */
.chips { display: flex; gap: 8px; margin: 12px -16px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; color: var(--muted); transition: background .15s, color .15s; }
.chip.on { background: var(--text); color: var(--bg); font-weight: 800; border-color: var(--text); }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin: 12px 0; gap: 4px; }
.seg div { flex: 1; text-align: center; padding: 9px 4px; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); min-width: 0; }
.seg div.on { background: var(--acc); color: var(--on-acc); font-weight: 800; }

/* katalog */
.announce { margin: 14px 0; padding: 11px 13px; border-radius: 16px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--acc) 50%, transparent); }
.sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 22px 2px 10px; }
.sec h3 { font: 700 18px/1.25 var(--f-brand); letter-spacing: .02em; color: var(--title); min-width: 0; }
.sec span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sec .link { font-weight: 700; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 13px; cursor: pointer; position: relative; transition: transform .12s, border-color .15s; min-width: 0; box-shadow: var(--shadow); }
.card:active, .item:active, .mi:active, .qa > div:active, .fcard:active { transform: scale(.97); }
.card.off { opacity: .55; }
.icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 28%, transparent), color-mix(in srgb, var(--hero) 70%, transparent)); }
.card .icon { margin-bottom: 10px; }
/* 🖼 Logo produk: latar putih supaya logo transparan/gelap tetap terlihat di tema apa pun. */
.plogo { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; padding: 10%; box-sizing: border-box; }
.plogo.in { display: inline-block; width: 1.3em; height: 1.3em; border-radius: 6px; padding: 1px; vertical-align: -0.3em; }
.icon.lg { width: 72px; height: 72px; font-size: 36px; border-radius: 20px; }
.card h4 { font-size: 14px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.price { color: var(--acc2); font-weight: 800; font-size: 15px; margin-top: 4px; letter-spacing: -.01em; }
.price small { color: var(--muted); font-weight: 500; font-size: 11px; }
.price s { font-weight: 500; }
.meta { font-size: 11px; color: var(--muted); margin-top: 7px; display: flex; gap: 6px 8px; flex-wrap: wrap; font-weight: 600; }
.badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 99px; letter-spacing: .02em; max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-hot { background: #ff7a3d; color: #fff; } .b-new { background: var(--blue); color: #fff; } .b-low { background: var(--red); color: #fff; } .b-promo { background: var(--green); color: #04261a; }
.empty { text-align: center; color: var(--muted); padding: 44px 18px; font-size: 14px; }
.empty .big { font-size: 46px; margin-bottom: 10px; }

/* ───────── Beranda: aksi cepat ───────── */
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.qa > div { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px 11px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; text-align: center; cursor: pointer; position: relative; min-width: 0; line-height: 1.2; transition: transform .12s; }
.qa > div > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa .qi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; }
.qa .qi svg { width: 20px; height: 20px; }
.qa .dot { top: 6px; right: 8px; }

/* detail produk */
.phead { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phead .icon { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }
.phead h2 { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; overflow-wrap: anywhere; }
.desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 12px 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; white-space: pre-wrap; word-break: break-word; }
.desc.clamp { max-height: 100px; overflow: hidden; position: relative; cursor: pointer; }
.desc.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--card)); }
.var { border: 2px solid var(--line); border-radius: 20px; padding: 13px 14px 13px 46px; margin-bottom: 10px; cursor: pointer; background: var(--card); position: relative; transition: border-color .15s, box-shadow .15s; }
.var::before { content: ''; position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line2); box-sizing: border-box; }
.var.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, var(--card)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent); }
.var.on::before { border: 6px solid var(--acc); }
.var.off { opacity: .55; }
.var h4 { font-size: 15px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.var .p { color: var(--acc2); font-weight: 800; white-space: nowrap; font-size: 15px; }
.var s { color: var(--muted); font-size: 12px; font-weight: 500; }
.save { font-size: 11.5px; color: var(--green); margin-top: 3px; font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.t { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 9px; background: var(--chip-bg); color: var(--muted); }

/* sheet-like box */
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; margin-top: 12px; box-shadow: var(--shadow); }
.box h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.box h4 span { color: var(--muted); font-weight: 500; font-size: 12px; }
.box .box { box-shadow: none; background: var(--input); }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; padding: 7px 0; }
.line > span:first-child { color: var(--muted); flex-shrink: 0; max-width: 55%; }
.line > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.line.total { border-top: 1px dashed var(--line2); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 17px; }
.line.total > :last-child { color: var(--acc2); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--input); border: 1px solid var(--line); border-radius: 14px; padding: 3px; }
.qty b { min-width: 26px; text-align: center; }
.qty button { width: 32px; height: 32px; border-radius: 11px; border: 0; background: var(--card-hi); font-size: 18px; font-weight: 700; }
.pay { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; border: 2px solid var(--line); margin-bottom: 9px; cursor: pointer; background: var(--card); transition: border-color .15s; }
.pay.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 9%, var(--card)); }
.pay.dis { opacity: .55; }
.pay .ic { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--chip-bg); }
.pay b { font-size: 14.5px; }
.pay small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pay .rd { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); flex: none; box-sizing: border-box; }
.pay.on .rd { border: 7px solid var(--acc); }
.voucher { display: flex; gap: 8px; }
.voucher .f { flex: 1; min-width: 0; }

/* buttons */
.btn { border: 0; border-radius: 15px; padding: 13px 14px; font-size: 14.5px; font-weight: 700; background: var(--card2); text-align: center; width: 100%; transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn.pri { background: linear-gradient(90deg, var(--acc), var(--acc2)); color: var(--on-acc); font-weight: 800; box-shadow: 0 8px 22px color-mix(in srgb, var(--acc) 28%, transparent); }
.btn.okb { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.btn.badb { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
.btn.sm { padding: 9px 13px; font-size: 13px; width: auto; border-radius: 12px; }
.btn:disabled { opacity: .5; }
.btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.btns .full { grid-column: 1 / -1; }
.btns:empty { display: none; }
.cta { position: fixed; left: 16px; right: 16px; bottom: calc(88px + var(--safe-b)); max-width: 528px; margin: 0 auto; min-height: 54px; padding: 0 18px; border-radius: 18px; border: 0; z-index: 6;
  font-size: 16px; font-weight: 800; color: var(--on-acc); background: linear-gradient(90deg, var(--acc), var(--acc2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--acc) 38%, transparent), 0 0 0 1px rgba(255,255,255,.12) inset;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.notabs .cta { bottom: calc(16px + var(--safe-b)); }
.cta:disabled { opacity: .55; }
.cta:active { transform: scale(.985); }

/* QRIS */
.qris { background: #fff; border-radius: 24px; padding: 16px; text-align: center; color: #1c0230; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.qris img { width: 100%; max-width: 340px; border-radius: 12px; display: block; margin: 0 auto; min-height: 240px; }
.qtime { margin-top: 14px; text-align: center; }
.qtime .tl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.qtime b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--acc2); line-height: 1.15; }
.qbar { height: 6px; border-radius: 99px; background: var(--chip-bg); overflow: hidden; margin-top: 10px; }
.qbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width 1s linear; }
.timer { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; font-weight: 600; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pl 1s infinite; vertical-align: 1px; }
@keyframes pl { 50% { opacity: .2; } }
.success { text-align: center; padding-top: 10px; }
.success .big { font-size: 64px; animation: pop .6s ease; }
.success h2 { margin-top: 6px; }
.okbig { width: 92px; height: 92px; border-radius: 50%; margin: 8px auto 6px; display: grid; place-items: center; color: var(--green); animation: pop .6s ease;
  background: radial-gradient(circle, color-mix(in srgb, var(--green) 22%, transparent), transparent 70%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--green) 45%, transparent); }
.okbig svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(.2); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.field { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--input); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; margin-bottom: 8px; font-size: 14px; }
.field span { color: var(--muted); font-size: 11.5px; font-weight: 600; display: block; text-transform: uppercase; letter-spacing: .04em; }
.field b { word-break: break-all; font-family: var(--f-mono); font-weight: 600; font-size: 13.5px; }
/* 🙈 Data akun diburamkan sampai diketuk (aman saat layar dilihat orang lain); tombol Salin tetap bisa dipakai. */
.accs.blur .field b, .accs.blur .field .pre { filter: blur(6px); user-select: none; }
.reveal { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; border: 1px dashed var(--line2); border-radius: 12px; background: none; color: var(--acc2); font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.accs:not(.blur) .reveal { display: none; }
.copy { border: 0; background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc2); border-radius: 11px; padding: 8px 12px; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; width: 8px; height: 12px; top: -20px; animation: fall 1.8s linear forwards; border-radius: 2px; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ───────── Cincin sisa garansi: angka + "hari" ditumpuk rapi di tengah ───────── */
.dring { width: 56px; height: 56px; flex: none; position: relative; }
.dring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.dring b { position: absolute; inset: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 15px; font-weight: 800; line-height: 1; text-align: center; letter-spacing: -.02em; white-space: nowrap; }
.dring b.s3 { font-size: 13px; }
.dring b small { display: block; font-size: 9px; font-weight: 700; line-height: 1; color: var(--muted); letter-spacing: .02em; }

/* daftar */
.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px; cursor: pointer; display: block; box-shadow: var(--shadow); transition: transform .12s; }
.item h4 { font-size: 14.5px; font-weight: 800; word-break: break-word; }
.item .icon { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--card2); color: var(--muted); }
.s-ok { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); } .s-wait { background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); }
.s-bad { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); } .s-info { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.infobox { background: color-mix(in srgb, var(--blue) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--blue) 50%, transparent); border-radius: 14px; padding: 11px 12px; font-size: 13px; margin-top: 10px; overflow-wrap: anywhere; }
.warnbox { background: color-mix(in srgb, var(--orange) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--orange) 50%, transparent); border-radius: 14px; padding: 11px 12px; font-size: 13px; margin-top: 10px; overflow-wrap: anywhere; }
.avatar { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; color: var(--on-acc); background: linear-gradient(135deg, var(--acc2), var(--acc)); }
.avatar.lg { width: 58px; height: 58px; border-radius: 19px; font-size: 22px; }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.mi { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; cursor: pointer; position: relative; min-width: 0; transition: transform .12s; box-shadow: var(--shadow); }
.mi i { font-style: normal; font-size: 20px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 10px; background: color-mix(in srgb, var(--acc) 14%, transparent); }
.mi b { font-size: 14px; font-weight: 800; display: block; overflow-wrap: anywhere; line-height: 1.25; }
.mi small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
/* Menu daftar (Profil): baris dengan ikon kiri & panah kanan */
.menu.list { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 4px 0; box-shadow: var(--shadow); }
.menu.list .mi { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 12px 14px; }
.menu.list .mi + .mi { border-top: 1px solid var(--line); }
.menu.list .mi i { margin: 0; width: 38px; height: 38px; font-size: 18px; border-radius: 12px; flex: none; }
.menu.list .mi b { flex: 1; font-size: 14.5px; font-weight: 700; }
.menu.list .mi .mr { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.menu.list .mi::after { content: '›'; font-size: 22px; line-height: 1; color: var(--muted); margin-left: 4px; }
.menu.list .tgtag { position: static; margin-left: 4px; }
.menu.list .dot { position: static; }
.dot { position: absolute; top: 9px; right: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 2px 7px; line-height: 1.4; box-shadow: 0 0 0 2px var(--bg); }
.mgrp { font: 700 12px var(--f); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 8px; }

/* hadiah isi saldo & member */
.perks .pk { font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.perks .pk:last-of-type { border-bottom: 0; }
.gain { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--text); font-size: 13px; border: 1px solid color-mix(in srgb, var(--acc) 60%, transparent); }
.mbar, .member .mbar { height: 8px; border-radius: 99px; background: var(--sw-off); overflow: hidden; }
.mbar i, .member .mbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.lvls { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.lvls span { flex: 1; min-width: 70px; text-align: center; font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.lvls span.on { border-color: var(--acc); color: var(--text); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.lvls small { display: block; font-weight: 500; font-size: 10.5px; margin-top: 2px; }
.vip { color: var(--acc2); font-weight: 700; }
/* Nominal isi saldo */
.amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amts > div { padding: 13px 4px 11px; border-radius: 16px; background: var(--card); border: 2px solid var(--line); text-align: center; cursor: pointer; min-width: 0; }
.amts > div b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; }
.amts > div small { display: block; font-size: 10.5px; color: var(--green); font-weight: 700; margin-top: 2px; min-height: 14px; }
.amts > div.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--card)); }

/* ── 💰 Panel isi saldo ── */
.tup { position: relative; margin-top: 16px; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 7%, var(--card)), var(--card) 46%); border: 1px solid color-mix(in srgb, var(--acc) 26%, var(--line)); box-shadow: var(--shadow); overflow: hidden; }
.tup::before { content: ''; position: absolute; inset: -60px -40px auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent); pointer-events: none; }
.tup > * { position: relative; }
.tup-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tup-t { display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--f-brand); color: var(--title); letter-spacing: .02em; min-width: 0; }
.tup-t .qi { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc2); }
.tup-t .qi svg { width: 18px; height: 18px; }
.tup-amt { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 0; padding: 12px 16px; border-radius: 18px; background: var(--input); border: 1.5px solid var(--line); cursor: text; transition: border-color .15s, box-shadow .15s; font-size: inherit; color: inherit; }
.tup-amt:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 16%, transparent); }
.tup-amt span { font-size: 20px; font-weight: 800; color: var(--muted); }
.tup-amt input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--acc2); caret-color: var(--acc); }
.tup-amt input::placeholder { color: var(--muted); opacity: .5; }
.tup-after { min-height: 20px; margin: 8px 4px 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tup-after b { color: var(--text); }
.tup-after .bon { font-size: 11.5px; font-weight: 800; color: var(--green); padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--green) 14%, transparent); }
.tup .amts { gap: 8px; }
.tup .amts > div { position: relative; padding: 12px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--chip-bg); transition: border-color .15s, background .15s, transform .1s; }
.tup .amts > div:active { transform: scale(.97); }
.tup .amts > div b { font-size: 15.5px; }
.tup .amts > div small { position: absolute; top: -8px; right: 6px; min-height: 0; margin: 0; padding: 2px 6px; border-radius: 99px; font-size: 9.5px; line-height: 1.3; color: #04261a; background: var(--green); }
.tup .amts > div.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc2); }
.tup-l { margin: 18px 4px 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mth.one { grid-template-columns: 1fr; }
.mth > div { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--chip-bg); cursor: pointer; min-width: 0; transition: border-color .15s, background .15s; }
.mth > div.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.mth .ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: var(--card2); }
.mth .mt-x { flex: 1; min-width: 0; }
.mth b { display: block; font-size: 14px; }
.mth small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mth .rd { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); box-sizing: border-box; }
.mth .on .rd { border: 5px solid var(--acc); }
.mth.one .rd { display: none; }
.tup-sum { margin: 16px 0 14px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--bg) 30%, transparent); }
.tup-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); padding: 3px 0; }
.tup-sum > div b { color: var(--text); font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.tup-sum > div b.ok { color: var(--green); }
.tup-sum .tot { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); font-weight: 700; }
.tup-sum .tot b { font-size: 20px; font-weight: 800; color: var(--acc2); }
.tup-go { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-size: 15.5px; border-radius: 16px; }
.tup-go svg { width: 18px; height: 18px; }
.tup-go:disabled { opacity: .55; box-shadow: none; }
.tup-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.tiers > div { padding: 11px 8px; border-radius: 15px; text-align: center; border: 1.5px solid var(--line); background: var(--chip-bg); cursor: pointer; transition: border-color .15s, background .15s; min-width: 0; }
.tiers small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tiers b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; color: var(--green); }
.tiers > div.hit { border-color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tier-max { margin: 10px 2px 2px; font-size: 12px; color: var(--muted); text-align: center; }
.tiers + .tier-max + .pk, .tiers + .pk { margin-top: 8px; border-top: 1px dashed var(--line); }
.perks .pk { display: flex; gap: 10px; align-items: flex-start; }
.perks .pki { flex: none; width: 22px; text-align: center; }
body.light .tup-sum { background: color-mix(in srgb, var(--acc) 5%, transparent); }

/* 🌐 login browser */
a.btn { display: block; text-decoration: none; color: inherit; }
a.btn.pri { color: var(--on-acc); }
.btn.tgb { background: #2aabee; color: #fff; display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }
.login { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 20px 6px; }
.login .logo, .dlogin .logo { margin: 0 auto 12px; }
.ltitle { font: 700 28px var(--f-brand); color: var(--title); letter-spacing: .08em; word-break: break-word; }
.login .perks, .dlogin .perks { text-align: left; margin-top: 18px; }
.dlogin { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: 80vh; max-width: 900px; margin: 0 auto; }
.dlogin > div:first-child { text-align: center; }
.qrbox { background: #fff; border-radius: 20px; padding: 12px; width: 240px; height: 240px; margin: 0 auto; }
.qrbox img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.tgtag { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: #2aabee; border: 1px solid #2aabee; border-radius: 99px; padding: 1px 7px; }
.link { color: var(--acc2); text-decoration: underline; cursor: pointer; }

/* ⏳ sisa masa sewa (dasbor penyewa) */
.rentbox { margin-top: 0; }
.rentbox.rb-warn { border-color: var(--orange); }
.rentbox.rb-bad { border-color: var(--red); }
.cdl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 8px; }
.cdl span { background: var(--input); border: 1px solid var(--line); border-radius: 14px; padding: 9px 4px; text-align: center; min-width: 0; }
.cdl b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--acc2); line-height: 1.1; }
.rb-warn .cdl b { color: var(--orange); }
.rb-bad .cdl b { color: var(--red); }
.cdl small { font-size: 11px; color: var(--muted); }
.cdl > b.bad { grid-column: 1 / -1; font-size: 14px; color: var(--red); text-align: center; }

/* 🩺 status sistem */
.hbox.h-warn { border-color: var(--orange); }
.hbox.h-bad { border-color: var(--red); }
.hfix { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--chip-bg); font-size: 13px; overflow-wrap: anywhere; }
.hfix b { display: block; margin-bottom: 4px; color: var(--acc2); }
.hrow { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hrow:last-child { border-bottom: 0; }
.hrow summary { cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.hrow summary::-webkit-details-marker { display: none; }
.warnbox.hbad { border-color: var(--red); cursor: pointer; }

/* dashboard */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; font-size: 9.5px; color: var(--muted); min-width: 0; font-variant-numeric: tabular-nums; }
.bar i { width: 100%; max-width: 30px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--acc2), color-mix(in srgb, var(--acc) 55%, transparent)); transform-origin: bottom; animation: grow .6s ease both; }
.bar.today i { background: linear-gradient(180deg, var(--acc2), var(--acc)); box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 60%, transparent); }
@keyframes grow { from { transform: scaleY(0); } }
.todo { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; }
.todo:last-child { border: 0; }
.todo .n { margin-left: auto; min-width: 28px; text-align: center; font-weight: 800; padding: 3px 9px; border-radius: 99px; font-size: 12px; background: var(--card2); color: var(--muted); flex: none; }
.n.hot { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.todo .ti { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 17px; background: var(--chip-bg); }
.top { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.top .track { flex: 1; height: 8px; background: var(--chip-bg); border-radius: 99px; overflow: hidden; }
.top .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); border-radius: 99px; }
.top b { min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }

/* stok & chat */
.stockrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.stockrow > span { min-width: 0; overflow-wrap: anywhere; }
button.x { border: 0; background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; flex-shrink: 0; font-family: var(--f); }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.tagc { display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); margin: 3px 3px 0 0; cursor: pointer; }
.tagc.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); font-weight: 800; }
.msgs { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.msg.in { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg.close { align-self: center; background: none; color: var(--muted); font-size: 12px; }
.msg small { display: block; font-size: 10px; opacity: .7; margin-top: 2px; }
.send { display: flex; gap: 8px; position: sticky; bottom: calc(92px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 8px 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.notabs .send { bottom: calc(8px + var(--safe-b)); }
.send .f { flex: 1; }
.tog { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tog:last-child { border: 0; }
.tog > :first-child { min-width: 0; overflow-wrap: anywhere; }
.sw { width: 48px; height: 28px; border-radius: 99px; background: var(--sw-off); position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.sw::after { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.sw.on { background: var(--green); }
.sw.on::after { left: 23px; }
.photo { width: 100%; border-radius: 14px; margin-top: 8px; background: var(--card); min-height: 80px; display: block; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

/* ───────── Tab bar mengambang ───────── */
.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); max-width: 536px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); z-index: 5;
  height: 66px; padding: 6px; gap: 2px; border-radius: 24px; border: 1px solid var(--line2);
  background: color-mix(in srgb, var(--bg2) 86%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }
body.light .tabs { background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: 0 12px 30px rgba(40,20,70,.14); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; background: none; border: 0; border-radius: 18px; min-width: 0; transition: color .15s, background .15s; }
.tab > span:not(.dot) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab i { font-style: normal; font-size: 19px; line-height: 1; display: grid; place-items: center; height: 22px; }
.tab i svg { width: 22px; height: 22px; }
.tab.on { color: var(--acc2); background: color-mix(in srgb, var(--acc) 14%, transparent); }
.tab .dot { top: 4px; right: calc(50% - 22px); }

/* bottom sheet */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; display: none; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.overlay.on { display: block; animation: ovin .2s ease; }
@keyframes ovin { from { opacity: 0; } }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow-y: auto; overflow-x: hidden; max-width: 560px; margin: 0 auto;
  background: var(--bg2); border-radius: 28px 28px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); border-top: 1px solid var(--line2); animation: up .28s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -20px 50px rgba(0,0,0,.35); }
.sheet h3 { font-size: 18px; margin-bottom: 4px; overflow-wrap: anywhere; }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 42px; height: 5px; border-radius: 9px; background: var(--sw-off); margin: 0 auto 14px; }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(12,8,20,.94); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 600;
  z-index: 40; display: none; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.toast.on { display: block; animation: fade .2s ease; }
.err { text-align: center; padding: 60px 20px; }
.err .big { font-size: 52px; margin-bottom: 10px; }

/* ───────── Background bergerak (halus) ───────── */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(130% 65% at 50% -8%, var(--hero) 0%, var(--bg2) 42%, var(--bg) 100%); }
#bg .rays { position: absolute; left: 50%; top: -75vmax; width: 150vmax; height: 150vmax; margin-left: -75vmax; border-radius: 50%;
  background: repeating-conic-gradient(var(--ray) 0deg 3.5deg, transparent 3.5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 30%, transparent 62%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.55) 30%, transparent 62%);
  animation: spin 180s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }
#bg .orb { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
#bg .o1 { background: radial-gradient(circle, var(--glow1) 0, transparent 62%); left: -30vmax; top: 8vh; animation: drift1 28s ease-in-out infinite alternate; }
#bg .o2 { background: radial-gradient(circle, var(--glow2) 0, transparent 62%); right: -35vmax; bottom: -25vmax; animation: drift2 34s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(25vmax, 22vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vmax, -28vh) scale(.9); } }
#bg .spark { position: absolute; bottom: -10px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 6px var(--acc); opacity: 0; animation: rise linear infinite; will-change: transform, opacity; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .75; } 75% { opacity: .45; } 100% { transform: translateY(-108vh); opacity: 0; } }
#bg .grid { position: absolute; inset: -40px;
  background-image: linear-gradient(var(--gridc) 1px, transparent 1px), linear-gradient(90deg, var(--gridc) 1px, transparent 1px); background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 50%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 50%, transparent 90%);
  animation: pan 9s linear infinite; will-change: transform; }
@keyframes pan { to { transform: translate(32px, 32px); } }
/* 🌟 Kilau: titik-titik berkelip pelan */
#bg .star { position: absolute; border-radius: 50%; background: var(--acc2); opacity: .15; animation: tw 4s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .8; } }
/* 🌊 Ombak: dua lapis gelombang samar di bawah */
#bg .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 40vh; }
#bg .waves i { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; background-repeat: repeat-x; background-size: 50% 100%; animation: wave linear infinite; will-change: transform; }
@keyframes wave { to { transform: translateX(-50%); } }
body.light #bg .spark { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { #bg *, .logo, .mc::before, .mc::after { animation: none !important; } }

/* ───────── Panel admin ───────── */
body.admin.control #bg .spark { background: #9dbcff; box-shadow: 0 0 6px #5b8cff; }

/* ───────── Pilihan tema ───────── */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.th { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--input); border: 2px solid var(--line); cursor: pointer; min-width: 0; }
.th > div { min-width: 0; }
.th.on { border-color: var(--acc); box-shadow: 0 0 0 3px var(--glow-acc); }
.th b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th small { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swt { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
body.admin::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 7; background: linear-gradient(90deg, transparent, var(--acc), transparent); }

/* ───────── Logo ───────── */
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; min-width: 0; }
.logo { width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 0 20px var(--glow-acc); animation: glowp 4s ease-in-out infinite; }
@keyframes glowp { 50% { box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 30px var(--acc); } }
.logo.sm { width: 40px; height: 40px; animation: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 35%, transparent), 0 0 12px var(--glow-acc); }
.logo.md { width: 46px; height: 46px; }
.logo.big { width: 104px; height: 104px; }
/* Logo monogram toko (bukan kolom teks .mono di form stok). */
.mono:not(textarea) { display: grid; place-items: center; font: 700 26px var(--f-brand); color: var(--on-acc); background: linear-gradient(135deg, var(--acc2), var(--acc)); }
.mono.sm:not(textarea) { font-size: 17px; }
.mono.md:not(textarea) { font-size: 20px; }
.boot .wrap { text-align: center; }
.boot .spin { margin: 18px auto 0; }

/* ───────── Promosi: banner, flash sale, voucher ───────── */
.banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 14px 0 0; scrollbar-width: none; border-radius: 22px; }
.banners::-webkit-scrollbar { display: none; }
.bn { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: 22px; overflow: hidden; min-height: 100px; cursor: pointer;
  background: radial-gradient(circle at 90% 10%, var(--glow-acc), transparent 60%), linear-gradient(135deg, var(--hero), var(--bg2)); border: 1px solid var(--line); display: flex; align-items: flex-end; }
.bn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn.img { aspect-ratio: 2 / 1; }
.bn-t { position: relative; padding: 14px 16px; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.bn.img .bn-t { background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.bn-t b { font-size: 16px; color: var(--acc2); overflow-wrap: anywhere; }
.bn-t span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.bn:not(.img) .bn-t b { color: var(--title); font-family: var(--f-brand); font-size: 18px; letter-spacing: .02em; }
.bn.img .bn-t b { color: #fff; } .bn.img .bn-t span { color: #f1edf7; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sw-off); transition: .2s; }
.dots i.on { width: 18px; border-radius: 99px; background: var(--acc); }
.flash { margin: 18px 0 4px; padding: 14px; border-radius: 24px; border: 1px solid rgba(255,122,61,.45);
  background: linear-gradient(135deg, rgba(255,122,61,.18), rgba(255,184,77,.05)); }
.flash h3 { font-size: 16px; font-weight: 800; }
.flash .cd { font-size: 12px; color: var(--orange); font-weight: 700; white-space: nowrap; }
.flash .cd b { font-family: var(--f-mono); font-size: 13px; background: rgba(0,0,0,.42); padding: 3px 7px; border-radius: 8px; color: #fff; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 12px -14px 0; padding: 0 14px 2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 140px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 11px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: transform .12s; }
.fcard .icon { width: 40px; height: 40px; font-size: 20px; margin-bottom: 6px; border-radius: 13px; }
.fcard b { font-size: 13px; font-weight: 800; }
.fcard s { font-size: 11px; color: var(--muted); }
.fcard .price { margin: 0; }
.fcard .off { position: absolute; top: 9px; right: 9px; background: #ff4d4d; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 99px; }
.b-flash { background: linear-gradient(90deg, #ff7a3d, #ffb84d); color: #2b0d00; }
.flashline { font-size: 12px; color: var(--orange); margin-top: 4px; font-weight: 600; }
.flashline b { font-family: var(--f-mono); }
.popup { text-align: center; }
.popup img { width: 100%; border-radius: 16px; margin-bottom: 12px; }
.popup .big { font-size: 56px; }
.popup h3 { font-size: 19px; }
.voucher-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: 18px; position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 16%, transparent), var(--card)); border: 1.5px dashed var(--acc); }
.vc-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-l b { font-family: var(--f-mono); font-size: 16px; color: var(--acc2); letter-spacing: 1px; overflow-wrap: anywhere; }
.vc-l span { font-size: 12px; color: var(--muted); }
select.f { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select.f option { background: var(--bg2); color: var(--text); }
input[type="file"].f { padding: 9px; font-size: 13px; }
/* Pratinjau S&K (HTML Telegram) */
.tgpre { white-space: pre-wrap; color: var(--text); }
.tgpre code { background: var(--chip-bg); padding: 1px 5px; border-radius: 5px; font-family: var(--f-mono); font-size: 12.5px; }
.tgpre blockquote { border-left: 3px solid var(--acc); padding-left: 8px; margin: 4px 0; color: var(--muted); }
.spoiler { background: var(--card2); color: transparent; border-radius: 4px; }
.spoiler:hover, .spoiler:active { color: inherit; }
/* 🗃 Produk & Stok: tombol ➕ cepat per varian */
.qadd { min-width: 34px; padding: 4px 8px !important; margin: 0 !important; }
span.qadd { display: inline-block; }
.nowrap { white-space: nowrap; }
.pcard .vrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px 38px; align-items: center; gap: 8px; }
.pcard .vrow > .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pcard .vrow .st { white-space: nowrap; justify-self: center; text-align: center; min-width: 46px; justify-content: center; }
.pcard .vrow .nowrap { text-align: right; font-variant-numeric: tabular-nums; }
.pcard .vrow .st.wide { grid-column: 3 / 5; justify-self: stretch; min-width: 0; }

/* ↕️ Urutan katalog */
.ordrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; }
.ordrow > .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordrow .btn.sm { margin: 0; padding: 4px 9px; }
.ordrow.moved { background: var(--chip-bg); border-radius: 8px; }
.btn[disabled] { opacity: .4; }

/* ═════════ 🪪 Kartu member (beberapa template, dipilih owner; customer boleh memilih bila diizinkan) ═════════ */
.mc { position: relative; border-radius: 26px; padding: 20px; overflow: hidden; color: var(--text); transition: transform .15s ease-out; cursor: pointer; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: 0 22px 50px rgba(0,0,0,.32);
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 55%), linear-gradient(135deg, var(--hero-card), var(--bg2) 60%, var(--card)); }
body.light .mc { box-shadow: 0 16px 36px rgba(40,20,70,.14); }
.mc::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg at 88% 10%, color-mix(in srgb, var(--acc) 13%, transparent) 0 3.5deg, transparent 3.5deg 15deg); }
.mc::after { content: ''; position: absolute; inset: -40%; z-index: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, color-mix(in srgb, var(--text) 13%, transparent) 50%, transparent 60%); animation: shine2 5s infinite; }
@keyframes shine2 { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
.mc > * { position: relative; z-index: 1; }
.mc .r1 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc .tier { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc2);
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.mc .lbl { margin-top: 18px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mc .bal { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--acc2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .bal.long { font-size: 30px; }
.mc .meta3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.mc .meta3 b { display: block; font-size: 15px; margin-top: 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc .cl { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc) 50%, transparent); font-size: 17px; }
.mc .prog { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--text) 12%, transparent); margin-top: 14px; overflow: hidden; }
.mc .prog i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--acc), var(--acc2)); }

.mc.ct-kredit { aspect-ratio: 1.586; min-height: min-content; padding: 18px 20px; display: flex; flex-direction: column; border-radius: 22px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 55%), linear-gradient(135deg, var(--hero), var(--hero-card) 50%, var(--bg2)); }
.mc.ct-kredit::before { background: repeating-radial-gradient(circle at 110% 120%, transparent 0 10px, color-mix(in srgb, var(--acc) 12%, transparent) 10px 11px); }
.ct-kredit .emv { display: block; width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f6e2a0, #c99b3c 55%, #f0d78c); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.ct-kredit .emv::before { content: ''; position: absolute; inset: 9px 0; border-top: 1px solid rgba(0,0,0,.28); border-bottom: 1px solid rgba(0,0,0,.28); }
.ct-kredit .emv::after { content: ''; position: absolute; inset: 0 14px; border-left: 1px solid rgba(0,0,0,.28); border-right: 1px solid rgba(0,0,0,.28); }
.ct-kredit .nfc { color: var(--muted); width: 22px; height: 22px; }
.ct-kredit .brandr { display: flex; align-items: center; gap: 8px; font-family: var(--f-brand); font-weight: 700; letter-spacing: .12em; color: var(--acc2); font-size: 13px; min-width: 0; }
.ct-kredit .brandr > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.ct-kredit .brandr .cl { width: 30px; height: 30px; font-size: 13px; }
.ct-kredit .lbl { margin-top: auto; padding-top: 12px; }
.ct-kredit .bal { font-size: 30px; }
.ct-kredit .cno { font-family: var(--f-mono); font-size: 14.5px; letter-spacing: .12em; color: var(--text); margin-top: 6px; white-space: nowrap; }
.ct-kredit .cbot { display: grid; grid-template-columns: minmax(0, 1.6fr) auto auto; gap: 14px; margin-top: 10px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.ct-kredit .cbot b { display: block; font-size: 12px; color: var(--text); letter-spacing: .06em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc.ct-kaca { background: color-mix(in srgb, var(--card) 45%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border: 1px solid var(--line2);
  box-shadow: 0 20px 50px rgba(0,0,0,.25), inset 0 1px 0 color-mix(in srgb, var(--text) 18%, transparent); }
.mc.ct-kaca::before { inset: auto; width: 230px; height: 230px; right: -70px; top: -100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 45%, transparent), transparent 65%); animation: blob 9s ease-in-out infinite alternate; }
.mc.ct-kaca::after { inset: auto; width: 210px; height: 210px; left: -80px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 40%, transparent), transparent 65%); animation: blob 11s ease-in-out infinite alternate-reverse; }
@keyframes blob { from { transform: none; } to { transform: translate(-30px, 24px) scale(1.15); } }
.ct-kaca .hi { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ct-kaca .av { width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: color-mix(in srgb, var(--text) 12%, transparent); border: 1px solid var(--line2); color: var(--text); }
.ct-kaca .hi > div { min-width: 0; }
.ct-kaca .hi small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.ct-kaca .hi b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-kaca .tier { max-width: 45%; }
.ct-kaca .meta3 > div { padding: 9px; border-radius: 14px; background: color-mix(in srgb, var(--text) 7%, transparent); border: 1px solid var(--line); font-size: 10.5px; min-width: 0; }
.ct-kaca .meta3 b { font-size: 13px; }

.mc.ct-minimal { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mc.ct-minimal::before, .mc.ct-minimal::after { display: none; }
.ct-minimal .mrow { display: flex; align-items: center; gap: 14px; }
.ct-minimal .mrow > div:first-child { flex: 1; min-width: 0; }
.ct-minimal .lbl { margin-top: 0; }
.ct-minimal .bal { font-size: 32px; }
.ct-minimal .bal.long { font-size: 27px; }
.ct-minimal .sub2 { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-minimal .mring { width: 84px; height: 84px; flex: none; position: relative; }
.ct-minimal .mring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ct-minimal .mring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 9.5px; font-weight: 800; color: var(--muted); letter-spacing: .08em; line-height: 1.2; }
.ct-minimal .mring span b { font-size: 17px; color: var(--text); letter-spacing: 0; }
.ct-minimal .meta3 { border-top: 1px solid var(--line); padding-top: 12px; }

.mc.ct-tiket { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 96px; border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; filter: drop-shadow(0 16px 26px rgba(0,0,0,.28)); }
.mc.ct-tiket::before, .mc.ct-tiket::after { display: none; }
.ct-tiket .tm { padding: 18px; border-radius: 22px 0 0 22px; min-width: 0; background: radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 55%), linear-gradient(135deg, var(--hero-card), var(--bg2));
  -webkit-mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
body.light .ct-tiket .tm { background: radial-gradient(circle at 12% 15%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 55%), linear-gradient(135deg, var(--card), var(--hero-card)); }
.ct-tiket .tm .lbl { margin-top: 14px; }
.ct-tiket .bal { font-size: 28px; }
.ct-tiket .tier { max-width: 100%; }
.ct-tiket .tx { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; } .ct-tiket .tx + .tx { margin-top: 3px; } .ct-tiket .tx b { color: var(--text); }
.ct-tiket .ts { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; text-align: center; border-radius: 0 22px 22px 0; color: var(--on-acc); min-width: 0;
  background: linear-gradient(160deg, var(--acc2), var(--acc)); border-left: 2px dashed color-mix(in srgb, var(--on-acc) 45%, transparent);
  -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.ct-tiket .ts small { font-size: 9px; font-weight: 800; letter-spacing: .12em; opacity: .75; }
.ct-tiket .ts b { font-family: var(--f-brand); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-tiket .ts .bc { display: block; width: 58px; height: 30px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px); opacity: .85; }

.mc.ct-neon { background: color-mix(in srgb, var(--bg) 88%, #000); border: 0; }
body.light .mc.ct-neon { background: var(--card); }
@property --na { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mc.ct-neon::before { inset: 0; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--na), var(--acc), transparent 28%, var(--violet) 50%, transparent 72%, var(--acc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: nspin 5s linear infinite; }
@keyframes nspin { to { --na: 360deg; } }
.mc.ct-neon::after { inset: 0; animation: none; background-image: linear-gradient(color-mix(in srgb, var(--acc) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--acc) 9%, transparent) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%); mask-image: linear-gradient(160deg, #000, transparent 75%); }
.ct-neon .bal { text-shadow: 0 0 18px color-mix(in srgb, var(--acc) 70%, transparent); }
body.light .ct-neon .bal { text-shadow: 0 2px 12px color-mix(in srgb, var(--acc) 25%, transparent); }
.ct-neon .tier { box-shadow: 0 0 14px color-mix(in srgb, var(--acc) 45%, transparent); }
.ct-neon .prog i { box-shadow: 0 0 10px var(--acc); }

.mc.ct-level { border: 1px solid rgba(255,255,255,.35); color: var(--lt); background: var(--lbg); box-shadow: 0 22px 50px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.mc.ct-level::before { background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 2px, transparent 2px 9px); }
.mc.ct-level > .wm { position: absolute; right: -4px; bottom: -22px; z-index: 0; font-family: var(--f-brand); font-size: 78px; font-weight: 700; opacity: .07; pointer-events: none; white-space: nowrap; text-transform: uppercase; }
.ct-level .tier { border-color: currentColor; background: rgba(255,255,255,.18); color: var(--lt); }
.ct-level .cl { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.ct-level .lbl, .ct-level .lvt { color: var(--lm); }
.ct-level .bal { color: var(--lt); }
.ct-level .prog { background: rgba(0,0,0,.18); } .ct-level .prog i { background: var(--lt); }
.ct-level .steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; }
.ct-level .steps span { text-align: center; padding: 5px 2px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(0,0,0,.14); color: var(--lm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-level .steps span.done { background: rgba(255,255,255,.24); color: var(--lt); }
.ct-level .steps span.on { background: var(--lt); color: var(--lon); }
.ct-level .lvt { font-size: 11.5px; font-weight: 700; margin-top: 10px; overflow-wrap: anywhere; }

/* Pemilih template kartu */
.ctg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ctp { padding: 8px 8px 10px; border-radius: 16px; background: var(--input); border: 2px solid var(--line); text-align: left; min-width: 0; color: var(--text); cursor: pointer; }
.ctp.on { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent); }
.ctv { position: relative; height: 92px; border-radius: 10px; overflow: hidden; }
.ctin { position: absolute; left: 50%; top: 50%; width: 330px; transform: translate(-50%, -50%) scale(.4); pointer-events: none; }
.ctin .mc { cursor: default; }
.ctp b { display: block; font-size: 13px; margin-top: 8px; }
.ctp small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* 🌐 browser lebar (laptop/komputer): tab bar menjadi menu samping, konten lebih lega */
@media (min-width: 900px) {
  body.web .tabs:not(.hidden) { top: 0; left: 0; bottom: 0; right: auto; width: 220px; height: auto; max-width: none; margin: 0; border-radius: 0; grid-auto-flow: row; grid-auto-rows: 52px; grid-auto-columns: auto; align-content: start;
    padding: 24px 12px; border: 0; border-right: 1px solid var(--line); box-shadow: none; }
  body.web .tab { flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 14px; padding: 0 14px; border-radius: 14px; }
  body.web .tab.on { background: var(--card); }
  body.web .tab .dot { top: 12px; right: 12px; }
  /* Konten di tengah area kanan menu samping. */
  body.web:not(.notabs) main { max-width: 900px; margin-left: max(220px, calc((100vw - 900px + 220px) / 2)); margin-right: auto; padding: 24px 32px 110px; }
  body.web.notabs main { max-width: 760px; }
  body.web:not(.notabs) .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.web .cta { bottom: 24px; }
  body.web:not(.notabs) .cta { left: 220px; }
  body.web .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; max-height: 86vh; }
}
@media (max-width: 899px) { .dlogin { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .qa { gap: 6px; } .qa > div { font-size: 10.5px; } .mc .bal { font-size: 30px; } }

/* ── 💬 Live chat (customer & admin) ── */
.chat { min-height: calc(100vh - 120px); }
.chead { position: fixed; top: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chead .ib { width: 38px; height: 38px; font-size: 17px; cursor: pointer; }
.chead .grow { min-width: 0; }
.chead b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chead small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cav { position: relative; flex: none; }
.cav > i { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.cmsgs { display: flex; flex-direction: column; gap: 4px; padding: 62px 0 calc(150px + var(--safe-b)); }
.cday { display: flex; justify-content: center; margin: 12px 0 6px; }
.cday span { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: var(--chip-bg); border: 1px solid var(--line); }
.csys { align-self: center; margin: 6px 0; font-size: 11.5px; color: var(--muted); padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--green) 10%, transparent); text-align: center; }
.cb { position: relative; max-width: 80%; padding: 8px 12px 6px; border-radius: 18px; font-size: 14.5px; line-height: 1.42; word-break: break-word; }
.cb.nw { animation: cbIn .2s ease-out; }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cb.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cb.me { align-self: flex-end; background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); border-bottom-right-radius: 6px; box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 22%, transparent); }
.cb + .cb.me, .cb + .cb.them { margin-top: 2px; }
.cb .ctx { white-space: pre-wrap; }
.cb .ctx a { text-decoration: underline; cursor: pointer; }
.cb small { display: block; text-align: right; font-size: 10px; opacity: .68; margin-top: 2px; font-weight: 600; }
.cb.pend { opacity: .75; }
.cwho { display: block; font-size: 11px; font-weight: 800; opacity: .8; margin-bottom: 2px; }
.cb.hasimg { padding: 4px 4px 6px; }
.cb.hasimg .ctx, .cb.hasimg small, .cb.hasimg .cwho { padding: 0 8px; }
.cimg { width: 220px; max-width: 100%; min-height: 140px; border-radius: 14px; overflow: hidden; margin-bottom: 4px; background: var(--chip-bg); display: grid; place-items: center; }
.cimg img { display: block; width: 100%; max-height: 320px; object-fit: cover; cursor: zoom-in; }
.cimg.cfail { font-size: 12px; color: var(--muted); padding: 10px; min-height: 0; }
.cfull { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 16px; }
.cwel { margin: 28px auto 0; max-width: 320px; text-align: center; padding: 22px 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cwel .cwav { display: flex; justify-content: center; margin-bottom: 10px; }
.cwel b { font: 700 19px/1.3 var(--f-brand); color: var(--title); }
.cwel p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cqk { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.cqk .chip { white-space: normal; text-align: center; }
.cqa { position: fixed; left: 0; right: 0; bottom: calc(66px + var(--safe-b)); max-width: 560px; margin: 0 auto; padding: 0 16px 6px; z-index: 5; }
.cpv { position: fixed; left: 0; right: 0; bottom: calc(66px + var(--safe-b)); max-width: 528px; margin: 0 auto; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cpv img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.cpv span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); }
.cpv .x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--chip-bg); color: var(--text); }
.cmp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; max-width: 560px; margin: 0 auto; display: flex; align-items: flex-end; gap: 8px; padding: 8px 16px calc(10px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.cmp textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1px solid var(--line); background: var(--input); outline: none; font-size: 15px; line-height: 1.35; }
.cmp textarea:focus { border-color: var(--acc); }
.cbtn, .csend { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0; }
.cbtn { background: var(--card); border: 1px solid var(--line); color: var(--acc2); }
.csend { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: var(--on-acc); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 30%, transparent); }
.cbtn svg, .csend svg { width: 20px; height: 20px; }
body.light .cb.them { background: #fff; }
.chat:has(.cpv:not(.hidden)) .cqa { display: none; }

/* ── 📜 Pesan akun + S&K (sama seperti chat bot) ── */
.snk { margin-top: 10px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--acc) 30%, var(--line)); background: var(--input); overflow: hidden; }
.snk-b { padding: 14px 15px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.tgh b { font-weight: 800; }
.tgh code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc2); cursor: copy; }
.tgh pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; padding: 10px; border-radius: 10px; background: var(--chip-bg); white-space: pre-wrap; margin: 4px 0; }
.tgh blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--acc); border-radius: 4px 10px 10px 4px; background: var(--chip-bg); }
.tgh a { color: var(--acc2); text-decoration: underline; cursor: pointer; }
.tgh .spoil { background: var(--muted); color: transparent; border-radius: 4px; cursor: pointer; transition: color .2s, background .2s; }
.tgh .spoil.on { background: none; color: inherit; }
.snk-cp { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 0; }
.snk-cp svg { width: 18px; height: 18px; }
.snk-f { margin-top: 10px; }
.snk-f summary { font-size: 13px; color: var(--muted); cursor: pointer; padding: 6px 2px; }
.accs.blur .snk-b { filter: blur(7px); user-select: none; pointer-events: none; }
.accs.blur .snk-cp, .accs.blur .snk-f, .accs.blur > .btn { display: none; }

/* ── 🧪 Bot demo ── */
#demobar { max-width: 560px; margin: 0 auto; padding: calc(var(--safe-t, 0px) + 8px) 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
#demobar b { color: var(--acc2); letter-spacing: .06em; }
#demobar a { color: var(--acc2); font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.dcta { margin: 14px 0; padding: 14px 15px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 10%, var(--card, transparent)); }
.dct { font-size: 14px; }
.dcs { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.dcb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dcb .btn { margin: 0; }
