/* ===== VYS Store — tema dikendalikan dari Pengaturan Web App ===== */
:root {
  --primary: #7c3aed; --accent: #f59e0b; --bg: #0c0b14; --card: #161427; --text: #f2f0fa; --muted: #9c97b5; --radius: 14px;
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --soft: color-mix(in srgb, var(--primary) 16%, transparent);
  --card2: color-mix(in srgb, var(--card) 70%, var(--bg));
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; min-height: 100vh;
  background-image: radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%), radial-gradient(900px 400px at 110% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapr { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.mt { margin-top: 14px; } .mt2 { margin-top: 24px; } .mb { margin-bottom: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.brand .logo-fb { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 15px; }
.search { flex: 1; position: relative; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); padding: 0 14px 0 38px; outline: none; }
.search input:focus { border-color: var(--primary); }
.search svg { position: absolute; left: 13px; top: 11px; opacity: .6; }
.iconbtn { height: 40px; min-width: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.iconbtn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
@media (max-width: 640px) {
  .top .wrap { height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 9px; display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 8px; }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .brand span { display: none; }
  .top .wrap > #themeBtn { grid-column: 2; grid-row: 1; }
  .top .wrap > a[title="Cek pesanan"] { grid-column: 3; grid-row: 1; }
  .top .wrap > #acctBtn { grid-column: 4; grid-row: 1; white-space: nowrap; padding: 0 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; width: 100%; margin: 0; }
  .search input { height: 42px; }
}

/* tombol & form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; background: var(--primary); color: #fff; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.08); } .btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); color: #1a1205; }
.btn.danger { background: color-mix(in srgb, var(--bad) 18%, transparent); color: #fca5a5; border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); padding: 10px 12px; outline: none; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
textarea.input { min-height: 90px; resize: vertical; }

/* kartu */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-title h2 { font-size: 18px; margin: 0; letter-spacing: -.01em; }

/* pengumuman & banner */
.ann { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-top: 12px; border: 1px solid var(--line); background: var(--card); }
.ann.promo { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.ann.warning { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ann.success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.ann b { display: block; }
.banner { margin-top: 16px; position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; aspect-ratio: 21/8; background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--accent) 70%, var(--primary))); }
.banner .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.banner .slide.on { opacity: 1; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .hero { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.banner .hero h1 { margin: 0; font-size: clamp(20px, 4vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.banner .hero p { margin: 6px 0 0; opacity: .9; max-width: 520px; }
.dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .45; }
.dots i.on { opacity: 1; width: 18px; border-radius: 4px; }
@media (max-width: 640px) { .banner { aspect-ratio: 16/8; } }

/* kategori */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px; text-align: center; cursor: pointer; transition: border-color .15s, transform .1s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cat:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat .ic { font-size: 28px; line-height: 1; height: 40px; display: grid; place-items: center; }
.cat .ic img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.cat b { display: block; font-size: 13px; margin-top: 8px; line-height: 1.25; }
.cat small { color: var(--muted); font-size: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* produk */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: border-color .15s, transform .1s; position: relative; }
.pcard:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); transform: translateY(-2px); }
.pimg { aspect-ratio: 1/1; background: var(--card2); position: relative; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.tile { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 70%, #000), color-mix(in srgb, var(--accent) 45%, var(--primary))); color: #fff; padding: 10px; }
.tile .e { font-size: 34px; }
.tile .t { font-weight: 800; font-size: 15px; line-height: 1.2; margin-top: 4px; letter-spacing: -.01em; word-break: break-word; }
.pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pname { font-weight: 700; font-size: 14px; line-height: 1.35; }
.price { font-weight: 800; color: var(--accent); font-size: 15px; }
.strike { color: var(--muted); text-decoration: line-through; font-size: 12px; font-weight: 500; margin-left: 4px; }
.meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #1a1205; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; z-index: 2; }
.badge.flash { background: #ef4444; color: #fff; }
.badge.out { background: #333; color: #ddd; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: color-mix(in srgb, var(--primary) 40%, var(--text)); }
.list { display: flex; flex-direction: column; gap: 8px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.lrow:hover { border-color: var(--primary); }
.lrow .th { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: 0 0 46px; }
.lrow .th .tile .e { font-size: 20px; } .lrow .th .tile .t { display: none; }

/* detail produk */
.pd { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.pd > * { min-width: 0; }
@media (max-width: 820px) { .pd { grid-template-columns: minmax(0, 1fr); } }
.pd .pimg, .pd .card, .pd img { max-width: 100%; }
.pd .pimg { border-radius: var(--radius); }
.pd h1, .pd .desc, .pd .card, .pd .sum { overflow-wrap: anywhere; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-width: 120px; }
.opt.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.opt.dis { opacity: .45; pointer-events: none; }
.opt b { display: block; font-size: 14px; } .opt small { color: var(--accent); font-weight: 700; }
.qty { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card2); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty input { width: min(90px, 30vw); min-width: 0; height: 42px; border: 0; background: transparent; text-align: center; outline: none; font-weight: 700; }
.sum { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sum div > :last-child { text-align: right; overflow-wrap: anywhere; }
.sum .total { font-size: 18px; font-weight: 800; }
.pay { display: flex; flex-direction: column; gap: 8px; }
.pay label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; background: var(--card2); }
.pay input { accent-color: var(--primary); width: 18px; height: 18px; }
.pay label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.desc { white-space: pre-wrap; color: color-mix(in srgb, var(--text) 82%, var(--muted)); }

/* invoice */
.inv { max-width: 560px; margin: 20px auto; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.st-unpaid, .st-pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: #fcd34d; }
.st-paid, .st-processing { background: color-mix(in srgb, #3b82f6 20%, transparent); color: #93c5fd; }
.st-success { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #86efac; }
.st-failed, .st-expired, .st-cancelled { background: color-mix(in srgb, var(--bad) 18%, transparent); color: #fca5a5; }
.st-refunded { background: color-mix(in srgb, #a855f7 20%, transparent); color: #d8b4fe; }
.qrbox { background: #fff; border-radius: 16px; padding: 10px; width: min(340px, 100%); margin: 14px auto; }
.qrbox img { width: 100%; border-radius: 10px; }
.amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.acc { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; }
.acc .kv { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.acc .kv:last-child { border: 0; }
.acc .k { color: var(--muted); font-size: 13px; width: 92px; flex: 0 0 92px; text-transform: capitalize; }
.acc .v { flex: 1; font-weight: 700; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.copy { border: 1px solid var(--line); background: transparent; border-radius: 8px; height: 30px; padding: 0 9px; cursor: pointer; font-size: 12px; }
.snk { background: color-mix(in srgb, var(--accent) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 12px; padding: 12px 14px; white-space: pre-wrap; margin-top: 14px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); }

/* akun */
.profile { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--soft); display: grid; place-items: center; font-size: 26px; font-weight: 800; flex: 0 0 64px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat small { color: var(--muted); display: block; } .stat b { font-size: 20px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--primary); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t td, table.t th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* kontak owner */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--bad); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.ocard { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.oav { position: relative; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.oav img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--card2); }
.oav.lg { width: 52px; height: 52px; flex-basis: 52px; font-size: 18px; }
.odot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #9ca3af; border: 2px solid var(--card); }
.odot.on { background: var(--ok); }
.oinfo { flex: 1; min-width: 0; line-height: 1.4; }
.oname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.otag { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.otag svg { width: 13px; height: 13px; flex: 0 0 13px; color: var(--accent); }
.otag span { overflow: hidden; text-overflow: ellipsis; }
.ostat { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ostat span { color: var(--bad); font-weight: 700; } .ostat span.on { color: var(--ok); }
.oacts { display: flex; gap: 6px; flex: 0 0 auto; align-items: center; }
.cic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .15s, filter .15s; }
.cic:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cic svg { width: 17px; height: 17px; }
.cic.wa { background: #25d366; } .cic.tg { background: #229ed9; } .cic.grp { background: #128c7e; } .cic.link { background: var(--primary); }
.cic.sm { width: 30px; height: 30px; flex-basis: 30px; } .cic.sm svg { width: 15px; height: 15px; }
@media (max-width: 380px) { .ocard .ostat { white-space: normal; } .ocard { padding: 10px 12px; gap: 10px; } .ocard .cic { width: 30px; height: 30px; flex-basis: 30px; } .ocard .oacts { gap: 4px; } }
/* tombol CS melayang + popup */
.cs { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cs-fab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px 0 13px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 10px 28px rgba(0,0,0,.4); transition: transform .15s; }
.cs-fab:active { transform: scale(.96); }
.cs-fab svg { width: 20px; height: 20px; }
.cs-fab .odot { top: 1px; right: 3px; bottom: auto; width: 11px; height: 11px; border-color: var(--primary); }
.cs-pop { display: none; width: min(320px, calc(100vw - 28px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.5); overflow: hidden; transform-origin: bottom right; }
.cs.open .cs-pop { display: block; animation: csIn .18s ease-out; }
@keyframes csIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.cs-head { display: flex; gap: 12px; align-items: center; padding: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 32%, var(--card)), var(--card)); }
.cs-head .odot { border-color: color-mix(in srgb, var(--primary) 30%, var(--card)); }
.cs-x { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; align-self: flex-start; }
.cs-x svg { width: 15px; height: 15px; }
.cs-list { padding: 6px; }
.cs-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.cs-item:hover { background: var(--card2); }
.cs-item small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-note { font-size: 12px; color: var(--muted); padding: 10px 14px 14px; border-top: 1px solid var(--line); line-height: 1.55; }

/* toast & modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100% - 32px); font-weight: 600; border: 1px solid #333; }
.toast.err { background: #3b0d0d; border-color: #7f1d1d; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.skel { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 220px; }
@keyframes sk { to { background-position: -200% 0; } }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 90px; color: var(--muted); font-size: 13px; }
.maint { min-height: 100vh; display: grid; place-items: center; padding: 20px; text-align: center; }
.maint .card { max-width: 440px; }
.steps { counter-reset: s; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ===== mode terang (pilihan pembeli, via tombol tema) ===== */
html[data-vtheme="light"] .st-unpaid, html[data-vtheme="light"] .st-pending { color: #b45309; }
html[data-vtheme="light"] .st-paid, html[data-vtheme="light"] .st-processing { color: #1d4ed8; }
html[data-vtheme="light"] .st-success { color: #15803d; }
html[data-vtheme="light"] .st-failed, html[data-vtheme="light"] .st-expired, html[data-vtheme="light"] .st-cancelled { color: #b91c1c; }
html[data-vtheme="light"] .st-refunded { color: #7e22ce; }
html[data-vtheme="light"] .btn.danger { color: #b91c1c; }

/* ===== Halaman Akun, Member & Reseller Modern ===== */
.auth-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 28px 24px;
  margin-top: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, #090614), color-mix(in srgb, var(--accent) 55%, var(--primary)));
  color: #fff;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--primary) 24%, transparent);
}
.auth-hero h1 { margin: 6px 0 8px; font-size: clamp(22px, 3.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.auth-hero p { margin: 0; opacity: .92; max-width: 640px; font-size: 14.5px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px;
}
.trust-item {
  background: rgba(255,255,255,.13); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; font-size: 13px;
}
.trust-item .ic { font-size: 20px; }
.trust-item b { display: block; font-size: 13px; color: #fff; }
.trust-item small { opacity: .85; font-size: 11.5px; }

.auth-layout {
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 20px; margin-top: 20px; align-items: start;
}
@media (max-width: 860px) { .auth-layout { grid-template-columns: 1fr; } }

.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.tier-card {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 20px; position: relative; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s, border-color .15s;
}
.tier-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.tier-card.vip {
  border: 1.5px solid color-mix(in srgb, var(--accent) 65%, var(--primary));
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 11%, var(--card)), var(--card));
}
.tier-badge {
  align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--primary);
}
.tier-card.vip .tier-badge { background: var(--accent); color: #1a1205; }
.tier-price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tier-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.tier-list { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.tier-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.tier-list li i { font-style: normal; flex: 0 0 18px; }

.auth-seg {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: var(--card2); padding: 5px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px;
}
.auth-seg button {
  height: 38px; border: 0; border-radius: 9px; background: transparent;
  font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .15s;
}
.auth-seg button.on { background: var(--primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 35%, transparent); }

/* Dashboard Akun */
.acct-head {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 24%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: calc(var(--radius) + 4px); padding: 20px; margin-top: 18px;
}
.acct-head .profile { flex-wrap: wrap; align-items: flex-start; }
.acct-head .profile > .grow { flex: 1 1 210px; min-width: 190px; }
.acct-head .ann { flex-wrap: wrap; align-items: flex-start; }
.acct-head .ann > .grow { flex: 1 1 220px; min-width: 200px; }
.tag.tag-ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: #86efac; }
.tag.tag-warn { background: color-mix(in srgb, var(--warn) 22%, transparent); color: #fcd34d; }
html[data-vtheme="light"] .tag.tag-ok { background: rgba(22, 163, 74, .15); color: #15803d; }
html[data-vtheme="light"] .tag.tag-warn { background: rgba(217, 119, 6, .16); color: #b45309; }
@media (max-width: 560px) {
  .acct-head { padding: 15px; }
  .acct-head .profile > .row { width: 100%; margin-top: 6px; }
  .acct-head .ann > .row, .acct-head .ann > a.btn { width: 100%; margin-top: 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
.wa-login-box {
  background: linear-gradient(145deg, rgba(37, 211, 102, .12), var(--card2));
  border: 1px solid rgba(37, 211, 102, .38);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.wa-login-btn {
  background: #25d366 !important;
  color: #fff !important;
  font-weight: 800;
}
.acct-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px;
}
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800; font-size: 20px; letter-spacing: .08em;
  background: var(--card2); border: 1px dashed color-mix(in srgb, var(--primary) 50%, var(--line));
  border-radius: 12px; padding: 10px 14px; text-align: center; color: var(--accent);
}
.pbar {
  height: 10px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; margin-top: 8px;
}
.pbar > i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .35s ease;
}
.check-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: var(--card2); border: 1px solid var(--line); margin-bottom: 8px;
  flex-wrap: wrap;
}
.check-item > .grow { flex: 1 1 180px; min-width: 160px; }
.check-item.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: var(--card2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px;
}
.pre-code {
  background: #0d0c14; color: #e2e8f0; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  overflow-x: auto; line-height: 1.55; margin: 8px 0;
}
.cta-home {
  margin-top: 18px; border-radius: calc(var(--radius) + 2px); padding: 16px 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 22%, var(--card)), color-mix(in srgb, var(--accent) 14%, var(--card)));
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--line));
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ===== Tema Neon Night (Cyberpunk) ===== */
html[data-vtheme="neon"] body {
  background-image: radial-gradient(1200px 500px at 10% -10%, rgba(255,0,255,.15), transparent 60%), radial-gradient(900px 400px at 110% 0%, rgba(0,255,255,.1), transparent 60%), linear-gradient(180deg, #0a0014, #0d0019);
  background-attachment: fixed;
}
html[data-vtheme="neon"] .top { background: rgba(10,0,20,.85); border-bottom: 1px solid rgba(255,0,255,.2); }
html[data-vtheme="neon"] .card { border: 1px solid rgba(255,0,255,.15); box-shadow: 0 0 20px rgba(255,0,255,.05); }
html[data-vtheme="neon"] .pcard:hover { border-color: rgba(0,255,255,.5); box-shadow: 0 0 15px rgba(0,255,255,.15); }
html[data-vtheme="neon"] .tile { background: linear-gradient(140deg, rgba(255,0,255,.6), rgba(0,255,255,.3)); }
html[data-vtheme="neon"] .btn { box-shadow: 0 0 12px rgba(255,0,255,.3); }
html[data-vtheme="neon"] .btn:hover { box-shadow: 0 0 20px rgba(255,0,255,.5); }
html[data-vtheme="neon"] .price { color: #00ffff; text-shadow: 0 0 8px rgba(0,255,255,.4); }
html[data-vtheme="neon"] .badge { box-shadow: 0 0 10px rgba(255,0,255,.3); }
html[data-vtheme="neon"] .search input:focus { border-color: #ff00ff; box-shadow: 0 0 0 3px rgba(255,0,255,.15); }
html[data-vtheme="neon"] .banner { background: linear-gradient(120deg, #ff00ff, #00ffff); }
html[data-vtheme="neon"] .cs-fab { background: linear-gradient(135deg, #ff00ff, #00ffff); box-shadow: 0 0 25px rgba(255,0,255,.4); }
html[data-vtheme="neon"] a { text-shadow: 0 0 6px rgba(255,0,255,.1); }
html[data-vtheme="neon"] h1, html[data-vtheme="neon"] h2, html[data-vtheme="neon"] h3 { text-shadow: 0 0 10px rgba(255,0,255,.2); }
html[data-vtheme="neon"] .auth-hero { background: linear-gradient(135deg, rgba(255,0,255,.88), rgba(0,255,255,.55)); box-shadow: 0 18px 42px rgba(255,0,255,.2); }
html[data-vtheme="neon"] .acct-head { background: linear-gradient(135deg, rgba(255,0,255,.2), var(--card)); border-color: rgba(255,0,255,.3); }
html[data-vtheme="neon"] .code-box { border-color: rgba(0,255,255,.5); color: #00ffff; text-shadow: 0 0 10px rgba(0,255,255,.3); }

/* ===== Tombol Musik Floating ===== */
.music-btn {
  position: fixed; right: 14px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card2); border: 1px solid var(--line); color: var(--text); font-size: 18px;
  display: grid; place-items: center; transition: transform .15s, filter .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.music-btn:hover { filter: brightness(1.15); transform: scale(1.08); }
.music-btn.playing { background: var(--primary); color: #fff; border-color: var(--primary); animation: musicPulse 2s ease-in-out infinite; }
@keyframes musicPulse { 0%,100% { box-shadow: 0 0 8px rgba(124,58,237,.3); } 50% { box-shadow: 0 0 18px rgba(124,58,237,.5); } }
html[data-vtheme="neon"] .music-btn.playing { background: #ff00ff; border-color: #ff00ff; animation: musicPulseNeon 2s ease-in-out infinite; }
@keyframes musicPulseNeon { 0%,100% { box-shadow: 0 0 10px rgba(255,0,255,.3); } 50% { box-shadow: 0 0 25px rgba(255,0,255,.6); } }
@media (max-width: 640px) { .music-btn { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }

/* Neon Night refined: legible cyberpunk, softer glow and distinct surfaces */
html[data-vtheme="neon"] body { background-image: radial-gradient(900px 420px at 0% 0%,rgba(124,58,237,.22),transparent 60%),radial-gradient(800px 400px at 100% 10%,rgba(6,182,212,.17),transparent 60%),linear-gradient(180deg,#090713,#100b20 55%,#090713); }
html[data-vtheme="neon"] .top { background:rgba(9,7,19,.88); border-bottom-color:rgba(34,211,238,.24); }
html[data-vtheme="neon"] .card,html[data-vtheme="neon"] .pcard,html[data-vtheme="neon"] .cat { background:linear-gradient(150deg,rgba(25,18,48,.96),rgba(14,12,31,.98)); border:1px solid rgba(139,92,246,.22); box-shadow:0 8px 30px rgba(0,0,0,.22); }
html[data-vtheme="neon"] .btn:not(.ghost) { background:linear-gradient(100deg,#8b5cf6,#06b6d4); box-shadow:0 5px 18px rgba(139,92,246,.22); }
html[data-vtheme="neon"] .price { color:#67e8f9; text-shadow:0 0 12px rgba(34,211,238,.25); }
html[data-vtheme="neon"] .banner { box-shadow:0 14px 36px rgba(124,58,237,.16); }
html[data-vtheme="neon"] .search input:focus { border-color:#22d3ee; box-shadow:0 0 0 3px rgba(34,211,238,.13); }

/* Flash Sale storefront cards — prominent, factual sales/stock display */
.flash-section { margin:24px 0 30px; padding:16px; border-radius:20px; border:1px solid rgba(239,68,68,.22); background:linear-gradient(145deg,rgba(127,29,29,.09),color-mix(in srgb,var(--card) 88%,transparent)); box-shadow:0 12px 38px rgba(127,29,29,.08); }
.flash-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 14px; padding:4px 2px 12px; border-bottom:1px solid rgba(239,68,68,.18); }
.flash-heading h2 { margin:3px 0 2px; font-size:clamp(21px,4vw,28px); line-height:1.15; }
.flash-heading p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.flash-clock-wrap { flex:0 0 auto; min-width:104px; text-align:center; border-radius:10px; padding:6px 10px; color:#fff; background:#7f1d1d; }
.flash-clock-wrap span { display:block; color:#fecaca; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.flash-clock-wrap strong { display:block; font:800 19px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.08em; }
.flash-kicker { color:#ef4444; font-size:10px; font-weight:900; letter-spacing:.16em; }
.flash-bolt { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; color:white; font-size:23px; background:linear-gradient(145deg,#fb7185,#dc2626); box-shadow:0 6px 18px rgba(220,38,38,.28); }
.flash-grid { gap:12px; }
.pcard-flash { border-color:rgba(239,68,68,.27); box-shadow:0 6px 20px rgba(127,29,29,.08); }
.pcard-flash:hover { border-color:rgba(239,68,68,.65); box-shadow:0 12px 28px rgba(127,29,29,.15); }
.pcard-flash .badge.flash { top:9px; left:9px; max-width:calc(100% - 18px); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; background:linear-gradient(100deg,#ef4444,#be123c); box-shadow:0 4px 12px rgba(127,29,29,.28); }
.flash-price-row { display:flex; flex-wrap:wrap; gap:4px 8px; align-items:baseline; }
.flash-price-row .strike { margin-left:2px; }
.flash-save { display:inline-flex; align-items:center; padding:2px 6px; border-radius:5px; color:#b91c1c; background:#fee2e2; font-size:9px; font-weight:900; }
.flash-sale-meta { display:grid; grid-template-columns:1fr 1.15fr auto; align-items:center; gap:5px; padding-top:9px; margin-top:auto; font-size:10px; }
.flash-sold { color:#be123c; font-weight:900; text-align:center; white-space:nowrap; }
.flash-buy { justify-self:end; display:inline-flex; align-items:center; justify-content:center; min-width:50px; padding:6px 12px; border-radius:7px; color:#fff; background:#e11d48; font-size:11px; font-weight:900; box-shadow:0 3px 9px rgba(225,29,72,.22); }
.flash-stock { color:var(--muted); text-align:left; font-size:9px; white-space:nowrap; }
.flash-cta { display:flex; justify-content:space-between; align-items:center; margin-top:6px; padding-top:6px; border-top:1px solid rgba(239,68,68,.13); color:#dc2626; font-size:11px; font-weight:800; }
.flash-cta span { font-size:16px; }
html[data-vtheme="dark"] .flash-save,html[data-vtheme="neon"] .flash-save { background:rgba(239,68,68,.15); color:#fca5a5; }
html[data-vtheme="neon"] .flash-section { border-color:rgba(251,113,133,.28); background:linear-gradient(145deg,rgba(190,24,93,.12),rgba(14,12,31,.92)); }
html[data-vtheme="neon"] .pcard-flash { border-color:rgba(251,113,133,.3); }
@media(max-width:420px) { .flash-section { padding:11px; margin:18px -4px 24px; border-radius:16px; } .flash-grid { gap:9px; } .flash-sale-meta { font-size:9px; gap:3px; } .flash-buy { min-width:42px; padding:6px 8px; } .flash-clock-wrap { min-width:91px; padding:5px 7px; } .flash-clock-wrap strong { font-size:16px; } .pcard-flash .pbody { padding:8px 9px 10px; } }

/* Optional product GIF/video: main photo first, promo media fades in after 1.5s */
.pimg-media-swap { isolation:isolate; }
.pimg-media-swap > img:not(.p-promo-media),.pimg-media-swap > .tile { transition:opacity .45s ease; }
.p-promo-media { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .45s ease;pointer-events:none; }
.pimg-media-swap.show-promo-media > img:not(.p-promo-media),.pimg-media-swap.show-promo-media > .tile { opacity:0; }
.pimg-media-swap.show-promo-media .p-promo-media { opacity:1; }
.media2-box { padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--card2);margin-top:8px; }
.media2-preview { min-height:70px;display:grid;place-items:center;color:var(--muted);font-size:12px;border:1px dashed var(--line);border-radius:10px;padding:8px; }
.media2-preview img,.media2-preview video { width:100%;max-height:180px;object-fit:contain;border-radius:8px; }


/* Komplain & Garansi UI */
.wcard { padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card2);margin-top:12px;text-align:left; }
.wcard.ok { border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.08); }
.wcard.warn { border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.09); }
.wcard.bad { border-color:rgba(239,68,68,.4);background:rgba(239,68,68,.08); }
.cmp-shots { display:flex;flex-wrap:wrap;gap:10px;margin-top:8px; }
.cmp-shot { position:relative;width:86px;height:86px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--card2); }
.cmp-shot img { width:100%;height:100%;object-fit:cover;display:block; }
.cmp-shot button { position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:99px;border:0;background:rgba(0,0,0,.72);color:#fff;cursor:pointer;font-size:12px;line-height:1; }
.cmp-thread { display:flex;flex-direction:column;gap:10px;margin-top:12px; }
.cmp-msg { padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card2); }
.cmp-msg.me { border-color:rgba(124,58,237,.35);background:rgba(124,58,237,.08); }
.cmp-msg.staff { border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.07); }
.cmp-rep { margin-top:8px;padding:10px 12px;border-radius:10px;border:1px dashed rgba(34,197,94,.5);background:rgba(34,197,94,.1);white-space:pre-wrap;font-family:ui-monospace,monospace;font-size:13px; }
