/* =========================================================
   SAGIBOYS Store — mobile-first gaming UI (dark & light)
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0b0d14;
  --surface: #11131c;
  --surface-2: #171a26;
  --surface-3: #1f2332;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --tint: rgba(255, 255, 255, .05);
  --tint-2: rgba(255, 255, 255, .09);
  --sunken: rgba(0, 0, 0, .22);
  --glass: rgba(9, 10, 16, .86);
  --grid-line: rgba(255, 255, 255, .025);
  --text: #f3f4f8;
  --text-2: #b6bacb;
  --text-3: #5f6478;
  --muted: #8d92a6;
  --gold-ink: #ffc53d;
  --danger-ink: #ff7a93;
  --info-ink: #7db6ff;
  --announce: #e9dcb8;
  --hero-bg: linear-gradient(160deg, #1a1530 0%, #12131f 55%, #0d0f17 100%);
  --hero-title: linear-gradient(180deg, #fff 30%, #ffd77a);
  --gold: #ffc53d;
  --gold-2: #ff9f1c;
  --violet: #8b5cf6;
  --wa: #25d366;
  --wa-2: #1ebe5b;
  --danger: #ff4d6d;
  --ok: #3ddc84;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --display: 'Chakra Petch', 'Plus Jakarta Sans', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f9;
  --bg-2: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f4f5f9;
  --surface-3: #dfe2eb;
  --line: rgba(16, 19, 32, .08);
  --line-2: rgba(16, 19, 32, .14);
  --tint: rgba(16, 19, 32, .04);
  --tint-2: rgba(16, 19, 32, .07);
  --sunken: rgba(16, 19, 32, .03);
  --glass: rgba(255, 255, 255, .88);
  --grid-line: rgba(16, 19, 32, .04);
  --text: #11131c;
  --text-2: #4a5068;
  --text-3: #9aa0b3;
  --muted: #666c82;
  --gold-ink: #b86a00;
  --danger-ink: #d61f45;
  --info-ink: #2563eb;
  --ok: #10a14e;
  --announce: #6b4a00;
  --hero-bg: linear-gradient(160deg, #fff6dc 0%, #ffffff 50%, #efeaff 100%);
  --hero-title: linear-gradient(180deg, #11131c 35%, #b86a00);
  --shadow: 0 12px 30px -14px rgba(16, 19, 32, .25);
}

/* Tombol ganti tema: tampilkan ikon sesuai tema aktif */
.theme-toggle .ic--sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic--sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic--moon { display: none; }
.theme-toggle .ic { transition: transform .35s ease; }
.theme-toggle:active .ic { transform: rotate(-30deg) scale(.9); }
:root[data-theme="light"] :is(.pcard, .feat, .panel, .perk, .steps li, .testi, .faq details, .search, .guarantee > div, .card, .stat, .order, .pitem) {
  box-shadow: 0 1px 2px rgba(16, 19, 32, .04), 0 4px 14px -8px rgba(16, 19, 32, .12);
}
html.theme-anim, html.theme-anim * { transition: background-color .3s ease, border-color .3s ease, color .3s ease !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(800px 400px at 100% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(600px 400px at -10% 10%, rgba(255, 197, 61, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + var(--safe-b));
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ic { flex-shrink: 0; vertical-align: middle; }
.ic--gold { color: var(--gold-ink); }
.ic--fill { fill: currentColor; }
.ic--hot { color: #ff6b3d; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn--primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: 0 8px 24px -8px rgba(255, 170, 40, .6); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--wa { background: linear-gradient(135deg, #2fe27a, var(--wa-2)); color: #052e16; box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .6); }
.btn--wa:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--tint); border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--tint-2); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn--xs { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 9px; gap: 4px; }
.btn--lg { height: 52px; font-size: 15.5px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--icon { width: 52px; height: 52px; padding: 0; border-radius: 16px; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint); border: 1px solid var(--line); cursor: pointer;
}

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip--glow { height: 30px; font-size: 12px; background: rgba(255, 197, 61, .12); color: var(--gold-ink); border-color: rgba(255, 197, 61, .3); cursor: default; }
.pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.pill--ok { background: rgba(61, 220, 132, .14); color: var(--ok); }
.pill--warn { background: rgba(255, 159, 28, .14); color: var(--gold-ink); }
.pill--danger { background: rgba(255, 77, 109, .14); color: var(--danger); }
.pill--hot { background: rgba(255, 77, 109, .14); color: var(--danger-ink); height: 24px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 12px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand__mark { flex-shrink: 0; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205;
  font-family: var(--display); font-weight: 700; font-size: 19px; box-shadow: 0 6px 18px -6px rgba(255, 170, 40, .7);
}
.brand__name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.topnav a:hover, .topnav a.is-active { color: var(--text); background: var(--tint); }
.topbar__cta span { display: none; }
.topbar__cta { width: 40px; padding: 0; }

/* ---------- Announcement ---------- */
.announce { overflow: hidden; background: linear-gradient(90deg, rgba(255, 197, 61, .12), rgba(139, 92, 246, .12)); border-bottom: 1px solid var(--line); }
.announce__track { display: flex; gap: 40px; width: max-content; padding: 9px 0; animation: marquee 32s linear infinite; font-size: 12.5px; font-weight: 600; color: var(--announce); }
.announce__track span { display: inline-flex; align-items: center; gap: 6px; }
.announce__track .ic { color: var(--gold-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { padding-top: 16px; }
.hero__card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 24px 20px 0;
  background: var(--hero-bg);
  border: 1px solid var(--line-2);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(320px 220px at 90% 0%, rgba(255, 197, 61, .28), transparent 70%),
    radial-gradient(300px 260px at 0% 100%, rgba(139, 92, 246, .3), transparent 70%),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 28px);
}
.hero__content { position: relative; }
.hero__title {
  margin: 14px 0 10px; font-family: var(--display); font-size: clamp(30px, 8.5vw, 52px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: .01em;
  background: var(--hero-title); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-2); font-size: 14.5px; max-width: 520px; }
.hero__actions { display: flex; gap: 10px; margin-top: 20px; }
.hero__actions .btn { flex: 1; }
.hero__stats {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 22px -20px 0; border-top: 1px solid var(--line); background: var(--sunken);
}
.hero__stats div { padding: 14px 8px; text-align: center; }
.hero__stats div + div { border-left: 1px solid var(--line); }
.hero__stats strong { display: flex; align-items: center; justify-content: center; gap: 3px; font-family: var(--display); font-size: 19px; }
.hero__stats span { font-size: 11px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 32px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section__title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }

/* horizontal scroller */
.hscroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex-shrink: 0; }
.hscroll--cards > .pcard { width: 168px; }

/* ---------- Cover ---------- */
.cover { position: relative; overflow: hidden; aspect-ratio: 1 / 1; isolation: isolate; --c1: #ffc53d; --c2: #ff8a00; --c3: #2a1a02; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--wide { aspect-ratio: 16 / 10; }
.cover--hero { aspect-ratio: 4 / 3; border-radius: 22px; border: 1px solid var(--line-2); }
.cover--thumb { width: 56px; height: 56px; border-radius: 12px; aspect-ratio: auto; flex-shrink: 0; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 60%),
              linear-gradient(160deg, var(--c3), #0a0b10 80%);
}
.cover__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    repeating-linear-gradient(90deg, var(--tint) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, var(--tint) 0 1px, transparent 1px 18px);
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
}
.cover__glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c1); filter: blur(42px); opacity: .35; z-index: -1; }
.cover__icon {
  position: absolute; top: 10px; left: 10px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; color: var(--c1);
  background: rgba(0, 0, 0, .35); border: 1px solid color-mix(in srgb, var(--c1) 35%, transparent);
}
.cover__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.cover__text strong {
  font-family: var(--display); font-weight: 700; font-size: clamp(34px, 11vw, 54px); line-height: .95; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 20%, var(--c1) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--c1) 50%, transparent));
}
.cover__text span { margin-top: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .24em; color: color-mix(in srgb, var(--c1) 70%, #fff); }
.cover--wide .cover__text strong { font-size: 54px; }
.cover--hero .cover__text strong { font-size: clamp(64px, 20vw, 110px); }
.cover--hero .cover__text span { font-size: 13px; }
.cover--hero .cover__icon { width: 52px; height: 52px; top: 16px; left: 16px; border-radius: 14px; }
.cover--thumb .cover__text strong { font-size: 15px; }
.cover--thumb .cover__text span, .cover--thumb .cover__icon, .cover--thumb .badge-ribbon, .cover--thumb .badge-disc { display: none; }

.theme-gold   { --c1: #ffc53d; --c3: #2b1d03; }
.theme-green  { --c1: #3ddc84; --c3: #052516; }
.theme-purple { --c1: #a78bfa; --c3: #1d1238; }
.theme-blue   { --c1: #60a5fa; --c3: #0a1a35; }
.theme-red    { --c1: #ff5c7a; --c3: #330b14; }
.theme-cyan   { --c1: #22d3ee; --c3: #052a30; }

.badge-ribbon {
  position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205;
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
}
.badge-disc {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 7px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
}
.cover--hero .badge-ribbon { top: 16px; right: 16px; font-size: 11px; padding: 6px 10px; }
.cover--hero .badge-disc { left: 16px; bottom: 16px; font-size: 13px; padding: 5px 10px; }

/* ---------- Featured card ---------- */
.feat {
  width: 82%; max-width: 340px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.feat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.feat__body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: space-between; }
.feat h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }
.feat__foot { display: flex; align-items: center; justify-content: space-between; }
.feat__foot strong { font-size: 18px; color: var(--gold-ink); font-weight: 800; }

/* ---------- Search ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 15px; color: var(--muted);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: rgba(255, 197, 61, .5); box-shadow: 0 0 0 4px rgba(255, 197, 61, .1); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--text-3); }

.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  animation: rise .4s ease both;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pcard:active { transform: scale(.98); }
.pcard.is-soldout .cover { filter: grayscale(.85) brightness(.7); }
.pcard[hidden] { display: none; }
.pcard__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard__title { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pcard__feats li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__feats .ic { color: var(--ok); }
.pcard__price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.pcard__price strong { font-size: 16px; font-weight: 800; color: var(--gold-ink); }
.pcard__price s { font-size: 11.5px; color: var(--text-3); }
.pcard__meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.pcard__meta > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.pcard__meta .pill { margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); display: grid; justify-items: center; gap: 10px; }
.empty a { color: var(--gold-ink); font-weight: 700; }
.empty--page { padding: 80px 16px; }
.empty--page h2 { color: var(--text); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  position: relative; display: flex; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.steps__num {
  display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px;
  font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--gold-ink);
  background: rgba(255, 197, 61, .1); border: 1px solid rgba(255, 197, 61, .25);
}
.steps h4 { font-size: 15px; margin-bottom: 3px; }
.steps p { font-size: 13px; color: var(--muted); }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.perk { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perk__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 12px; color: var(--gold-ink); background: linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(139, 92, 246, .16)); }
.perk h4 { font-size: 14.5px; margin-bottom: 2px; }
.perk p { font-size: 12.5px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi {
  margin: 0; width: 78%; max-width: 320px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px;
}
.testi__stars { display: flex; gap: 2px; }
.testi blockquote { margin: 0; font-size: 13.5px; color: var(--text-2); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 10px; }
.testi figcaption > span:last-child { display: flex; flex-direction: column; }
.testi strong { font-size: 13.5px; }
.testi small { font-size: 11.5px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: #1a1205; background: linear-gradient(135deg, var(--gold), var(--violet)); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 15px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--gold-ink); }
.faq details p { padding: 0 16px 16px; color: var(--muted); font-size: 13.5px; }

/* ---------- CTA ---------- */
.cta {
  display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 211, 102, .16), rgba(139, 92, 246, .12)); border: 1px solid rgba(37, 211, 102, .25);
}
.cta h3 { font-size: 18px; margin-bottom: 4px; }
.cta p { color: var(--text-2); font-size: 13.5px; }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; padding: 28px 0 24px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { display: grid; gap: 18px; }
.footer .brand { margin-bottom: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.footer__copy { font-size: 12px; color: var(--text-3); }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 8px 6px calc(8px + var(--safe-b));
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.bottomnav a.is-active { color: var(--gold-ink); }
.bottomnav__wa { color: var(--text) !important; }
.bottomnav__wa-btn {
  display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 18px;
  background: linear-gradient(135deg, #2fe27a, var(--wa-2)); color: #052e16;
  box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .65), 0 0 0 5px var(--bg);
}

/* ---------- Product detail ---------- */
.detail { display: grid; gap: 18px; padding-top: 16px; }
.detail__crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.detail__crumbs a:hover { color: var(--text); }
.detail__title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.detail__meta { display: flex; align-items: center; gap: 8px; margin: 12px 0 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.detail__meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 700; }
.detail__desktop-cta { display: none; }

.pricebox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 197, 61, .12), rgba(255, 159, 28, .04)); border: 1px solid rgba(255, 197, 61, .25);
}
.pricebox__label { display: block; font-size: 12px; color: var(--muted); }
.pricebox__price { font-family: var(--display); font-size: 30px; color: var(--gold-ink); line-height: 1.1; }
.pricebox__old { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pricebox__old s { color: var(--text-3); font-size: 13px; }

.panel { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.panel__title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.checklist li > span { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; background: rgba(61, 220, 132, .14); color: var(--ok); }
.prose { color: var(--text-2); font-size: 14px; line-height: 1.7; }

.guarantee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.guarantee > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--gold-ink); }
.guarantee span { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.guarantee strong { color: var(--text); font-size: 12px; }

/* sticky buy bar */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.buybar__price { display: flex; flex-direction: column; margin-right: auto; }
.buybar__price span { font-size: 11px; color: var(--muted); }
.buybar__price strong { font-size: 18px; font-weight: 800; color: var(--gold-ink); line-height: 1.2; }

/* ---------- Bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
  padding: 10px 18px calc(18px + var(--safe-b)); border-radius: 26px 26px 0 0;
  background: var(--surface); border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 14px;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__handle { width: 40px; height: 5px; border-radius: 9px; background: var(--surface-3); margin: 0 auto 2px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h3 { font-size: 18px; font-weight: 800; }
.sheet__product { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--line); }
.sheet__product > div:last-child { display: flex; flex-direction: column; }
.sheet__product strong { font-size: 14px; }
.sheet__product span { color: var(--gold-ink); font-weight: 800; }
.sheet__note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
body.no-scroll { overflow: hidden; }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 700; }
.field small { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 13px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255, 197, 61, .55); box-shadow: 0 0 0 4px rgba(255, 197, 61, .1); }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segment label { position: relative; }
.segment input { position: absolute; opacity: 0; }
.segment span {
  display: grid; place-items: center; height: 46px; border-radius: 13px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--muted); transition: all .15s ease;
}
.segment input:checked + span { background: rgba(255, 197, 61, .12); border-color: var(--gold-ink); color: var(--gold-ink); }
.segment input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 197, 61, .3); }

/* ---------- Metode pembayaran ---------- */
.paymethods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.paymethods label { position: relative; display: block; min-width: 0; }
.paymethods input { position: absolute; opacity: 0; }
.paymethod {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); transition: all .15s ease;
}
.paymethod__logo {
  display: grid; place-items: center; width: 46px; height: 34px; flex-shrink: 0; border-radius: 9px;
  background: var(--surface-3); color: var(--wa); font-weight: 800;
}
.paymethod__logo--qris { background: #fff; color: #111; font-family: var(--display); font-size: 13px; letter-spacing: .04em; border: 1px solid rgba(16, 19, 32, .12); box-shadow: inset 0 -3px 0 #e21f26; }
.paymethod__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.paymethod__text strong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.paymethod__text em { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: rgba(61, 220, 132, .15); color: var(--ok); }
.paymethod__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paymethod__radio { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-2); transition: all .15s ease; }
.paymethods input:checked + .paymethod { border-color: var(--gold-ink); background: rgba(255, 197, 61, .08); }
.paymethods input:checked + .paymethod .paymethod__radio { border: 6px solid var(--gold-ink); }
.paymethods input:focus-visible + .paymethod { box-shadow: 0 0 0 3px rgba(255, 197, 61, .3); }

/* ---------- Halaman pembayaran ---------- */
.pay { display: grid; gap: 14px; padding-top: 16px; max-width: 560px; }
.paysteps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.paysteps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; }
.paysteps li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; position: relative; z-index: 1;
}
.paysteps li::after { content: ""; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line-2); }
.paysteps li:last-child::after { display: none; }
.paysteps li.is-done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.paysteps li.is-done::after { background: var(--ok); }
.paysteps li.is-current { color: var(--text); }
.paysteps li.is-current::before { background: var(--gold); border-color: var(--gold); color: #1a1205; box-shadow: 0 0 0 4px rgba(255, 197, 61, .2); }

.paytotal { padding: 18px; border-radius: var(--radius); text-align: center; background: linear-gradient(135deg, rgba(255, 197, 61, .14), rgba(139, 92, 246, .08)); border: 1px solid rgba(255, 197, 61, .3); }
.paytotal small { display: block; font-size: 12px; color: var(--muted); }
.paytotal__amount { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 8px; font-family: var(--display); font-size: 34px; color: var(--gold-ink); line-height: 1.1; }
.paytotal__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.paytotal__meta b { color: var(--text); }
.copy-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); cursor: pointer; font-family: var(--font); }
.copy-btn.is-copied { color: var(--ok); border-color: var(--ok); }

.qris { padding: 14px; border-radius: 22px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.qris img { width: 100%; height: auto; max-width: 330px; margin: 0 auto; border-radius: 12px; }
.qris__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.qris__actions .btn--ghost { color: #11131c; background: #f1f2f6; border-color: #e1e3ea; }

.howpay { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: h; }
.howpay li { display: flex; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.howpay li::before { counter-increment: h; content: counter(h); display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; background: rgba(255, 197, 61, .14); color: var(--gold-ink); font-weight: 800; font-size: 12px; }
.howpay b { color: var(--text); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; background: rgba(255, 159, 28, .1); border: 1px solid rgba(255, 159, 28, .25); color: var(--text-2); }
.notice .ic { color: var(--gold-ink); margin-top: 1px; }
.pay__alt { text-align: center; font-size: 13px; color: var(--muted); }
.pay__alt a { color: var(--gold-ink); font-weight: 700; }
.paystatus { text-align: center; padding: 32px 18px; display: grid; justify-items: center; gap: 10px; }
.paystatus__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(61, 220, 132, .14); color: var(--ok); }
.paystatus__ic--warn { background: rgba(255, 77, 109, .14); color: var(--danger-ink); }
.paystatus h2 { font-size: 20px; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .feat { width: 340px; }
  .testi { width: 320px; }
  .cover__text strong { font-size: 48px; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topnav { display: flex; }
  .topbar__cta { width: auto; padding: 0 14px; }
  .topbar__cta span { display: inline; }
  .brand { margin-right: 24px; }
  .topnav { margin-right: auto; }

  .hero__card { padding: 48px 48px 0; display: grid; }
  .hero__stats { margin: 36px -48px 0; }
  .hero__stats strong { font-size: 26px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__sub { font-size: 16px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; }
  .section { padding-top: 48px; }

  .detail { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 32px; align-items: start; }
  .detail__media { position: sticky; top: 86px; }
  .detail__title { font-size: 32px; }
  .detail__desktop-cta { display: block; }
  .buybar { display: none; }

  .sheet__panel {
    left: 50%; top: 50%; bottom: auto; right: auto; width: 440px; border-radius: 24px; border: 1px solid var(--line-2);
    transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .25s ease, opacity .25s ease;
  }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__handle { display: none; }
}

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