/* MIRACLE LUXURY — tema hitam & kuning keemasan neon */
:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --surface: #111114;
  --surface-2: #18181c;
  --surface-3: #202026;
  --border: rgba(255, 196, 30, .14);
  --border-strong: rgba(255, 196, 30, .38);
  --text: #f7f2e2;
  --muted: #a7a08d;
  --gold: #ffc81f;
  --gold-hi: #fff1a6;
  --gold-lo: #e08f00;
  --gold-ink: #1b1300;
  --gold-grad: linear-gradient(180deg, #fff3b0 0%, #ffd52a 42%, #f2a400 100%);
  --gold-grad-h: linear-gradient(135deg, #fff0a0 0%, #ffcc1a 45%, #e89600 100%);
  --glow: 0 0 0 1px rgba(255, 200, 30, .35), 0 0 18px rgba(255, 190, 0, .35);
  --glow-strong: 0 0 0 1px rgba(255, 210, 60, .6), 0 0 26px rgba(255, 190, 0, .55);
  --ok: #3ddc97;
  --warn: #ffb84d;
  --err: #ff5d6c;
  --info: #5cb8ff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .55);
  --font-display: 'Racing Sans One', Impact, 'Arial Black', sans-serif;
  --font-body: Calibri, Carlito, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --sb-w: 272px;
  --sb-w-mini: 78px;
  --topbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -120px, rgba(255, 190, 0, .13), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(255, 160, 0, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
svg.ic { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(21px, 3vw, 26px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.hidden { display: none !important; }
.neon { color: #ffd43b; text-shadow: 0 0 6px rgba(255, 200, 0, .7), 0 0 22px rgba(255, 170, 0, .45); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 190, 0, .35)); }
::selection { background: rgba(255, 200, 30, .35); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* ================================================================ Header publik */
.announce {
  background: var(--gold-grad-h); color: var(--gold-ink); text-align: center;
  font-size: 14px; font-weight: 700; padding: 7px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 5, 5, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { width: 40px; height: 40px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(255, 190, 0, .45)); }
.brand-lockup .wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 9px; }
.nav-links a svg.ic { width: 17px; height: 17px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(255, 200, 30, .07); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; margin-left: 8px; flex-shrink: 0; }
/* HP: tombol Masuk/Daftar tetap tampil, menu Beranda/Cek Pesanan pindah ke baris kedua */
@media (max-width: 767px) {
  .nav { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .brand-lockup { flex: 1; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-lockup .wordmark { font-size: 17px; }
  .nav-actions { margin-left: 0; gap: 6px; }
  .nav-actions .btn { padding: 6px 12px; min-height: 36px; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: center; gap: 6px; border-top: 1px solid var(--border); padding-top: 6px; }
  .nav-links a { flex: 1; justify-content: center; padding: 6px 8px; font-size: 14.5px; }
}
@media (max-width: 360px) { .brand-lockup .wordmark { font-size: 15px; } .nav-actions .btn { padding: 6px 9px; font-size: 13.5px; } }

/* ================================================================ Tombol & input */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 10px 16px; min-height: 42px; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none !important; white-space: nowrap; touch-action: manipulation;
}
.btn:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 190, 0, .2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--gold-grad); color: var(--gold-ink); border: none; box-shadow: var(--glow); }
.btn-primary:hover { box-shadow: var(--glow-strong); filter: brightness(1.05); }
.btn-ghost { background: transparent; }
.btn-icon { padding: 0; width: 42px; }
.btn-danger { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .45); color: #ff9ba5; }
.btn-danger:hover { border-color: var(--err); box-shadow: 0 0 14px rgba(255, 93, 108, .25); }
.btn-ok { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .45); color: #8af0c4; }
.btn-sm { padding: 6px 11px; min-height: 34px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; min-height: 52px; font-size: 17px; }

label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .09); color: var(--text);
  font: inherit; font-size: 16px; /* 16px: cegah auto-zoom iOS */
  padding: 11px 13px; min-height: 46px; border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 30, .16), 0 0 16px rgba(255, 190, 0, .18); }
.input::placeholder { color: #6f6a5c; }
textarea.input { min-height: 96px; resize: vertical; }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); font-weight: 700; cursor: pointer; margin: 0; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; }

/* ================================================================ Kartu */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.stat-grid > .card, .how > .card, .grid-2 > .card, .grid-3 > .card { margin-top: 0; }
@media (max-width: 480px) { .card { padding: 16px; } }
.card-gold { border-color: var(--border-strong); box-shadow: 0 0 30px rgba(255, 180, 0, .08) inset; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.step-num {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: var(--gold-grad); color: var(--gold-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 17px; box-shadow: var(--glow);
}
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }

/* ================================================================ Hero */
.hero { padding: 18px 0 8px; text-align: center; }
.hero-logo { width: min(100%, 860px); margin: 0 auto; mix-blend-mode: screen; }
.hero-logo img { width: 100%; height: auto; }
.search { position: relative; max-width: 560px; margin: 8px auto 0; }
.search .input { padding-left: 46px; min-height: 54px; border-radius: 14px; border-color: var(--border-strong); background: rgba(10, 10, 12, .9); }
.search svg.ic { position: absolute; left: 15px; top: 17px; color: var(--gold); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.perk { font-size: 14px; color: var(--muted); background: rgba(255, 200, 30, .05); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; }
.perk b { color: var(--gold); }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ================================================================ Tab kategori */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 10px 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font: inherit; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 42px;
}
.tab svg.ic { width: 17px; height: 17px; }
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; box-shadow: var(--glow); }

/* ================================================================ Grid brand */
.brand-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-card { padding: 7px 7px 9px; gap: 7px; border-radius: 13px; }
  .brand-card .name { font-size: 13.5px; }
  .brand-card .from { font-size: 12px; }
  .avatar { border-radius: 10px; font-size: 24px; }
}
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; } }
.brand-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 10px 12px; color: var(--text); display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 0 22px rgba(255, 190, 0, .22); text-decoration: none; }
.brand-card .name { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.brand-card .from { font-size: 13.5px; color: var(--muted); }
.brand-card .from b { color: var(--gold); }
.avatar {
  width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 210, 60, .22), transparent 55%), linear-gradient(160deg, #1c1810, #0b0a07);
  border: 1px solid rgba(255, 200, 30, .22);
  font-family: var(--font-display); font-size: clamp(26px, 6vw, 38px); color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 190, 0, .6), 0 0 22px rgba(255, 160, 0, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 64px; height: 64px; font-size: 24px; flex-shrink: 0; }
.avatar-xs { width: 40px; height: 40px; font-size: 15px; border-radius: 10px; flex-shrink: 0; }

.section { padding-top: 32px; padding-bottom: 32px; }
.how { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.how .card p { margin: 0; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ================================================================ Halaman order */
.order-wrap { container-type: inline-size; padding-top: 22px; padding-bottom: 48px; }
.order-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@container (min-width: 880px) { .order-layout { grid-template-columns: minmax(0, 1fr) 340px; } .summary { position: sticky; top: 84px; } }
.brand-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.brand-head h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 2px; }
.nominal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 400px) { .nominal-grid { grid-template-columns: repeat(2, 1fr); } }
.nominal {
  position: relative; background: var(--bg-2); border: 1.5px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm);
  padding: 12px; cursor: pointer; text-align: left; color: var(--text); font: inherit; min-height: 72px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nominal:hover:not(:disabled) { border-color: var(--border-strong); }
.nominal.selected { border-color: var(--gold); background: rgba(255, 200, 30, .07); box-shadow: 0 0 16px rgba(255, 190, 0, .22); }
.nominal:disabled { opacity: .45; cursor: not-allowed; }
.nominal .n-name { font-weight: 700; font-size: 15px; display: block; line-height: 1.25; }
.nominal .n-price { color: var(--gold); font-weight: 700; font-size: 15px; }
.nominal .n-strike { color: var(--muted); text-decoration: line-through; font-size: 13px; margin-left: 4px; }
.nominal .n-tag { position: absolute; top: 6px; right: 6px; font-size: 11px; font-weight: 700; color: var(--err); }
.pay-group-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 8px; }
.pay-list { display: grid; gap: 8px; }
.pay-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  background: var(--bg-2); border: 1.5px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; color: var(--text); font: inherit; text-align: left; min-height: 52px;
}
.pay-opt:hover:not(:disabled) { border-color: var(--border-strong); }
.pay-opt.selected { border-color: var(--gold); background: rgba(255, 200, 30, .07); box-shadow: 0 0 14px rgba(255, 190, 0, .18); }
.pay-opt:disabled { opacity: .5; cursor: not-allowed; }
.pay-opt .p-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pay-opt .p-name img { height: 20px; width: auto; }
.pay-opt .p-total { font-weight: 700; color: var(--gold); font-size: 15px; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-row > span:first-child { color: var(--muted); flex-shrink: 0; }
.sum-row > span:last-child { text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.sum-total { border-top: 1px dashed var(--border-strong); margin-top: 8px; padding-top: 12px; }
.sum-total > span:last-child { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--gold); text-shadow: 0 0 12px rgba(255, 190, 0, .4); }
.nick-ok { color: var(--ok); font-size: 14px; margin-top: 8px; font-weight: 700; }
.nick-err { color: var(--err); font-size: 14px; margin-top: 8px; }

/* ================================================================ Invoice */
.invoice-wrap { max-width: 720px; margin: 0 auto; padding: 24px 0 48px; }
.status-hero { text-align: center; padding: 26px 18px; }
.status-icon { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; font-weight: 700; }
.status-icon.pending { background: rgba(255, 184, 77, .12); color: var(--warn); box-shadow: 0 0 22px rgba(255, 184, 77, .25); }
.status-icon.processing { background: rgba(92, 184, 255, .12); color: var(--info); box-shadow: 0 0 22px rgba(92, 184, 255, .25); }
.status-icon.success { background: rgba(61, 220, 151, .12); color: var(--ok); box-shadow: 0 0 22px rgba(61, 220, 151, .3); }
.status-icon.failed { background: rgba(255, 93, 108, .12); color: var(--err); box-shadow: 0 0 22px rgba(255, 93, 108, .25); }
.timeline { display: flex; justify-content: space-between; gap: 6px; margin: 20px 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 14px; left: 14%; right: 14%; height: 2px; background: var(--surface-3); }
.tl-step { flex: 1; text-align: center; position: relative; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.tl-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface-3); margin: 0 auto 6px; display: grid; place-items: center; font-size: 13px; }
.tl-step.done { color: var(--text); }
.tl-step.done .tl-dot { background: var(--gold-grad); border-color: transparent; color: var(--gold-ink); box-shadow: var(--glow); }
.tl-step.current .tl-dot { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 190, 0, .4); }
.tl-step.fail .tl-dot { background: var(--err); border-color: var(--err); color: #2a0509; }
.pay-box { text-align: center; }
.big-amount { font-family: var(--font-display); font-size: clamp(30px, 7vw, 40px); color: var(--gold); text-shadow: 0 0 14px rgba(255, 190, 0, .45); }
.pay-code { font-size: 24px; font-weight: 700; letter-spacing: .04em; background: var(--bg-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; overflow-wrap: anywhere; }
.qr { width: 220px; height: 220px; margin: 10px auto; background: #fff; border-radius: 12px; padding: 10px; }
.sn-box { background: rgba(61, 220, 151, .07); border: 1px solid rgba(61, 220, 151, .35); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
.sn-box .mono { font-size: 16px; font-weight: 700; word-break: break-all; }
.note-box { background: var(--bg-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.sim-box { border: 1px dashed var(--warn); background: rgba(255, 184, 77, .05); border-radius: var(--radius-sm); padding: 14px; margin-top: 14px; text-align: center; }

/* ================================================================ Badge & tabel */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-pending { background: rgba(255, 184, 77, .13); color: var(--warn); }
.b-processing { background: rgba(92, 184, 255, .13); color: var(--info); }
.b-success { background: rgba(61, 220, 151, .13); color: var(--ok); }
.b-failed { background: rgba(255, 93, 108, .13); color: var(--err); }
.b-muted { background: var(--surface-3); color: var(--muted); }
.b-gold { background: rgba(255, 200, 30, .14); color: var(--gold); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); background: rgba(255, 200, 30, .05); font-weight: 700; white-space: nowrap; }
tbody tr:hover td, tr.clickable:hover td { background: rgba(255, 200, 30, .03); }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.clickable { cursor: pointer; }

/* Tabel jadi kartu di layar kecil */
@media (max-width: 640px) {
  .table-cards .table-wrap { border: none; overflow: visible; }
  .table-cards table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead, .table-cards tr.thead { display: none; }
  .table-cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 6px 0; }
  .table-cards td { border: none; padding: 5px 14px; text-align: right; display: flex; justify-content: space-between; gap: 12px; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 700; text-align: left; flex-shrink: 0; }
  .table-cards td.num { text-align: right; }
  .table-cards td > div { text-align: right; }
}

/* ================================================================ Auth */
.auth-wrap { width: 100%; max-width: 440px; margin: 20px auto 48px; padding: 0 16px; }
.auth-logo { width: min(100%, 300px); aspect-ratio: 1400 / 733; margin: 0 auto 4px; mix-blend-mode: screen; }
.auth-logo img { width: 100%; height: auto; }
@media (max-width: 480px) { .auth-logo { width: min(78%, 250px); } .auth-wrap { margin-top: 12px; } }
@media (max-height: 700px) and (min-width: 768px) { .auth-logo { width: 240px; } }
.auth-wrap .card { padding: 26px; }
@media (max-width: 480px) { .auth-wrap .card { padding: 20px; } }

/* ================================================================ Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + var(--safe-b)); margin-top: 32px; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ================================================================ Toast & modal */
#toast-root { position: fixed; right: 16px; bottom: calc(16px + var(--safe-b)); z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 4px solid var(--info); padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow); font-size: 15px; animation: slideIn .2s ease; max-width: 380px; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); width: 100%; max-width: 600px; max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; box-shadow: var(--shadow), 0 0 40px rgba(255, 180, 0, .08); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .modal-bg { place-items: end stretch; padding: 0; }
  .modal { max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: calc(22px + var(--safe-b)); }
}

.spinner { width: 18px; height: 18px; border: 2px solid rgba(0, 0, 0, .25); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ================================================================ Shell (panel member & admin) */
body.has-shell { background-attachment: fixed; }
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 60; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0d0c09, #070707 40%); border-right: 1px solid var(--border);
  transition: width .22s ease, transform .25s ease; overflow: hidden;
}
.sb-head { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sb-brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; flex: 1; }
.sb-brand:hover { text-decoration: none; }
.sb-brand img { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(255, 190, 0, .5)); }
.sb-brand span { font-family: var(--font-display); font-size: 17px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-toggle { background: none; border: 1px solid var(--border); color: var(--gold); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.sb-toggle:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 190, 0, .25); }
.sb-toggle svg.ic { width: 18px; height: 18px; transition: transform .2s ease; }
.sb-user { margin: 14px 12px 4px; padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255, 200, 30, .04); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sb-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: var(--gold-ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 17px; flex-shrink: 0; box-shadow: var(--glow); overflow: hidden; }
.sb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sb-user .u-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .u-bal { font-size: 13.5px; color: var(--gold); font-weight: 700; white-space: nowrap; }
.sb-user > div { min-width: 0; }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 10px 16px; scrollbar-width: thin; scrollbar-color: #2a2617 transparent; }
.sb-section { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f6852; padding: 14px 10px 6px; white-space: nowrap; overflow: hidden; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 11px;
  color: #c9c2ad; font-weight: 700; font-size: 15.5px; white-space: nowrap; border: 1px solid transparent; min-height: 44px;
}
.sb-link:hover { color: var(--gold); background: rgba(255, 200, 30, .06); text-decoration: none; }
.sb-link.active { color: var(--gold-ink); background: var(--gold-grad); box-shadow: var(--glow); }
.sb-link .lbl { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.sb-badge { background: var(--err); color: #fff; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.sb-link.active .sb-badge { background: var(--gold-ink); color: var(--gold); }
.sb-foot { padding: 10px 10px calc(12px + var(--safe-b)); border-top: 1px solid var(--border); flex-shrink: 0; }
.sb-backdrop { display: none; }

.shell-main { flex: 1; min-width: 0; margin-left: var(--sb-w); transition: margin-left .22s ease; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 20px;
  background: rgba(5, 5, 5, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
}
.tb-menu { display: none; }
.tb-title { font-family: var(--font-display); font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.tb-right { display: flex; align-items: center; gap: 8px; }
.balance-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 200, 30, .07); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.balance-chip:hover { text-decoration: none; box-shadow: 0 0 12px rgba(255, 190, 0, .25); }
.shell-content { flex: 1; padding: 22px 20px 40px; width: 100%; max-width: 1280px; margin: 0 auto; container-type: inline-size; }
.shell-content .order-wrap, .shell-content .invoice-wrap { padding-top: 0; }
.shell-content .container { padding: 0; max-width: none; }

/* Mode ringkas (desktop) */
.shell.collapsed .sidebar { width: var(--sb-w-mini); }
.shell.collapsed .shell-main { margin-left: var(--sb-w-mini); }
.shell.collapsed .sb-brand span, .shell.collapsed .sb-user > div:not(.sb-avatar), .shell.collapsed .sb-link .lbl, .shell.collapsed .sb-section { display: none; }
.shell.collapsed .sb-head { flex-direction: column; justify-content: center; height: auto; padding: 12px 0; gap: 10px; }
.shell.collapsed .sb-brand { flex: none; }
.shell.collapsed .sb-toggle svg.ic { transform: rotate(180deg); }
.shell.collapsed .sb-user { justify-content: center; padding: 8px; margin: 12px 10px 4px; }
.shell.collapsed .sb-link { justify-content: center; padding: 10px 0; }
.shell.collapsed .sb-section { display: block; height: 10px; padding: 0; margin: 8px 12px; border-top: 1px solid var(--border); font-size: 0; }
.shell.collapsed .sb-badge { position: absolute; top: 3px; right: 6px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }

/* Tablet & HP: sidebar jadi laci (off-canvas) */
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); width: min(86vw, 300px); box-shadow: var(--shadow); }
  .shell.open .sidebar { transform: none; }
  .shell-main, .shell.collapsed .shell-main { margin-left: 0; }
  .shell.collapsed .sidebar { width: min(86vw, 300px); }
  .shell.collapsed .sb-brand span, .shell.collapsed .sb-link .lbl { display: initial; }
  .shell.collapsed .sb-user > div:not(.sb-avatar) { display: block; }
  .shell.collapsed .sb-section { display: block; height: auto; padding: 14px 10px 6px; margin: 0; border: none; font-size: 11.5px; }
  .shell.collapsed .sb-head { flex-direction: row; height: var(--topbar-h); padding: 0 12px 0 16px; }
  .shell.collapsed .sb-brand { flex: 1; }
  .shell.collapsed .sb-user { justify-content: flex-start; padding: 12px; margin: 14px 12px 4px; }
  .shell.collapsed .sb-link { justify-content: flex-start; padding: 10px 12px; }
  .shell.collapsed .sb-badge { position: static; }
  .shell.collapsed .sb-toggle svg.ic { transform: none; }
  .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .shell.open .sb-backdrop { opacity: 1; pointer-events: auto; }
  .tb-menu { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .shell-content { padding: 18px 14px 36px; }
}
@media (max-width: 480px) {
  .tb-title { font-size: 18px; }
  .balance-chip { padding: 5px 10px; font-size: 13.5px; }
}

/* ================================================================ Panel (dashboard) */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.saldo-card { background: radial-gradient(500px 240px at 100% 0, rgba(255, 200, 30, .2), transparent 60%), linear-gradient(160deg, #1a1508, #0d0c0a 70%); border-color: var(--border-strong); }
.saldo-amount { font-family: var(--font-display); font-size: clamp(32px, 6vw, 44px); margin: 2px 0 10px; }
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 18px; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 200, 30, .08); border: 1px solid var(--border); color: var(--gold); flex-shrink: 0; }
.stat .label { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.stat .value { font-family: var(--font-display); font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.quick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; text-align: center; }
.quick a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; box-shadow: 0 0 16px rgba(255, 190, 0, .18); }
.quick svg.ic { width: 26px; height: 26px; color: var(--gold); }
.update-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.update-item:last-child { border-bottom: none; }
.update-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 200, 30, .08); color: var(--gold); border: 1px solid var(--border); }
.update-item h3 { font-family: var(--font-body); font-weight: 700; font-size: 16.5px; letter-spacing: 0; margin: 0 0 2px; }
.update-body { white-space: pre-line; color: #d5cfbd; font-size: 15px; margin-top: 6px; }
.update-item.unread h3::after { content: 'BARU'; margin-left: 8px; font-size: 11px; background: var(--err); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; flex: 1 1 200px; }
.toolbar select.input { flex: 0 1 220px; }
.mode-pill { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.mode-mock { background: rgba(255, 184, 77, .13); color: var(--warn); }
.mode-live { background: rgba(61, 220, 151, .13); color: var(--ok); }
.price-brand { margin-top: 18px; }
.price-brand h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.import-cat { border: 1px solid var(--border); border-radius: 13px; margin-bottom: 10px; background: var(--bg-2); }
.import-cat > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.import-cat > summary::-webkit-details-marker { display: none; }
.import-cat[open] > summary { border-bottom: 1px solid var(--border); }
.import-brands { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); padding: 12px 14px; }
.import-brands .check { font-weight: 400; font-size: 14.5px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); padding: 16px 0 calc(8px + var(--safe-b)); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .stat-ic { width: 38px; height: 38px; border-radius: 11px; }
  .stat .value { font-size: 20px; }
  .quick { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick a { padding: 12px 6px; font-size: 13.5px; }
}

/* ================================================================ Tambahan v4 */
.panel-switch { min-height: 36px; }
@media (max-width: 560px) { .panel-switch span { display: none; } .panel-switch { padding: 0; width: 38px; } }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-photo { flex-shrink: 0; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-3); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; cursor: pointer; transition: background .2s ease; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #8a8577; transition: transform .2s ease, background .2s ease; }
.switch input:checked + .slider { background: rgba(255, 200, 30, .25); border-color: var(--gold); box-shadow: 0 0 12px rgba(255, 190, 0, .25); }
.switch input:checked + .slider::before { transform: translateX(20px); background: var(--gold); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 2px; }
.channel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.channel-row:last-child { border-bottom: none; }
.log-loc { font-size: 13.5px; }
.user-cell { display: flex; gap: 10px; align-items: center; text-align: left; }
.user-cell .sb-avatar { width: 34px; height: 34px; font-size: 14px; box-shadow: none; }

/* ================================================================ Tambahan v5 */
/* Tombol nonaktif (tidak ada perubahan): pudar + kursor dilarang */
.btn:disabled, .btn:disabled:hover { opacity: .42; cursor: not-allowed; box-shadow: none; filter: saturate(.35); transform: none; border-color: var(--border); }
.btn.is-loading:disabled { opacity: .85; cursor: progress; filter: none; }

/* Pengumuman teks berjalan */
.announce { padding: 7px 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 20s linear infinite; will-change: transform; }
.announce:hover .marquee span { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.announce-preview { border-radius: 10px; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { white-space: normal; text-align: center; padding: 0 16px; }
  .marquee span { padding-left: 0; }
}

/* Footer: di HP 3 baris rata tengah (brand + tagline, menu, copyright) */
.footer-copy { margin-top: 14px; }
@media (max-width: 767px) {
  .site-footer { text-align: center; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 14px; }
  .footer-inner .brand-lockup { flex: none; justify-content: center; text-align: left; }
  .footer-links { justify-content: center; gap: 8px 18px; }
  .footer-copy { text-align: center; margin-top: 16px; }
}

/* Topbar: judul + keterangan waktu muat ulang */
.tb-head { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.tb-head .tb-title { flex: none; }
.tb-updated { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
.tb-refresh { min-height: 36px; }
.tb-refresh.spinning svg.ic { animation: spin .8s linear infinite; }
.tb-refresh.spinning { pointer-events: none; opacity: .8; }
@media (max-width: 860px) { .tb-refresh span { display: none; } .tb-refresh { padding: 0; width: 38px; } }
@media (max-width: 480px) { .tb-updated { font-size: 11px; } .tb-right { gap: 6px; } }

/* Maintenance */
.maint-bar { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; background: rgba(255, 93, 108, .14); border-bottom: 1px solid rgba(255, 93, 108, .4); color: #ffb3ba; font-size: 14px; padding: 7px 16px; text-align: center; }
.maint-bar svg.ic { width: 17px; height: 17px; }
.maint-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.maint-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 93, 108, .14); border: 1px solid rgba(255, 93, 108, .5); color: #ffb3ba; white-space: nowrap; animation: pulseRed 2s ease-in-out infinite; }
.maint-chip:hover { text-decoration: none; color: #fff; }
.maint-chip svg.ic { width: 16px; height: 16px; }
@keyframes pulseRed { 50% { box-shadow: 0 0 14px rgba(255, 93, 108, .45); } }
@media (max-width: 640px) { .maint-chip span { display: none; } .maint-chip { padding: 0; width: 36px; height: 36px; justify-content: center; } }
.maint-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: inherit; text-decoration: none; border-color: rgba(255, 93, 108, .5); }
.maint-alert:hover { text-decoration: none; }
.maint-alert .stat-ic { color: var(--err); background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); }
.card.maint-on { border-color: rgba(255, 93, 108, .55); box-shadow: 0 0 30px rgba(255, 93, 108, .1) inset; }
.sb-badge[data-badge="mt"] { font-size: 10px; }
.maint-page { min-height: 100vh; min-height: 100dvh; }
.maint { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px calc(24px + var(--safe-b)); gap: 16px;
  background: radial-gradient(700px 420px at 50% 0, rgba(255, 190, 0, .12), transparent 70%); }
.maint-card { width: 100%; max-width: 520px; text-align: center; padding: 30px 24px; }
.maint-logo { width: 76px; height: 76px; border-radius: 50%; filter: drop-shadow(0 0 14px rgba(255, 190, 0, .5)); }
.maint-name { font-family: var(--font-display); font-size: 24px; letter-spacing: .03em; margin-top: 6px; }
.maint-ic { width: 56px; height: 56px; margin: 18px auto 6px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 200, 30, .08); border: 1px solid var(--border-strong); color: var(--gold); }
.maint-ic svg.ic { width: 28px; height: 28px; }
.maint h1 { font-size: clamp(26px, 6vw, 34px); margin: 8px 0 6px; }
.maint-msg { color: #d5cfbd; white-space: pre-line; margin: 0 auto 14px; max-width: 420px; }
.maint-eta { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin: 0 auto 16px; max-width: 320px; }
.maint-time { font-weight: 700; font-size: 16px; }
.maint-count { font-family: var(--font-display); font-size: 28px; color: var(--gold); letter-spacing: .04em; margin-top: 2px; }
.maint-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.maint-admin { opacity: .7; }

/* Filter tanggal */
.date-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 420px; }
.df-preset-wrap { position: relative; margin: 0; flex: 0 1 210px; min-width: 170px; }
.df-preset-wrap svg.ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--gold); pointer-events: none; }
.toolbar .df-preset-wrap .input, .df-preset-wrap .input { padding-left: 38px; width: 100%; }
.df-dates { display: flex; align-items: center; gap: 6px; flex: 1 1 260px; min-width: 0; }
.df-dates .input, .toolbar .df-dates .input { flex: 1 1 0; min-width: 0; width: auto; padding: 9px 10px; min-height: 44px; }
.df-dates span { flex-shrink: 0; font-size: 13px; }
input[type="date"].input, input[type="datetime-local"].input { min-width: 0; color-scheme: dark; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
.section-head .date-filter { flex: 0 1 520px; }
.filter-sum { margin: -4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.l-store { margin-left: auto; }
@media (max-width: 560px) {
  .date-filter { flex-basis: 100%; }
  .df-preset-wrap { flex: 1 1 100%; }
  .df-dates { flex-basis: 100%; }
  .l-store { margin-left: 0; }
}
.mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Form kecil */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); cursor: pointer; color: var(--text); font-weight: 400; }
.switch-row:last-of-type { border-bottom: none; }
.switch-row > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.radio-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; color: var(--text); font-weight: 400; font-size: 15px; }
.radio-row:has(input:checked) { border-color: var(--gold); background: rgba(255, 200, 30, .05); }
.radio-row > input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.radio-row > span { flex: 1; min-width: 0; }
.input-inline { display: inline-block; width: auto; min-height: 38px; padding: 6px 34px 6px 10px; margin: 0 4px; vertical-align: middle; }
.sep { border: none; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.lrf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.note-box svg.ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--gold); }
.sticky-actions .xs { margin-left: 4px; }
.maint-logo { display: block; margin: 0 auto; }
@media (max-width: 560px) { .toolbar select.input { flex: 1 1 100%; } }

/* Login backoffice (admin) */
.bo-wrap { max-width: 440px; margin: 0 auto; padding: 48px 16px calc(32px + var(--safe-b)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.bo-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.bo-brand img { width: 64px; height: 64px; border-radius: 50%; filter: drop-shadow(0 0 12px rgba(255, 190, 0, .5)); }
.bo-brand .wordmark { font-family: var(--font-display); font-size: 22px; letter-spacing: .03em; }
.bo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bo-head > svg.ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 200, 30, .08); border: 1px solid var(--border-strong); color: var(--gold); }
.bo-back { text-align: center; margin-top: 16px; }

/* ================================================================ Tambahan v8 */
/* Header: logo utama di kiri atas */
.nav { height: 74px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand-logo img { height: 58px; width: auto; filter: drop-shadow(0 0 10px rgba(255, 190, 0, .25)); }
.brand-logo:hover img { filter: drop-shadow(0 0 14px rgba(255, 190, 0, .45)); }

/* Pilihan bahasa ID / EN */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 200, 30, .04); flex-shrink: 0; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; min-height: 30px; border-radius: 999px; cursor: pointer; }
.lang-switch button:hover { color: var(--gold); }
.lang-switch button.active { background: var(--gold-grad); color: var(--gold-ink); cursor: default; }
.nav-links .lang-switch { margin-left: 6px; }
.sb-lang { padding: 2px 4px 10px; }
.shell.collapsed .sb-lang { display: none; }
.maint-lang { margin-top: 16px; display: flex; justify-content: center; }

@media (max-width: 767px) {
  .nav { height: auto; }
  .brand-logo { flex: 1; min-width: 0; }
  .brand-logo img { height: 46px; }
  .nav-links .lang-switch { margin-left: 4px; }
  .nav-links .lang-switch button { padding: 4px 8px; min-height: 28px; font-size: 12.5px; }
}
@media (max-width: 1023px) { .shell.collapsed .sb-lang { display: block; } }

/* Popup masuk / daftar */
body.modal-open { overflow: hidden; }
.modal { position: relative; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); cursor: pointer; z-index: 2; }
.modal-x:hover { border-color: var(--gold); color: var(--gold); }
.modal-x svg.ic { width: 18px; height: 18px; }
.modal-auth { max-width: 460px; padding-top: 18px; }
.am-brand { display: flex; justify-content: center; margin: 0 40px 8px; }
.am-brand img { height: 84px; width: auto; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; }
.am-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15.5px; min-height: 42px; border-radius: 10px; cursor: pointer; }
.am-tabs button.active { background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--glow); }
.am-sub { margin: 0 0 14px; }
.am-switch { margin: 14px 0 0; text-align: center; }
@media (max-width: 560px) {
  .modal-auth { padding: 14px 18px calc(20px + var(--safe-b)); }
  .am-brand img { height: 66px; }
  .modal-auth .row { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (max-width: 360px) { .modal-auth .row { grid-template-columns: 1fr; } }

/* Slider banner beranda */
.hero-logo.has-slider { width: min(100%, 980px); mix-blend-mode: normal; }
.slider { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 0 28px rgba(255, 180, 0, .14); background: var(--surface); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 16 / 7; }
.slide a { display: block; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: rgba(5, 5, 5, .6); color: var(--gold); cursor: pointer; opacity: 0; transition: opacity .2s ease; backdrop-filter: blur(6px); }
.sl-prev { left: 12px; }
.sl-next { right: 12px; }
.slider:hover .sl-nav, .sl-nav:focus-visible { opacity: 1; }
.sl-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.sl-dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s ease, background .25s ease; box-shadow: 0 0 6px rgba(0, 0, 0, .6); }
.sl-dots button.active { width: 24px; background: var(--gold); }
@media (hover: none) { .sl-nav { display: none; } }
@media (max-width: 560px) { .slider { border-radius: 14px; } .sl-dots { bottom: 7px; gap: 6px; } }

/* Admin: kelola banner */
.bn-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; padding: 4px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.bn-controls .switch-row { flex: 1 1 260px; }
.bn-interval { display: flex; align-items: center; gap: 4px; margin: 0; }
.bn-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bn-item:last-child { border-bottom: none; }
.bn-item.off .bn-thumb, .bn-item.off .bn-info { opacity: .45; }
.bn-thumb { width: 160px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg-2); }
.bn-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bn-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.bn-actions .btn-icon { width: 36px; min-height: 34px; }
.bn-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-strong); aspect-ratio: 16 / 7; background: var(--bg-2); }
.bn-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .bn-item { flex-wrap: wrap; gap: 10px; }
  .bn-thumb { width: 100%; }
  .bn-actions { width: 100%; justify-content: flex-start; }
  .bn-actions .switch { margin-left: auto; }
}
.bn-interval span { white-space: nowrap; }

/* ================================================================ Level & referral (v9) */
.lv-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; border: 1px solid currentColor; background: rgba(255, 255, 255, .04); vertical-align: middle; line-height: 1.4; }
.lv-badge svg.ic { width: 14px; height: 14px; }
.lv-0 { color: #e3a06b; } .lv-1 { color: #d8dde6; } .lv-2 { color: #ffc81e; } .lv-3 { color: #7fe3ff; } .lv-4 { color: #c9c3ff; } .lv-5 { color: #ff7ad9; }
.lv-badge.lv-5 { background: linear-gradient(90deg, rgba(255, 122, 217, .16), rgba(255, 200, 30, .16)); box-shadow: 0 0 10px rgba(255, 122, 217, .25); }
.lv-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.sb-user .u-lv { margin-top: 4px; }
.sb-user .u-lv .lv-badge { font-size: 11.5px; padding: 1px 8px 1px 6px; }
.shell.collapsed .sb-user .u-lv { display: none; }

.level-card .lc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.level-card .lc-name { margin-top: 6px; }
.level-card .lc-name .lv-badge { font-size: 16px; padding: 5px 14px 5px 11px; }
.level-card .lc-name .lv-badge svg.ic { width: 18px; height: 18px; }
.level-card .lc-spent { text-align: right; }
.level-card .lc-spent b { font-family: var(--font-display); font-size: 22px; color: var(--gold); }
.lc-bar { height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; margin-bottom: 8px; }
.lc-bar span { display: block; height: 100%; background: var(--gold-grad); box-shadow: 0 0 12px rgba(255, 190, 0, .45); border-radius: inherit; }
.lc-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lc-step { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--border); text-align: center; opacity: .5; font-size: 13.5px; min-width: 0; }
.lc-step b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lc-step.on { opacity: 1; }
.lc-step.cur { border-color: var(--gold); background: rgba(255, 200, 30, .07); box-shadow: 0 0 14px rgba(255, 190, 0, .15); }
@media (max-width: 560px) { .lc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .level-card .lc-spent { text-align: left; } }

.ref-link .input { font-size: 14px; }
.ref-share { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.ref-share .btn { flex: 1 1 140px; }
.btn-wa { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .55); color: #7ff0aa; }
.btn-wa:hover { border-color: #25d366; box-shadow: 0 0 14px rgba(37, 211, 102, .3); }
.btn-tg { background: rgba(42, 171, 238, .12); border-color: rgba(42, 171, 238, .55); color: #8fd6ff; }
.btn-tg:hover { border-color: #2aabee; box-shadow: 0 0 14px rgba(42, 171, 238, .3); }
.ref-rule { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ref-rule b { color: var(--ok); white-space: nowrap; }
.am-ref { margin: -4px 0 14px; }
@media (max-width: 480px) { .ref-link .btn span { display: none; } .ref-link .btn { padding: 0 14px; } }
/* Admin: level */
.lv-head, .lv-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, .8fr) 60px; gap: 8px; align-items: center; }
.lv-head { padding: 0 2px 6px; }
.lv-row { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.lv-row .input { min-height: 42px; padding: 8px 10px; }
.lv-name { display: flex; align-items: center; gap: 8px; }
.lv-mk { display: flex; align-items: center; gap: 4px; }
.lv-count { text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.lv-count .xs { display: none; }
.lv-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lv-pick .radio-row { margin: 0; align-items: center; }
@media (max-width: 560px) {
  .lv-head { display: none; }
  .lv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px 0; }
  .lv-row .lv-name { grid-column: 1 / -1; }
  .lv-count { flex-direction: row; gap: 6px; justify-content: flex-start; align-items: center; }
  .lv-count .xs { display: inline; }
}
/* Riwayat bonus referral (member) */
.bonus-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bonus-item:last-child { border-bottom: none; }
.bonus-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .35); color: var(--ok); }
.bonus-ic svg.ic { width: 18px; height: 18px; }
.bonus-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bonus-info .badge { font-size: 11px; }
.bonus-amt { color: var(--ok); white-space: nowrap; }
.bonus-item.rejected .bonus-ic { background: rgba(255, 93, 108, .1); border-color: rgba(255, 93, 108, .35); color: var(--err); }
.bonus-item.rejected .bonus-amt { color: var(--muted); text-decoration: line-through; }
.bonus-note { color: #ffb3ba; margin-top: 3px; }
/* Chip saldo Digiflazz di panel admin */
.dg-chip .chip-lbl { font-weight: 400; color: var(--muted); margin-right: 2px; }
.dg-chip.chip-err { color: var(--err); border-color: rgba(255, 93, 108, .5); }
@media (max-width: 560px) { .dg-chip .chip-lbl { display: none; } }

/* ===== v14: beranda per bagian (Produk Populer + per kategori) ===== */
.bb-sec { margin: 6px 0 26px; }
.bb-sec + .bb-sec { padding-top: 18px; border-top: 1px solid var(--border); }
.bb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.bb-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--text); min-width: 0; }
.bb-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0; color: var(--gold); background: rgba(255, 200, 30, .08); border: 1px solid var(--border-strong); }
.bb-ic svg.ic { width: 18px; height: 18px; }
.bb-hot .bb-ic { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; box-shadow: var(--glow); }
.bb-hot .bb-head h2 { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bb-more { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 10px 6px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.bb-more b { color: var(--gold); font-weight: 700; }
.bb-more svg.ic { width: 15px; height: 15px; }
.bb-more:hover { border-color: var(--gold); color: var(--text); }
@media (max-width: 560px) {
  .bb-head h2 { font-size: 17px; gap: 8px; }
  .bb-ic { width: 30px; height: 30px; }
  .bb-more { font-size: 12.5px; padding: 5px 8px 5px 10px; }
  .bb-sec { margin-bottom: 20px; }
}

/* Admin: logo brand + tombol populer */
.logo-edit { display: flex; gap: 14px; align-items: center; padding: 12px; margin: 0 0 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: rgba(255, 200, 30, .03); }
.logo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.logo-actions label.btn { cursor: pointer; }
.star-btn svg.ic { width: 16px; height: 16px; }
.star-btn.on { color: var(--gold); border-color: var(--gold); background: rgba(255, 200, 30, .1); }
.star-btn.on svg.ic { fill: var(--gold); }

/* ===== v15: tombol Live Chat melayang — model speed dial (WhatsApp + Telegram keluar dari logo) ===== */
.chat-fab { position: fixed; right: 18px; bottom: calc(18px + var(--safe-b)); z-index: 120; width: 58px; height: 58px; --gap: 66px; }
.chat-btn { position: relative; z-index: 2; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 10px 26px rgba(0, 0, 0, .55), var(--glow); transition: transform .18s ease; }
.chat-btn:hover { transform: scale(1.05); }
.chat-btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.chat-btn::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: chat-pulse 2.4s ease-out infinite; pointer-events: none; }
.chat-fab.open .chat-btn::before { animation: none; opacity: 0; }
@keyframes chat-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.chat-btn-ic { position: absolute; display: grid; place-items: center; transition: transform .25s ease, opacity .25s ease; }
.chat-btn-ic svg.ic { width: 28px; height: 28px; stroke-width: 2.1; }
.chat-btn-ic.chat-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-fab.open .chat-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab.open .chat-close { opacity: 1; transform: none; }
.chat-tip { position: absolute; right: 70px; bottom: 16px; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; opacity: 0; transform: translateX(6px); transition: .18s ease; pointer-events: none; }
.chat-fab:not(.open) .chat-btn:hover ~ .chat-tip { opacity: 1; transform: none; }
/* Tombol layanan: bersembunyi di balik logo, lalu meluncur ke atas satu per satu */
.chat-dial { position: absolute; right: 5px; bottom: 5px; z-index: 1; width: 48px; height: 48px; display: flex; align-items: center; justify-content: flex-end; text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(0) scale(.3);
  transition: transform .28s cubic-bezier(.34, 1.4, .64, 1), opacity .2s ease; transition-delay: calc((2 - var(--i)) * 40ms); }
.chat-fab.open .chat-dial { opacity: 1; pointer-events: auto; transform: translateY(calc(var(--i) * -1 * var(--gap))) scale(1); transition-delay: calc((var(--i) - 1) * 60ms); }
.chat-dial:hover { text-decoration: none; }
.chat-dial-ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); transition: transform .15s ease; }
.chat-dial-ic svg.ic { width: 24px; height: 24px; }
.chat-dial:hover .chat-dial-ic { transform: scale(1.08); }
.chat-wa .chat-dial-ic { background: #25d366; }
.chat-tg .chat-dial-ic { background: #229ed9; }
.chat-dial-lbl { position: absolute; right: 58px; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text); font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
/* Notifikasi (toast) naik sedikit supaya tidak menutupi tombol chat */
body.has-chat #toast-root { bottom: calc(90px + var(--safe-b)); }
@media (max-width: 560px) {
  .chat-fab { right: 14px; bottom: calc(14px + var(--safe-b)); width: 52px; height: 52px; --gap: 60px; }
  .chat-btn { width: 52px; height: 52px; }
  .chat-dial { right: 3px; bottom: 3px; width: 46px; height: 46px; }
  .chat-dial-ic { width: 46px; height: 46px; }
  .chat-btn-ic svg.ic { width: 25px; height: 25px; }
  body.has-chat #toast-root { bottom: calc(80px + var(--safe-b)); }
}
/* Ruang kosong di bawah supaya tombol chat tidak menutupi isi paling bawah */
@media (max-width: 760px) {
  body.has-chat .site-footer { padding-bottom: 78px; }
  body.has-chat.has-shell main { padding-bottom: 76px; }
}

/* ===== v17: anti bot, QRIS Duitku, daftar layanan ===== */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.ts-box { margin: 4px 0 14px; min-height: 65px; display: flex; justify-content: center; }
.qr-box { height: auto; display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 10px; width: 240px; max-width: 100%; aspect-ratio: 1; margin: 14px auto 8px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.pay-count { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.pay-count.late { color: var(--err); }
.pl-brand { margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-brand span { overflow: hidden; text-overflow: ellipsis; }

/* ===== v18: QR sekali pakai, batalkan tagihan ===== */
.qr-once { display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--warn); background: rgba(255, 184, 77, .1); border: 1px solid rgba(255, 184, 77, .4); }
.qr-once svg.ic { width: 15px; height: 15px; }
.cancel-row { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.btn-cancel { color: var(--err); border-color: rgba(255, 93, 108, .45); }
.btn-cancel:hover { background: rgba(255, 93, 108, .08); border-color: var(--err); }
.reused-note { margin: 0 0 14px; display: flex; gap: 8px; align-items: flex-start; border-color: rgba(91, 184, 255, .45); }
.reused-note svg.ic { flex-shrink: 0; color: var(--info); margin-top: 2px; }

/* ===== v19: cek ID game + status proxy ===== */
.gid-result { margin-top: 8px; min-height: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; }
.gid-result svg.ic { width: 16px; height: 16px; vertical-align: -3px; }
.gid-result.is-ok { padding: 8px 12px; border-radius: 12px; background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .35); }
.gid-result.is-bad { padding: 8px 12px; border-radius: 12px; background: rgba(255, 93, 108, .08); border: 1px solid rgba(255, 93, 108, .4); }
.gid-result.is-warn { padding: 8px 12px; border-radius: 12px; background: rgba(255, 184, 77, .08); border: 1px solid rgba(255, 184, 77, .4); }
.gid-ok { color: var(--ok); }
.gid-ok b { color: var(--text); }
.gid-bad { color: var(--err); }
.gid-warn { color: var(--warn); }
.gid-note { flex-basis: 100%; color: var(--muted); }
.gid-again { margin-left: auto; background: none; border: 0; color: var(--gold); font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.gid-again:hover { text-decoration: underline; }
.gid-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--gold); display: inline-block; animation: gid-rot .8s linear infinite; vertical-align: -2px; }
@keyframes gid-rot { to { transform: rotate(360deg); } }
.sum-nick { color: var(--ok); font-weight: 700; }
.inv-nick { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px auto 12px; padding: 8px 14px; border-radius: 12px; background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .3); width: fit-content; max-width: 100%; text-align: left; }
.inv-nick svg.ic { color: var(--ok); flex-shrink: 0; }
.proxy-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; margin-bottom: 16px; border-color: rgba(61, 220, 151, .35); }
.proxy-strip.is-bad { border-color: rgba(255, 93, 108, .5); }
.proxy-strip .ps-hint { flex-basis: 100%; }
.proxy-strip #ps-refresh { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot-bad { background: var(--err); box-shadow: 0 0 8px var(--err); }
.gid-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.gid-brand { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.gid-brand > span { display: flex; flex-direction: column; line-height: 1.2; font-size: 14px; }
.gid-prov { display: grid; gap: 10px; margin: 0 0 4px; }
.gid-prov > div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.gid-brand.off { opacity: .55; }

/* ===== v21: FLASH SALE (tema emas) ===== */
.flash-wrap { position: relative; margin: 6px 0 26px; padding: 18px 18px 20px; border-radius: 22px; background:
  radial-gradient(120% 140% at 0% 0%, rgba(255, 200, 30, .16), transparent 55%),
  linear-gradient(180deg, #17140a, #0d0c08); border: 1px solid var(--border-strong); box-shadow: 0 0 0 1px rgba(255, 200, 30, .08), 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 140, .08); overflow: hidden; }
.flash-wrap::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 196, 30, .14), transparent 65%); pointer-events: none; }
.flash-head { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "title count nav" "sub sub sub"; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.flash-title { grid-area: title; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 28px; letter-spacing: .5px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(255, 190, 0, .4)); white-space: nowrap; }
.flash-bolt { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--glow); animation: flash-pulse 1.6s ease-in-out infinite; }
.flash-bolt svg.ic { width: 20px; height: 20px; fill: var(--gold-ink); }
@keyframes flash-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); box-shadow: var(--glow-strong); } }
.flash-count { grid-area: count; display: flex; gap: 6px; }
.fcd { display: grid; place-items: center; min-width: 44px; padding: 5px 6px 4px; border-radius: 11px; background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 4px 12px rgba(255, 180, 0, .25); line-height: 1; }
.fcd b { font-size: 18px; font-variant-numeric: tabular-nums; }
.fcd small { font-size: 9.5px; font-weight: 700; text-transform: uppercase; opacity: .75; margin-top: 2px; }
.flash-sub { grid-area: sub; font-size: 14px; color: var(--muted); }
.flash-nav { grid-area: nav; display: flex; gap: 6px; }
.flash-arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 200, 30, .06); color: var(--gold); display: grid; place-items: center; cursor: pointer; }
.flash-arrow:hover { background: rgba(255, 200, 30, .14); }
.flash-arrow svg.ic { width: 18px; height: 18px; }
.flash-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 270px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: none; }
.flash-track::-webkit-scrollbar { display: none; }
.flash-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 0; border-radius: 16px; background: linear-gradient(180deg, #1c1a12, #121109); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; overflow: hidden; }
.flash-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 0 20px rgba(255, 190, 0, .22); text-decoration: none; }
.fc-name { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-brand { font-size: 13px; color: var(--muted); margin-top: 2px; }
.fc-mid { display: flex; align-items: center; gap: 12px; }
.fc-price { font-size: 22px; font-weight: 800; color: var(--gold); text-shadow: 0 0 12px rgba(255, 190, 0, .35); line-height: 1.1; }
.fc-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.fc-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fc-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 8px rgba(255, 190, 0, .5); }
.fc-sold { font-size: 12.5px; font-weight: 700; text-align: right; color: var(--gold-hi); margin-top: -4px; }
.fc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 2px -14px 0; padding: 10px 14px; background: rgba(0, 0, 0, .35); border-top: 1px solid var(--border); }
.fc-save { font-size: 13px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--gold-grad); color: var(--gold-ink); }
.fc-instant { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--gold); }
.fc-instant svg.ic { width: 13px; height: 13px; }
.flash-card.is-out { filter: grayscale(1); opacity: .5; cursor: not-allowed; }
.flash-card.is-out:hover { transform: none; border-color: var(--border); box-shadow: none; }
.flash-card.is-out .fc-sold { color: var(--muted); }
@media (max-width: 640px) {
  .flash-wrap { padding: 14px 12px 16px; border-radius: 18px; }
  .flash-head { grid-template-columns: 1fr auto; grid-template-areas: "title title" "count count" "sub sub"; }
  .flash-nav { display: none; }
  .flash-title { font-size: 24px; }
  .fcd { min-width: 40px; }
  .flash-track { grid-auto-columns: 74%; gap: 10px; }
  .fc-price { font-size: 20px; }
}
/* Nominal flash di halaman order */
.nominal.is-flash { border-color: rgba(255, 200, 30, .55); background: linear-gradient(180deg, rgba(255, 200, 30, .08), transparent); }
.nominal .n-flash { position: absolute; top: -9px; right: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px; background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--glow); }
.nominal .n-flash svg.ic { width: 11px; height: 11px; fill: var(--gold-ink); }
.nominal .n-left { display: block; font-size: 11.5px; color: var(--gold-hi); margin-top: 3px; }
/* Admin: Flash Sale */
.text-bad { color: var(--err); }
.text-ok { color: var(--ok); }
.gold-text-plain { color: var(--gold); }
.note-box.is-bad { border-color: rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .08); color: var(--text); }
.modal.modal-wide { max-width: 720px; }
.fs-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.fs-stat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.fs-stat b { font-size: 22px; color: var(--gold); }
.fs-stat.is-bad { border-color: rgba(255, 93, 108, .45); }
.fs-stat.is-bad b { color: var(--err); }
.fs-list { display: grid; gap: 14px; }
.fs-sale { padding: 16px; }
.fs-sale.fs-live { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(255, 200, 30, .2), 0 0 24px rgba(255, 190, 0, .1); }
.fs-sale.fs-done, .fs-sale.fs-off { opacity: .78; }
.fs-sale-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-sale-title { font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.fs-sale-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-strike { color: var(--muted); text-decoration: line-through; }
.fs-q { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.fs-qbar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fs-qbar span { display: block; height: 100%; background: var(--gold-grad); }
.fs-dur { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fi-list { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); margin-bottom: 12px; }
.fi-opt { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fi-opt > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.fi-opt:hover:not(:disabled) { background: rgba(255, 200, 30, .06); }
.fi-opt.on { background: rgba(255, 200, 30, .12); box-shadow: inset 3px 0 0 var(--gold); }
.fi-opt:disabled { opacity: .45; cursor: not-allowed; }
.fi-opt-p { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-weight: 700; color: var(--gold); }
.fi-picked { margin-bottom: 12px; }
.fi-sel { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(255, 200, 30, .06); }
.fi-sel svg.ic { color: var(--gold); flex: none; }
.fi-calc .sum-row { padding: 6px 0; }
@media (max-width: 640px) {
  .fs-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-sale { padding: 12px; }
}
/* Flash Sale berjalan (marquee) */
.flash-track.is-running { scroll-snap-type: none; }
.flash-track.is-running .flash-card { scroll-snap-align: none; }
.flash-track.is-running { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }

/* ===== v23: Popup promo (gambar / GIF) ===== */
.promo-pop-bg { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); animation: pp-fade .5s ease; }
.promo-pop-bg.is-out { opacity: 0; transition: opacity .35s ease; }
.promo-pop-bg.is-out .promo-pop { animation: pp-out .35s ease-in forwards; }
@keyframes pp-out { to { opacity: 0; transform: scale(.6); } }
/* Tombol ✕, tombol promo & "jangan tampilkan" menyusul setelah gambar membesar */
.promo-x { animation: pp-rise .6s ease-out 1.1s backwards; }
.promo-cta { animation: pp-rise .7s ease-out 1.25s backwards; }
.promo-hide { animation: pp-rise .7s ease-out 1.45s backwards; }
@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }
/* Intro: popup muncul dari ukuran kecil lalu membesar dengan sedikit pantulan */
@keyframes pp-pop { 0% { opacity: 0; transform: scale(.08); } 35% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes pp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.promo-pop { position: relative; width: min(100%, 520px); display: flex; flex-direction: column; gap: 14px; animation: pp-pop 1.5s cubic-bezier(.3, 1.22, .5, 1) backwards; transform-origin: center; }
.promo-img { display: block; border-radius: 16px; overflow: hidden; line-height: 0; box-shadow: 0 22px 60px rgba(0, 0, 0, .65); }
.promo-img img, .promo-img video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 170px); object-fit: contain; }
.promo-x { position: absolute; top: -14px; right: -14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--glow); transition: opacity .25s ease, transform .2s ease; }
.promo-x svg.ic { width: 20px; height: 20px; stroke-width: 2.6; }
.promo-x:hover { opacity: .6; transform: rotate(90deg); }
/* Tombol popup: huruf tebal bergaya racing, kilau emas berjalan, memudar saat kursor di atasnya */
.promo-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0; min-height: 56px; padding: 12px 22px; border: 0; border-radius: 14px;
  background: var(--gold-grad); color: var(--gold-ink); font-family: var(--font-display); font-size: 23px; font-weight: 400; letter-spacing: 1.6px; text-transform: uppercase; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45); box-shadow: 0 8px 26px rgba(255, 180, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(150, 90, 0, .35);
  transition: opacity .3s ease, filter .3s ease, transform .15s ease; }
.promo-cta::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: cta-shine 2.8s ease-in-out infinite; }
@keyframes cta-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.promo-cta:hover { opacity: .55; filter: saturate(.6); text-decoration: none; color: var(--gold-ink); }
.promo-cta:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .promo-cta::after { animation: none; } .promo-pop, .promo-x, .promo-cta, .promo-hide { animation-duration: .01s; animation-delay: 0s; } }
.promo-hide { align-self: center; background: none; border: 0; padding: 2px 8px; color: rgba(255, 255, 255, .78); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; transition: opacity .25s ease; }
.promo-hide:hover { opacity: .5; }
@media (max-width: 640px) {
  .promo-pop-bg { padding: 22px 16px; }
  .promo-x { top: -12px; right: -8px; width: 34px; height: 34px; }
  .promo-cta { font-size: 20px; min-height: 52px; }
}
/* Admin: Popup Promo */
.pp-grid { align-items: start; }
.pp-prev { display: grid; place-items: center; min-height: 180px; max-height: 340px; overflow: hidden; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--bg-2); }
.pp-prev img, .pp-prev video { display: block; max-width: 100%; max-height: 340px; object-fit: contain; }
.pp-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px; }
.pp-empty svg.ic { width: 30px; height: 30px; color: var(--gold); opacity: .6; }
.pp-meta { margin-top: 6px; min-height: 16px; }
.note-box.is-warn { border-color: rgba(255, 184, 77, .45); background: rgba(255, 184, 77, .07); color: var(--text); }
.pp-steps { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.pp-steps .mono { word-break: break-all; color: var(--gold-hi); }
.promo-img video { pointer-events: none; }

/* ===== v28: Login Google, persetujuan S&K, halaman kebijakan ===== */
/* Tombol Google versi gelap resmi (fill #131314, garis #8E918F, teks #E3E3E3) */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 16px; border-radius: var(--radius-sm);
  background: #131314; color: #e3e3e3; border: 1px solid #8e918f; font-weight: 600; font-size: 16px; text-decoration: none; transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn-google .g-logo { width: 22px; height: 22px; flex: none; display: block; }
.btn-google:hover { text-decoration: none; color: #e3e3e3; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 30, .25); }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.agree-check { align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; margin: 4px 0 14px; color: var(--muted); }
.agree-check input { margin-top: 1px; }
.agree-check a { color: var(--gold); font-weight: 700; }
.g-acc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(255, 200, 30, .06); }
.g-acc svg.ic { color: var(--ok); flex: none; }
.footer-legal { width: 100%; justify-content: flex-start; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
@media (max-width: 640px) { .footer-legal { justify-content: center; } }
.legal-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 22px; padding-bottom: 40px; }
.legal-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.legal-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; }
.legal-nav a:hover { color: var(--gold); background: rgba(255, 200, 30, .06); }
.legal-nav a.active { color: var(--gold-ink); background: var(--gold-grad); }
.legal-doc { padding: 28px 30px; line-height: 1.65; }
.legal-doc h1 { font-size: 34px; margin: 0 0 4px; }
.legal-date { margin-bottom: 16px; }
.legal-intro { font-size: 16px; color: var(--text); padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(255, 200, 30, .05); border-radius: 0 10px 10px 0; }
.legal-doc section { margin-top: 22px; }
.legal-doc h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 8px; font-family: var(--font-body); font-weight: 700; color: var(--text); }
.legal-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; background: var(--gold-grad); color: var(--gold-ink); font-size: 14px; font-weight: 800; }
.legal-num svg.ic { width: 16px; height: 16px; }
.legal-doc p, .legal-doc li { color: var(--muted); }
.legal-doc b { color: var(--text); }
.legal-doc ul { margin: 6px 0; padding-left: 22px; display: grid; gap: 6px; }
.legal-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.lc-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); word-break: break-word; }
.lc-item svg.ic { color: var(--gold); flex: none; margin-top: 2px; }
@media (max-width: 860px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a { white-space: nowrap; }
  .legal-doc { padding: 20px 16px; }
  .legal-doc h1 { font-size: 28px; }
}

/* ===== v29: ikon mata password, aktivasi email, lupa password, maskot live chat, laporan ===== */
.pw-wrap { position: relative; display: block; }
.pw-wrap > .input { padding-right: 48px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color .15s ease, background .15s ease; }
.pw-eye:hover { color: var(--gold); background: rgba(255, 200, 30, .08); }
.pw-eye.on { color: var(--gold); }
.pw-eye svg.ic { width: 20px; height: 20px; }
.forgot-link { text-align: right; margin-top: 7px; font-size: 13.5px; }
.forgot-link a { color: var(--gold); font-weight: 700; }
.verify-note { margin: 0 0 14px; border-color: rgba(255, 184, 77, .45); background: rgba(255, 184, 77, .07); color: var(--text); }
.verify-note svg.ic { color: var(--gold); }
.verify-sent { text-align: center; padding: 6px 0; }
.verify-sent h2 { margin: 10px 0 8px; font-size: 26px; }
.verify-sent p { color: var(--muted); }
.verify-sent p b { color: var(--text); word-break: break-all; }
.vs-ic { width: 66px; height: 66px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--gold-ink); box-shadow: var(--glow); }
.vs-ic svg.ic { width: 32px; height: 32px; }
.vs-ic.vs-bad { background: rgba(255, 93, 108, .15); color: var(--err); box-shadow: none; }
/* Maskot tombol Live Chat */
.chat-btn-ic.chat-mascot { inset: 0; border-radius: 50%; overflow: hidden; }
.chat-mascot img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-btn { width: 62px; height: 62px; padding: 0; }
.chat-fab { width: 62px; height: 62px; }
.chat-fab.open .chat-btn { background: var(--gold-grad); }
@media (max-width: 560px) { .chat-fab, .chat-btn { width: 56px; height: 56px; } }
/* Admin: laporan */
.rp-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-stat { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.rp-stat span { display: block; font-size: 12.5px; color: var(--muted); }
.rp-stat b { font-size: 20px; color: var(--gold); }
.rp-stat.is-profit b { color: var(--ok); }
.rp-dl { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.rp-dl .btn { padding: 6px 10px; }
.rp-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.rp-range .field { margin: 0; }
.rp-list td.num b { color: var(--text); }
.pp-chat { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.pp-chat img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; box-shadow: var(--glow); }

/* ===== v32: popup aplikasi HP (APK Android / pasang di iPhone) ===== */
.app-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 140; max-width: 520px; margin: 0 auto; padding: 16px 16px 14px;
  border-radius: 18px; background: linear-gradient(180deg, #1c1a12, #0f0e0a); border: 1px solid var(--border-strong);
  box-shadow: 0 -6px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 190, 0, .15); transform: translateY(130%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .3, 1.1), opacity .3s ease; }
.app-sheet.show { transform: none; opacity: 1; }
.as-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.as-x:hover { color: var(--text); background: rgba(255, 255, 255, .12); }
.as-x svg.ic { width: 18px; height: 18px; }
.as-top { display: flex; gap: 12px; align-items: center; padding-right: 34px; }
.as-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: var(--glow); }
.as-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-txt b { font-size: 16.5px; color: var(--gold); }
.as-txt span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.as-txt small { font-size: 12px; color: var(--muted); opacity: .8; }
.as-actions { display: flex; gap: 8px; margin-top: 12px; }
.as-actions .btn { flex: 1; justify-content: center; }
.as-actions .btn-primary { flex: 1.6; }
.as-steps { margin: 12px 0 0; padding: 12px 12px 12px 30px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); display: grid; gap: 7px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.as-steps b { color: var(--text); }
.as-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(92, 184, 255, .15); color: var(--info); vertical-align: -5px; }
.as-share svg.ic { width: 15px; height: 15px; }
