/* =========================================================
   RobuxKu — gaya utama
   Tema terang, biru + aksen emas untuk Robux. Mobile-first.
   Ubah warna utama cukup di bagian :root.
   Panel admin memakai tema gelap (lihat body.admin di bawah).
   ========================================================= */
:root {
  --bg: #f3f5f9;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f6f8fb;
  --panel-3: #e9edf4;
  --line: #e3e8f0;
  --line-2: #cfd7e3;
  --text: #151b28;
  --muted: #627086;
  --accent: #1f66f0;
  --accent-2: #1653c9;
  --accent-ink: #ffffff;
  --accent-soft: #ebf2ff;
  --good: #11935a;
  --good-soft: #e6f6ee;
  --gold: #f5b81c;
  --gold-soft: #fff6dc;
  --warn: #a96500;
  --warn-soft: #fff3df;
  --danger: #d03a3a;
  --danger-soft: #fdecec;
  --info: #1f66f0;
  --info-soft: #ebf2ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 50, .05), 0 1px 3px rgba(20, 30, 50, .04);
  --shadow-lg: 0 8px 28px -12px rgba(20, 30, 50, .25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 60px;
  --bottom-h: 62px;
  color-scheme: light;
}

/* Panel admin tetap gelap seperti sebelumnya */
body.admin {
  --bg: #070b17;
  --bg-2: #0a1122;
  --panel: #0f182f;
  --panel-2: #142039;
  --panel-3: #1a2847;
  --line: rgba(148, 166, 214, 0.14);
  --line-2: rgba(148, 166, 214, 0.26);
  --text: #e9eefa;
  --muted: #8f9cbf;
  --accent: #2df08b;
  --accent-2: #19c96f;
  --accent-ink: #03140b;
  --accent-soft: rgba(45, 240, 139, 0.12);
  --good: #2df08b;
  --good-soft: rgba(45, 240, 139, 0.12);
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.12);
  --danger: #ff5f6d;
  --danger-soft: rgba(255, 95, 109, 0.12);
  --info: #5eaaff;
  --info-soft: rgba(94, 170, 255, 0.12);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.45rem, 4vw, 1.9rem); font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--panel-3); padding: .1em .4em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.accent { color: var(--accent); }
.text-good { color: var(--good); }
.text-bad { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { font-weight: 600; font-size: .9rem; }
.mono { font-family: var(--mono); }
.hint { font-size: .82rem; color: var(--muted); margin: 6px 0 14px; }
.hint:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font: inherit; font-weight: 700; font-size: .93rem;
  padding: .7em 1.1em; border-radius: 10px; border: 1px solid transparent;
  background: var(--panel-3); color: var(--text); cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s;
  text-decoration: none !important; white-space: nowrap; user-select: none;
}
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-secondary { background: var(--panel-2); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { background: var(--panel-3); }
.btn-outline { background: var(--panel); border-color: var(--accent); color: var(--accent); }
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--panel-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn-sm { padding: .45em .8em; font-size: .84rem; border-radius: 8px; }
.btn-lg { padding: .85em 1.3em; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
.btn .ico { width: 18px; height: 18px; }
.is-loading::after, .spinner {
  content: ''; display: inline-block; width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
/* Pengumuman: menempel di bawah bar menu, ikut sticky bersama header */
.announce {
  position: relative; overflow: hidden; color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 10px, transparent 10px 20px),
    linear-gradient(90deg, #0f3f9e 0%, #1f66f0 55%, #3d8bff 100%);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.announce::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%);
  transform: translateX(-100%); animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.announce-inner { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.announce-badge {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold); color: #3d2800; border-radius: 999px; padding: .22em .7em .22em .5em;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .3);
}
.announce-badge .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.announce-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .88rem; letter-spacing: .005em; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.announce-text > span { display: inline-block; }
/* Teks panjang berjalan (diatur oleh app.js) */
.announce-text.is-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.announce-text.is-marquee > span { padding-right: 3em; animation: marquee var(--dur, 18s) linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.announce-text.is-marquee:hover > span { animation-play-state: paused; }
.site-header { position: sticky; top: 0; z-index: 40; background: var(--panel); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 1.12rem; text-decoration: none !important; }
.brand-mark { width: 30px; height: 30px; flex: none; }
span.brand-mark { display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #5a3b00; font-size: .7rem; font-weight: 800; }
.main-nav { display: none; gap: 2px; margin-left: 12px; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .4em .75em; border-radius: 8px; text-decoration: none; }
.main-nav a:hover { color: var(--text); background: var(--panel-2); }
.main-nav a.active { color: var(--accent); }
.header-cek { margin-left: auto; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Bottom nav (HP) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--panel); border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 600; text-decoration: none; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav .ico { width: 22px; height: 22px; }

.wa-float {
  position: fixed; right: 16px; bottom: calc(var(--bottom-h) + 16px + env(safe-area-inset-bottom)); z-index: 44;
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.wa-float .ico { width: 27px; height: 27px; }
body.has-mobile-bar .wa-float { bottom: calc(var(--bottom-h) + 88px + env(safe-area-inset-bottom)); }

/* ---------- Kartu & form ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.field { display: block; margin-bottom: 6px; }
.label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .7em .85em; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #98a3b5; }
body.admin input::placeholder, body.admin textarea::placeholder { color: #5f6c8f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.input-group { display: flex; gap: 8px; align-items: stretch; }
.input-group input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 14px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.alert { border-radius: 10px; padding: .7em .9em; font-size: .9rem; margin: 10px 0; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-good { background: var(--good-soft); color: var(--good); }
body.admin .alert-error { color: #ffb3ba; }
body.admin .alert-warn { color: #ffd79c; }
body.admin .alert-info { color: #b8d9ff; }
body.admin .alert-good { color: #a9f8cc; }

.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: .3em .75em; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1em .45em; border-radius: 5px; background: var(--good-soft); color: var(--good); margin-left: 4px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: .25em .65em; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-unpaid { background: var(--warn-soft); color: var(--warn); }
.badge-paid { background: var(--info-soft); color: var(--info); }
.badge-success { background: var(--good-soft); color: var(--good); }
.badge-failed, .badge-refunded { background: var(--danger-soft); color: var(--danger); }
.badge-expired { background: var(--panel-3); color: var(--muted); }

/* ---------- Halaman produk (beranda) ---------- */
.shop { padding-top: 14px; scroll-margin-top: calc(var(--header-h) + 8px); }
.crumbs { display: flex; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.product-head {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.product-coin { width: 56px; height: 56px; }
.product-head h1 { margin: 0 0 2px; font-size: 1.3rem; }
.product-sub { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 5px; }
.facts .ico { width: 16px; height: 16px; color: var(--accent); }
.fact-rating .ico { color: var(--gold); }
.fact-rating b { color: var(--text); }
.product-stock { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; }
.product-stock span { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.product-stock span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product-stock .open { color: var(--good); }
.product-stock .closed { color: var(--danger); }
.product-stock small { color: var(--muted); font-size: .82rem; }
.promo-strip { background: var(--gold-soft); border: 1px solid #f3dc9c; color: #6b4a00; border-radius: 10px; padding: .6em .9em; font-size: .88rem; margin-bottom: 14px; }

.order-grid { display: grid; gap: 14px; }
.order-form { display: grid; gap: 14px; }
.step-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.step-head h2 { margin: 0; font-size: 1.02rem; }
.step-no {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem;
}

.coin { width: 18px; height: 18px; flex: none; }
.nominal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.nominal {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font: inherit; text-align: left; color: var(--text); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px;
  transition: border-color .12s, background .12s;
}
.nominal:hover { border-color: var(--accent); }
.nominal.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.n-amount { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 1rem; }
.n-price { font-size: .84rem; color: var(--accent); font-weight: 700; }
.n-old { font-size: .74rem; color: var(--muted); }
.n-off { position: absolute; top: 8px; right: 8px; font-size: .68rem; font-weight: 700; color: var(--danger); background: var(--danger-soft); border-radius: 4px; padding: .05em .35em; }

.amount-field { margin-bottom: 0; }
.amount-input { position: relative; }
.amount-input .amount-coin { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; pointer-events: none; }
.amount-input .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--muted); font-weight: 600; pointer-events: none; }
.amount-input input { padding-left: 2.6em; padding-right: 4.5em; font-weight: 700; }

.user-result:empty { display: none; }
.user-result { margin: 8px 0 4px; }
.user-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--good-soft); border: 1px solid #bfe6d0; }
.user-card.is-error { background: var(--danger-soft); border-color: #f4c7c7; color: var(--danger); font-size: .88rem; }
.user-card.is-loading { background: var(--panel-2); border-color: var(--line); color: var(--muted); font-size: .88rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-3); object-fit: cover; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--accent); font-size: 1.1rem; }
.avatar-sm { width: 36px; height: 36px; font-size: .95rem; }
.user-card .uname { font-weight: 700; line-height: 1.25; word-break: break-all; }
.user-card .uhandle { font-size: .82rem; color: var(--muted); }
.user-card .ok { margin-left: auto; color: var(--good); font-weight: 700; font-size: .8rem; white-space: nowrap; }
body.admin .user-card { border-color: rgba(45, 240, 139, .3); }

.methods { display: grid; gap: 14px; }
.method-group-title { font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.method-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.method {
  position: relative; display: flex; flex-direction: column; gap: 1px; padding: 11px 12px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); transition: border-color .12s, background .12s;
}
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .m-name { font-weight: 700; font-size: .9rem; padding-right: 22px; }
.method .m-fee { font-size: .74rem; color: var(--muted); }
.method .m-total { font-size: .84rem; font-weight: 700; margin-top: 4px; }
.method .m-total:empty { display: none; }
.method:hover { border-color: var(--accent); }
.method.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.method.active::after {
  content: '✓'; position: absolute; top: 9px; right: 10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
}
.coupon-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.coupon-box summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--accent); list-style: none; }
.coupon-box summary::-webkit-details-marker { display: none; }
.coupon-box summary::after { content: ' +'; }
.coupon-box[open] summary::after { content: ' −'; }
.coupon-box .input-group { margin-top: 10px; }
.coupon-box #couponMsg { margin-top: 6px; }

.summary { align-self: start; }
.summary h2 { font-size: 1rem; margin-bottom: 12px; }
.sum-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 12px; min-height: 56px; }
.sum-user b { display: block; font-size: .9rem; word-break: break-all; }
.sum-user small { color: var(--muted); }
.sum-lines { margin: 0; display: grid; gap: 8px; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.sum-lines dt { color: var(--muted); }
.sum-lines dd { margin: 0; font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sum-total span { font-weight: 700; }
.sum-total b { font-size: 1.35rem; color: var(--accent); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); z-index: 44;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px;
  background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px -8px rgba(20, 30, 50, .2);
  transform: translateY(130%); transition: transform .2s ease;
}
.mobile-bar.show { transform: none; }
.mobile-bar small { display: block; font-size: .74rem; color: var(--muted); }
.mobile-bar b { font-size: 1.12rem; color: var(--accent); }

/* ---------- Section umum ---------- */
section { margin-bottom: 40px; }
.shop { margin-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.how-section h2 { margin-bottom: 12px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: how; }
.how-list li {
  counter-increment: how; position: relative; display: grid; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 14px 52px;
}
.how-list li::before {
  content: counter(how); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .82rem;
}
.how-list b { font-size: .95rem; }
.how-list span { color: var(--muted); font-size: .88rem; }

.rating-badge { font-weight: 700; color: var(--text); font-size: .88rem; }
.reviews { display: grid; gap: 10px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.review-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.review .stars { color: var(--gold); letter-spacing: 1px; font-size: .88rem; }
.review .stars span { color: var(--panel-3); }
.review p { margin: 0 0 8px; font-size: .9rem; }
.review small { color: var(--muted); }

.faq { display: grid; gap: 8px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 600; font-size: .94rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 12px; height: 12px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform .2s; }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-body { padding: 0 16px 14px; color: var(--muted); font-size: .9rem; }
.faq-body p { margin: 0; }

.help-card { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.help-card h3 { margin: 0 0 2px; }
.help-card p { margin: 0; }

/* ---------- Halaman konten ---------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(1.45rem, 4vw, 1.9rem); }
.lead { color: var(--muted); font-size: 1rem; max-width: 600px; }
.prose h2 { margin-top: 1.8em; font-size: 1.15rem; scroll-margin-top: calc(var(--header-h) + 12px); }
.prose ul, .prose ol { padding-left: 1.3em; color: #374255; }
.prose li { margin-bottom: .45em; }
.prose p { color: #374255; }
.toc { display: grid; gap: 6px; }
.toc a { font-weight: 600; font-size: .9rem; }
.steps-list li { margin-bottom: .7em; }
.two-col { display: grid; gap: 12px; margin: 14px 0; }
.two-col ol { margin: 0; }
.callout { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 14px; border-radius: 0 10px 10px 0; }
.info-card { margin-bottom: 14px; color: var(--muted); }

/* ---------- Riwayat ---------- */
.history-list { display: grid; gap: 8px; }
.history-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important;
  transition: border-color .12s;
}
.history-item:hover { border-color: var(--line-2); }
.history-item .hi-main { flex: 1; min-width: 0; }
.history-item .hi-main b { display: block; font-size: .95rem; }
.history-item .hi-main small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-item .hi-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.history-item .hi-side span.total { font-size: .82rem; color: var(--muted); }
.history-empty { text-align: center; padding: 28px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--panel); }
.history-actions { margin-top: 18px; }
.cek-form { margin-bottom: 28px; }
.cek-form input { font-family: var(--mono); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.cek-form .field { margin-bottom: 12px; }

/* ---------- Invoice ---------- */
.invoice-wrap { padding-top: 20px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-head h1 { font-size: 1.1rem; margin: 0; font-family: var(--mono); letter-spacing: 0; }
.inv-head small { color: var(--muted); }
.inv-status { text-align: center; padding: 22px 18px; margin-bottom: 14px; }
.inv-status .big-ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; }
.inv-status h2 { margin: 0 0 6px; font-size: 1.2rem; }
.inv-status p { margin: 0; color: var(--muted); }
.st-unpaid .big-ico { background: var(--warn-soft); color: var(--warn); }
.st-paid .big-ico { background: var(--info-soft); color: var(--info); }
.st-success .big-ico { background: var(--good-soft); color: var(--good); }
.st-failed .big-ico, .st-refunded .big-ico { background: var(--danger-soft); color: var(--danger); }
.st-expired .big-ico { background: var(--panel-3); color: var(--muted); }
.countdown { display: inline-flex; gap: 6px; margin-top: 14px; }
.countdown span { background: var(--panel-2); border: 1px solid var(--line); padding: .3em .5em; border-radius: 8px; font-weight: 700; font-size: 1.1rem; min-width: 2.4em; }
.countdown i { font-style: normal; align-self: center; color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 4px; }
.progress div { text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); }
.progress div::before { content: ''; display: block; height: 4px; border-radius: 99px; background: var(--panel-3); margin-bottom: 6px; }
.progress div.done { color: var(--text); }
.progress div.done::before { background: var(--accent); }
.progress div.current::before { background: linear-gradient(90deg, var(--accent) 50%, var(--panel-3) 50%); background-size: 200% 100%; animation: slide 1.4s linear infinite; }
@keyframes slide { from { background-position: 100% 0; } to { background-position: 0 0; } }

.inv-section { margin-bottom: 14px; }
.inv-section h3 { font-size: .95rem; margin-bottom: 12px; }
.kv { display: grid; gap: 10px; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { margin: 0; text-align: right; font-weight: 600; word-break: break-word; }
.kv .kv-total { border-top: 1px solid var(--line); padding-top: 10px; }
.kv .kv-total dd { font-size: 1.2rem; color: var(--accent); }
.pay-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 12px; }
.pay-box .pay-label { color: var(--muted); font-size: .82rem; font-weight: 600; }
.pay-box .pay-value { font-size: 1.4rem; font-weight: 800; letter-spacing: .01em; margin: 4px 0; word-break: break-all; }
.pay-box .pay-holder { font-size: .86rem; color: var(--muted); }
.pay-box img.qr { width: 240px; max-width: 100%; margin: 6px auto; border-radius: 10px; background: #fff; padding: 10px; border: 1px solid var(--line); }
.copy-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.inv-actions { display: grid; gap: 10px; margin-top: 14px; }
.instructions details { border-top: 1px solid var(--line); padding: 10px 0; }
.instructions summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.instructions ol { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .88rem; }
.star-input { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; }
.star-input button { font-size: 2rem; line-height: 1; background: none; border: 0; color: var(--panel-3); cursor: pointer; padding: 2px; transition: color .1s; }
.star-input button.on { color: var(--gold); }

.skeleton-card { display: grid; gap: 12px; }
.sk { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk-title { height: 24px; width: 60%; }
.sk-short { width: 40%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.notfound { padding: 60px 16px; }
.nf-code { font-size: 4.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 18px; margin-top: 20px; background: var(--panel); }
.footer-grid { display: grid; gap: 22px; }
.footer-grid h4, .footer-pay h4 { font-size: .85rem; color: var(--text); margin-bottom: 10px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-grid .brand { margin-bottom: 10px; }
.disclaimer { font-size: .76rem; }
.footer-pay { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip { font-size: .76rem; font-weight: 700; color: #3b475c; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .35em .7em; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-h) + 24px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #1c2433; color: #fff;
  padding: .65em 1.05em; border-radius: 10px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg);
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); color: #fff; }
body.admin .toast { background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); }
body.admin .toast.is-error { background: var(--panel-3); border-color: rgba(255, 95, 109, .5); color: #ffb3ba; }

/* ---------- Responsif ---------- */
@media (min-width: 520px) {
  .nominal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) {
  .product-head { grid-template-columns: auto 1fr auto; align-items: center; padding: 18px 20px; }
  .product-coin { width: 64px; height: 64px; }
  .product-stock { grid-column: auto; flex-direction: column; align-items: flex-end; border-top: 0; padding-top: 0; }
  .nominal-grid { grid-template-columns: repeat(4, 1fr); }
  .method-list { grid-template-columns: repeat(3, 1fr); }
  .how-list { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .help-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .main-nav { display: flex; }
  .bottom-nav, .mobile-bar { display: none; }
  .wa-float, body.has-mobile-bar .wa-float { bottom: 24px; right: 24px; }
  .toast { bottom: 30px; }
  .shop { padding-top: 20px; }
  .order-grid { grid-template-columns: 1fr 340px; align-items: start; }
  .summary { position: sticky; top: calc(var(--header-h) + 16px); }
  .how-list { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .header-cek { padding: .5em; }
  .header-cek span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Info, banner & angka kepercayaan (beranda) ---------- */
.banner { position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; margin-bottom: 0; background: var(--panel-3); }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.banner-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 12 / 5; display: block; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 7% 0 6%; color: #fff; }
.slide-text b { display: block; font-size: clamp(1.05rem, 3.6vw, 1.9rem); line-height: 1.2; font-weight: 800; margin-bottom: 4px; }
.slide-text span { display: block; font-size: clamp(.78rem, 2vw, 1rem); opacity: .9; max-width: 34em; }
.slide-coin { width: 22%; max-width: 150px; height: auto; flex: none; }
.slide-1 { background: #1f66f0; }
.slide-2 { background: #1652c9; }
.slide-3 { background: #0f3f9e; }
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; display: none;
  box-shadow: var(--shadow-lg);
}
.banner-nav.prev { left: 10px; }
.banner-nav.next { right: 10px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .2s, background .2s; }
.banner-dots button.on { width: 18px; background: #fff; }

/* Angka kepercayaan: strip ringkas yang menempel di bawah banner */
.trust-stats {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px; border-radius: 0 0 var(--radius) var(--radius); color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 20px),
    radial-gradient(120% 160% at 100% 0%, #3d8bff 0%, transparent 55%),
    linear-gradient(120deg, #0b3285 0%, #1652c9 50%, #1f66f0 100%);
  box-shadow: 0 10px 22px -16px rgba(15, 63, 158, .9), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.trust-stats::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%);
  transform: translateX(-100%); animation: shine 7s ease-in-out infinite 1.5s;
}
.ts-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 4px; min-width: 0; }
.ts-item + .ts-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.ts-ico {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ts-ico .ico { width: 15px; height: 15px; stroke-width: 2.2; }
.ts-ico .ts-coin { width: 17px; height: 17px; }
.ts-gold .ts-ico { color: #ffd257; }
.ts-blue .ts-ico { color: #fff; }
.ts-green .ts-ico { color: #5ff0a8; }
.ts-text { min-width: 0; }
.ts-text b { display: block; font-size: .92rem; font-weight: 800; line-height: 1.15; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ts-text b small { font-size: .62rem; color: rgba(255, 255, 255, .75); font-weight: 700; margin-left: 1px; }
.ts-text span { display: block; font-size: .62rem; font-weight: 600; color: rgba(255, 255, 255, .82); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359px) { .ts-ico { display: none; } }
@media (min-width: 640px) {
  .ts-item { gap: 10px; padding: 10px 12px; }
  .ts-ico { width: 34px; height: 34px; }
  .ts-ico .ico { width: 18px; height: 18px; }
  .ts-ico .ts-coin { width: 20px; height: 20px; }
  .ts-text b { font-size: 1.1rem; }
  .ts-text span { font-size: .74rem; }
}
@media (min-width: 960px) {
  .banner-nav { display: block; }
}
