:root{
  --bg1:#fcf6f9;
  --bg2:#fff7fb;
  --ink:#1b1b1b;
  --muted:rgba(27,27,27,.62);

  --surface:rgba(255,255,255,.74);
  --surface2:rgba(255,255,255,.60);
  --border:rgba(27,27,27,.10);

  --pink:#ffd6ea;
  --mint:#c9f6df;
  --sky:#cfe9ff;
  --lav:#e7d9ff;

  --shadow:0 18px 55px rgba(20,10,35,.12);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(255,214,234,.70), transparent 60%),
    radial-gradient(820px 540px at 92% 15%, rgba(201,246,223,.60), transparent 60%),
    radial-gradient(980px 620px at 60% 92%, rgba(207,233,255,.60), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  position:relative;
}

/* ♡ overlay: aman (ga nge-darken logo/gambar) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.16;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='120' height='120'%3E%3Ctext x='12' y='28' font-size='16' fill='%23ff6fa8'%3E%E2%99%A1%3C/text%3E%3Ctext x='70' y='58' font-size='14' fill='%2373d7a7'%3E%E2%99%A1%3C/text%3E%3Ctext x='35' y='98' font-size='15' fill='%2381bfff'%3E%E2%99%A1%3C/text%3E%3C/svg%3E");
  background-repeat:repeat;
  background-size:90px 90px;
  mix-blend-mode:normal;
}

a{color:inherit;text-decoration:none}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
  position:relative;
  z-index:1;
}

/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}

/* LOGO image */
.logo{
  width:34px;
  height:34px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(255,255,255,.70);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:none !important;
  mix-blend-mode:normal !important;
}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.78);
  font-weight:850;
  font-size:14px;
}

/* Buttons (untuk game page juga) */
.cta-row{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(27,27,27,.12);
  background:rgba(255,255,255,.78);
  font-weight:950;
  min-height:42px;
}
.btn.primary{
  background:linear-gradient(135deg, rgba(255,214,234,.80), rgba(201,246,223,.74), rgba(207,233,255,.78));
}

/* HERO / WRAPPER */
.hero{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.06);
  border-radius:26px;
  padding:12px;
  box-shadow:0 18px 55px rgba(0,0,0,.10);
  backdrop-filter:blur(6px);
}

/* FULL BANNER */
.banner{
  background:rgba(255,255,255,.55);
  border:1px solid rgba(0,0,0,.06);
  border-radius:22px;
  overflow:hidden;
  padding:8px;
}
.banner-track{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding-bottom:6px;
}
.banner-track::-webkit-scrollbar{height:10px}
.banner-track::-webkit-scrollbar-thumb{
  background:rgba(27,27,27,.16);
  border-radius:999px
}
.banner-item{
  scroll-snap-align:start;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(27,27,27,.10);
  background:rgba(255,255,255,.68);
  box-shadow:0 12px 30px rgba(20,10,35,.10);
  min-width:520px;
}
.banner-item img,.banner-item video{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  border-radius:16px
}
.banner-item video{background:transparent}


/* =========================
   PROMO BULAN INI (compact)
   ========================= */
.monthPromo{margin-top:12px}
.monthPromoTitle{
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 6px 10px;
  font-weight:850;
  letter-spacing:.2px;
  font-size:14px;
}
.monthPromoCard{
  width:100%;
  max-width:560px;
  margin:0 auto;
  border-radius:22px;
  padding:12px;
  background:linear-gradient(135deg, rgba(255,214,234,.55), rgba(201,246,223,.35));
  border:1px solid rgba(27,27,27,.10);
  box-shadow:0 18px 55px rgba(20,10,35,.10);
  backdrop-filter: blur(10px);
}
.monthPromoRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(27,27,27,.08);
}
.monthPromoRow + .monthPromoRow{margin-top:8px}
.monthPromoName{font-weight:800}
.monthPromoMid{color:var(--muted); font-weight:650}
.monthPromoPrice{font-weight:900; color:#1a8f63}
.monthPromoNote{
  margin-top:10px;
  font-size:12px;
  color:var(--muted);
  padding:0 4px;
}

@media (max-width:520px){
  .monthPromoCard{padding:10px}
  .monthPromoRow{padding:9px 10px}
  .monthPromoTitle{font-size:13px}
  .monthPromoPrice{font-size:13px}
}


/* SECTIONS */
.section{margin-top:16px}
.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.section-title h3{margin:0;font-size:18px}
.section-title p{margin:0;color:var(--muted);font-size:13px}

/* GRID */
.grid{
  margin-top:12px;
  display:grid;
  gap:12px;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
}

/* Cards */
.card{
  border-radius:var(--radius);
  padding:14px;
  background:rgba(255,255,255,.74);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 22px 60px rgba(20,10,35,.14);
}
.card .tag{
  display:inline-block;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(27,27,27,.10);
  background:linear-gradient(135deg, rgba(255,214,234,.85), rgba(201,246,223,.78));
}
.card .name{margin:10px 0 2px;font-weight:900}
.card .desc{margin:0;color:var(--muted);font-size:13px;line-height:1.35}

/* PRODUCT CARD IMAGE (1:1, contain) */
.cardProduct .cardMedia{
  margin-top:10px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(27,27,27,.10);
  background:rgba(255,255,255,.58);
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.cardProduct .cardImg{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  padding:0;
  box-sizing:border-box;
  background:transparent;
}

/* Forms */
.form,.invoice{
  margin-top:12px;
  border-radius:var(--radius);
  padding:14px;
  background:rgba(255,255,255,.74);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

label{display:block;margin:10px 0 6px;font-weight:850}
input,select,textarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(27,27,27,.12);
  background:rgba(255,255,255,.78);
  color:var(--ink);
  outline:none;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(255,111,168,.55);
  box-shadow:0 0 0 4px rgba(255,111,168,.15);
}

.small{font-size:13px;color:var(--muted);line-height:1.5}
.hr{height:1px;background:rgba(27,27,27,.10);margin:12px 0}
.footer{margin:18px 0 8px;color:var(--muted);font-size:13px}

/* DENOM list (kalau kepake di page produk) */
.denomList{
  margin-top:8px;
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.denomItem{
  position:relative;
  display:block;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(27,27,27,.12);
  background:rgba(255,255,255,.78);
  cursor:pointer;
  transition:transform .10s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  min-height:86px;
}
.denomItem input[type="radio"]{position:absolute;opacity:0;pointer-events:none}
.denomItem:hover{transform:translateY(-1px);box-shadow:0 18px 55px rgba(20,10,35,.10)}
.denomItem.is-disabled{opacity:.55;cursor:not-allowed}
.denomItem.is-selected{
  border-color:rgba(255,111,168,.38);
  background:linear-gradient(135deg, rgba(255,214,234,.82), rgba(255,255,255,.82));
  box-shadow:0 0 0 3px rgba(255,111,168,.16), 0 18px 55px rgba(20,10,35,.12);
}
.denomBody{display:flex;flex-direction:column;gap:6px;min-width:0;text-align:center}
.denomName{
  font-weight:900;
  line-height:1.12;
  font-size:clamp(13px,2.6vw,16px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.denomPrice{font-weight:900;white-space:nowrap;font-size:clamp(12px,2.4vw,15px)}
.denomMeta{margin-top:2px;font-size:12px;color:var(--muted);line-height:1.2}

/* Global image safety */
img{max-width:100%;height:auto}

/* =========================
   STORE ABOUT V3
   ========================= */
.storeAboutV3{
  margin-top:16px;
  border-radius:22px;
  padding:14px;
  border:1px solid var(--border);
  background:
    radial-gradient(800px 260px at 10% 0%, rgba(255,214,234,.45), transparent 60%),
    radial-gradient(780px 260px at 92% 10%, rgba(201,246,223,.42), transparent 62%),
    radial-gradient(860px 320px at 60% 120%, rgba(207,233,255,.40), transparent 62%),
    rgba(255,255,255,.72);
  box-shadow:var(--shadow);
  backdrop-filter:blur(8px);
}
.storeTopV3{margin-bottom:10px}
.storeTitleV3{font-weight:1000;font-size:20px;letter-spacing:.2px}
.storeTextV3{
  margin-top:8px;
  color:rgba(27,27,27,.68);
  line-height:1.6;
  font-weight:900;
  font-size:13.5px;
}

/* 2 kolom selalu */
.storeColsV3{
  margin-top:12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* Headings konsisten */
.storeHeadV3{
  font-weight:1000;
  letter-spacing:.8px;
  font-size:13px;
  text-transform:uppercase;
  margin-bottom:10px;
}

/* Item konsisten (peta situs & favorit) */
.storeLinkV3{
  display:block;
  padding:10px 12px;
  margin-bottom:8px;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(27,27,27,.10);
  font-weight:900;
  font-size:14px;
  line-height:1.2;
}
.storeStaticV3{cursor:default}

.storeSupportV3{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(27,27,27,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.csBtnV3{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(27,27,27,.12);
  background:linear-gradient(135deg, rgba(255,214,234,.80), rgba(201,246,223,.74), rgba(207,233,255,.78));
  font-weight:1000;
  min-height:44px;
  box-shadow:0 14px 40px rgba(20,10,35,.10);
}
.socialRowV3{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Social bubble pakai icon */
.socV3{
  width:44px;
  height:44px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(27,27,27,.10);
  box-shadow:0 10px 26px rgba(20,10,35,.08);
  overflow:hidden;
}
.socV3 img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}

/* Disabled state kalau env kosong */
.is-disabled{
  opacity:.45;
  pointer-events:none;
  filter:grayscale(1);
}

/* MOBILE */
@media (max-width:720px){
  .container{padding:12px}
  .nav-inner{padding:10px 12px}
  .chip{padding:9px 12px;font-size:13px}

  .hero{padding:14px}
  .banner{padding:12px}
  .banner-item{min-width:86vw}

  .flashCard{min-width:74vw}

  .section{margin-top:18px}
  .denomList{grid-template-columns:repeat(2, minmax(0,1fr));gap:8px}
  .denomItem{padding:10px;min-height:82px}
}

/* =========================
   HAMBURGER DRAWER
   ========================= */

/* ✅ BALIKIN tombol menu kamu (biar icon bagus lagi) */
.menuBtn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 26px rgba(20, 10, 35, .08);
    font-weight: 1000;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 🔥 SWIPE NEEDS: jangan display:none, pakai opacity/visibility */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 120;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility 0s linear .18s;
}

/* open / peek (buat edge-swipe) */
.drawer.is-open,
.drawer.is-peek {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s ease, visibility 0s;
}

.drawerBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 35, .22);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .18s ease;
}

.drawer.is-open .drawerBackdrop,
.drawer.is-peek .drawerBackdrop {
    opacity: 1;
}

.drawerSheet {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 88vw);
    background: rgba(255, 255, 255, .86);
    border-left: 1px solid rgba(27, 27, 27, .10);
    box-shadow: -18px 0 55px rgba(20, 10, 35, .14);

    /* closed state */
    transform: translateX(100%);
    will-change: transform;
    transition: transform .22s cubic-bezier(.2, .9, .2, 1);
}

/* open state */
.drawer.is-open .drawerSheet {
    transform: translateX(0);
}

/* pas drag, matiin transition biar ngikut jari */
.drawer.is-dragging .drawerSheet,
.drawer.is-dragging .drawerBackdrop {
    transition: none !important;
}

/* header tetap rapi + X kanan */
.drawerHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid rgba(27, 27, 27, .10);
}

/* ✅ BALIKIN tombol close kamu (biar icon X bagus lagi) */
.drawerClose {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(27, 27, 27, .10);
    background: rgba(255, 255, 255, .78);
    font-weight: 1000;
    font-size: 16px;
    cursor: pointer;

    /* guard biar selalu ke kanan */
    margin-left: auto;
}

.drawerBody {
    padding: 12px 14px;
}

.drawerItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(27, 27, 27, .10);
    background: rgba(255, 255, 255, .78);
    font-weight: 950;
    margin-bottom: 10px;
}

/* ✅ FIX teks berantakan:
   jangan flex:1 untuk SEMUA span, icon harus fixed, text yg flex */
.drawerItem span:first-child {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .70);
    border: 1px solid rgba(27, 27, 27, .08);
}

.drawerItem span:last-child {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hilangin highlight biru pas tap di mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Hilangin outline biru default saat klik (mouse/tap) */
button,
a,
[role="button"],
.card {
    outline: none;
}

/* Tapi tetep kasih fokus yang bagus buat keyboard (accessibility) */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid rgba(120, 80, 255, .55);
    outline-offset: 3px;
}

/* =========================
   ANNOUNCE POPUP (lebih kecil, no-crop)
   ========================= */
.announceOverlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    /* lebih kecil */
    background: rgba(20, 10, 35, .35);
    backdrop-filter: blur(2px);
}

.announceOverlay.is-open {
    display: flex;
}

.announceCard {
    width: min(420px, 88vw);
    /* ✅ kecilin lebar card */
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(27, 27, 27, .10);
    border-radius: 22px;
    /* sedikit kecil */
    box-shadow: 0 22px 70px rgba(20, 10, 35, .18);
    overflow: hidden;
    position: relative;
}

.announceClose {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    /* kecilin tombol X */
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(27, 27, 27, .10);
    background: rgba(255, 255, 255, .78);
    font-weight: 1000;
    font-size: 14px;
    cursor: pointer;
}

/* ✅ ini yang penting: gak nge-crop */
.announceImg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* ✅ no-crop */
    max-height: 62vh;
    /* ✅ batas tinggi biar gak kegedean */
}

.announceFooter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    /* kecilin padding */
    background: rgba(255, 255, 255, .86);
    border-top: 1px solid rgba(27, 27, 27, .08);
    font-weight: 900;
    color: rgba(27, 27, 27, .70);
    user-select: none;
}

.announceFooter input {
    width: 18px;
    height: 18px;
}

/* ===== Auth chips (login/register links) ===== */
.authLinks{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.authChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,45,138,.28);
  background:#fff;
  color:#ff2d8a;
  font-weight:900;
  text-decoration:none;
  line-height:1;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
}
.authChip:hover{
  background:rgba(255,45,138,.08);
}

/* ===== Payment method tabs ===== */
.payTabs{
  display:flex;
  gap:10px;
}
.payTab{
  flex:1;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
  cursor:pointer;
  user-select:none;
  transition:transform .08s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}
.payTab input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.payTabTitle{
  font-weight:1000;
  letter-spacing:.2px;
}
.payTabDesc{
  margin-top:4px;
  font-size:12px;
  opacity:.85;
}
.payTab.is-active{
  border-color:rgba(255,45,138,.65);
  box-shadow:0 10px 24px rgba(255,45,138,.20);
  transform:translateY(-1px);
}
.payTab.is-active .payTabTitle,
.payTab.is-active .payTabDesc{
  color:#ff2d8a;
  opacity:1;
}
.payTab.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}

/* ===== Variant Note (APP only) ===== */
.variant-note-wrap {
  animation: variantNoteIn .18s ease-out;
}

@keyframes variantNoteIn {
  from {
    transform: translateY(4px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.variant-note-card {
  padding: 14px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 160, 205, .38);
  background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .74));
  box-shadow: 0 18px 55px rgba(20, 10, 35, .12);
}

.variant-note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.variant-note-title {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 214, 234, .80);
  border: 1px solid rgba(255, 160, 205, .40);
}

.variant-note-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  opacity: .9;
  text-align: right;
}

.variant-note-body {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13.5px;
  font-weight: 650;
  color: rgba(20, 20, 20, .88);
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(245, 247, 255, .86);
  border: 1px solid rgba(27, 27, 27, .08);
}