/* ============================================================
   XYZGAMING STORE — Global Design System (Deep Red Gaming)
   Point Blank Specialist Edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ── TOKENS ── */
:root {
  --bg-primary:    #0a0405;
  --bg-secondary:  #12070a;
  --bg-card:       #1b0b0e;
  --bg-card-hover: #260f13;
  --bg-glass:      rgba(27,11,14, 0.85);

  --electric:      #ff4d1a;
  --electric-dark: #d1280a;
  --electric-glow: rgba(255,90,30, 0.4);
  --electric-light:#ffb08a;

  --gold:          #f5a623;
  --gold-dark:     #c8811a;
  --gold-light:    #ffd08a;
  --gold-glow:     rgba(245, 166, 35, 0.4);

  --cyan:          #22d3ee;
  --cyan-glow:     rgba(34, 211, 238, 0.3);

  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --border:        rgba(255,90,30, 0.2);
  --border-gold:   rgba(251, 191, 36, 0.3);

  --font-display:  'Orbitron', sans-serif;
  --font-heading:  'Bebas Neue', sans-serif;
  --font-body:     'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.8);
  --glow-electric: 0 0 20px rgba(255,90,30,0.4), 0 0 60px rgba(255,90,30,0.15);
  --glow-gold:     0 0 20px rgba(251,191,36,0.4), 0 0 60px rgba(251,191,36,0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Floating background shapes -- global, kayak referensi jackzstore.id: diamond,
   kotak miring, segitiga yang ngambang pelan di belakang seluruh halaman.
   Ini GANTI approach sebelumnya (blur gradient blob) yang ternyata cuma
   kerasa kayak gradien doang, bukan "shape". Wrapper-nya `fixed` + `inset:0`
   nutupin whole viewport, tetep diem di situ pas discroll (kayak jackzstore),
   nembus semua section yang backgroundnya transparan. Opacity sengaja tipis
   banget (0.05-0.08) + warna abu netral, biar dekoratif doang, ga rebutan
   perhatian sama konten/produk. */
.bg-shapes {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-shapes span {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--text-muted);
  opacity: 0.07;
}
.bg-shapes .shape-diamond {
  border-radius: 16px;
}
.bg-shapes .shape-square {
  border-radius: 18px;
}
.bg-shapes .shape-triangle {
  width: 0;
  height: 0;
  background: none;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-bottom: 82px solid var(--text-muted);
  opacity: 0.06;
}
/* Posisi + ukuran + rotasi awal tiap shape, disebar kayak referensi (ada yang
   kepotong di tepi layar) */
.bg-shapes .s1 { width: 100px; height: 100px; top: 8%;  left: -3%;  animation: shape-float-a 13s ease-in-out infinite; }
.bg-shapes .s2 { width: 70px;  height: 70px;  top: 62%; left: 6%;   animation: shape-float-b 10s ease-in-out infinite; animation-delay: 1.5s; }
.bg-shapes .s3 { top: 30%; left: 42%; animation: shape-float-c 15s ease-in-out infinite; animation-delay: 3s; }
.bg-shapes .s4 { top: 70%; left: 30%; animation: shape-float-b 11s ease-in-out infinite; animation-delay: 0.8s; }
.bg-shapes .s5 { width: 110px; height: 110px; top: 18%; right: -4%; animation: shape-float-a 14s ease-in-out infinite; animation-delay: 4s; }
.bg-shapes .s6 { width: 60px;  height: 60px;  top: 55%; right: 8%;  animation: shape-float-c 12s ease-in-out infinite; animation-delay: 2s; }
.bg-shapes .s7 { top: 85%; right: 20%; animation: shape-float-b 13s ease-in-out infinite; animation-delay: 5s; }

@keyframes shape-float-a {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(58deg) translateY(-24px); }
}
@keyframes shape-float-b {
  0%, 100% { transform: rotate(20deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(18px); }
}
@keyframes shape-float-c {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%      { transform: rotate(-28deg) translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-shapes span { animation: none; }
}
@media (max-width: 768px) {
  /* Di HP layarnya sempit, shape gede2 malah kerasa penuh/mepet konten -- kecilin & kurangin */
  .bg-shapes .s3, .bg-shapes .s4, .bg-shapes .s7 { display: none; }
  /* pakai properti `scale` (bukan transform) supaya gak ketimpa animasi, jadi benar-benar mengecil di HP */
  .bg-shapes span { scale: 0.6; }
}
/* Semua konten harus di atas shape (shape ada di z-index:0 & fixed) */
header, main, footer, section, .section { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select, textarea { font-family: var(--font-body); outline: none; }

/* .form-input dipakai di mana-mana (halaman order, form detail char, admin)
   tapi belum pernah ada definisinya sama sekali di sini -- jadi selama ini
   semua field itu cuma tampil sebagai input polos bawaan browser (kecil,
   gak ada padding/background), makanya kelihatan "kekecilan" dibanding
   elemen lain di halaman yang udah full styled. */
.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px var(--electric-glow);
}
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--electric); border-radius: 3px; }

/* ── UTILITIES ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.text-gradient-electric {
  background: linear-gradient(135deg, var(--electric), #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-electric { background: rgba(255,90,30,0.15); color: var(--electric); border: 1px solid var(--border); }
.badge-gold     { background: rgba(251,191,36,0.15); color: var(--gold); border: 1px solid var(--border-gold); }
.badge-danger   { background: rgba(239,68,68,0.25); color: #fff; border: 1px solid rgba(239,68,68,0.5); }
.badge-success  { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }

/* ============================================================
   CUT-CORNER ACCENT — angular "sliced box" shape client liked
   from the promo posters (jasa login / pricelist banners).
   Sprinkle onto a badge/tag/button here and there for the
   gaming-tag look — corners cut instead of rounded. Not meant
   to replace every rounded element, just an aesthetic accent.
   ============================================================ */
.cut-corner {
  border-radius: 0 !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.cut-corner-sm {
  border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--electric), var(--electric-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--electric-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--electric-glow);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0405;
  box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--gold-glow);
}
.btn-outline {
  background: transparent;
  color: var(--electric);
  border: 1.5px solid var(--electric);
}
.btn-outline:hover {
  background: var(--electric);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--electric);
  color: var(--electric);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255,90,30,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-electric);
}

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(255,90,30,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 5, 7, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 5, 7, 0.98);
  border-bottom-color: rgba(255,90,30,0.4);
  box-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--electric), var(--electric-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--electric-glow);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,90,30,0.12);
  color: var(--electric);
}
.nav-links .nav-highlight a {
  background: linear-gradient(135deg, var(--electric), var(--electric-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--electric-glow);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--electric);
  border-radius: 1px;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  background: rgba(10,5,7,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}
.nav-mobile a:hover {
  background: rgba(255,90,30,0.12);
  color: var(--electric);
}

/* ============================================================
   SLIDER BANNER COMPONENT
   ============================================================ */
.slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255,90,30,0.15);
  margin-bottom: 2rem;
  background: var(--bg-card);
}
.slider-container.slider-pending .slider-wrapper,
.slider-container.slider-pending .slider-btn,
.slider-container.slider-pending .slider-dots { visibility: hidden; }
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}
.slide-item {
  min-width: 100%;
  position: relative;
  /* Rasio 3:1 (banner desainer 3600x1200). min-height jaga teks tetap muat di layar sempit */
  height: auto;
  aspect-ratio: 3 / 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 2.5rem 3.5rem;
  overflow: hidden;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) saturate(1.2);
  z-index: 0;
}
.slide-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,90,30,0.25);
  border: 1px solid var(--electric);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
}
.slide-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(10,5,7,0.7);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 2;
  transition: var(--transition-fast);
}
.slider-btn:hover {
  background: var(--electric);
  box-shadow: 0 0 15px var(--electric-glow);
}
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}
.slider-dot.active {
  background: var(--electric);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   MODAL POP-UP (Notif Pengumuman & Cara Order)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(255,90,30,0.3);
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}
.modal-close-btn {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--electric);
  color: #fff;
}
.modal-header-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(255,90,30,0.15);
  border: 1px solid var(--border);
  color: var(--electric);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.modal-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* ============================================================
   TICKER & FLASH SALE
   ============================================================ */
.ticker-bar {
  background: linear-gradient(90deg, var(--electric-dark), var(--electric), var(--electric-dark));
  padding: 0.625rem 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 3rem;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.flash-sale-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,90,30,0.1), rgba(185,28,28,0.05));
  border-top: 1px solid rgba(255,90,30,0.25);
  border-bottom: 1px solid rgba(255,90,30,0.25);
}
/* Ambient glow blobs -- niatnya biar section-nya kerasa hidup/premium kayak
   request klien (referensi jackzstore), tapi TANPA shape rame yang muter2
   di background, biar gak rebutan perhatian sama card & harga yang jalan
   sendiri lewat marquee. Cukup 2 blob blur lembut yang pulse pelan. */
.flash-sale-section::before,
.flash-sale-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  animation: flash-glow-pulse 9s ease-in-out infinite alternate;
}
.flash-sale-section::before {
  width: 320px; height: 320px;
  background: var(--electric);
  top: -100px; left: -80px;
}
.flash-sale-section::after {
  width: 280px; height: 280px;
  background: var(--gold);
  bottom: -90px; right: -60px;
  animation-delay: 4.5s;
}
@keyframes flash-glow-pulse {
  from { opacity: 0.2; transform: scale(1); }
  to   { opacity: 0.4; transform: scale(1.18); }
}
.flash-sale-section > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .flash-sale-section::before, .flash-sale-section::after { animation: none; }
}
.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.flash-title-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flash-icon { font-size: 2rem; animation: flash-bounce 0.8s ease-in-out infinite; }
@keyframes flash-bounce {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.2) rotate(5deg); }
}
.flash-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--electric);
}
.countdown { display: flex; align-items: center; gap: 0.5rem; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 52px;
  text-align: center;
  padding: 0.35rem 0.5rem;
  color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}
.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.countdown-sep { font-size: 1.5rem; font-weight: 900; color: var(--gold); margin-bottom: 1rem; }

.flash-marquee-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.flash-products {
  display: flex;
  gap: 1rem;
  width: max-content;
  /* JS (loadHomeCatalog di index.html) sekarang jamin jumlah copy-nya
     selalu bikin total lebar row ini > 2x lebar viewport, jadi row-nya
     SELALU penuh nempel kiri-kanan, gapernah ada ruang kosong pas geser --
     ga butuh trik margin:auto buat "narik ke tengah" lagi kayak sebelumnya. */
  padding-bottom: 0.5rem;
  animation: flash-marquee var(--flash-marquee-duration, 32s) linear infinite;
}
/* Pause on hover/touch so people can actually read+click a card, resume after */
.flash-marquee-viewport:hover .flash-products,
.flash-products.is-paused {
  animation-play-state: paused;
}
@keyframes flash-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--flash-marquee-distance, 50%))); }
}
@media (prefers-reduced-motion: reduce) {
  .flash-products { animation: none; overflow-x: auto; }
}
.flash-product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,90,30,0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
  flex: 0 0 220px;
  width: 220px;
}
.flash-product-card:hover {
  border-color: var(--electric);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255,90,30,0.3);
}
.flash-discount-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--electric);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}
.flash-product-icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #1b0b0e, #080e1c);
}
.flash-product-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.flash-product-game {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.flash-price-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.flash-price-old { font-size: 0.8rem; color: var(--danger); text-decoration: line-through; }
.flash-price-new { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.flash-savings {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--danger);
  margin: -0.4rem 0 0.75rem;
}
/* "Tersisa X" pill -- request klien biar keliatan kaya referensi kompetitor
   (jawzstore dkk): gradient oranye nyala di kiri meredup ke gelap di kanan,
   biar kesan "stok menipis, buruan" tanpa perlu itung persentase asli
   (kita gak punya angka "total stok awal" buat itung fill % beneran). */
.flash-stock-bar {
  margin-top: 0.6rem;
  height: 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--warning) 0%, #7a3a0a 60%, #2a1608 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  overflow: hidden;
}
.flash-buy-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 0.5rem;
  background: linear-gradient(135deg, var(--electric), var(--electric-dark));
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
}
.flash-buy-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px var(--electric-glow);
}

/* ============================================================
   GRID PRODUK & CHAR CARDS
   ============================================================ */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tab {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
  box-shadow: 0 0 15px var(--electric-glow);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--electric);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--electric-glow);
}
.product-card-header {
  aspect-ratio: 4 / 5; /* cocok sama rasio screenshot char 1080x1350 (mahesastore-style), kartu jadi lebih besar/dominan */
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  background: linear-gradient(135deg, #1b0b0e, #080e1c);
}
/* Overlay judul di atas gambar (ala mahesastore/charpb) — poster look,
   scrim gelap di bawah biar teks kebaca di atas foto apapun. */
.product-card-title-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.9rem 0.65rem;
  background: linear-gradient(to top, rgba(5,10,20,0.95) 15%, rgba(5,10,20,0.55) 65%, transparent 100%);
  pointer-events: none;
}
.product-card-title-overlay .product-name {
  margin-bottom: 0.15rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.product-card-title-overlay .product-game {
  margin-bottom: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.68);
}
.product-card-body { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-type-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.5rem;
}
.product-meta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.product-meta-row i { color: var(--text-muted); margin-right: 0.25rem; }
.product-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.product-game {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
}
.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}
.product-price-original {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-buy-btn {
  padding: 0.55rem 1.2rem;
  background: rgba(255,90,30,0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--electric);
  transition: var(--transition-fast);
}
.product-buy-btn:hover {
  background: var(--electric);
  color: #fff;
  box-shadow: 0 4px 15px var(--electric-glow);
}

/* ============================================================
   TOP-UP 5 GAME COMPONENT
   ============================================================ */
.topup-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.topup-game-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.topup-game-card:hover {
  border-color: var(--electric);
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--electric-glow);
}
.topup-game-card.active-pb {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(251,191,36,0.1), var(--bg-card));
}
.topup-game-card.active-pb::after {
  content: '★ UTAMA';
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--gold);
}
.topup-game-icon { font-size: 3rem; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; }
.topup-game-icon img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)); }
@media (max-width: 600px) { .topup-game-icon img { width: 64px; height: 64px; } }
.topup-game-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 0.25rem; }
.topup-game-status { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* ============================================================
   GALERI 30+ SCREENSHOT AKUN (LIGHTBOX)
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.gallery-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  position: relative;
  background: #12070a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-thumb:hover {
  border-color: var(--electric);
  transform: scale(1.03);
}
.gallery-thumb:hover img { transform: scale(1.1); }
.gallery-thumb-tag {
  position: absolute;
  bottom: 2px; left: 2px;
  background: rgba(0,0,0,0.75);
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox-modal.active { opacity: 1; visibility: visible; }
.lightbox-img-wrapper { max-width: 90vw; max-height: 85vh; position: relative; }
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--electric);
  box-shadow: 0 0 50px rgba(255,90,30,0.5);
}
.lightbox-caption {
  text-align: center;
  color: #fff;
  font-weight: 700;
  margin-top: 1rem;
  font-size: 1rem;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ============================================================
   VOUCHER / BULK BUY COMPONENT
   ============================================================ */
.voucher-box {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.voucher-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.voucher-input:focus { border-color: var(--electric); }
.voucher-btn {
  padding: 0.75rem 1.25rem;
  background: var(--electric);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
}

.bulk-buy-box {
  background: rgba(251,191,36,0.08);
  border: 1px dashed rgba(251,191,36,0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bulk-buy-title { font-size: 0.85rem; font-weight: 700; color: var(--gold); }
.bulk-buy-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   TRUST & TESTIMONI
   ============================================================ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
}
.trust-card:hover { border-color: var(--electric); transform: translateY(-4px); }
.trust-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.trust-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.trust-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.testi-card:hover { border-color: var(--electric); transform: translateY(-3px); }

/* FAQ Accordion */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}
.faq-item:hover { border-color: rgba(255,90,30,0.4); }
.faq-item:has(.faq-answer.open) { border-color: var(--gold); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-question:hover { background: rgba(255,255,255,0.02); color: #fff; }
.faq-question.open { color: var(--gold); }
.faq-question i { color: var(--gold); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-question.open i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 1.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.faq-answer.open {
  max-height: 400px;
  padding: 0 1.4rem 1.25rem;
}
.testi-header { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--electric-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.testi-name { font-weight: 700; font-size: 0.9rem; }
.testi-game { font-size: 0.72rem; color: var(--text-muted); }
.testi-stars { color: var(--gold); font-size: 0.875rem; letter-spacing: 0.1em; }
.testi-body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}
.social-link:hover {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--electric-glow);
}
.footer-title {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--electric); padding-left: 4px; }
.footer-links a:has(.footer-game-icon) { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-game-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-payment { display: flex; gap: 0.5rem; align-items: center; }
.payment-badge {
  padding: 0.25rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .topup-games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
  .topup-games-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-item { height: 320px; padding: 2rem; }
  .slide-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .topup-games-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Cegah input/select yang punya width inline fixed bikin scroll horizontal di HP */
  input, select, textarea, .form-input { max-width: 100%; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
}
@media (max-width: 380px) {
  .container { padding: 0 0.85rem; }
  .btn { padding: 0.65rem 1.1rem; font-size: 0.85rem; }
}

/* ============================================================
   MOBILE: kartu produk 2 kolom + banner tetap persegi panjang
   (request klien: lebih banyak produk kelihatan sekaligus di HP,
   banner jangan jadi kotak). Desktop gak berubah.
   Kartu: gambar poster 1080x1350 = 4:5, sudah diatur di
   .product-card-header (aspect-ratio 4/5) jadi gak kepotong.
   Banner: rasio 3:1 (sama kayak referensi mahesastore ~1010x335).
   ============================================================ */
.product-name-mobile { display: none; } /* cuma dipakai di HP, lihat bawah */

@media (max-width: 768px) {
  /* ── BANNER: persegi panjang, bukan kotak ── */
  .slide-item {
    height: auto;
    aspect-ratio: 3 / 1;
    min-height: 0;
    padding: 0.75rem 1rem;
  }
  .slide-content { max-width: 100%; }
  .slide-tag, .slide-desc { display: none; }
  .slide-title {
    font-size: 1.05rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
  }
  .slide-item .btn { padding: 0.35rem 0.8rem; font-size: 0.72rem; }
  .slider-btn { width: 28px; height: 28px; font-size: 0.75rem; }
  .slider-btn.prev { left: 0.4rem; }
  .slider-btn.next { right: 0.4rem; }
  .slider-dots { bottom: 0.4rem; gap: 0.35rem; }
  .slider-dot { width: 6px; height: 6px; }

  /* ── GRID PRODUK: 2 kolom ── */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .product-card { border-radius: var(--radius-md); }
  .product-card:hover { transform: none; } /* hover gak ada di HP, hindari "nyangkut" abis tap */

  /* Judul di atas poster disembunyiin: poster desainer sudah punya teks &
     harga sendiri di bawah, overlay malah nutupin. Nama pindah ke bawah gambar. */
  .product-card-title-overlay { display: none; }
  .product-name-mobile {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    min-height: 2.6em; /* 2 baris, biar tinggi kartu sejajar */
  }

  .product-card-body { padding: 0.6rem 0.65rem 0.7rem; }
  .product-type-badge { font-size: 0.6rem; margin-bottom: 0.3rem; }
  .product-meta-row {
    gap: 0.5rem;
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
  }

  /* Harga di atas, tombol full-width di bawah (muat di kartu ~165px) */
  .product-price-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }
  .product-price { font-size: 1rem; }
  .product-price-original { font-size: 0.65rem; }
  .product-buy-btn {
    width: 100%;
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ===== FLASH SALE: 4 card desktop, gambar nggak kepotong, gap mobile ===== */
.flash-marquee-viewport { container-type: inline-size; }

.flash-product-card {
  flex: 0 0 calc((100cqw - 3rem) / 4);   /* desktop: pas 4 card */
  width: calc((100cqw - 3rem) / 4);
}
.flash-product-icon {
  height: auto;
  aspect-ratio: 4 / 5;                    /* sama kayak card produk biasa */
}

@media (max-width: 800px) {
  .flash-product-card {                    /* tablet: 3 card */
    flex-basis: calc((100cqw - 2rem) / 3);
    width: calc((100cqw - 2rem) / 3);
  }
}
@media (max-width: 640px) {
  .flash-product-card {                    /* HP: ~2 card + sisa nongol */
    flex-basis: calc((100cqw - 1rem) / 2.3);
    width: calc((100cqw - 1rem) / 2.3);
    padding: 0.75rem;
  }
  .flash-product-name { font-size: 0.8rem; }
  .flash-price-new { font-size: 1rem; }

  /* rapetin jarak banner -> flash sale */
  .slider-container { margin-bottom: 0.75rem; }
  .flash-sale-section.section-sm { padding: 1.25rem 0 1.5rem; }
  .flash-header { margin-bottom: 1rem; gap: 0.5rem; }
  .flash-title-group { gap: 0.5rem; }
  .flash-icon { font-size: 1.4rem; }
  .flash-title { font-size: 1.45rem; }
  .countdown-num { font-size: 1.1rem; min-width: 40px; }
}

/* ===== FLASH SALE: bisa digeser + rapiin mobile ===== */
.flash-marquee-viewport.is-swipe {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.flash-marquee-viewport.is-swipe::-webkit-scrollbar { display: none; }
.flash-marquee-viewport.is-swipe .flash-products {
  animation: none;
  padding-top: 6px; /* biar hover naik nggak kepotong */
}

@media (max-width: 640px) {
  .flash-product-card {
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    border-radius: 14px;
  }
  .flash-product-icon { margin-bottom: 0.5rem; border-radius: 10px; }
  .flash-product-name {
    font-size: 0.78rem;
    min-height: 2.6em;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .flash-product-game {
    font-size: 0.62rem;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .flash-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 0.4rem;
  }
  .flash-price-old { font-size: 0.68rem; }
  .flash-price-new { font-size: 0.95rem; }
  .flash-savings { font-size: 0.62rem; margin: 0 0 0.4rem; }
  .flash-stock-bar { height: 22px; font-size: 0.65rem; margin: 0 0 0.5rem; }
  .flash-buy-btn { margin-top: auto; padding: 0.45rem 0.25rem; font-size: 0.72rem; }
  .flash-discount-badge { top: 0.9rem; right: 0.9rem; font-size: 0.62rem; padding: 0.15rem 0.4rem; }
}

/* ===== FLASH SALE CARD: kotak cuma sampai deskripsi, harga ke bawah di luar kotak =====
   Request klien: card jangan keliatan satu kotak lonjong. Kotak biru (.flash-card-box)
   cuma bungkus poster + judul + "CHAR PB READY STOCK". Bagian harga/hemat/tersisa/tombol
   (.flash-card-info) TANPA background, nempel di bawah kotak. Wrapper .flash-product-card
   sekarang polos (cuma ngatur lebar & susunan), semua tampilan "kartu" pindah ke box. */
.flash-product-card,
.flash-product-card:hover {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: none;
  display: flex;
  flex-direction: column;
}
.flash-card-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255,90,30,0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: var(--transition);
}
.flash-product-card:hover .flash-card-box {
  background: var(--bg-card);               /* jangan terang pas hover */
  border-color: rgba(255,90,30,0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.45);  /* bayangan gelap, tanpa glow */
}
.flash-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.25rem 0;
}
.flash-card-info .flash-stock-bar { margin-bottom: 0.6rem; }
.flash-card-info .flash-buy-btn { margin-top: auto; }
.flash-card-info .flash-price-row { margin-bottom: 0.5rem; }
.flash-card-info .flash-savings { margin: 0 0 0.5rem; }

@media (max-width: 640px) {
  .flash-card-box { padding: 0.6rem; border-radius: 14px; }
  .flash-card-info { padding: 0.6rem 0.15rem 0; }
  .flash-card-info .flash-stock-bar { margin-bottom: 0.5rem; }
  .flash-card-info .flash-price-row { margin-bottom: 0.25rem; }
  .flash-card-info .flash-savings { margin: 0 0 0.4rem; }
}
/* judul selalu sisihin tempat 2 baris -> semua kotak sama tinggi, harga di bawahnya sejajar */
.flash-card-box .flash-product-name { min-height: 2.6em; }
/* judul max 2 baris, deskripsi max 1 baris (sisanya "...") -> tinggi kotak SELALU sama,
   jadi harga / hemat / TERSISA / tombol di bawahnya sejajar antar kartu. Teks lengkap ada di halaman detail. */
.flash-card-box .flash-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flash-card-box .flash-product-game {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* kotak kartu = link (tap poster/judul juga buka detail, sama kayak tombolnya) */
a.flash-card-box { display: block; color: inherit; text-decoration: none; cursor: pointer; }

/* ===== Bar "TERSISA X": fill berkurang makin dikit stoknya =====
   --fill (persen) di-set dari JS (flashStockBarHTML). Track gelap, fill oranye penuh
   kalau stok banyak, makin pendek + makin merah kalau tinggal sedikit. */
.flash-stock-bar {
  position: relative;
  isolation: isolate;
  background: #2a1608;
  overflow: hidden;
}
.flash-stock-bar::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: var(--fill, 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warning) 0%, #c2570c 100%);
  transition: width 0.6s ease;
  z-index: -1;
}
.flash-stock-bar.is-mid::before { background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%); }
.flash-stock-bar.is-low::before { background: linear-gradient(90deg, #f97316 0%, #dc2626 100%); }

/* ===== Jarak antar-section (mobile) =====
   Sebelumnya: padding-bawah section "Produk Paling Laris" (3.5rem, dulu inline) +
   padding-atas section berikutnya (3.5rem) = 7rem kosong di HP. Sekarang tiap section
   2.25rem atas-bawah -> jarak antar-section 4.5rem, ritmenya sama di semua section.
   Desktop tetap (section-popular masih 3.5rem seperti dulu). */
.section-popular { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (max-width: 768px) {
  .section { padding: 2.25rem 0; }
  .section-popular { padding-top: 2.25rem; padding-bottom: 2.25rem; }
}


/* ============================================================
   MOBILE MENU ANIMATION (hamburger -> X, slide-down, stagger)
   ============================================================ */
.nav-hamburger {
  cursor: pointer;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              background 0.2s ease;
}
.nav-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop gelap di belakang menu */
.nav-backdrop {
  position: fixed;
  inset: 70px 0 0 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 998;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  /* Panel selalu ada di DOM, disembunyikan lewat opacity/transform (bukan display) biar bisa dianimasikan */
  .nav-mobile {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s linear 0.35s;
  }
  .nav-mobile.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.3s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s;
  }

  /* Item muncul satu-satu */
  .nav-mobile > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-mobile.open > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease calc(var(--i, 0) * 45ms + 80ms),
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i, 0) * 45ms + 80ms),
                background 0.15s ease, color 0.15s ease;
  }

  /* Feedback pas ditekan */
  .nav-mobile a:active { transform: scale(0.98); background: rgba(255,90,30,0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-hamburger span,
  .nav-backdrop,
  .nav-mobile,
  .nav-mobile > * { transition: none !important; }
}


/* ============================================================
   PERBAIKAN (feedback desainer 16 Okt):
   1) logo: tanpa kotak biru/glow kalau isinya gambar logo
   2) menu: tidak patah baris; hamburger muncul di layar <=1100px
   ============================================================ */
.logo-icon:has(> img) {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.nav-links a, .nav-actions .btn { white-space: nowrap; }
.logo-text { white-space: nowrap; }
/* Menu mengecil bertahap mengikuti lebar layar (teks tetap tampil),
   baru jadi hamburger kalau sudah terlalu sempit (<=900px). */
.nav-inner { gap: 0.5rem; }
@media (max-width: 1100px) {
  .nav-links { gap: 0.1rem; }
  .nav-links a {
    font-size: clamp(0.74rem, 1.3vw, 0.875rem);
    padding: 0.45rem clamp(0.35rem, 0.9vw, 0.875rem);
    gap: 0.3rem;
  }
  .nav-links a i { display: none; }
  .nav-actions { gap: 0.4rem; }
  .nav-actions .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   POLISH MENU HP (hamburger terbuka)
   - tombol Login/Daftar: teks sempat abu-abu karena ketimpa
     aturan ".nav-mobile a" -> dipulihkan
   - ikon lebar tetap supaya teks menu lurus rata kiri
   - jarak antar menu dirapatkan, teks lebih terang
   - tombol WA melayang disembunyikan saat menu terbuka
     (sudah ada menu CS WhatsApp)
   ============================================================ */
.nav-mobile { padding: 1.25rem 1.25rem 1.5rem; gap: 0.25rem; }
.nav-mobile a { padding: 0.8rem 1rem; color: var(--text-primary); }
.nav-mobile a i { width: 1.5rem; text-align: center; flex-shrink: 0; color: var(--electric); }
.nav-mobile a + a { border-top: 1px solid rgba(255,255,255,0.05); }
.nav-mobile a.btn-primary { color: #fff; }
.nav-mobile a.btn-outline { color: var(--electric); }
.nav-mobile a.btn, .nav-mobile a.btn + a.btn { border-top: 0; }
.nav-mobile.open ~ #wa-float { display: none !important; }

/* ============================================================
   POLISH HALAMAN CEK TRANSAKSI & KATALOG (HP)
   1) .cek-hero/.cek-card/.cek-title/.cek-desc/.cek-icon sebelumnya
      tidak punya CSS sama sekali -> teks mepet, tanpa kartu.
   2) ".container.section": padding kiri-kanan tertimpa .section
      (padding: 5rem 0) -> filter & daftar produk nempel ke tepi layar.
   3) Scrollbar biru di chip filter disembunyikan (mirip progress bar).
   ============================================================ */
.container.section { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (max-width: 480px) { .container.section { padding-left: 1rem; padding-right: 1rem; } }

/* Chip filter di HP: tetap slider (hemat tinggi), tapi ujung kanannya
   memudar + chip terakhir ada ruang -> jelas kelihatan masih bisa digeser. */
@media (max-width: 820px) {
  .sidebar .sidebar-options {
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 1.75rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }
  .sidebar .sidebar-options::-webkit-scrollbar { display: none; }
}

/* navbar fixed 70px: hero harus turun, kalau tidak ikon kartu ketutup navbar */
.cek-hero { padding: calc(70px + 2.5rem) 0 4rem; }
.cek-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.cek-icon { margin-bottom: 0.5rem; line-height: 1; }
.cek-title {
  font-size: clamp(1.4rem, 5.5vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.cek-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 auto 1.5rem;
  max-width: 42ch;
}
.cek-card .form-input { width: 100%; }
.cek-card .form-input::placeholder { font-size: 0.85rem; font-weight: 500; }
@media (max-width: 480px) {
  .cek-hero { padding: calc(70px + 1.25rem) 0 2.5rem; }
  .cek-card { padding: 1.5rem 1.15rem; }
}

/* ===== FLASH SALE (mobile): countdown di sebelah kanan pill "PROMO HARI INI" ===== */
@media (max-width: 640px) {
  .flash-header {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 0.5rem 0.6rem;
  }
  .flash-title-group { display: contents; }          /* ikon, judul, pill jadi item grid */
  .flash-icon  { grid-column: 1; grid-row: 1; }
  .flash-title { grid-column: 2 / 4; grid-row: 1; margin: 0; }
  .flash-title-group .badge { grid-column: 1 / 3; grid-row: 2; justify-self: start; white-space: nowrap; }
  .flash-header .countdown { grid-column: 3; grid-row: 2; justify-self: end; gap: 0.2rem; }
  .countdown-num   { font-size: 0.95rem; min-width: 34px; padding: 0.25rem 0.3rem; }
  .countdown-sep   { font-size: 1rem; margin-bottom: 0.9rem; }
  .countdown-label { font-size: 0.5rem; margin-top: 0.15rem; }
}
/* HP sangat kecil (<=320px, mis. iPhone SE lama): countdown turun ke baris sendiri biar tidak kepotong.
   HP 360px ke atas tetap muat di sebelah kanan pill. */
@media (max-width: 320px) {
  .flash-header .countdown { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}

/* ============================================================
   FIX KARTU PRODUK (semua ukuran layar): overlay judul+deskripsi di atas
   poster DIMATIKAN karena poster desainer sudah punya teks & harga sendiri,
   overlay malah nimpa dan deskripsi panjang meleber. Nama + deskripsi
   dipindah ke bawah gambar, deskripsi dipotong max 2 baris.
   ============================================================ */
.product-card-title-overlay { display: none; }
.product-name-mobile {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.product-desc-clamp {
  display: block;
  white-space: nowrap;       /* paksa satu baris */
  overflow: hidden;
  text-overflow: ellipsis;   /* kepanjangan jadi ... */
  max-width: 100%;
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
  .product-name-mobile { font-size: 0.8rem; min-height: 2.6em; }
  .product-desc-clamp { font-size: 0.65rem; margin-bottom: 0.35rem; }
}
