/* =========================================================
   style.css: halaman publik (dipakai juga oleh pratinjau admin)
   Token mengikuti DESIGN.md "Siap Pakai Digital Blueprint".
   ========================================================= */
:root {
  --font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #f8fafc; --surface: #ffffff; --muted: #f1f5f9; --line: #e2e8f0; --line-strong: #cbd5e1; --dash: #94a3b8;
  --ink: #0f172a; --ink-2: #475569; --ink-3: #5b6474;
  --brand: #0ea5e9; --brand-strong: #0369a1; --brand-ink: #006591; --accent: #bef264; --accent-ink: #0f172a;
  --panel: #0f172a; --panel-2: #1e293b; --panel-ink: #f1f5f9; --panel-ink-2: #cbd5e1;
  --pos: #15803d; --neg: #dc2626; --dot: var(--brand-strong); --glass: rgba(248, 250, 252, .9); --neg-bg: #fee2e2; --pos-bg: #dcfce7;
  --r-sm: .75rem; --r: 1rem; --r-md: 1.5rem; --r-lg: 2rem; --pill: 9999px;
  --lift: 0 12px 24px -6px rgba(15, 23, 42, .08); --glow: 0 8px 20px -4px rgba(14, 165, 233, .3);
  --nav-h: 64px; --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
html[data-theme="hijau"] { --brand: #16a34a; --brand-strong: #15803d; --brand-ink: #166534; --accent: #fde047; --glow: 0 8px 20px -4px rgba(22, 163, 74, .3); }
html[data-theme="oranye"] { --brand: #f97316; --brand-strong: #c2410c; --brand-ink: #9a3412; --accent: #fcd34d; --glow: 0 8px 20px -4px rgba(249, 115, 22, .3); }
html[data-theme="kuning"] { --brand: #eab308; --brand-strong: #a16207; --brand-ink: #854d0e; --accent: #bef264; --glow: 0 8px 20px -4px rgba(234, 179, 8, .3); }
html[data-mode="dark"] {
  --bg: #0a1020; --surface: #111a2e; --muted: #17223a; --line: #23314d; --line-strong: #31415f; --dash: #5d6f8c;
  --ink: #e8eef8; --ink-2: #b6c2d6; --ink-3: #9fb0c8; --brand-ink: #7dd3fc;
  --panel: #050a16; --panel-2: #141f36; --neg-bg: #3b1219; --pos-bg: #0f2e1d; --neg: #f87171; --pos: #4ade80;
  --lift: 0 12px 24px -6px rgba(0, 0, 0, .45); --dot: var(--brand); --glass: rgba(10, 16, 32, .9); color-scheme: dark;
}
html[data-mode="dark"][data-theme="hijau"] { --brand-ink: #86efac; }
html[data-mode="dark"][data-theme="oranye"] { --brand-ink: #fdba74; }
html[data-mode="dark"][data-theme="kuning"] { --brand-ink: #fde047; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 24px; color: var(--ink); background: var(--bg); overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--pill); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .wrap { padding: 0 3rem; } }

/* ---------- Tipografi ---------- */
mark.hl { background: var(--accent); color: var(--accent-ink); padding: 0 .22em; border-radius: .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.h2 { font-size: 26px; line-height: 34px; font-weight: 700; letter-spacing: -.01em; margin-top: 8px; text-wrap: balance; }
.h2 .dot { color: var(--dot); }
.lead { color: var(--ink-2); font-size: 15px; margin-top: 8px; max-width: 60ch; }
@media (min-width: 768px) { .h2 { font-size: 36px; line-height: 44px; } .lead { font-size: 18px; line-height: 28px; } }
.sec { padding: 1.75rem 0; }
@media (min-width: 1024px) { .sec { padding: 2.5rem 0; } }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 20px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:has(.btn-circle) { padding-right: 7px; }
.btn-circle { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease); }
.btn:hover .btn-circle { transform: translateX(3px); }
.btn-circle.down { transition: transform .25s var(--ease); }
.btn:hover .btn-circle.down { transform: translateY(3px); }
.btn-lime { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.btn-lime .btn-circle { background: #0f172a; color: var(--accent); }
.btn-lime:hover { filter: brightness(.97); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark .btn-circle { background: var(--accent); color: #0f172a; }
.btn-sky { background: var(--brand-strong); color: #fff; }
.btn-sky:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--muted); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; text-decoration: none; min-height: 44px; }
.link:hover { text-decoration: underline; }
.link .ic { transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(3px); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--muted); }
.pill { border-radius: var(--pill); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--pill); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .02em; background: var(--muted); color: var(--ink-2); border: 1px solid var(--line); }
.badge-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge-lime { background: var(--accent); color: #0f172a; border-color: transparent; }
.badge-neg { background: #dc2626; color: #fff; border-color: transparent; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- Bar progres, bar atas, navigasi ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }
.topbar { background: var(--ink); color: var(--bg); font-size: 13px; line-height: 20px; padding: 8px 1rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.topbar.is-promo { background: var(--promo-bg, var(--accent)); color: var(--promo-ink, #0f172a); font-weight: 600; }
.topbar .tb-clock { font-variant-numeric: tabular-nums; font-weight: 800; background: rgba(15, 23, 42, .1); padding: 1px 10px; border-radius: var(--pill); }
.topbar a { font-weight: 700; }
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 10px 0; transition: background .25s, box-shadow .25s; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.nav-wrap.scrolled { background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px -12px rgba(15, 23, 42, .35); }
.nav { max-width: 1280px; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 10px; }
@media (min-width: 1024px) { .nav { padding: 0 3rem; } }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 8px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 800; text-decoration: none; max-width: 60vw; }
.nav-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--accent); }
.nav-menu { display: none; margin: 0 auto; padding: 5px; background: var(--surface); border: 1.5px solid var(--line); gap: 2px; }
.nav-menu a { padding: 8px 16px; border-radius: var(--pill); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav-menu a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.nav-menu a:hover:not([aria-current="true"]) { background: var(--muted); }
.nav-cta { display: none; }
.burger { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
@media (min-width: 900px) { .nav-menu { display: flex; } .nav-cta { display: inline-flex; } .burger { display: none; } }
.drawer-scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px); z-index: 70; }
.drawer { position: fixed; z-index: 71; top: calc(env(safe-area-inset-top, 0px) + 72px); left: 1rem; right: 1rem; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); padding: 10px; display: grid; gap: 4px; box-shadow: var(--lift); }
.drawer a { padding: 14px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; font-size: 17px; }
.drawer a:hover { background: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 1.5rem 0 2.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; } .hero { padding: 2.5rem 0 3.5rem; } }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hero-pill .ic { color: var(--brand-ink); width: 16px; height: 16px; }
.hero h1 { font-size: 32px; line-height: 40px; font-weight: 800; letter-spacing: -.02em; margin-top: 18px; text-wrap: balance; }
@media (min-width: 768px) { .hero h1 { font-size: 48px; line-height: 58px; } }
.rot { transition: opacity .35s var(--ease); }
.rot.out { opacity: 0; }
.rot.in { opacity: 0; transition: none; }
.hero-sub { margin-top: 16px; font-size: 16px; line-height: 26px; color: var(--ink-2); max-width: 52ch; }
@media (min-width: 768px) { .hero-sub { font-size: 18px; line-height: 28px; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks .ic { color: var(--pos); width: 16px; height: 16px; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
@media (min-width: 768px) { .hero-visual { min-height: 440px; } }
.hv-circle { position: absolute; width: min(78%, 400px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--brand) 18%, transparent); border: 1.5px dashed var(--dash); }
.hv-star { position: absolute; color: var(--brand); width: 26px; height: 26px; }
.hv-star.s1 { top: 8%; right: 14%; } .hv-star.s2 { bottom: 14%; left: 8%; width: 18px; height: 18px; color: var(--ink); }
.stage { position: relative; width: min(74%, 330px); aspect-ratio: 4 / 5; perspective: 1100px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.stage-card { position: absolute; inset: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 40px -18px rgba(15, 23, 42, .35); transition: transform .5s var(--ease); }
.stage-card .win { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 12px; background: var(--muted); border-bottom: 1px solid var(--line); }
.stage-card .win i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.stage-card .win i:first-child { background: #ef4444; } .stage-card .win i:nth-child(2) { background: #f59e0b; } .stage-card .win i:nth-child(3) { background: #16a34a; }
.stage-card .cov { position: absolute; inset: 28px 0 0; }
.stage-card .cov svg, .stage-card .cov img { width: 100%; height: 100%; object-fit: cover; }
.stage-card.c3 { transform: translate3d(-22%, -6%, -120px) rotate(-9deg); }
.stage-card.c2 { transform: translate3d(18%, -3%, -60px) rotate(7deg); }
.stage-card.c1 { transform: translate3d(0, 4%, 0); }
.hero-photo { position: relative; width: min(88%, 480px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--lift); }
.hero-photo img { width: 100%; height: auto; }
.hv-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--lift); font-size: 13px; font-weight: 700; white-space: nowrap; z-index: 3; }
.hv-chip .ic { width: 18px; height: 18px; color: var(--brand-ink); }
.hv-chip b { color: var(--brand-ink); }
.hv-chip.k1 { top: 10%; left: 0; } .hv-chip.k2 { top: 46%; right: 0; } .hv-chip.k3 { bottom: 6%; left: 10%; }
.float { animation: floaty 6s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; } .float.d3 { animation-delay: -4s; }
@keyframes floaty { 50% { translate: 0 -8px; } }
.paused, .paused * { animation-play-state: paused !important; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1.5px solid var(--line); background: var(--accent); color: #0f172a; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: tick 32s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 22px; padding: 12px 11px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.ticker-group .ic { width: 16px; height: 16px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Keunggulan (panel gelap) ---------- */
.adv { background: var(--panel); color: var(--panel-ink); border-radius: var(--r-lg); padding: 1.75rem 1.25rem; position: relative; overflow: hidden; }
@media (min-width: 768px) { .adv { padding: 2.5rem; } }
.adv .kicker { color: var(--panel-ink-2); } .adv .kicker::before { background: var(--accent); }
.adv .lead { color: var(--panel-ink-2); }
.adv-grid { display: grid; gap: 12px; margin-top: 1.5rem; }
@media (min-width: 640px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: repeat(4, 1fr); } }
.adv-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: inherit; min-height: 170px; transition: transform .25s var(--ease), border-color .25s; }
.adv-card:hover { transform: translateY(-3px); border-color: rgba(190, 242, 100, .5); }
.adv-card:first-child { background: var(--accent); color: #0f172a; }
.adv-card:first-child p { color: #1e293b; }
.adv-card:first-child .adv-ic { background: #0f172a; color: var(--accent); }
.adv-ic { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--accent); }
.adv-card h3 { font-size: 18px; line-height: 26px; font-weight: 700; }
.adv-card p { font-size: 14px; line-height: 22px; color: var(--panel-ink-2); flex: 1; }
.adv-card .go { align-self: flex-end; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; opacity: .7; transition: transform .25s var(--ease); }
.adv-card:hover .go { transform: rotate(-45deg); opacity: 1; }

/* ---------- Promo ---------- */
.promo { --p-bg: var(--surface); --p-accent: var(--accent); border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--p-bg); padding: 1.5rem; display: grid; gap: 1.5rem; }
.promo.merah { --p-accent: #fecaca; border-color: #fca5a5; }
.promo.gelap { --p-bg: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.promo.gelap .lead, .promo.gelap .promo-sched { color: var(--panel-ink-2); }
@media (min-width: 900px) { .promo { grid-template-columns: 1.3fr 1fr; padding: 2.5rem; align-items: center; } }
.promo .h2 mark.hl { background: var(--p-accent); }
.promo-sched { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.promo-sched .ic { width: 16px; height: 16px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.code-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1.5px dashed var(--dash); background: var(--muted); color: var(--ink); font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.code-btn.copied { border-style: solid; border-color: var(--pos); color: var(--pos); }
.code-btn[disabled] { opacity: .75; cursor: not-allowed; }
.code-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; width: 100%; }
.promo.gelap .code-btn { background: var(--panel-2); color: var(--panel-ink); }
.promo-side { display: grid; gap: 14px; justify-items: center; text-align: center; }
.big-disc { font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .big-disc { font-size: 96px; line-height: 92px; } }
.big-disc small { font-size: .45em; }
.disc-label { font-size: 13px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.promo.gelap .disc-label { color: var(--panel-ink-2); }
.cd { display: grid; grid-template-columns: repeat(4, minmax(58px, 1fr)); gap: 8px; width: 100%; max-width: 340px; }
.cd-box { border-radius: var(--r-sm); background: var(--muted); border: 1px solid var(--line); padding: 10px 4px; display: grid; }
.promo.gelap .cd-box { background: var(--panel-2); border-color: rgba(255, 255, 255, .08); }
.cd-box b { font-size: 28px; line-height: 32px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.promo.gelap .cd-box span { color: var(--panel-ink-2); }
.cd-box.blink b { animation: blink .4s; }
@keyframes blink { 0% { opacity: .35; } 100% { opacity: 1; } }
.cd-cap { font-size: 13px; font-weight: 700; }

/* ---------- Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); padding: 18px; display: grid; gap: 4px; }
.stat:nth-child(2) { border-style: dashed; border-color: var(--dash); background: var(--muted); }
.stat .ic { width: 22px; height: 22px; color: var(--brand-ink); }
.stat b { font-size: 28px; line-height: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* ---------- Sebelum / Sesudah ---------- */
.ba-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--pill); background: var(--surface); border: 1.5px solid var(--line); margin-bottom: 12px; }
.ba-tabs button { min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 0; background: none; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.ba-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.ba { display: grid; gap: 12px; }
@media (min-width: 768px) { .ba { grid-template-columns: 1fr 1.15fr; } .ba-tabs { display: none; } .ba-col[hidden] { display: block !important; } }
.ba-col { border-radius: var(--r-md); padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.ba-col.after { background: var(--panel); color: var(--panel-ink); border-color: var(--panel); }
.ba-col h3 { font-size: 18px; line-height: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ba-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ba-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ba-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ba-mark .ic { width: 14px; height: 14px; }
.ba-col.before .ba-mark { background: var(--neg-bg); color: var(--neg); }
.ba-col.after .ba-mark { background: var(--accent); color: #0f172a; }
.ba-col.before li { color: var(--ink-2); }

/* ---------- Kartu produk ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 559px) { .cards.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; cursor: pointer; --mx: 50%; --my: 0%; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.card:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.card:hover::after { opacity: 1; }
.card-cover { position: relative; background: var(--muted); overflow: hidden; }
.card-cover img, .card-cover svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cover img.contain { object-fit: contain; }
.card-badges { position: absolute; inset: 10px 10px auto; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.card-meta span + span::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.card h3 { font-size: 17px; line-height: 24px; font-weight: 700; }
.card h3 a { text-decoration: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-desc { font-size: 13px; line-height: 20px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { display: grid; }
.price s { font-size: 13px; color: var(--ink-3); }
.price b { font-size: 18px; line-height: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.save { font-size: 11px; font-weight: 800; color: var(--pos); }
.card-go { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s; }
.card:hover .card-go { transform: rotate(-45deg); background: var(--brand-strong); color: #fff; }
@media (max-width: 559px) { .cards.grid2 .card-meta span + span { display: none; } .cards.grid2 .card-body { padding: 10px 12px 12px; } .cards.grid2 .card h3 { font-size: 15px; line-height: 21px; } .cards.grid2 .card-desc { display: none; } .cards.grid2 .card-go { width: 34px; height: 34px; } .cards.grid2 .price b { font-size: 16px; } }
.cards.list { grid-template-columns: 1fr; }
.cards.list .card { flex-direction: row; align-items: stretch; }
.cards.list .card-cover { width: 34%; max-width: 220px; flex: none; aspect-ratio: auto !important; }
.cards.list .card-desc { -webkit-line-clamp: 2; }

/* ---------- Rak ---------- */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shelf > * { scroll-snap-align: start; }

/* ---------- Katalog ---------- */
.toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.chips .ic { width: 16px; height: 16px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 260px; }
.search .ic { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--ink-3); width: 18px; height: 18px; pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 44px 0 44px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.search kbd { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-family: var(--font); font-size: 12px; font-weight: 700; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 7px; color: var(--ink-3); background: var(--muted); }
.select { min-height: 48px; padding: 0 38px 0 16px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; font-weight: 600; font-size: 14px; }
.viewtog { display: inline-flex; padding: 4px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--surface); }
.viewtog button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.viewtog button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.count { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.empty { border: 1.5px dashed var(--dash); border-radius: var(--r-md); background: var(--muted); padding: 2.5rem 1rem; text-align: center; display: grid; justify-items: center; gap: 8px; color: var(--ink-2); }
.empty .ic { width: 36px; height: 36px; color: var(--ink-3); }

/* ---------- Cara pesan, Jaminan ---------- */
.steps { display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.step { position: relative; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; background: var(--ink); color: var(--bg); margin-bottom: 12px; }
.step:first-child .step-num { background: var(--accent); color: #0f172a; }
.step h3 { font-size: 18px; line-height: 26px; font-weight: 700; }
.step p { color: var(--ink-2); margin-top: 4px; }
@media (min-width: 768px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -12px; width: 12px; border-top: 1.5px dashed var(--dash); } }
.guarantee { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-md); border: 1.5px dashed var(--dash); background: var(--muted); }
.guarantee .shield { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--pos-bg); color: var(--pos); display: grid; place-items: center; flex: none; }
.guarantee .shield .ic { width: 28px; height: 28px; }
.guarantee h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.guarantee p { color: var(--ink-2); margin-top: 4px; }

/* ---------- Testimoni ---------- */
.testis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.testi { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.stars { display: flex; gap: 2px; color: #f59e0b; }
.stars .ic { width: 16px; height: 16px; }
.testi blockquote { margin: 0; font-size: 15px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--muted); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 800; color: var(--brand-ink); }
.who b { display: block; font-size: 14px; } .who span { font-size: 13px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq-item { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 16px 18px; border: 0; background: none; font-weight: 700; font-size: 16px; cursor: pointer; min-height: 56px; }
.faq-q .ic { transition: transform .3s var(--ease); flex: none; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a.open { grid-template-rows: 1fr; }
.faq-a p { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- CTA, Footer ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--accent); color: #0f172a; padding: 2rem 1.25rem; display: grid; gap: 18px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 3rem; } }
.cta .h2 { margin: 0; } .cta .h2 mark.hl { background: #0f172a; color: var(--accent); }
.cta p { color: #1e293b; margin-top: 8px; font-size: 16px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.cta .btn-ghost { border-color: #0f172a; color: #0f172a; }
.cta .btn-ghost:hover { background: rgba(15, 23, 42, .08); }
.cta-star { position: absolute; color: #0f172a; opacity: .14; width: 120px; height: 120px; right: -20px; top: -24px; }
.cta-star.b { width: 60px; height: 60px; right: 30%; top: auto; bottom: -14px; opacity: .1; }
.footer { border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 2.5rem 0 calc(2rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } .foot-grid > :first-child { grid-column: auto; } }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.foot-note { color: var(--ink-2); margin-top: 10px; max-width: 40ch; font-size: 14px; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.footer h4 { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer li a, .footer li button { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 14px; word-break: break-word; }
.footer li a:hover, .footer li button:hover { color: var(--brand-ink); text-decoration: underline; }
.copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); }

/* ---------- Dock, chat melayang, toast ---------- */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; padding: 6px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .35); }
.dock .btn { flex: 1; min-height: 46px; padding: 0 14px; }
@media (min-width: 900px) { .dock { display: none !important; } }
.has-dock .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
.float-chat { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: none; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: var(--pill); background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .5); }
@media (min-width: 900px) { .float-chat:not([hidden]) { display: inline-flex; } }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); translate: -50% 20px; opacity: 0; pointer-events: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: opacity .25s, translate .25s var(--ease); max-width: calc(100vw - 24px); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast .ic { color: var(--accent); }
.toast.err .ic { color: #fca5a5; }

/* ---------- Lembar detail ---------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.sheet-scrim.show { opacity: 1; }
.sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92vh; background: var(--surface); border-radius: var(--r-md) var(--r-md) 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet.show { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-handle { padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; }
.sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet-close { position: absolute; right: 12px; top: 12px; z-index: 3; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 1rem 1.25rem; }
@media (min-width: 900px) {
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: min(1040px, calc(100vw - 48px)); max-height: min(88vh, 760px); border-radius: var(--r-md); transform: translate(-50%, -48%); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-handle { display: none; }
  .sheet-body { padding: 1.5rem; }
}
.detail { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .detail { grid-template-columns: 1fr 1fr; gap: 2rem; } .detail-info { padding-right: 36px; } }
.gallery { position: relative; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: var(--muted); scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; }
.g-slide img, .g-slide svg { width: 100%; height: 100%; object-fit: contain; }
.g-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.g-btn.prev { left: 10px; } .g-btn.next { right: 10px; }
.g-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.g-dots button { width: 24px; height: 24px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; }
.g-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: width .25s, background .25s; }
.g-dots button[aria-current="true"]::before { width: 20px; border-radius: 4px; background: var(--brand); }
.detail-info h2 { font-size: 24px; line-height: 32px; font-weight: 800; margin-top: 10px; }
.detail-desc { color: var(--ink-2); margin-top: 10px; display: grid; gap: 10px; }
.detail-desc strong { color: var(--ink); }
.feat { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat .ba-mark { background: var(--pos-bg); color: var(--pos); }
.buybar { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: var(--muted); border: 1px solid var(--line); display: grid; gap: 12px; }
.buybar-top { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.buybar .price b { font-size: 28px; line-height: 32px; }
.buybar small { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.avail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.choose { display: grid; gap: 10px; margin-top: 10px; }
.choose button { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; min-height: 64px; }
.choose button:hover { border-color: var(--brand); }
.choose .ch-ic { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--muted); display: grid; place-items: center; flex: none; color: var(--brand-ink); }
.choose b { display: block; } .choose span span { font-size: 13px; color: var(--ink-2); }
.form { display: grid; gap: 12px; margin-top: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea { min-height: 48px; padding: 12px 16px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 165, 233, .15); }
.field .err { color: var(--neg); font-size: 13px; font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--ink-2); padding: 0; }
.sheet-sub { font-size: 20px; line-height: 28px; font-weight: 700; margin-top: 4px; }
.hint { font-size: 13px; color: var(--ink-2); }

/* ---------- Zoom ---------- */
.zoom { position: fixed; inset: 0; z-index: 110; background: rgba(5, 10, 22, .94); display: flex; flex-direction: column; }
.zoom-stage { flex: 1; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; }
.zoom-stage.zoomed { cursor: grab; }
.zoom-stage img { max-width: 94vw; max-height: 80vh; object-fit: contain; transition: transform .2s var(--ease); user-select: none; -webkit-user-drag: none; }
.zoom-stage img.nofx { transition: none; }
.zoom-bar { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.zoom-bar .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
.zoom-pct { min-width: 72px; min-height: 44px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .2); background: none; color: #fff; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }

/* ---------- Skeleton, galat, preview ---------- */
.sk { background: linear-gradient(90deg, var(--muted), var(--line), var(--muted)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-pill { width: 220px; height: 36px; border-radius: var(--pill); } .sk-h1 { height: 44px; margin-top: 18px; } .sk-h1.short { width: 70%; margin-top: 10px; }
.sk-p { height: 56px; margin-top: 16px; width: 90%; } .sk-btn { width: 240px; height: 48px; border-radius: var(--pill); margin-top: 24px; } .sk-stage { width: min(70%, 320px); aspect-ratio: 4/5; border-radius: var(--r-md); }
.sk-card { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.load-error { margin: 0 auto 1.5rem; }
.load-error > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--neg-bg); color: var(--ink); border: 1px solid #fca5a5; }
.load-error .ic { color: var(--neg); }
.preview-flash { animation: flash 1.2s; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px var(--brand); } }

/* ---------- Muncul saat digulir ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
