/* =========================
   styles.css (REPLACE 1:1)
   - Layout & flow tetap sama
   - Tambah banner pakai foto + animasi smooth
   - Tambah cursor glow biru (subtle)
   ========================= */

:root{
  --bg: #eef5ff;
  --bg2:#f7fbff;
  --card:#ffffff;
  --stroke: rgba(10,30,60,.10);
  --text:#0b1630;
  --muted: rgba(11,22,48,.62);
  --blue:#1f6fff;
  --blue2:#3aa0ff;
  --shadow: 0 16px 40px rgba(10,30,60,.10);
  --r: 18px;
  --r2: 22px;
  --max: 1120px;

  /* ukuran kartu default */
  --card-min: 170px;
  --card-max: 1fr;

  /* cursor glow */
  --glow: rgba(31,111,255,.22);
  --glow2: rgba(58,160,255,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 450px at 20% 0%, rgba(31,111,255,.12), transparent 60%),
    radial-gradient(800px 450px at 85% 10%, rgba(58,160,255,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  overflow-x:hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.cursor-glow{
  position:fixed;
  left:0; top:0;

  /* kecil & subtle */
  width: 72px;
  height: 72px;

  pointer-events:none;
  border-radius: 999px;

  /* asap: blur + gradient tipis */
  background:
    radial-gradient(circle at 35% 35%, rgba(58,160,255,.22) 0%, rgba(31,111,255,.12) 35%, transparent 70%),
    radial-gradient(circle at 70% 70%, rgba(31,111,255,.10) 0%, transparent 60%);
  filter: blur(10px);
  opacity: 0;

  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .2s ease;
  z-index: 9999;

  /* bikin geraknya smooth */
  will-change: transform;
}
body:hover .cursor-glow{opacity: .75;}
@media (pointer: coarse){
  .cursor-glow{display:none;}
}

/* ===========================
   CONTAINER RESPONSIVE
   =========================== */
.container{width:min(var(--max), calc(100% - 28px)); margin:0 auto;}

@media (min-width: 1024px){
  :root{ --max: 1440px; }
  .container{ width:min(var(--max), calc(100% - 56px)); }
}

@media (min-width: 1440px){
  :root{ --max: 1600px; }
  .container{ width:min(var(--max), calc(100% - 80px)); }
}

.page{padding: 14px 0 calc(96px + env(safe-area-inset-bottom));}

.h1{
  margin:0;
  font-family:"Space Grotesk", "Plus Jakarta Sans", system-ui;
  font-size:26px;
  letter-spacing:-.02em;
  line-height:1.12;
}
.h2{
  margin:0;
  font-family:"Space Grotesk", "Plus Jakarta Sans", system-ui;
  font-size:20px;
  letter-spacing:-.02em;
  line-height:1.2;
}
.muted{color:var(--muted)}
.small{font-size:12px}

/* ===== animated wave bg (smooth) ===== */
.waves{position:fixed; inset:0; pointer-events:none; z-index:-1; overflow:hidden;}
.wave{
  position:absolute;
  left:-20%;
  width:140%;
  height:55%;
  border-radius: 100%;
  filter: blur(18px);
  opacity:.55;
  background: radial-gradient(circle at 30% 30%, rgba(31,111,255,.22), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(58,160,255,.18), transparent 55%);
  transform: translate3d(0,0,0);
  animation: drift 12s ease-in-out infinite;
}
.wave.w1{top:-22%; animation-duration: 12s; opacity:.55;}
.wave.w2{top:18%; animation-duration: 15s; opacity:.40;}
.wave.w3{top:58%; animation-duration: 18s; opacity:.32;}
@keyframes drift{
  0%   {transform: translateX(-2%) translateY(0) scale(1.02);}
  50%  {transform: translateX(2%) translateY(-1%) scale(1.04);}
  100% {transform: translateX(-2%) translateY(0) scale(1.02);}
}

/* ===== topbar ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding: 10px 0;
}
.brand{display:flex; align-items:center; gap:10px; min-width:max-content;}
.back{
  text-decoration:none; color:var(--text);
  width:34px; height:34px; display:grid; place-items:center;
  border-radius: 12px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.65);
}
.brand-badge{
  width:36px; height:36px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(31,111,255,.14), rgba(255,255,255,.9));
  border:1px solid rgba(31,111,255,.18);
  box-shadow: 0 10px 26px rgba(31,111,255,.10);
  transition: transform .2s ease;
}
.brand-badge:hover{transform: translateY(-1px);}
.shield{
  width:16px; height:16px; border-radius:5px;
  background: linear-gradient(180deg, var(--blue2), var(--blue));
  display:inline-block;
}
.brand-name{
  font-family:"Space Grotesk", "Plus Jakarta Sans";
  font-weight:700;
  letter-spacing:.10em;
  font-size:12px;
}

.search-wrap{flex:1; display:flex; justify-content:center; min-width:0;}
.search{
  width:min(560px, 100%);
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border:1px solid var(--stroke);
  box-shadow: 0 10px 22px rgba(10,30,60,.05);
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.search:focus-within{
  border-color: rgba(31,111,255,.22);
  box-shadow: 0 16px 34px rgba(31,111,255,.12);
  transform: translateY(-1px);
}
.search input{
  flex:1; min-width:0;
  border:none; outline:none;
  background:transparent; font-size:14px;
}
.search-ic{opacity:.55}

.topbar-actions{display:flex; gap:10px; align-items:center;}
.icon-pill{
  position:relative;
  width:40px; height:40px; display:grid; place-items:center;
  border-radius: 14px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.90);
  text-decoration:none; color:var(--text);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.icon-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,255,.22);
  box-shadow: 0 14px 28px rgba(31,111,255,.10);
}
.notif{
  position:absolute; top:6px; right:6px;
  width:16px; height:16px; border-radius:999px;
  background: #ff3b3b; color:#fff; font-size:11px;
  display:grid; place-items:center;
}

/* ===== banner ===== */
.banner{
  border-radius: var(--r2);
  background: rgba(255,255,255,.55);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 12px;
}
.banner-head{
  display:flex; justify-content:space-between; align-items:flex-start; gap:12px;
  margin-bottom: 10px;
}
.banner-actions{display:flex; gap:8px;}
.ghost{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  padding: 9px 11px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ghost:hover{
  border-color: rgba(31,111,255,.25);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(31,111,255,.10);
}

.banner-track{
  display:flex; gap:12px;
  overflow:auto; scroll-snap-type:x mandatory;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}
.banner-track::-webkit-scrollbar{height:10px}
.banner-track::-webkit-scrollbar-thumb{background: rgba(10,30,60,.22); border-radius:999px}
.banner-track::-webkit-scrollbar-track{background: rgba(10,30,60,.08); border-radius:999px}

.banner-item{
  min-width: min(560px, 92%);
  scroll-snap-align:start;
  border-radius: 18px;
  padding: 12px;
  border:1px solid rgba(31,111,255,.16);
  background:
    radial-gradient(360px 160px at 18% 0%, rgba(31,111,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.74));
  box-shadow: 0 14px 30px rgba(31,111,255,.08);
  position: relative;
  overflow:hidden;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.banner-item:hover{
  transform: translate3d(0,-2px,0);
  border-color: rgba(31,111,255,.24);
  box-shadow: 0 18px 40px rgba(31,111,255,.12);
}

/* FOTO BANNER (tanpa ubah layout) */
.banner-item.has-img::before{
  content:"";
  position:absolute;
  inset:0;
  background: var(--bgimg) center/cover no-repeat;
  opacity:.95;
  transform: scale(1.02);
}
.banner-item.has-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 50%, rgba(255,255,255,.58) 100%),
    radial-gradient(420px 160px at 20% 0%, rgba(31,111,255,.14), transparent 60%);
}
.banner-item.has-img > *{position:relative; z-index:1}

/* subtle shine animation */
.banner-item::marker{content:""}
.banner-item .shine{
  position:absolute;
  inset:-40%;
  background: linear-gradient(120deg, transparent 35%, rgba(31,111,255,.08) 50%, transparent 65%);
  transform: translateX(-40%) rotate(10deg);
  animation: shine 6.8s ease-in-out infinite;
  pointer-events:none;
  opacity:.9;
}
@keyframes shine{
  0%{transform: translateX(-40%) rotate(10deg); opacity:.0;}
  20%{opacity:.55;}
  50%{transform: translateX(40%) rotate(10deg); opacity:.45;}
  80%{opacity:.0;}
  100%{transform: translateX(40%) rotate(10deg); opacity:.0;}
}

.banner-title{
  font-family:"Space Grotesk";
  font-weight:700;
  font-size:14px;
}
.banner-desc{margin-top:6px; line-height:1.45; font-size:13px}
.banner-cta{
  margin-top:10px; display:inline-flex; gap:8px; align-items:center;
  color:var(--blue);
  font-weight:900;
  text-decoration:none;
}

/* ===== controls ===== */
.controls{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:12px; flex-wrap:wrap;
  margin-top: 14px;
}

.controls-right{display:flex; gap:10px; align-items:center;}
.select{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 14px;
  outline:none;
  font-weight:800;
}

/* ===== count pill ===== */
.count-row{margin-top: 10px;}
.pill{
  display:inline-flex; gap:10px; align-items:center;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.86);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight:800;
}
.pill .dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(180deg, var(--blue2), var(--blue));
  box-shadow: 0 0 0 5px rgba(31,111,255,.10);
}

/* ===== sections ===== */
.section{margin-top: 18px;}

/* ===== CATEGORY HEADER center (HP + PC) ===== */
.section-head{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:4px;
  margin: 14px 0 14px;
  padding: 10px 0;
}
.section-head::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:1px;
  background: rgba(10,30,60,.10);
}
.section-title{
  position:relative;
  z-index:1;
  font-size:13px;
  font-family:"Space Grotesk";
  font-weight:800;
  letter-spacing:.10em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 8px 14px;
  border-radius: 999px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.86);
  box-shadow: 0 12px 24px rgba(10,30,60,.06);
}
.section-sub{
  position:relative;
  z-index:1;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
  padding: 0 10px;
  max-width: 680px;
}

/* ===== LIST PRODUK: FLEX WRAP CENTER PER BARIS ===== */
.grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 12px;
}

/* 2 kolom HP */
.product-card{
  flex: 0 1 calc(50% - 6px);
  max-width: calc(50% - 6px);

  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(10,30,60,.10);
  box-shadow: 0 12px 26px rgba(10,30,60,.08);
  overflow:hidden;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;

  transform: translateZ(0);
  backface-visibility: hidden;
}
.product-card:hover{
  transform: translate3d(0,-2px,0);
  border-color: rgba(31,111,255,.22);
  box-shadow: 0 16px 34px rgba(31,111,255,.10);
}
@media (max-width: 360px){
  .product-card{ flex-basis: 100%; max-width: 100%; }
}
@media (min-width: 720px){
  .grid{ gap: 16px; }
  .product-card{ flex: 0 1 300px; max-width: 300px; }
}
@media (min-width: 1400px){
  .product-card{ flex-basis: 320px; max-width: 320px; }
}

/* image 3:2 */
.thumb{
  aspect-ratio: 3 / 2;
  background: linear-gradient(180deg, rgba(31,111,255,.08), rgba(255,255,255,.95));
  border-bottom: 1px solid rgba(10,30,60,.08);
  overflow:hidden;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.thumb-fallback{
  height:100%;
  display:grid;
  place-items:center;
  font-family:"Space Grotesk";
  font-weight:700;
  color: rgba(11,22,48,.70);
}
.thumb-fallback small{
  display:inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,111,255,.18);
  background: rgba(255,255,255,.82);
}

/* body card */
.pbody{
  padding: 10px 10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height: 138px;
}
.ptop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
}
.ptitle{
  margin:0;
  font-weight:800;
  font-size:13.5px;
  line-height:1.25;
  letter-spacing:-.01em;
}
.psub{
  margin:4px 0 0 0;
  font-size:12px;
  line-height:1.35;
  color:var(--muted);
}

/* badge */
.badge{
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  padding: 6px 9px;
  border-radius: 999px;
  border:1px solid rgba(31,111,255,.18);
  background: rgba(31,111,255,.10);
  color: rgba(11,22,48,.86);
  white-space:nowrap;
}
.badge.ready{background: rgba(70,200,140,.12); border-color: rgba(70,200,140,.20)}
.badge.promo{background: rgba(31,111,255,.12); border-color: rgba(31,111,255,.22)}
.badge.sold{background: rgba(255,80,80,.10); border-color: rgba(255,80,80,.20)}

.tags{display:flex; gap:6px; flex-wrap:wrap;}
.tag{
  font-size:10.5px;
  padding: 6px 8px;
  border-radius: 999px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.82);
  color: rgba(11,22,48,.72);
  font-weight:800;
}

.priceRow{
  margin-top:auto;
  padding-top: 8px;
  border-top: 1px solid rgba(10,30,60,.08);
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:10px;
}
.priceLabel{font-size:11px; color:var(--muted); font-weight:700}
.price{font-weight:900; font-size:14px; letter-spacing:-.01em;}
.cardHint{font-size:11px; font-weight:800; color: rgba(31,111,255,.85); white-space:nowrap;}

/* ===== generic card ===== */
.card{
  border-radius: var(--r2);
  background: rgba(255,255,255,.78);
  border:1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 14px;
}

/* checkout layout */
.checkout .grid-2{
  display:grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .checkout .grid-2{grid-template-columns: 1.25fr .75fr;}
}
.hidden{display:none !important}

/* checkout product header */
.prod-head{display:flex; gap:12px; align-items:flex-start;}
.prod-logo{
  width:50px; height:50px; border-radius: 18px;
  display:grid; place-items:center;
  background: rgba(31,111,255,.10);
  border:1px solid rgba(31,111,255,.18);
  font-weight:900;
  font-family:"Space Grotesk";
}
.prod-cover{
  margin-top: 12px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.75);
  aspect-ratio: 3 / 2;
}
.prod-cover img{width:100%; height:100%; object-fit:cover; display:block;}

.row{display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top: 12px;}
.kv{
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.84);
}
.k{font-size:12px; color:var(--muted); font-weight:800;}
.v{margin-top:6px; font-weight:900;}

.block{margin-top: 14px;}

.variants{display:grid; gap:10px; margin-top: 10px;}
.variant{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.84);
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.variant:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,255,.18);
  box-shadow: 0 12px 26px rgba(31,111,255,.10);
}
.variant.active{
  border-color: rgba(31,111,255,.26);
  background: rgba(31,111,255,.08);
}
.variant.disabled{
  opacity:.45;
  pointer-events:none;
  filter: grayscale(.2);
}
.v-left{display:flex; gap:10px; align-items:center;}
.radio{
  width:16px; height:16px; border-radius:999px;
  border:2px solid rgba(31,111,255,.35);
  display:inline-block;
  position:relative;
}
.variant.active .radio::after{
  content:"";
  width:8px; height:8px; border-radius:999px;
  background: var(--blue);
  position:absolute; inset:0; margin:auto;
}
.v-title{font-weight:900}
.v-sub{font-size:12px; color:var(--muted); margin-top:2px}

/* dropdown selector */
.dropdown{border:1px solid rgba(10,30,60,.10); border-radius: 16px; overflow:hidden; background: rgba(255,255,255,.86);}
.dropdown[open]{box-shadow: 0 12px 28px rgba(10,30,60,.10);}
.dropdown-summary{
  list-style:none;
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:12px;
  align-items:center;
  padding: 12px 14px;
  cursor:pointer;
}
.dropdown-summary::-webkit-details-marker{display:none;}
.dropdown-text{display:grid; gap:4px;}
.dropdown-label{font-size:12px; color:var(--muted); font-weight:800;}
.dropdown-value{font-weight:900;}
.dropdown-price{font-weight:900; white-space:nowrap;}
.dropdown-caret{opacity:.6; font-size:14px;}
.dropdown-panel{padding: 8px 12px 12px;}
.dropdown-panel .variants{margin-top:0;}

html[data-theme="dark"] .dropdown{
  background: rgba(16,18,30,.86);
  border-color: rgba(255,255,255,.12);
  color: rgba(244,246,255,.95);
}
html[data-theme="dark"] .dropdown-label{color: rgba(244,246,255,.65);}
html[data-theme="dark"] .dropdown-panel{background: rgba(16,18,30,.72);}

.info{margin:10px 0 0 0; padding-left: 18px; color: rgba(11,22,48,.78);}
.info li{margin:6px 0}

.faq{display:grid; gap:10px; margin-top:10px;}
.faqitem{
  padding: 12px;
  border-radius: 18px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.84);
}
.faqq{font-weight:900}
.faqq + .muted{margin-top:6px}

.btn{
  display:inline-flex; justify-content:center; align-items:center; gap:10px;
  padding: 12px 14px;
  border-radius: 16px;
  border:1px solid rgba(10,30,60,.12);
  background: rgba(255,255,255,.92);
  text-decoration:none;
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,255,.22);
  box-shadow: 0 14px 28px rgba(31,111,255,.10);
}
.btn.primary{
  border-color: rgba(31,111,255,.25);
  background: linear-gradient(180deg, rgba(31,111,255,.14), rgba(255,255,255,.92));
}
.cta-row{display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px;}

.summary-title{
  font-family:"Space Grotesk";
  font-weight:700;
  margin-bottom: 10px;
}
.summary-row{display:flex; justify-content:space-between; gap:10px; margin:8px 0}
.divider{height:1px; background: rgba(10,30,60,.10); margin: 12px 0}
.promo-box{
  margin-top:12px;
  border-radius: 18px;
  padding: 12px;
  border:1px solid rgba(31,111,255,.18);
  background: rgba(31,111,255,.06);
}
.promo-title{font-weight:900}

/* Sticky summary (desktop only) */
@media (min-width: 900px){
  .sticky-summary{
    position: sticky;
    top: 76px;
  }
}

/* modal */
.modal{position:fixed; inset:0; display:none; z-index:100}
.modal.show{display:block}
.modal-backdrop{position:absolute; inset:0; background: rgba(0,0,0,.28)}
.modal-card{
  position:relative;
  width:min(520px, calc(100% - 24px));
  margin: 78px auto;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  border:1px solid rgba(10,30,60,.12);
  box-shadow: 0 26px 70px rgba(0,0,0,.20);
  overflow:hidden;
}
.modal-head{
  padding: 12px 14px;
  display:flex; justify-content:space-between; align-items:center;
  border-bottom: 1px solid rgba(10,30,60,.08);
}
.modal-title{font-weight:900}
.modal-body{padding: 14px}
.field{display:grid; gap:8px; margin-bottom: 12px;}
.input{
  border:1px solid rgba(10,30,60,.12);
  background: rgba(255,255,255,.92);
  padding: 12px 12px;
  border-radius: 14px;
  outline:none;
}

/* bottom nav */
.bottomnav{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(10,30,60,.10);
  display:flex;
  justify-content:space-around;
  padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
}
.bn-item{
  text-decoration:none; color: rgba(11,22,48,.72);
  display:flex; flex-direction:column; gap:6px; align-items:center;
  font-size:12px; font-weight:900;
}
.bn-item .bn-ic{font-size:16px}
.bn-item.active{color: var(--blue)}

/* Category button in controls */
.controls-left{display:flex; gap:10px; align-items:center;}
.chipBtn{
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.86);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:900;
  font-size:13px;
  white-space:nowrap;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.chipBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,255,.22);
  box-shadow: 0 14px 28px rgba(31,111,255,.10);
}
.chipBtn b{font-family:"Space Grotesk";}

/* Category list (modal) */
.catList{display:grid; gap:10px;}
.catItem{
  display:flex; justify-content:space-between; align-items:center;
  padding: 12px;
  border-radius: 16px;
  border:1px solid rgba(10,30,60,.10);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:900;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.catItem:hover{
  transform: translateY(-1px);
  border-color: rgba(31,111,255,.18);
  box-shadow: 0 12px 26px rgba(31,111,255,.10);
}
.catItem.active{
  border-color: rgba(31,111,255,.26);
  background: rgba(31,111,255,.08);
}
.catItem .tick{
  width:18px; height:18px; border-radius:999px;
  border:2px solid rgba(31,111,255,.35);
  display:inline-block;
  position:relative;
}
.catItem.active .tick::after{
  content:"";
  width:10px; height:10px; border-radius:999px;
  background: #1f6fff;
  position:absolute; inset:0; margin:auto;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto !important}
  .wave{animation:none !important}
  .banner-item .shine{animation:none !important}
  .cursor-glow{display:none !important}
  .product-card,.banner-item,.ghost,.btn,.chipBtn,.catItem,.search,.icon-pill{transition:none !important}
}

/* ===== order flow ===== */
.modal-body{max-height:82vh; overflow:auto;}
.helper{font-size:12px; color:var(--muted);}
.hint{font-size:12px; color:var(--muted);}
.hint.error{color:#d14343; font-weight:800;}
.textarea{min-height:90px; resize:vertical;}
.qris{width:100%; max-width:320px; margin:10px auto 0; display:block; border-radius:16px; border:1px solid rgba(10,30,60,.10); background:#fff;}
.btn.small{padding:8px 10px; font-size:12px; border-radius:12px;}
.steps{margin:0; padding-left:18px; color:rgba(11,22,48,.78);}
.steps li{margin:6px 0;}

.wait-head{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;}
.wait-timer{
  font-family:"Space Grotesk", "Plus Jakarta Sans", system-ui;
  font-weight:900;
  font-size:28px;
  letter-spacing:-.02em;
  padding:8px 12px;
  border-radius:14px;
  border:1px solid rgba(31,111,255,.18);
  background: rgba(31,111,255,.10);
}
.wait-timer.expired{border-color: rgba(255,80,80,.30); background: rgba(255,80,80,.12); color:#c53737;}
.wait-expired{margin-top:8px; font-size:12px; letter-spacing:.18em; font-weight:900; color:#c53737;}
.wait-alert{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.wait-alert-text{font-weight:800; line-height:1.4; max-width:520px;}

/* ===== premium theme overrides ===== */
:root{
  --bg: #f5f7fb;
  --bg2: #ffffff;
  --surface: rgba(255,255,255,.82);
  --surface-2: rgba(255,255,255,.65);
  --text: #0c1120;
  --muted: rgba(12,17,32,.60);
  --accent: #4f6bff;
  --accent-2: #7a4dff;
  --glow: rgba(79,107,255,.28);
  --stroke: rgba(12,17,32,.08);
  --shadow: 0 18px 48px rgba(15,22,40,.12);
  --shadow-soft: 0 8px 24px rgba(15,22,40,.08);
  --glass: rgba(255,255,255,.72);
  --r: 18px;
  --r2: 22px;
}

html[data-theme="dark"]{
  --bg: #0b0b12;
  --bg2:#111325;
  --surface: rgba(18,18,28,.78);
  --surface-2: rgba(18,18,28,.62);
  --text:#f4f6ff;
  --muted: rgba(244,246,255,.65);
  --accent:#7c8cff;
  --accent-2:#a855f7;
  --glow: rgba(124,140,255,.35);
  --stroke: rgba(255,255,255,.10);
  --shadow: 0 22px 60px rgba(0,0,0,.50);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.35);
  --glass: rgba(18,18,28,.72);
}

body{
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(79,107,255,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(122,77,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  transition: background .3s ease, color .3s ease;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(900px 520px at 15% -5%, rgba(124,140,255,.18), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(168,85,247,.18), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}

html[data-theme="dark"] body::before{
  content:"";
  position:fixed; inset:-20%;
  background: radial-gradient(600px 400px at 20% 20%, rgba(124,140,255,.12), transparent 60%),
              radial-gradient(700px 460px at 80% 30%, rgba(168,85,247,.12), transparent 60%);
  animation: driftBg 22s ease-in-out infinite;
  pointer-events:none;
  z-index:-1;
}

@keyframes driftBg{
  0%{transform: translate3d(0,0,0) scale(1);}
  50%{transform: translate3d(2%, -2%, 0) scale(1.02);}
  100%{transform: translate3d(0,0,0) scale(1);}
}

.topbar{
  background: var(--glass);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.card,
.banner,
.product-card,
.modal-card,
.icon-pill,
.search,
.select,
.input,
.variant,
.kv,
.faqitem{
  background: var(--surface);
  border-color: var(--stroke);
  box-shadow: var(--shadow-soft);
}

.banner-item,
.product-card,
.card,
.btn,
.icon-pill,
.variant,
.search,
.select,
.input,
.catItem,
.chipBtn{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.banner-item:hover,
.product-card:hover,
.btn:hover,
.icon-pill:hover,
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31,42,80,.18);
  border-color: rgba(79,107,255,.22);
}

html[data-theme="dark"] .banner-item:hover,
html[data-theme="dark"] .product-card:hover,
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .icon-pill:hover,
html[data-theme="dark"] .card:hover{
  box-shadow: 0 18px 48px rgba(0,0,0,.50);
  border-color: rgba(124,140,255,.35);
}

.btn.primary{
  background: linear-gradient(135deg, rgba(79,107,255,.18), rgba(122,77,255,.12));
  border-color: rgba(79,107,255,.35);
}

.btn.primary:hover{
  box-shadow: 0 0 0 4px rgba(79,107,255,.15), 0 16px 30px rgba(79,107,255,.18);
}

.search:focus-within,
.input:focus,
.select:focus{
  border-color: rgba(79,107,255,.45);
  box-shadow: 0 0 0 4px rgba(79,107,255,.12), 0 14px 30px rgba(79,107,255,.16);
}

html[data-theme="dark"] .search:focus-within,
html[data-theme="dark"] .input:focus,
html[data-theme="dark"] .select:focus{
  box-shadow: 0 0 0 4px rgba(124,140,255,.20), 0 14px 30px rgba(0,0,0,.45);
}

.page > section{
  animation: pageIn .45s ease both;
}

@keyframes pageIn{
  from{opacity:0; transform: translateY(10px);}
  to{opacity:1; transform: translateY(0);}
}

.modal{
  animation: modalFade .16s ease;
}

.modal.show .modal-card{
  animation: modalIn .18s ease;
}

@keyframes modalFade{from{opacity:0;} to{opacity:1;}}
@keyframes modalIn{from{opacity:0; transform: scale(.98);} to{opacity:1; transform: scale(1);}}

.lang-toggle{
  display:flex; align-items:center; gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--stroke);
  background: var(--surface-2);
}

.lang-btn{
  border:none; background:transparent; color:var(--muted);
  font-weight:900; cursor:pointer; padding: 2px 4px;
}

.lang-btn.active{color: var(--text);}

.lang-sep{opacity:.45; font-weight:700;}

.theme-ic{font-weight:900;}

.wait-alert{background: var(--surface-2); padding: 12px; border-radius: 16px; border:1px solid var(--stroke);}

html[data-theme="dark"] .wait-alert{background: rgba(18,18,28,.55);}

@media (prefers-reduced-motion: reduce){
  .page > section{animation:none !important}
  body::before{animation:none !important}
  .modal.show .modal-card{animation:none !important}
}

/* ===== dark theme refinements ===== */
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .bottomnav{background: rgba(12,12,20,.78);}

html[data-theme="dark"] .banner-item{
  background: linear-gradient(180deg, rgba(24,24,36,.85), rgba(18,18,28,.78));
}

html[data-theme="dark"] .banner-item.has-img::after{
  background: linear-gradient(90deg, rgba(12,12,20,.88) 0%, rgba(12,12,20,.70) 60%, rgba(12,12,20,.45) 100%);
}

html[data-theme="dark"] .badge{color: rgba(244,246,255,.92);}
html[data-theme="dark"] .tag{color: rgba(244,246,255,.78); background: rgba(18,18,28,.55); border-color: rgba(255,255,255,.12);}
html[data-theme="dark"] .pill{background: rgba(18,18,28,.65);}
html[data-theme="dark"] .cardHint{color: rgba(124,140,255,.85);}

/* ===== dark theme polish ===== */
html[data-theme="dark"] body{
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(88,108,255,.22), transparent 62%),
    radial-gradient(900px 560px at 90% 10%, rgba(168,85,247,.20), transparent 60%),
    linear-gradient(180deg, #0b0c16 0%, #0e1224 55%, #0b0c16 100%);
}

/* Seamless dark background layers */
html[data-theme="dark"],
html[data-theme="dark"] body{
  background-color: #0b0c16;
}

html[data-theme="dark"] body::after{
  content:"";
  position:fixed;
  inset:-20% -10%;
  background:
    radial-gradient(900px 520px at 20% 15%, rgba(124,140,255,.10), transparent 62%),
    radial-gradient(980px 620px at 80% 20%, rgba(168,85,247,.10), transparent 65%),
    radial-gradient(720px 420px at 50% 75%, rgba(88,108,255,.08), transparent 60%);
  pointer-events:none;
  z-index:-1;
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .container,
html[data-theme="dark"] .banner,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-head,
html[data-theme="dark"] .count-row{
  background: transparent;
}

html[data-theme="dark"] .bottomnav{
  background: rgba(10,12,22,.85);
  border-top-color: rgba(255,255,255,.08);
  box-shadow: 0 -12px 32px rgba(0,0,0,.45);
}

html[data-theme="dark"] .banner,
html[data-theme="dark"] .card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .variant,
html[data-theme="dark"] .kv,
html[data-theme="dark"] .faqitem,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .search,
html[data-theme="dark"] .select,
html[data-theme="dark"] .input{
  background: rgba(16,18,28,.82);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  color: rgba(244,246,255,.96);
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .k,
html[data-theme="dark"] .priceLabel,
html[data-theme="dark"] .v-sub,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .helper{
  color: rgba(244,246,255,.68);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-sub{
  color: rgba(244,246,255,.90);
}

html[data-theme="dark"] .search input,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select{
  color: rgba(244,246,255,.96);
  background: rgba(16,18,28,.92);
}

html[data-theme="dark"] .search input::placeholder,
html[data-theme="dark"] .input::placeholder{
  color: rgba(244,246,255,.45);
}

html[data-theme="dark"] .btn{
  color: rgba(244,246,255,.95);
  border-color: rgba(255,255,255,.12);
  background: rgba(18,20,34,.72);
}

html[data-theme="dark"] .btn.primary{
  border-color: rgba(124,140,255,.45);
  background: linear-gradient(135deg, rgba(124,140,255,.20), rgba(168,85,247,.16));
}

html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] .btn[disabled]{
  opacity: .6;
  color: rgba(244,246,255,.70);
  border-color: rgba(255,255,255,.10);
}

html[data-theme="dark"] .chipBtn,
html[data-theme="dark"] .catItem{
  background: rgba(18,20,34,.75);
  color: rgba(244,246,255,.92);
}

html[data-theme="dark"] a,
html[data-theme="dark"] .banner-cta,
html[data-theme="dark"] .cardHint{
  color: rgba(150,170,255,.95);
}

html[data-theme="dark"] a:hover,
html[data-theme="dark"] .banner-cta:hover{
  color: rgba(190,205,255,1);
}

html[data-theme="dark"] .modal-backdrop{
  background: rgba(5,6,12,.65);
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .modal-card{
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 30px 90px rgba(0,0,0,.65),
    0 10px 30px rgba(0,0,0,.35);
  background:
    linear-gradient(180deg, rgba(20,22,36,.92), rgba(16,18,30,.86));
  position: relative;
}

html[data-theme="dark"] .modal-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(140deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  mask-composite: exclude;
  pointer-events:none;
}

/* ===== final dark theme sweep ===== */
html[data-theme="dark"] body{
  background:
    radial-gradient(1200px 700px at 12% -12%, rgba(88,108,255,.20), transparent 65%),
    radial-gradient(1100px 620px at 88% 0%, rgba(168,85,247,.18), transparent 62%),
    radial-gradient(900px 560px at 50% 75%, rgba(88,108,255,.10), transparent 60%),
    linear-gradient(180deg, #0b0c16 0%, #0e1224 55%, #0b0c16 100%);
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .container,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-head,
html[data-theme="dark"] .controls,
html[data-theme="dark"] .count-row,
html[data-theme="dark"] .banner,
html[data-theme="dark"] .grid{
  background: transparent !important;
}

html[data-theme="dark"] .bottomnav,
html[data-theme="dark"] .topbar{
  background: rgba(10,12,22,.88) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .chipBtn,
html[data-theme="dark"] .catItem,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tag{
  background: rgba(18,20,34,.86) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: rgba(244,246,255,.96) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.40);
}

html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .psub,
html[data-theme="dark"] .priceLabel,
html[data-theme="dark"] .cardHint,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .helper,
html[data-theme="dark"] .v-sub,
html[data-theme="dark"] .info,
html[data-theme="dark"] .info li{
  color: rgba(244,246,255,.72) !important;
}

html[data-theme="dark"] .faqq,
html[data-theme="dark"] .summary-row b,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2{
  color: rgba(244,246,255,.96) !important;
}

html[data-theme="dark"] .ghost,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .back,
html[data-theme="dark"] .btn{
  background: rgba(18,20,34,.86) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: rgba(244,246,255,.96) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.40);
}

html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .icon-pill:hover,
html[data-theme="dark"] .back:hover{
  border-color: rgba(124,140,255,.55) !important;
  box-shadow: 0 14px 34px rgba(124,140,255,.22);
}

html[data-theme="dark"] .search input,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select{
  background: rgba(16,18,30,.94) !important;
  color: rgba(244,246,255,.96) !important;
}

html[data-theme="dark"] .search input::placeholder,
html[data-theme="dark"] .input::placeholder{
  color: rgba(244,246,255,.50) !important;
}

html[data-theme="dark"] .badge.ready{
  background: rgba(70,200,140,.22) !important;
  border-color: rgba(70,200,140,.32) !important;
  color: rgba(230,255,242,.98) !important;
}

html[data-theme="dark"] .badge.promo{
  background: rgba(124,140,255,.24) !important;
  border-color: rgba(124,140,255,.38) !important;
  color: rgba(235,240,255,.98) !important;
}

html[data-theme="dark"] .badge.sold{
  background: rgba(255,80,80,.22) !important;
  border-color: rgba(255,80,80,.34) !important;
  color: rgba(255,230,230,.98) !important;
}

html[data-theme="dark"] .modal-card{
  border-color: rgba(255,255,255,.18) !important;
  background: linear-gradient(180deg, rgba(20,22,36,.96), rgba(16,18,30,.88)) !important;
}

html[data-theme="dark"] .modal-backdrop{
  background: rgba(5,6,12,.75) !important;
  backdrop-filter: blur(8px);
}

/* ===== payment modal polish ===== */
.modal-card{
  border-radius: 24px;
}

.modal-head{
  padding: 16px 18px;
}

.modal-title{
  font-family:"Space Grotesk", "Plus Jakarta Sans";
  font-weight:800;
  letter-spacing:.02em;
}

.modal-body{
  padding: 16px 18px 18px;
}

.summary-row{
  padding: 6px 0;
}

.summary-row b{
  font-size: 14.5px;
}

.divider{
  background: rgba(255,255,255,.06);
}

.qris{
  max-width: 360px;
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

html[data-theme="dark"] .qris{
  background: #f8f9ff;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.field label{
  font-weight: 800;
  letter-spacing: .01em;
}

html[data-theme="dark"] .modal-card{
  box-shadow:
    0 40px 120px rgba(0,0,0,.70),
    0 16px 40px rgba(0,0,0,.45);
}

html[data-theme="dark"] .modal-head{
  border-bottom-color: rgba(255,255,255,.12) !important;
}

html[data-theme="dark"] .summary-row .muted{
  color: rgba(244,246,255,.70) !important;
}

html[data-theme="dark"] .summary-row b{
  color: rgba(244,246,255,.98) !important;
}

html[data-theme="dark"] .modal-body{
  background: linear-gradient(180deg, rgba(20,22,36,.90), rgba(16,18,30,.80));
}

html[data-theme="dark"] .input[type="file"]{
  background: rgba(16,18,30,.92) !important;
  color: rgba(244,246,255,.92) !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* Hide modal scrollbar while keeping scroll */
.modal-body{
  scrollbar-width: none;
}
.modal-body::-webkit-scrollbar{
  width: 0;
  height: 0;
}

/* Premium file input button */
.input[type="file"]{
  padding: 10px 12px;
}
.input[type="file"]::file-selector-button{
  margin-right: 12px;
  border: 1px solid rgba(79,107,255,.35);
  background: linear-gradient(135deg, rgba(79,107,255,.18), rgba(122,77,255,.12));
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.input[type="file"]::-webkit-file-upload-button{
  margin-right: 12px;
  border: 1px solid rgba(79,107,255,.35);
  background: linear-gradient(135deg, rgba(79,107,255,.18), rgba(122,77,255,.12));
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
html[data-theme="dark"] .input[type="file"]::file-selector-button,
html[data-theme="dark"] .input[type="file"]::-webkit-file-upload-button{
  border-color: rgba(124,140,255,.45);
  background: linear-gradient(135deg, rgba(124,140,255,.22), rgba(168,85,247,.18));
  color: rgba(244,246,255,.95);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

html[data-theme="dark"] .modal-head{
  border-bottom: 1px solid rgba(255,255,255,.10);
}

html[data-theme="dark"] .ghost{
  color: rgba(244,246,255,.95);
  background: rgba(18,20,34,.75);
  border-color: rgba(255,255,255,.12);
}

html[data-theme="dark"] .variant.active{
  background: rgba(124,140,255,.12);
  border-color: rgba(124,140,255,.35);
}

html[data-theme="dark"] .radio{
  border-color: rgba(124,140,255,.55);
}

html[data-theme="dark"] .modal .input:focus,
html[data-theme="dark"] .modal .select:focus{
  box-shadow: 0 0 0 4px rgba(124,140,255,.20), 0 18px 40px rgba(0,0,0,.55);
}

/* Dark theme button visibility */
html[data-theme="dark"] .ghost,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .back{
  background: rgba(18,20,34,.80);
  border-color: rgba(255,255,255,.16);
  color: rgba(244,246,255,.95);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .icon-pill:hover,
html[data-theme="dark"] .back:hover{
  border-color: rgba(124,140,255,.45);
  box-shadow: 0 10px 28px rgba(124,140,255,.20);
}

html[data-theme="dark"] .chipBtn,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tag{
  background: rgba(20,22,36,.82);
  border-color: rgba(255,255,255,.14);
  color: rgba(244,246,255,.92);
}

html[data-theme="dark"] .badge.ready{
  background: rgba(70,200,140,.18);
  border-color: rgba(70,200,140,.28);
  color: rgba(220,255,236,.95);
}

html[data-theme="dark"] .badge.promo{
  background: rgba(124,140,255,.20);
  border-color: rgba(124,140,255,.35);
  color: rgba(230,235,255,.95);
}

html[data-theme="dark"] .badge.sold{
  background: rgba(255,80,80,.18);
  border-color: rgba(255,80,80,.30);
  color: rgba(255,220,220,.95);
}

html[data-theme="dark"] .btn:not(.primary){
  color: rgba(244,246,255,.92);
  background: rgba(18,20,34,.78);
  border-color: rgba(255,255,255,.16);
}

html[data-theme="dark"] .btn:not(.primary):hover{
  border-color: rgba(124,140,255,.40);
  box-shadow: 0 10px 26px rgba(124,140,255,.18);
}

/* ===== dark theme hardening (seamless + contrast) ===== */
html[data-theme="dark"],
html[data-theme="dark"] body{
  background-color: #0b0c16;
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after{
  content:"";
  position:fixed;
  inset:-20% -10%;
  pointer-events:none;
  z-index:-1;
}

html[data-theme="dark"] body::before{
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(88,108,255,.20), transparent 65%),
    radial-gradient(1100px 620px at 85% 0%, rgba(168,85,247,.20), transparent 62%),
    radial-gradient(900px 560px at 50% 70%, rgba(88,108,255,.12), transparent 60%);
}

html[data-theme="dark"] body::after{
  background:
    radial-gradient(760px 460px at 30% 30%, rgba(124,140,255,.10), transparent 62%),
    radial-gradient(820px 520px at 70% 35%, rgba(168,85,247,.08), transparent 62%);
  opacity:.85;
}

html[data-theme="dark"] .page,
html[data-theme="dark"] .container,
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-head,
html[data-theme="dark"] .controls,
html[data-theme="dark"] .count-row,
html[data-theme="dark"] .banner{
  background: transparent !important;
}

html[data-theme="dark"] .banner,
html[data-theme="dark"] .card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .variant,
html[data-theme="dark"] .kv,
html[data-theme="dark"] .faqitem,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .search,
html[data-theme="dark"] .select,
html[data-theme="dark"] .input,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .chipBtn,
html[data-theme="dark"] .catItem{
  background: rgba(16,18,30,.82) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: rgba(244,246,255,.95);
  box-shadow: 0 16px 42px rgba(0,0,0,.45);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-sub,
html[data-theme="dark"] .summary-title,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2{
  color: rgba(244,246,255,.96) !important;
}

html[data-theme="dark"] .section-title{
  background: rgba(18,20,34,.86) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

html[data-theme="dark"] .section-head::before{
  background: rgba(255,255,255,.08) !important;
}

html[data-theme="dark"] .muted,
html[data-theme="dark"] .psub,
html[data-theme="dark"] .priceLabel,
html[data-theme="dark"] .cardHint,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .helper,
html[data-theme="dark"] .v-sub{
  color: rgba(244,246,255,.68) !important;
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .tag,
html[data-theme="dark"] .pill{
  background: rgba(20,22,36,.86) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(244,246,255,.92) !important;
}

html[data-theme="dark"] .badge.ready{
  background: rgba(70,200,140,.20) !important;
  border-color: rgba(70,200,140,.30) !important;
  color: rgba(230,255,242,.95) !important;
}

html[data-theme="dark"] .badge.promo{
  background: rgba(124,140,255,.22) !important;
  border-color: rgba(124,140,255,.36) !important;
  color: rgba(235,240,255,.95) !important;
}

html[data-theme="dark"] .badge.sold{
  background: rgba(255,80,80,.20) !important;
  border-color: rgba(255,80,80,.32) !important;
  color: rgba(255,230,230,.95) !important;
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .ghost,
html[data-theme="dark"] .icon-pill,
html[data-theme="dark"] .back{
  background: rgba(18,20,34,.84) !important;
  border-color: rgba(255,255,255,.16) !important;
  color: rgba(244,246,255,.95) !important;
  box-shadow: 0 10px 26px rgba(0,0,0,.40);
}

html[data-theme="dark"] .btn.primary{
  border-color: rgba(124,140,255,.50) !important;
  background: linear-gradient(135deg, rgba(124,140,255,.22), rgba(168,85,247,.18)) !important;
}

html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .ghost:hover,
html[data-theme="dark"] .icon-pill:hover,
html[data-theme="dark"] .back:hover{
  border-color: rgba(124,140,255,.50) !important;
  box-shadow: 0 14px 34px rgba(124,140,255,.22);
}

html[data-theme="dark"] .search input,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select{
  background: rgba(16,18,30,.92) !important;
  color: rgba(244,246,255,.96) !important;
}

html[data-theme="dark"] .search input::placeholder,
html[data-theme="dark"] .input::placeholder{
  color: rgba(244,246,255,.45) !important;
}

html[data-theme="dark"] .modal-backdrop{
  background: rgba(5,6,12,.72) !important;
  backdrop-filter: blur(8px);
}

html[data-theme="dark"] .modal-card{
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow:
    0 34px 100px rgba(0,0,0,.70),
    0 12px 36px rgba(0,0,0,.40);
  background: linear-gradient(180deg, rgba(20,22,36,.95), rgba(16,18,30,.88)) !important;
}

html[data-theme="dark"] .modal-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  padding:1px;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  mask-composite: exclude;
  pointer-events:none;
}
