/* Tema per toko: HOPPS = ungu-emas; toko sewaan mengikuti tema QRIS-nya (diset lewat data-theme di <html>). */
:root {
  --bg: #12021f; --bg2: #1c0230; --hero: #3b0a57; --acc: #d4af37; --acc2: #f3d36b; --on-acc: #1c0230;
  --card: rgba(255,255,255,.06); --card2: rgba(255,255,255,.10); --line: rgba(255,255,255,.10);
  --text: #f6f1ff; --muted: #b9a8cf; --green: #3ddc97; --red: #ff6b81; --blue: #6fa8ff; --orange: #ffb84d;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ray: rgba(212,175,55,.075); --glow-acc: rgba(212,175,55,.16); --glow1: rgba(212,175,55,.13); --glow2: rgba(140,60,220,.22); --gridc: rgba(140,170,255,.07);
}
html[data-theme="blue"] { --bg: #020b1f; --bg2: #06213f; --hero: #0c3460; --acc: #5ec8e5; --acc2: #a6e6f5; --on-acc: #04172e; --muted: #a8bdd6; --ray: rgba(94,200,229,.07); --glow-acc: rgba(94,200,229,.16); --glow1: rgba(94,200,229,.12); --glow2: rgba(30,90,170,.25); }
html[data-theme="green"] { --bg: #01120d; --bg2: #052a20; --hero: #0b4f3f; --acc: #7fe7b4; --acc2: #b9f5d6; --on-acc: #03241b; --muted: #a6cfc0; --ray: rgba(127,231,180,.065); --glow-acc: rgba(127,231,180,.15); --glow1: rgba(127,231,180,.11); --glow2: rgba(20,120,95,.25); }
html[data-theme="red"] { --bg: #160206; --bg2: #2e0710; --hero: #6e1020; --acc: #f4c46c; --acc2: #f9dfa8; --on-acc: #2e0710; --muted: #d6aab2; --ray: rgba(244,196,108,.07); --glow-acc: rgba(244,196,108,.16); --glow1: rgba(244,196,108,.12); --glow2: rgba(170,30,55,.25); }
html[data-theme="black"] { --bg: #0a0a0c; --bg2: #16161a; --hero: #2a2a30; --acc: #d4af37; --acc2: #f3d36b; --on-acc: #16161a; --muted: #b4b4bd; --glow2: rgba(90,90,110,.22); }
html[data-theme="pink"] { --bg: #1a0510; --bg2: #331022; --hero: #963062; --acc: #ffb3d1; --acc2: #ffe0ee; --on-acc: #3a0d24; --muted: #e0b4c8; --ray: rgba(255,179,209,.07); --glow-acc: rgba(255,179,209,.16); --glow1: rgba(255,179,209,.12); --glow2: rgba(150,48,98,.28); }

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); min-height: 100%; }
body { font: 15px/1.45 -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; background: transparent; overscroll-behavior-y: none; }
main { overflow-x: hidden; padding: 14px 14px calc(96px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
body.notabs main { padding-bottom: calc(90px + 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; }
.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; }

/* 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: 16px; background: linear-gradient(90deg, var(--card), var(--card2), var(--card)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.fade { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* header & hero */
.hero { border-radius: 22px; padding: 18px; position: relative; overflow: hidden; border: 1px solid var(--acc); background: linear-gradient(135deg, var(--hero), var(--bg2)); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
  background: radial-gradient(circle at 18% 25%, color-mix(in srgb, var(--acc) 35%, transparent), transparent 55%), linear-gradient(135deg, var(--hero), var(--bg2)); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 45%, transparent 60%); animation: shine 4s infinite; pointer-events: none; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.hero h1 { font-family: Georgia, 'Times New Roman', serif; color: var(--acc2); font-size: 26px; letter-spacing: 2px; 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; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); color: var(--acc2); border-radius: 99px; padding: 4px 9px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.head h2 { font-size: 19px; min-width: 0; }
.tag { display: inline-block; font-size: 11px; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--acc); color: var(--acc2); white-space: nowrap; }
.tag.tbtn { cursor: pointer; }
.backlink { color: var(--muted); font-size: 14px; margin-bottom: 10px; cursor: pointer; display: inline-block; }

/* stats & kpi */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; }
.stat b { display: block; font-size: 15px; color: var(--acc2); }
.stat span { font-size: 11px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; font-size: 19px; margin-top: 2px; }
.kpi small { font-size: 11px; }

/* inputs */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.search input { background: none; border: 0; outline: none; flex: 1; padding: 11px 0; font-size: 14px; min-width: 0; }
.search input::placeholder, .f::placeholder { color: var(--muted); opacity: .8; }
label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
.f { width: 100%; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px; padding: 11px; font-size: 14px; outline: none; }
.f:focus { border-color: var(--acc); }
textarea.f { min-height: 96px; resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* chips & segments */
.chips { display: flex; gap: 8px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; font-size: 13px; padding: 7px 12px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); cursor: pointer; flex-shrink: 0; }
.chip.on { background: var(--acc); color: var(--on-acc); font-weight: 700; border-color: var(--acc); }
.seg { display: flex; background: rgba(0,0,0,.28); border-radius: 12px; padding: 3px; margin: 12px 0; }
.seg div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg div.on { background: var(--acc); color: var(--on-acc); font-weight: 700; }

/* katalog */
.announce { margin: 12px 0; padding: 10px 12px; border-radius: 14px; background: var(--card2); border: 1px dashed var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px dashed color-mix(in srgb, var(--acc) 50%, transparent); font-size: 13px; white-space: pre-wrap; }
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 8px; }
.sec h3 { font-size: 16px; }
.sec span { font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; cursor: pointer; position: relative; transition: transform .12s; min-width: 0; }
.card:active, .item:active, .mi:active { transform: scale(.97); }
.card.off { opacity: .5; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; background: var(--hero);
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 28%, transparent), color-mix(in srgb, var(--hero) 70%, transparent)); }
.card .icon { margin-bottom: 8px; }
.card h4 { font-size: 14px; line-height: 1.25; word-break: break-word; }
.price { color: var(--acc2); font-weight: 700; font-size: 14px; margin-top: 4px; }
.price small { color: var(--muted); font-weight: 400; font-size: 11px; }
.meta { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 99px; }
.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: 40px 16px; font-size: 14px; }
.empty .big { font-size: 46px; margin-bottom: 8px; }

/* detail produk */
.phead { display: flex; gap: 12px; align-items: center; }
.phead .icon { width: 62px; height: 62px; font-size: 32px; }
.phead h2 { font-size: 20px; line-height: 1.2; }
.sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 12px 0; padding: 10px 12px; background: var(--card); border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.desc.clamp { max-height: 96px; overflow: hidden; position: relative; cursor: pointer; }
.desc.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--bg)); }
.var { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; cursor: pointer; background: var(--card); }
.var.on { border-color: var(--acc); background: var(--card2); background: color-mix(in srgb, var(--acc) 10%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 14%, transparent); }
.var.off { opacity: .5; }
.var h4 { font-size: 15px; }
.var .p { color: var(--acc2); font-weight: 800; white-space: nowrap; }
.var s { color: var(--muted); font-size: 12px; }
.save { font-size: 11px; color: var(--green); margin-top: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.t { font-size: 11px; padding: 3px 8px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--muted); }

/* sheet-like box */
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; }
.box h4 { font-size: 14px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.box h4 span { color: var(--muted); font-weight: 400; font-size: 12px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.line > span:first-child { color: var(--muted); flex-shrink: 0; }
.line > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.line.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 16px; }
.line.total > :last-child { color: var(--acc2); }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); font-size: 18px; }
.pay { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); margin-bottom: 8px; cursor: pointer; background: var(--card); }
.pay.on { border-color: var(--acc); background: var(--card2); background: color-mix(in srgb, var(--acc) 10%, transparent); }
.pay.dis { opacity: .5; }
.pay .ic { font-size: 22px; }
.pay small { display: block; color: var(--muted); font-size: 11.5px; }
.voucher { display: flex; gap: 8px; }
.voucher .f { flex: 1; }

/* buttons */
.btn { border: 0; border-radius: 12px; padding: 12px; font-size: 14px; font-weight: 700; background: var(--card2); text-align: center; width: 100%; }
.btn.pri { background: linear-gradient(90deg, var(--acc), var(--acc2)); color: var(--on-acc); }
.btn.okb { background: rgba(61,220,151,.18); color: var(--green); }
.btn.badb { background: rgba(255,107,129,.16); color: var(--red); }
.btn.sm { padding: 8px 12px; font-size: 13px; width: auto; }
.btn:disabled { opacity: .5; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.btns .full { grid-column: 1 / -1; }
.cta { position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-b)); max-width: 536px; margin: 0 auto; height: 52px; border-radius: 14px; 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 8px 24px color-mix(in srgb, var(--acc) 35%, transparent); }
body.notabs .cta { bottom: calc(14px + var(--safe-b)); }
.cta:disabled { opacity: .55; }

/* QRIS */
.qris { background: #fff; border-radius: 20px; padding: 14px; text-align: center; color: #1c0230; }
.qris img { width: 100%; max-width: 340px; border-radius: 10px; display: block; margin: 0 auto; min-height: 240px; }
.timer { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pl 1s infinite; }
@keyframes pl { 50% { opacity: .2; } }
.success { text-align: center; padding-top: 10px; }
.success .big { font-size: 64px; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.2); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.field { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: rgba(0,0,0,.28); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.field span { color: var(--muted); font-size: 11.5px; display: block; }
.field b { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.copy { border: 0; background: var(--card2); background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc2); border-radius: 10px; padding: 7px 10px; font-weight: 700; 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; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* daftar */
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 9px; cursor: pointer; display: block; }
.item h4 { font-size: 14px; word-break: break-word; }
.item .icon { width: 42px; height: 42px; font-size: 20px; }
.st { font-size: 11px; padding: 3px 8px; border-radius: 8px; white-space: nowrap; background: var(--card2); color: var(--muted); }
.s-ok { background: rgba(61,220,151,.15); color: var(--green); } .s-wait { background: rgba(255,184,77,.15); color: var(--orange); }
.s-bad { background: rgba(255,107,129,.15); color: var(--red); } .s-info { background: rgba(111,168,255,.15); color: var(--blue); }
.infobox { background: rgba(111,168,255,.10); border: 1px dashed rgba(111,168,255,.5); border-radius: 12px; padding: 10px; font-size: 13px; margin-top: 10px; }
.warnbox { background: rgba(255,184,77,.12); border: 1px dashed rgba(255,184,77,.5); border-radius: 12px; padding: 10px; font-size: 13px; margin-top: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; color: var(--on-acc); background: linear-gradient(135deg, var(--acc2), var(--acc)); }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; position: relative; }
.mi i { font-style: normal; font-size: 24px; display: block; margin-bottom: 6px; }
.mi b { font-size: 14px; }
.dot { position: absolute; top: 9px; right: 10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; border-radius: 99px; padding: 2px 7px; }

/* 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; }
.bar i { width: 100%; max-width: 30px; min-height: 2px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--acc2), var(--acc)); transform-origin: bottom; animation: grow .6s ease both; }
.bar.today i { box-shadow: 0 0 12px var(--acc); }
@keyframes grow { from { transform: scaleY(0); } }
.todo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.todo:last-child { border: 0; }
.todo .n { margin-left: auto; min-width: 26px; text-align: center; font-weight: 800; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: var(--card2); color: var(--muted); }
.n.hot { background: rgba(255,107,129,.18); color: var(--red); }
.top { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.top .track { flex: 1; height: 8px; background: rgba(255,255,255,.07); border-radius: 99px; overflow: hidden; }
.top .track i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }

/* stok & chat */
.stockrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-all; }
.stockrow > span { min-width: 0; overflow-wrap: anywhere; } background: rgba(255,107,129,.15); color: var(--red); border-radius: 8px; padding: 4px 9px; flex-shrink: 0; }
.vrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.tagc { display: inline-block; font-size: 12px; padding: 5px 10px; 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: 700; }
.msgs { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.msg.in { background: var(--card2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--acc); color: var(--on-acc); align-self: flex-end; border-bottom-right-radius: 4px; }
.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(70px + var(--safe-b)); background: var(--bg); padding: 8px 0; }
.send .f { flex: 1; }
.tog { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tog:last-child { border: 0; }
.sw { width: 46px; height: 27px; border-radius: 99px; background: rgba(255,255,255,.16); position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.sw::after { content: ''; position: absolute; width: 21px; height: 21px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.sw.on { background: var(--green); }
.sw.on::after { left: 22px; }
.photo { width: 100%; border-radius: 12px; margin-top: 8px; background: var(--card); min-height: 80px; display: block; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; z-index: 5;
  height: calc(64px + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab { display: grid; place-items: center; font-size: 10.5px; color: var(--muted); cursor: pointer; padding-top: 6px; position: relative; background: none; border: 0; }
.tab i { font-style: normal; font-size: 20px; line-height: 1; }
.tab.on { color: var(--acc2); }
.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; }
.overlay.on { display: block; }
.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: 22px 22px 0 0; padding: 10px 16px calc(22px + var(--safe-b)); border-top: 1px solid var(--line); animation: up .25s ease; }
@keyframes up { from { transform: translateY(100%); } }
.grab { width: 40px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.22); margin: 0 auto 12px; }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(0,0,0,.9); color: #fff; padding: 9px 16px; border-radius: 99px; font-size: 13px;
  z-index: 40; display: none; max-width: 90vw; text-align: center; }
.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 { display: none; 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); } }
@media (prefers-reduced-motion: reduce) { #bg *, .logo { animation: none !important; } }

/* ───────── Panel admin: nuansa "ruang kontrol" ───────── */
body.admin { --bg: #070a12; --bg2: #0e1422; --hero: #18233d; --muted: #a7b2c9; --glow1: rgba(91,140,255,.15); --glow2: var(--glow-acc); }
body.admin #bg { background: radial-gradient(120% 60% at 50% -10%, #1a2746 0%, var(--bg2) 45%, var(--bg) 100%); }
body.admin #bg .rays { display: none; }
body.admin #bg .grid { display: block; }
body.admin #bg .spark { background: #9dbcff; box-shadow: 0 0 6px #5b8cff; }
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; }
.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: 34px; height: 34px; animation: none; box-shadow: 0 0 12px var(--glow-acc); }
.logo.big { width: 104px; height: 104px; }
.mono { display: grid; place-items: center; font: 700 26px Georgia, 'Times New Roman', serif; color: var(--on-acc); background: linear-gradient(135deg, var(--acc2), var(--acc)); }
.mono.sm { font-size: 16px; }
.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: 12px 0 0; scrollbar-width: none; border-radius: 18px; }
.banners::-webkit-scrollbar { display: none; }
.bn { flex: 0 0 100%; scroll-snap-align: center; position: relative; border-radius: 18px; overflow: hidden; min-height: 96px; cursor: pointer;
  background: 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; 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); }
.bn-t span { font-size: 12.5px; color: #e9e2f5; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 7px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--card2); transition: .2s; }
.dots i.on { width: 16px; border-radius: 99px; background: var(--acc); }
.flash { margin: 16px 0 4px; padding: 12px; border-radius: 18px; border: 1px solid rgba(255,122,61,.45);
  background: linear-gradient(135deg, rgba(255,122,61,.18), rgba(255,184,77,.06)); }
.flash h3 { font-size: 16px; }
.flash .cd { font-size: 12px; color: var(--orange); }
.flash .cd b { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 6px; color: #fff; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; padding-bottom: 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 132px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fcard .icon { width: 38px; height: 38px; font-size: 20px; margin-bottom: 4px; }
.fcard b { font-size: 13px; }
.fcard s { font-size: 11px; color: var(--muted); }
.fcard .price { margin: 0; }
.fcard .off { position: absolute; top: 8px; right: 8px; background: #ff4d4d; color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 99px; }
.b-flash { background: linear-gradient(90deg, #ff7a3d, #ffb84d); color: #2b0d00; }
.flashline { font-size: 12px; color: var(--orange); margin-top: 3px; }
.flashline b { font-family: ui-monospace, Consolas, monospace; }
.popup { text-align: center; }
.popup img { width: 100%; border-radius: 14px; margin-bottom: 12px; }
.popup .big { font-size: 56px; }
.popup h3 { font-size: 19px; }
.voucher-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 9px; border-radius: 14px; position: relative;
  background: linear-gradient(90deg, rgba(212,175,55,.16), 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: ui-monospace, Consolas, monospace; font-size: 16px; color: var(--acc2); letter-spacing: 1px; }
.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: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 5px; font-family: ui-monospace, Consolas, monospace; 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; }