/* =========================================================================
   GOTOP — Design System (clone gaya gogogo.id, rebrand)
   Ditulis mobile-first. Section ditandai komentar agar mudah dipecah
   jadi Blade partial saat implementasi ke gotop.live.
   ========================================================================= */

/* ----------------------------- 1. TOKENS ------------------------------- */
:root {
  /* Warna dasar */
  --bg:            #0d0d0f;
  --bg-elev:       #141416;
  --surface:       #1a1a1d;
  --surface-2:     #232327;
  --surface-3:     #2c2c31;
  --border:        #2a2a2e;
  --border-soft:   #202024;

  /* Aksen */
  --gold:          #f9b233;
  --gold-2:        #ffc94d;
  --gold-hover:    #e5a020;
  --gold-soft:     rgba(249,178,51,.12);

  --teal:          #2dd4bf;   /* harga & "Hemat" */
  --teal-strong:   #14b8a6;
  --green:         #10b981;   /* badge diskon "7% OFF" */
  --blue:          #3b82f6;   /* ribbon "Terjual" */
  --red:           #f43f5e;   /* required asterisk / warning */
  --orange:        #f59e0b;   /* status menunggu */

  /* Teks */
  --text:          #ffffff;
  --text-2:        #d1d5db;
  --text-muted:    #9ca3af;
  --text-dim:      #6b7280;

  /* Radius */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  22px;
  --r-pill: 999px;

  /* Shadow */
  --sh-card: 0 4px 20px rgba(0,0,0,.35);
  --sh-pop:  0 10px 40px rgba(0,0,0,.5);

  /* Layout */
  --maxw: 480px;            /* lebar konten mobile-centered */
  --nav-h: 68px;            /* tinggi bottom nav */
  --gutter: 16px;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ----------------------------- 2. RESET -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--gold); color: #000; }

/* Scrollbar tipis */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }

/* ------------------------- 3. APP SHELL / LAYOUT ----------------------- */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}

.container { padding-inline: var(--gutter); }

/* ----------------------------- 4. HEADER ------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

/* Logo (teks + api) */
.logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 22px; font-style: italic;
  letter-spacing: -.5px; color: var(--gold);
  text-shadow: 0 0 18px rgba(249,178,51,.35);
}
.logo .flame { font-size: 18px; transform: translateY(-1px); }
.logo b { color: var(--gold-2); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text-2); transition: .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.coin-btn {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 55%, #b8801a);
  display: grid; place-items: center;
  font-weight: 900; color: #7a4e00; font-size: 20px; font-style: italic;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.25), 0 2px 8px rgba(249,178,51,.35);
}

.btn-login {
  background: var(--gold); color: #1a1205;
  font-weight: 800; font-size: 15px;
  padding: 11px 22px; border-radius: var(--r-md);
  transition: .15s;
}
.btn-login:hover { background: var(--gold-hover); }

/* --------------------------- 5. BUTTONS -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px;
  padding: 14px 20px; border-radius: var(--r-md);
  transition: .15s; width: 100%;
}
.btn-primary { background: var(--gold); color: #1a1205; }
.btn-primary:hover { background: var(--gold-hover); }
.btn-primary:disabled { background: var(--surface-3); color: var(--text-dim); cursor: not-allowed; }
.btn-outline { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { background: var(--surface-2); color: var(--text); }

/* --------------------------- 6. HERO CAROUSEL -------------------------- */
.hero { padding: 14px var(--gutter) 0; }
.carousel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
}
.carousel-track {
  display: flex; scroll-snap-type: x mandatory;
  overflow-x: auto; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: center;
  aspect-ratio: 3/1;
  background: linear-gradient(120deg, #1c1a14, #2a2418 60%, #1a1a1d);
  display: grid; place-items: center;
  position: relative;
}
.slide-banner {
  width: 100%; height: 100%; object-fit: cover;
}
.slide-fallback {
  text-align: center; padding: 20px;
}
.slide-fallback .big {
  font-size: 40px; font-weight: 900; color: var(--gold);
  line-height: 1; margin: 6px 0;
}
.slide-fallback .code {
  display: inline-block; margin-top: 10px;
  background: var(--gold); color: #1a1205; font-weight: 800;
  padding: 6px 14px; border-radius: 8px; font-size: 13px;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 99px;
  background: rgba(0,0,0,.45); color: #fff;
  display: grid; place-items: center; z-index: 3;
  backdrop-filter: blur(4px);
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 2px; }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--surface-3); transition: .2s; }
.dot.active { width: 22px; background: var(--gold); }

/* --------------------------- 7. TRUST STRIP ---------------------------- */
.trust {
  display: flex; gap: 22px; overflow-x: auto; padding: 14px var(--gutter);
  scrollbar-width: none;
}
.trust::-webkit-scrollbar { display: none; }
.trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; color: var(--text-2); font-size: 14px; font-weight: 600;
}
.trust-item svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* --------------------------- 8. CATEGORY TABS -------------------------- */
.cat-tabs {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 6px var(--gutter) 16px;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  white-space: nowrap; font-weight: 700; font-size: 15px;
  color: var(--text-2); background: var(--surface-2);
  padding: 12px 24px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; transition: .15s;
}
.cat-tab.active {
  color: var(--gold); background: transparent; border-color: var(--gold);
}

/* --------------------------- 9. SECTION BAND --------------------------- */
.band {
  background: radial-gradient(120% 80% at 50% 0%, #4a3a10 0%, #1a1710 40%, var(--bg) 100%);
  padding: 26px 0 8px;
}
.section-title {
  font-size: 26px; font-weight: 800; letter-spacing: -.5px;
  padding: 0 var(--gutter) 16px;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px var(--gutter) 14px;
}
.section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.link-more { color: var(--gold); font-weight: 700; font-size: 14px; }

/* --------------------------- 10. PRODUCT GRID -------------------------- */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 0 var(--gutter) 8px;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 0 var(--gutter);
}

.pcard { position: relative; display: block; }
.pcard-thumb {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 3/4; background: var(--surface-2);
}
.pcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard-thumb .thumb-fallback {
  width:100%; height:100%; display:grid; place-items:center; text-align:center;
  padding: 10px; font-weight: 800; color: var(--text);
  background: linear-gradient(160deg, #2a2135, #1a1a1d);
  font-size: 15px; line-height: 1.15;
}

.rating {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 99px;
  font-size: 12px; font-weight: 800;
}
.rating svg { width: 13px; height: 13px; color: var(--gold); }

/* ribbon terjual */
.ribbon {
  position: absolute; left: 0; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px 4px 8px;
  border-radius: 0 99px 99px 0;
}
.ribbon svg { width: 12px; height: 12px; }

.pcard-name {
  margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--text);
  line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------- 11. FOOTER -------------------------------- */
.footer {
  background: var(--bg-elev); padding: 28px var(--gutter) 24px;
  border-top: 1px solid var(--border-soft);
}
.footer .logo { font-size: 26px; }
.footer-tag { color: var(--text-muted); font-size: 14px; margin: 8px 0 20px; }
.footer h4 { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.region-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--gold); color: var(--gold);
  padding: 8px 14px; border-radius: var(--r-md); font-weight: 700; font-size: 14px;
}
.pay-logos { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-weight: 800; margin: 10px 0 4px; }
.pay-logos span { font-size: 15px; }
.footer-sub { color: var(--text-dim); font-size: 13px; }
.foot-acc {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: var(--text-2);
}
.foot-acc svg { width: 18px; height: 18px; color: var(--text-muted); transition: transform .2s ease; }
.foot-acc { cursor: pointer; user-select: none; }
.foot-acc.open svg { transform: rotate(180deg); }
.foot-panel { display: none; padding: 0 0 14px; }
.foot-panel.open { display: block; }
.foot-panel a {
  display: block; color: var(--text-muted); font-size: 14px;
  padding: 7px 0; text-decoration: none;
}
.foot-panel a:hover { color: var(--gold); }
.pay-logos img { height: 22px; width: auto; display: block; }
.logo-img { height: 40px; width: auto; display: block; max-width: 240px; object-fit: contain; }
.footer .logo-img { height: 48px; max-width: 260px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 10px; margin: 18px 0;
}
.play-badge small { display: block; font-size: 9px; color: var(--text-muted); text-transform: uppercase; }
.play-badge b { font-size: 15px; }
.footer-legal {
  text-align: center; color: var(--text-dim); font-size: 12px;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
}

/* --------------------------- 12. BOTTOM NAV ---------------------------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(18,18,20,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex; z-index: 50;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-muted); font-size: 11px; font-weight: 600;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--gold); }

/* --------------------------- 13. FAQ ----------------------------------- */
.faq { padding: 28px var(--gutter) 8px; }
.faq h2 { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 22px; letter-spacing: -.5px; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 0; font-size: 17px; font-weight: 700; text-align: left; color: var(--text);
}
.faq-item.open .faq-q { color: var(--gold); }
.faq-q svg { width: 22px; height: 22px; flex: none; transition: .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--text-2); font-size: 15px; }
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }

.help-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 18px 20px; margin: 22px var(--gutter);
}
.help-box p { font-weight: 700; font-size: 16px; }

/* --------------------------- 14. BREADCRUMB ---------------------------- */
.crumb {
  display: flex; align-items: center; gap: 8px;
  padding: 18px var(--gutter) 6px; color: var(--text-muted); font-weight: 600; font-size: 14px;
}
.crumb .sep { color: var(--text-dim); }
.crumb .cur { color: var(--gold); }

/* ===================== PRODUCT DETAIL PAGE ============================= */
.pd-banner {
  margin: 6px var(--gutter) 0; border-radius: var(--r-lg); overflow: hidden;
  position: relative; aspect-ratio: 16/7;
  background: linear-gradient(120deg,#3a1a1a,#1a1a1d);
}
.pd-banner img { width:100%; height:100%; object-fit: cover; }
.pd-headcard {
  display: flex; align-items: center; gap: 14px;
  margin: -34px var(--gutter) 0; position: relative; z-index: 2;
  background: var(--surface); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--sh-card);
}
.pd-headcard .cover {
  width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--surface-2);
}
.pd-headcard .eyebrow { font-size: 12px; color: var(--gold); font-weight: 700; }
.pd-headcard h1 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.pd-headcard .howto { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 13px; white-space: nowrap; }

.pd-guarantee {
  display: flex; gap: 20px; justify-content: center;
  background: linear-gradient(90deg, #16305c, #123a5c);
  margin: 12px var(--gutter) 0; padding: 12px; border-radius: var(--r-md);
  font-size: 13px; font-weight: 600; color: #cfe1ff;
}
.pd-guarantee span { display: inline-flex; align-items: center; gap: 6px; }
.pd-guarantee svg { width: 16px; height: 16px; }

/* step label */
.step-label {
  display: flex; align-items: center; gap: 8px;
  padding: 24px var(--gutter) 10px; font-size: 19px; font-weight: 800;
}
.step-label .req { color: var(--red); }
.field-hint { padding: 0 var(--gutter); color: var(--text-muted); font-size: 13px; margin-top: -4px; }

.input {
  width: 100%; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 16px; color: var(--text); font-size: 16px;
  transition: .15s;
}
.input::placeholder { color: var(--text-dim); }
.input:focus { outline: none; border-color: var(--gold); }
.field { padding: 0 var(--gutter); }
.field.row { display: flex; gap: 10px; }

.chip-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--text-muted);
  padding: 10px 14px; border-radius: var(--r-md); font-size: 13px;
  margin: 12px var(--gutter) 0;
}
.chip-note svg { width: 16px; height: 16px; }

/* sub-tabs on product page */
.subtabs {
  display: flex; gap: 10px; overflow-x: auto; padding: 6px var(--gutter) 14px; scrollbar-width: none;
}
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  white-space: nowrap; font-weight: 700; font-size: 14px; color: var(--text-2);
  background: var(--surface-2); padding: 10px 18px; border-radius: var(--r-pill);
}
.subtab.active { color: #1a1205; background: var(--gold); }

/* denom grid */
.denoms {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px var(--gutter) 8px;
}
.denom {
  position: relative; text-align: left;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px; transition: .15s; overflow: hidden;
}
.denom:hover { border-color: var(--surface-3); }
.denom.active { border-color: var(--gold); background: #1e1a10; box-shadow: 0 0 0 3px rgba(249,178,51,.12) inset; }
.denom .off {
  position: absolute; top: 0; right: 0;
  background: var(--green); color: #05231a; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 0 var(--r-md) 0 10px;
}
.denom .dicon {
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 26px;
  background: linear-gradient(160deg,#3aa0ff,#1c6fe0); display:grid; place-items:center;
}
.denom .dicon svg { width: 18px; height: 18px; color: #fff; }
.denom .dname { font-size: 14px; font-weight: 700; line-height: 1.2; min-height: 34px; }
.denom .dprice { margin-top: 8px; font-size: 15px; font-weight: 800; color: var(--text); }
.denom .dstrike { color: var(--text-dim); text-decoration: line-through; font-size: 12px; font-weight: 600; margin-left: 6px; }

.subhead { padding: 20px var(--gutter) 10px; font-size: 18px; font-weight: 800; }

/* --------------------------- 15. STICKY PAY BAR ------------------------ */
.paybar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  background: var(--bg-elev); border-top: 1px solid var(--border);
  padding: 14px var(--gutter); padding-bottom: calc(14px + env(safe-area-inset-bottom,0px));
  display: flex; align-items: center; gap: 14px; z-index: 45;
}
.paybar .price-wrap { flex: 1; }
.paybar .price-label { font-size: 12px; color: var(--text-muted); }
.paybar .price { font-size: 22px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.paybar .save { font-size: 12px; color: var(--teal); font-weight: 700; }
.paybar .btn { width: auto; padding: 15px 40px; }

/* upsell strip above paybar */
.upsell {
  position: fixed; bottom: calc(76px + env(safe-area-inset-bottom,0px));
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  background: linear-gradient(90deg,#fff4d6,#ffe6a8);
  color: #4a3600; font-weight: 700; font-size: 13px;
  padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between;
  z-index: 44;
}
.upsell .u-login { background: var(--gold); color:#1a1205; padding:6px 16px; border-radius:8px; font-weight:800; }

/* ===================== CHECKOUT PAGE ================================== */
.co-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--r-lg); padding: 18px;
  margin: 12px var(--gutter) 0;
}
.co-item .ic {
  width: 52px; height: 52px; border-radius: 12px; flex: none; margin-left: auto;
  background: linear-gradient(160deg,#7c3aed,#4c1d95); display:grid; place-items:center;
}
.co-item .ic svg { width: 26px; height: 26px; color:#fff; }
.co-item .co-name { font-size: 20px; font-weight: 800; }
.co-item .co-price { font-size: 20px; font-weight: 800; color: var(--text); }
.co-item .co-strike { color: var(--text-dim); text-decoration: line-through; font-size: 14px; margin-left: 8px; font-weight: 600; }
.qty {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--surface-2); border-radius: var(--r-pill); padding: 8px 12px;
}
.qty .del svg { width: 20px; height: 20px; color: var(--text-muted); }
.qty .num { font-weight: 800; min-width: 16px; text-align: center; }
.qty .add {
  width: 34px; height: 34px; border-radius: 99px; background: var(--gold);
  color:#1a1205; display:grid; place-items:center; font-size: 22px; font-weight: 700;
}

.co-block { padding: 22px var(--gutter) 0; }
.co-block h3 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.co-label { font-size: 22px; font-weight: 800; display:flex; align-items:center; gap:8px; }
.co-label .req { color: var(--red); }
.co-note { color: var(--text-muted); font-size: 15px; margin: 8px 0 12px; }
.divider { height: 1px; background: var(--border-soft); margin: 22px var(--gutter); }

.co-head { display:flex; align-items:center; justify-content:space-between; padding: 22px var(--gutter) 12px; }
.co-head h3 { font-size: 21px; font-weight: 800; }
.co-head .all { color: var(--gold); font-weight: 800; font-size: 16px; }

.pay-promo {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: var(--r-md); padding: 16px; margin: 0 var(--gutter) 12px;
}
.pay-promo .coin { width: 46px; height:46px; flex:none; border-radius:99px;
  background: radial-gradient(circle at 35% 30%, #e9e9ee, #b8b8c0 60%, #7a7a82); }
.pay-promo .pp-text { flex: 1; }
.pay-promo .pp-text b { font-weight: 800; font-size: 16px; }
.pay-promo .pp-text p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.pay-promo .btn-outline { width: auto; padding: 10px 20px; font-size: 14px; }

.pm {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r-md);
  padding: 18px; margin: 0 var(--gutter) 12px; cursor: pointer; transition: .15s;
}
.pm.active { border-color: var(--gold); }
.pm .pm-ic { width: 46px; height: 46px; border-radius: 12px; flex: none; display:grid; place-items:center; background: #fff; }
.pm .pm-ic.qris svg { width: 26px; height: 26px; color:#111; }
.pm .pm-ic.flip { background:#f05a28; color:#fff; font-weight:800; font-style:italic; font-size:15px; }
.pm-name { font-size: 18px; font-weight: 700; }

.banner-final {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  background: linear-gradient(90deg,#7de3d0,#5fd6c0);
  color: #0a2a24; font-weight: 700; font-style: italic; font-size: 14px;
  text-align: center; padding: 14px; z-index: 46;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.banner-final svg { width:18px; height:18px; }

/* ===================== INVOICE / QR / TRACK ========================== */
.track-head { text-align: center; padding: 8px var(--gutter) 0; font-size: 18px; font-weight: 800; }
.pay-timer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(90deg,#a9722a,#c98a2e);
  margin: 14px var(--gutter); padding: 16px 18px; border-radius: var(--r-md);
  color: #1a1205;
}
.pay-timer b { font-weight: 800; font-size: 16px; }
.pay-timer p { font-size: 13px; }
.timer-pills { display:flex; gap:6px; }
.timer-pills span { background: rgba(0,0,0,.35); color:#fff; font-weight:800; padding:6px 8px; border-radius:8px; font-size:14px; }

.card {
  background: var(--surface); border-radius: var(--r-lg);
  margin: 14px var(--gutter); padding: 20px;
}
.status-row { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; }
.status-row h3 { font-size: 20px; font-weight: 800; }
.badge-wait { background: var(--orange); color:#2a1a00; font-weight:800; font-size:13px; padding:6px 14px; border-radius:99px; }
.kv { display:flex; justify-content:space-between; gap:12px; padding:8px 0; font-size:15px; }
.kv .k { color: var(--text-muted); }
.kv .v { font-weight:700; text-align:right; }
.kv .v.copy { color: var(--gold); display:inline-flex; align-items:center; gap:6px; }

.inv-product { display:flex; align-items:center; gap:12px; padding: 4px 0 14px; border-bottom:1px solid var(--border-soft); margin-bottom: 14px; }
.inv-product img { width:52px; height:52px; border-radius:10px; object-fit:cover; }
.inv-product .ip-eye { font-size:13px; color:var(--text-muted); }
.inv-product .ip-name { font-size:17px; font-weight:800; }

.qr-wrap { text-align:center; padding: 6px 0; }
.qr-hint { color: var(--text-2); font-size:14px; margin-bottom: 14px; }
.qr-box { display:inline-block; background:#fff; padding:16px; border-radius:16px; }
.qr-box img, .qr-box svg { width: 220px; height: 220px; display:block; }
.qr-safe { display:inline-flex; align-items:center; gap:8px; margin-top:14px; color: var(--green); font-weight:700; }
.qr-safe svg { width:20px; height:20px; }

.cs-box {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  background: var(--surface); border-radius: var(--r-md); margin: 14px var(--gutter); padding: 18px;
}
.cs-box p { font-weight:600; font-size:15px; color: var(--text-2); }

.pay-detail .row-total { border-top:1px solid var(--border-soft); margin-top:8px; padding-top:12px; }
.pay-detail .discount { color: var(--teal); }
.pay-detail .grand { color: var(--teal); font-size:20px; font-weight:800; }
.pay-detail .save-tag { color: var(--teal); font-size:13px; text-align:right; }

/* ===================== TRACK EMPTY STATE ============================= */
.empty {
  text-align:center; padding: 40px var(--gutter) 0;
}
.empty .art {
  width: 190px; height: 130px; margin: 30px auto 24px; border-radius: 16px;
  background: linear-gradient(160deg,#3a3a40,#26262b); display:grid; place-items:center; color: var(--text-muted);
}
.empty h2 { font-size: 26px; font-weight: 800; }
.empty p { color: var(--text-2); font-size: 16px; margin: 12px 0 8px; }
.empty .where { color: var(--gold); font-weight: 800; margin-bottom: 22px; display:inline-block; }
.search-row { display:flex; gap:12px; align-items:center; padding: 0 var(--gutter); }
.search-row .input { flex:1; }
.search-row .go {
  width: 58px; height: 58px; border-radius: 99px; background: var(--gold);
  display:grid; place-items:center; flex:none;
}
.search-row .go svg { width:24px; height:24px; color:#1a1205; }

/* ===================== PROMO PAGE ==================================== */
.promo-tabs { display:flex; gap:22px; overflow-x:auto; padding: 8px var(--gutter) 18px; scrollbar-width:none; }
.promo-tabs::-webkit-scrollbar { display:none; }
.promo-tab { white-space:nowrap; font-size:22px; font-weight:800; color: var(--text-dim); }
.promo-tab.active { color: var(--gold); }
.promo-card {
  background: var(--surface); border-radius: var(--r-lg); overflow:hidden;
  margin: 0 var(--gutter) 20px;
}
.promo-card .banner { aspect-ratio: 16/7; background: linear-gradient(120deg,#2a2418,#1a1a1d); display:grid; place-items:center; }
.promo-card .banner img { width:100%; height:100%; object-fit:cover; }
.promo-card .pc-body { padding: 18px; }
.promo-card h3 { font-size:20px; font-weight:800; letter-spacing:-.3px; }
.promo-card p { color: var(--text-2); font-size:15px; margin-top:6px; }

/* --------------------------- UTIL ------------------------------------- */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.center { text-align:center; }
.show-more { text-align:center; color:var(--gold); font-weight:800; padding: 8px 0 20px; display:block; width:100%; }

/* --------------------------- RESPONSIVE (desktop frame) ---------------- */
@media (min-width: 520px) {
  body { background: #08080a; }
  .app {
    margin-top: 0; box-shadow: 0 0 60px rgba(0,0,0,.6);
    border-left: 1px solid var(--border-soft); border-right: 1px solid var(--border-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Focus visibility (quality floor) */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ikon game dari API */
.pcard-thumb .thumb-img{
  width:100%; height:100%; object-fit:cover;
  position:absolute; inset:0; border-radius:inherit;
}

/* denom: span -> block, supaya min-height & margin-top berlaku */
.denom .dname{ display:block; }
.denom .dprice{ display:block; }

/* --------------------------- MODAL CARA TOP UP ------------------------- */
.ct-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,.62); backdrop-filter: blur(3px);
}
.ct-overlay.open { display: flex; }
.ct-modal {
  width: 100%; max-width: calc(var(--maxw) - 32px);
  max-height: 82vh; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.ct-title { text-align: center; font-size: 19px; font-weight: 800; margin: 0 0 16px; }
.ct-list { margin: 0 0 20px; padding-left: 22px; }
.ct-list li { font-size: 14px; line-height: 1.55; color: var(--text-2); margin-bottom: 10px; }
.ct-list li::marker { color: var(--text-2); }
.ct-ok {
  display: block; width: 100%; padding: 15px;
  background: var(--gold); color: #1a1205;
  font-size: 15px; font-weight: 800; border: 0; border-radius: 14px; cursor: pointer;
}
.ct-ok:hover { filter: brightness(1.05); }
.howto { cursor: pointer; }

/* --------------------------- PRODUK: KOLOM TUJUAN ---------------------- */
.field.row .input,
.field.row .btn-primary { border-radius: var(--r-xl); }

/* --------------------------- PRODUK: DENOM 2 WARNA --------------------- */
.denom { padding: 0; display: flex; flex-direction: column; }
.denom .dicon  { margin: 14px 14px 20px; }
.denom .dname  { padding: 0 14px 12px; }
.denom .dprice {
  margin-top: auto; padding: 12px 14px;
  background: var(--surface-2); border-top: 1px solid var(--border);
  border-radius: 0 0 calc(var(--r-md) - 2px) calc(var(--r-md) - 2px);
}
.denom.active .dprice { background: #241f12; border-top-color: rgba(249,178,51,.28); }

/* =================== SKALA MOBILE ~15% LEBIH RAPAT ==================== */
/* Header & tombol umum */
.logo { font-size: 19px; }
.logo .flame { font-size: 15px; }
.coin-btn { font-size: 17px; }
.btn-login { font-size: 13px; padding: 9px 18px; }
.btn { font-size: 13px; padding: 12px 17px; }

/* Beranda */
.slide-fallback .big { font-size: 34px; }
.slide-fallback .code { font-size: 12px; }
.trust-item { font-size: 12px; }
.cat-tab { font-size: 13px; padding: 9px 16px; }
.section-title { font-size: 22px; }
.section-head h2 { font-size: 18px; }
.link-more { font-size: 12px; }
.pcard-thumb .thumb-fallback { font-size: 13px; }
.rating { font-size: 11px; }
.ribbon { font-size: 10px; }
.pcard-name { font-size: 12px; }
.show-more { font-size: 13px; }

/* FAQ & footer */
.faq h2 { font-size: 25px; }
.faq-q { font-size: 15px; padding: 17px 0; }
.faq-a { font-size: 13px; }
.help-box p { font-size: 14px; }
.footer .logo { font-size: 22px; }
.footer-tag, .region-pill { font-size: 12px; }
.footer h4, .footer-sub { font-size: 12px; }
.footer-legal { font-size: 11px; }
.nav-item { font-size: 10px; }

/* Halaman produk */
.crumb { font-size: 12px; }
.pd-headcard h1 { font-size: 17px; }
.pd-headcard .howto { font-size: 12px; }
.pd-guarantee { font-size: 12px; }
.step-label { font-size: 16px; padding-top: 20px; }
.field-hint, .chip-note { font-size: 12px; }
.input { font-size: 14px; padding: 13px 15px; }
.subtab { font-size: 12px; padding: 9px 15px; }
.subhead { font-size: 15px; }
.denom .dname { font-size: 12px; min-height: 30px; }
.denom .dprice { font-size: 13px; padding: 10px 14px; }
.denom .dstrike { font-size: 11px; }
.denom .off { font-size: 10px; }

/* Checkout & paybar */
.co-block h3, .co-label { font-size: 17px; }
.co-note { font-size: 13px; }
.co-head h3 { font-size: 18px; }
.co-head .all { font-size: 14px; }
.pay-promo .pp-text b { font-size: 14px; }
.pay-promo .pp-text p { font-size: 12px; }
.pm-name { font-size: 15px; }
.paybar .price { font-size: 19px; }
.paybar .price-label, .paybar .save { font-size: 11px; }
.banner-final { font-size: 12px; padding: 11px; }

/* Lacak, invoice, promo, modal */
.empty h2 { font-size: 22px; }
.empty p { font-size: 14px; }
.track-head { font-size: 15px; }
.status-row h3 { font-size: 17px; }
.kv { font-size: 13px; }
.inv-product .ip-name { font-size: 15px; }
.qr-hint { font-size: 12px; }
.promo-tab { font-size: 18px; }
.promo-card h3 { font-size: 17px; }
.promo-card p { font-size: 13px; }
.ct-title { font-size: 16px; }
.ct-list li { font-size: 13px; }
.ct-ok { font-size: 14px; padding: 13px; }

/* Sudut atas banner harga final */
.banner-final { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* ---- ringkasan pilihan di paybar ---- */
.paybar .pick-sum{ font-size:12px; color:var(--text-muted); font-weight:600; margin-top:2px; }

/* ---- modal konfirmasi pesanan ---- */
.kf-overlay{ display:none; position:fixed; inset:0; z-index:120;
  background:rgba(0,0,0,.72); align-items:center; justify-content:center; padding:18px; }
.kf-overlay.open{ display:flex; }
.kf-modal{ width:100%; max-width:420px; max-height:88vh; overflow-y:auto;
  background:#151312; border:1px solid var(--gold); border-radius:18px; padding:20px; }
.kf-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.kf-head h3{ font-size:19px; font-weight:800; margin:0; }
.kf-x{ background:none; border:none; color:var(--text-muted); font-size:26px; line-height:1; cursor:pointer; padding:0 4px; }
.kf-note{ background:rgba(255,193,84,.10); border:1px solid rgba(255,193,84,.30);
  border-radius:12px; padding:11px 14px; font-size:13px; color:var(--gold); margin-bottom:18px; }
.kf-sec{ font-size:15px; font-weight:800; margin:16px 0 8px; }
.kf-kv{ display:flex; justify-content:space-between; gap:14px; padding:8px 0; font-size:14px; }
.kf-kv .k{ color:var(--text-muted); flex:none; }
.kf-kv .v{ font-weight:700; text-align:right; word-break:break-word; }
.kf-total{ border-top:1px solid var(--border-soft); margin-top:6px; padding-top:12px; }
.kf-total .v{ font-size:20px; font-weight:800; color:var(--gold); }
.kf-go{ width:100%; margin-top:20px; padding:15px; border:none; border-radius:30px;
  background:var(--gold); color:#1a1206; font-size:16px; font-weight:800; cursor:pointer; }
.kf-go:hover{ filter:brightness(1.05); }
@media (max-width:480px){ .kf-head h3{ font-size:16px; } .kf-kv{ font-size:13px; } }

.pb-toast{ position:fixed; left:50%; transform:translateX(-50%) translateY(10px);
  bottom:calc(var(--paybar-h, 96px) + 78px); z-index:115; opacity:0; pointer-events:none;
  background:var(--red,#e5484d); color:#fff; font-size:13px; font-weight:700;
  padding:10px 18px; border-radius:24px; transition:opacity .2s, transform .2s;
  max-width:86vw; text-align:center; }
.pb-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

.lacak-msg{ margin:14px auto 0; max-width:340px; font-size:13px; font-weight:600;
  line-height:1.5; color:var(--red,#e5484d); text-align:center; }
.app:has(.bottom-nav){ padding-bottom:calc(96px + env(safe-area-inset-bottom,0px)); }

/* ---- kolom cek transaksi ---- */
.lacak-box{ position:relative; flex:1; display:block; }
.lacak-box .input{ width:100%; padding-right:46px; }
.lacak-box.err .input{ border-color:var(--red,#e5484d) !important; }
.lacak-clear{ position:absolute; right:14px; top:50%; transform:translateY(-50%);
  background:none; border:none; padding:0; cursor:pointer; display:none;
  color:var(--text-muted); line-height:0; }
.lacak-clear svg{ width:20px; height:20px; display:block; }
.lacak-clear:hover{ color:var(--text); }
.search-row .go{ width:52px !important; height:52px !important; flex:none; }
.search-row .go svg{ width:20px; height:20px; }
.lacak-msg{ color:var(--red,#e5484d) !important; }
#lacak-help{ color:var(--text-muted) !important; }

/* ---- perbaikan layout kolom cek transaksi ---- */
.search-row{ display:flex !important; align-items:center; gap:10px; }
.search-row .lacak-box{ flex:1 1 auto !important; min-width:0; }
.search-row .lacak-box .input{ width:100% !important; }
.search-row .go{ width:48px !important; height:48px !important; flex:0 0 48px !important;
  border-radius:50% !important; display:grid !important; place-items:center; }
.search-row .go svg{ width:19px; height:19px; }

/* ---- header: logo kecil + pencarian ---- */
.topbar{ position:relative; }
.topbar .logo{ font-size:17px; transition:opacity .15s, max-width .2s; white-space:nowrap; overflow:hidden; }
.topbar.searching .logo{ opacity:0; max-width:0; }
.sc-box{ display:none; position:relative; flex:1 1 auto; min-width:0; margin-right:8px; }
.topbar.searching .sc-box{ display:block; }
.sc-input{ width:100%; background:var(--surface-2,#1c1a19); color:var(--text);
  border:1.5px solid var(--gold); border-radius:99px; padding:11px 40px 11px 18px;
  font-family:inherit; font-size:14px; font-weight:600; outline:none; }
.sc-input::placeholder{ color:var(--text-muted); font-weight:500; }
.sc-clear{ display:none; position:absolute; right:12px; top:50%; transform:translateY(-50%);
  background:none; border:none; padding:0; cursor:pointer; color:var(--text-muted); line-height:0; }
.sc-clear svg{ width:18px; height:18px; display:block; }
.sc-list{ display:none; position:absolute; top:100%; left:12px; right:12px; z-index:90;
  margin-top:8px; max-height:62vh; overflow-y:auto;
  background:var(--surface,#151312); border:1px solid var(--border-soft,#2a2724);
  border-radius:16px; padding:6px; box-shadow:0 18px 40px rgba(0,0,0,.55); }
.sc-list.show{ display:block; }
.sc-item{ display:flex; align-items:center; gap:12px; padding:10px; border-radius:12px;
  text-decoration:none; color:inherit; }
.sc-item:hover{ background:var(--surface-2,#1c1a19); }
.sc-ic{ width:46px; height:46px; flex:none; border-radius:10px; overflow:hidden;
  background:var(--surface-2,#1c1a19); display:grid; place-items:center; }
.sc-ic img{ width:100%; height:100%; object-fit:cover; }
.sc-fb{ font-size:13px; font-weight:800; color:var(--gold); }
.sc-tx{ min-width:0; }
.sc-tx b{ display:block; font-size:14px; font-weight:700; line-height:1.3; }
.sc-tx span{ font-size:12px; color:var(--text-muted); }
.sc-empty{ padding:18px; text-align:center; font-size:13px; color:var(--text-muted); }

/* ---- daftar metode bayar dinamis ---- */
.pm-kat{ font-size:13px; font-weight:800; color:var(--text-muted);
  margin:18px 0 8px; text-transform:none; }
#pm-list .pm{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
#pm-list .pm .pm-ic{ width:46px; height:46px; flex:none; border-radius:10px;
  background:#fff; display:grid; place-items:center; overflow:hidden; }
#pm-list .pm .pm-ic img{ width:100%; height:100%; object-fit:contain; padding:5px; }
#pm-list .pm-name{ flex:1; min-width:0; font-size:15px; font-weight:700; }
#pm-list .pm-harga{ font-size:14px; font-weight:800; color:var(--gold); flex:none; }

.banner-final{ pointer-events:none; }
.paybar{ z-index:112; }
.paybar .btn-primary{ cursor:pointer; border:none; font-family:inherit; }

/* help-box seragam */
.help-box{gap:12px}
.help-box p{font-size:13px}
.help-box .btn-outline{width:auto!important;font-size:13px;padding:8px 14px!important;white-space:nowrap;flex-shrink:0;border-radius:10px}

/* trust strip: satu baris, berjalan bila tidak muat */
.trust{flex-wrap:nowrap;justify-content:center;overflow:hidden;gap:0}
.trust-track{display:flex;flex:none}
.trust-item{font-size:12px;margin-right:18px}
.trust-item svg{width:18px;height:18px}
.trust.jalan{justify-content:flex-start}
.trust.jalan .trust-track{animation:trust-jalan 16s linear infinite}
.trust.jalan:hover .trust-track{animation-play-state:paused}
@keyframes trust-jalan{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.trust.jalan .trust-track{animation:none}.trust{overflow-x:auto}}

/* FAQ ringkas */
.faq h2{font-size:20px;margin-bottom:8px}
.faq-q{font-size:14px;padding:14px 0;gap:12px}
.faq-q svg{width:18px;height:18px;flex:none}
.faq-a{font-size:13px;line-height:1.6}

/* footer ringkas */
.footer h4{font-size:13px}
.foot-acc{font-size:14px;padding:13px 0}
.foot-acc svg{width:16px;height:16px}
.foot-panel a{font-size:13px;padding:6px 0}
.footer-legal{font-size:12px}

/* metode bayar tidak tersedia untuk nominal terpilih */
#pm-list .pm.pm-off{ opacity:.42; cursor:not-allowed; pointer-events:none;
  filter:grayscale(1); }
#pm-list .pm.pm-off .pm-ic img{ opacity:.8; }
#pm-list .pm-catatan{ font-size:12px; font-weight:700; color:var(--text-muted);
  flex:none; white-space:nowrap; }
