/* ================================
   TopUp Store - Main Stylesheet
   ================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

/* ---- Dark Theme ---- */
html[data-theme="dark"] {
  --bg: #0f0f14;
  --bg-card: #1a1a2e;
  --bg-input: #16213e;
  --bg-hover: #1e1e3a;
  --bg-secondary: #13131f;
  --border: #2a2a4a;
  --border-light: #1e1e38;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --navbar-bg: rgba(15, 15, 20, 0.95);
  --card-glow: 0 0 30px rgba(99, 102, 241, 0.1);
  background: #0f0f14;
  color: #e2e8f0;
}

/* ---- Light Theme ---- */
html[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --bg-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --card-glow: 0 0 30px rgba(99, 102, 241, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

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

img { max-width: 100%; }

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

/* ================================
   THEME TOGGLE
   ================================ */
.theme-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.theme-toggle:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ================================
   NAVBAR
   ================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 0;
}

/* ── Left section: logo + primary nav ── */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 28px;        /* logo → menu gap */
  flex-shrink: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-left: 8px;  /* slight left inset */
}
.navbar-brand i { color: var(--primary); font-size: 24px; }
.navbar-brand .logo-img { height: 36px; width: auto; border-radius: 8px; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;         /* spacing between menu items */
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
}

/* ── Right section: search + hamburger ── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;        /* spacing between right elements */
  flex-shrink: 0;
  margin-right: 8px; /* slight right inset */
}
.btn-help {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  transition: var(--transition);
}
.btn-help:hover { background: var(--primary-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1050;
  transition: right 0.3s ease;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
}
.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-title { font-size: 18px; font-weight: 700; }
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.mobile-menu-close:hover { background: var(--bg-hover); color: var(--text); }

.mobile-nav { padding: 16px; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 4px;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--bg-hover);
  color: var(--text);
}
.mobile-nav-link i { width: 18px; color: var(--primary); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ================================
   HERO / BANNER SLIDER
   ================================ */
.hero-section { padding-top: 64px; }
.banner-slider { position: relative; overflow: hidden; background: var(--bg-card); }
.slider-track { display: flex; transition: transform 0.5s ease; }
.slide { flex: 0 0 100%; position: relative; }
.slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 40px 60px;
}
.slide-content h2 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 8px; }
.slide-content p { font-size: 16px; color: rgba(255,255,255,0.8); }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }

/* ================================
   MAIN CONTENT
   ================================ */
.main-section { padding: 32px 0; }

/* Search Bar */
.search-section { padding: 24px 0 16px; }
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.search-box input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.search-box input::placeholder { color: var(--text-faint); }
.search-box .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

/* Category Tabs */
.category-tabs { padding: 8px 0 24px; }
.tabs-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tabs-container::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.tab-btn:hover { border-color: var(--primary); color: var(--text); }
.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
/* Sticky tabs container for desktop */
.category-tabs.sticky-tabs {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--bg);
  padding: 10px 0 16px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.tab-icon { font-size: 16px; }

/* Section Title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.section-link:hover { color: var(--primary-light); }

/* ================================
   GAME GRID
   ================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
/* Large cards: Top Up Game section */
.games-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
/* Small cards: Voucher & Pulsa sections */
.games-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.game-card-sm .game-card-img { aspect-ratio: 1; }
.game-card-sm .game-card-name { font-size: 12px; }
.game-card-sm .game-card-body { padding: 8px; }
.game-card-lg .game-card-img { aspect-ratio: 1; }
.game-card-lg .game-card-body { padding: 12px; }
.game-card-lg .game-card-name { font-size: 14px; font-weight: 700; }

/* hidden cards for load-more */
.game-hidden { display: none !important; }
.game-reveal { animation: revealCard 0.35s ease; }
@keyframes revealCard {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Category sections */
.cat-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}
.cat-section-alt {
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--card-glow);
}
.game-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.game-card-body {
  padding: 10px;
}
.game-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-text.active { color: var(--success); }
.status-text.inactive { color: var(--danger); }

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-flash { background: var(--danger); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--secondary); color: white; }

/* ================================
   FLASH SALE SECTION
   ================================ */
.flash-sale-section {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  overflow: hidden;
  position: relative;
}
.flash-sale-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20px;
  width: 200px;
  height: 200%;
  background: rgba(255,255,255,0.05);
  transform: rotate(15deg);
}

.flash-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.flash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: white;
}
.flash-title i { color: yellow; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.flash-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}
.timer-block {
  background: rgba(0,0,0,0.25);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}
.timer-sep { color: white; font-weight: 700; font-size: 16px; }

.flash-products {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.flash-products::-webkit-scrollbar { display: none; }
.flash-product-card {
  flex: 0 0 160px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}
.flash-product-card:hover { background: rgba(255,255,255,0.2); transform: scale(1.02); }
.flash-product-img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; margin-bottom: 8px; }
.flash-product-name { font-size: 12px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.flash-product-price { font-size: 14px; font-weight: 800; }
.flash-original-price { font-size: 11px; text-decoration: line-through; opacity: 0.7; }

/* ================================
   GAME LIST TABLE
   ================================ */
.game-list-section { margin-top: 40px; }
.game-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.game-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.game-table th {
  background: var(--bg-card);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.game-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.game-table tbody tr:last-child td { border-bottom: none; }
.game-table tbody tr { transition: var(--transition); }
.game-table tbody tr:hover { background: var(--bg-hover); }

.game-table-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.game-table-info { display: flex; align-items: center; gap: 12px; }
.game-table-name { font-weight: 600; color: var(--text); }
.game-table-cat { font-size: 12px; color: var(--text-muted); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-badge.active { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-badge.inactive { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.label-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.label-tag {
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.label-green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.label-blue { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.label-red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.label-yellow { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.btn-topup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}
.btn-topup:hover { background: var(--primary-dark); }

/* ================================
   DETAIL GAME PAGE
   ================================ */
.detail-page { padding-top: 80px; padding-bottom: 60px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 10px; color: var(--text-faint); }

.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

.game-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.game-banner-img { width: 100%; height: 220px; object-fit: cover; }
.game-info-body { padding: 24px; }
.game-info-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.game-detail-img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 3px solid var(--border); }
.game-detail-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.game-detail-status { display: flex; align-items: center; gap: 6px; }
.game-detail-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.game-detail-labels { display: flex; flex-wrap: wrap; gap: 6px; }

/* Nominal Grid */
.products-section { margin-top: 24px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.product-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}
.product-card:hover { border-color: var(--primary); }
/* product-card.selected — matches payment-method-label style exactly */
.product-card.selected {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}
.product-card.selected .product-name {
  color: var(--primary);
  font-weight: 700;
}
.product-card.selected .product-price {
  color: var(--primary);
  font-weight: 800;
}
.product-card.selected .product-original-price {
  color: #94a3b8;
}
/* dark mode — same clean white as payment-method-label */
[data-theme="dark"] .product-card.selected {
  background: #ffffff !important;
}
[data-theme="dark"] .product-card.selected .product-name {
  color: #1e1e2e !important;
  font-weight: 700;
}
[data-theme="dark"] .product-card.selected .product-price {
  color: #4f46e5 !important;
  font-weight: 800;
}
[data-theme="dark"] .product-card.selected .product-original-price {
  color: #64748b !important;
}
.product-card.selected::after { display: none !important; content: none !important; }
.product-card.selected::before { display: none !important; content: none !important; }
.product-flash-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
  border-radius: 10px 10px 0 0;
}
.product-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; margin-top: 4px; }
.product-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.product-original-price { font-size: 11px; color: var(--text-faint); text-decoration: line-through; }

/* Purchase Form */
.purchase-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 84px;
}
.form-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.form-title i { color: var(--primary); }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-label .optional { color: var(--text-faint); font-weight: 400; font-size: 11px; margin-left: 4px; text-transform: none; }

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12); }
.form-control::placeholder { color: var(--text-faint); }
.form-control:disabled { opacity: 0.6; cursor: not-allowed; }

/* Payment Methods */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.payment-method-item { position: relative; }
.payment-method-item input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  min-height: 64px;
  justify-content: center;
  position: relative;
}
.payment-method-label:hover { border-color: var(--primary); }
/* NO checkmark on payment method — clean white highlight only */
.payment-method-item input:checked + .payment-method-label {
  border-color: var(--primary);
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}
[data-theme="dark"] .payment-method-item input:checked + .payment-method-label {
  background: #ffffff !important;
  color: #1e1e2e !important;
}
[data-theme="dark"] .payment-method-item input:checked + .payment-method-label .payment-method-name {
  color: #4f46e5 !important;
}
.payment-method-item input:checked + .payment-method-label .payment-method-name {
  color: var(--primary);
  font-weight: 700;
}
.payment-method-label::after { display: none !important; content: none !important; }
.payment-method-item input:checked + .payment-method-label::after { display: none !important; content: none !important; }
.payment-method-img { height: 28px; object-fit: contain; max-width: 80px; }
.payment-method-name { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; transition: color 0.15s; }

/* Order Confirm Modal - clean no-inline-style implementation */
.order-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}
.order-confirm-modal.active {
  display: flex;
  pointer-events: all;
}
.order-confirm-box {
  background: var(--bg-card);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  pointer-events: all;
}
.order-confirm-header {
  background: var(--primary);
  padding: 18px 24px;
  text-align: center;
}
.order-confirm-header h3 { color: white; font-size: 18px; margin: 0 0 4px; }
.order-confirm-header p { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; }

/* Order Summary */
.order-summary {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.order-summary-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.order-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; }
.order-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px; }
.order-total-price { color: var(--primary); font-size: 18px; }

.btn-buy {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.btn-buy:active { transform: translateY(0); }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-buy i { font-size: 18px; }

/* ================================
   HELP / BANTUAN PAGE
   ================================ */
.help-page { padding-top: 80px; padding-bottom: 60px; }
.help-hero { text-align: center; padding: 60px 20px 40px; }
.help-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.help-hero p { font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question i { transition: var(--transition); color: var(--text-muted); }
.faq-question.open i { transform: rotate(45deg); color: var(--primary); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 600px; padding: 0 20px 16px; }
.faq-answer p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
}
.contact-card-icon.wa { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.contact-card-icon.ig { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.contact-card-icon.fb { background: rgba(66, 103, 178, 0.15); color: #4267b2; }
.contact-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 13px; color: var(--text-muted); }

/* ================================
   TERMS PAGE
   ================================ */
.terms-page { padding-top: 80px; padding-bottom: 60px; }
.terms-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.terms-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.terms-content .last-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.terms-content h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; color: var(--primary); }
.terms-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }
.terms-content ul { padding-left: 20px; margin-bottom: 12px; }
.terms-content li { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 4px; }

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
  margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.footer-logo i { color: var(--primary); }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.footer-social-col h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-social-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  border: 1px solid var(--border);
  text-decoration: none;
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 10px; }
.contact-item i { width: 20px; color: var(--primary); font-size: 14px; }
.contact-item span { font-size: 13px; color: var(--text-muted); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: var(--text-faint); }
.text-red { color: var(--danger); }

/* ================================
   ADMIN PANEL
   ================================ */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }

/* Admin-specific overlay (separate from public mobile menu overlay) */
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: none;
}
.admin-overlay.show { opacity: 1; pointer-events: all; display: block; }

/* Admin hamburger button */
.hamburger-admin {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
}
.hamburger-admin:hover { background: var(--bg-hover); color: var(--text); }

/* Topbar icon button */
.topbar-icon-btn {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.topbar-icon-btn:hover { background: var(--bg-hover); color: var(--text); border-color: var(--primary); }

.topbar-username { font-size: 13px; color: var(--text-muted); }
@media (max-width: 480px) { .topbar-username { display: none; } }

.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1002;
  overflow-y: auto;
  transition: transform 0.3s ease;
  pointer-events: all;
}
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}
.sidebar-header i { color: var(--primary); }

.sidebar-menu { flex: 1; padding: 12px; }
.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  padding: 12px 12px 4px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--primary);
  color: white;
}
.sidebar-link i { width: 18px; text-align: center; font-size: 14px; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--border); }
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  background: rgba(239, 68, 68, 0.08);
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  text-decoration: none;
}
.sidebar-logout:hover { background: rgba(239, 68, 68, 0.18); }

.admin-main { margin-left: 260px; flex: 1; min-height: 100vh; }
.admin-topbar {
  height: 64px;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 18px; font-weight: 700; }
.topbar-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.topbar-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.admin-content { padding: 24px; }

/* Admin Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-icon.purple { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.stat-info h3 { font-size: 24px; font-weight: 800; margin-bottom: 2px; }
.stat-info p { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* Admin Table */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card-title { font-size: 15px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg-input);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg-hover); }

/* Admin Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-warning:hover { background: #d97706; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-hover);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo i { font-size: 48px; color: var(--primary); }
.login-logo h1 { font-size: 24px; font-weight: 800; margin-top: 8px; }
.login-logo p { font-size: 14px; color: var(--text-muted); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 48px; color: var(--text-faint); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Toast Notification */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10001; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  min-width: 260px;
  max-width: 340px;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-error i { color: var(--danger); }

/* WAButton */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: var(--transition);
}
.wa-float:hover { background: #128c7e; transform: scale(1.1); }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .navbar-menu { display: none; }
  .navbar-left { gap: 0; }
  .hamburger { display: flex; }
  
  .slide img { height: 200px; }
  .slide-overlay { padding: 20px 24px; }
  .slide-content h2 { font-size: 20px; }
  
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .games-grid-lg { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .games-grid-sm { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  
  .detail-layout { grid-template-columns: 1fr; }
  .purchase-form-card { position: static; }
  
  .faq-grid { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social-col { grid-column: 1 / -1; }
  
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  
  .admin-main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); z-index: 1002; pointer-events: all; }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.3); pointer-events: all; }
  .sidebar * { pointer-events: all; }
  .hamburger-admin { display: flex; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .game-table { font-size: 12px; }
  
  .category-tabs.sticky-tabs { top: 56px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .games-grid-lg { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .games-grid-sm { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .game-card-sm .game-card-name { font-size: 11px; }
  .game-card-sm .game-card-body { padding: 6px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .terms-content { padding: 24px; }
}

/* ================================
   UTILITIES
   ================================ */
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.select-none { user-select: none; }

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Number formatting helper */
.price-tag { font-weight: 700; color: var(--primary); }

/* ================================
   HERO BRANDING SECTION (NEW)
   ================================ */
.hero-branding-section {
  padding-top: 64px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-branding-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-branding-inner {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.hero-branding-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-theme="light"] .hero-branding-title {
  background: linear-gradient(135deg, #1e293b 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-branding-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.hero-branding-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.hero-branding-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

/* ================================
   POPUP (NEW)
   ================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: popupFadeIn 0.4s ease 0.5s forwards;
}
@keyframes popupFadeIn { to { opacity: 1; } }
.popup-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 32px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  animation: popupScale 0.4s ease 0.5s forwards;
}
@keyframes popupScale { to { transform: scale(1); } }
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-hover);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}
.popup-close:hover { background: var(--danger); color: white; }
.popup-icon { font-size: 52px; margin-bottom: 16px; display: none; }
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.popup-content { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.popup-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.popup-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ================================
   GANGGUAN BADGE ON GAME CARD
   ================================ */
.disabled-card { position: relative; }
.gangguan-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
}
.badge-gangguan {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ================================
   MARKETPLACE PAGE (NEW)
   ================================ */
.marketplace-page { padding-top: 64px; }
.marketplace-hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.marketplace-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
}
.marketplace-hero-inner { position: relative; z-index: 1; }
.marketplace-hero h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  margin: 16px 0 12px;
}
.marketplace-hero p { color: var(--text-muted); font-size: 15px; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.market-card:hover {
  border-color: var(--primary);
  box-shadow: var(--card-glow);
  transform: translateY(-4px);
}
.market-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.market-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-faint);
}
.market-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  z-index: 1;
}
.badge-new { background: #3b82f6; }
.badge-hot { background: #ef4444; }
.badge-sale { background: #22c55e; }
.market-card-body { padding: 16px; }
.market-game-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 6px;
}
.market-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.market-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.market-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.market-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #25d366;
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.market-buy-btn:hover { background: #1da851; transform: translateY(-1px); }

/* ================================
   ADMIN STYLES UPDATE
   ================================ */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1003;
  transition: transform 0.3s ease;
  overflow-y: auto;
  pointer-events: all;
}
.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.admin-logo i { color: var(--primary); }
.admin-sidebar-close { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; }
.admin-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  flex: 1;
  pointer-events: all;
  position: relative;
  z-index: 1;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer !important;
  pointer-events: all !important;
  position: relative;
  z-index: 2;
  user-select: none;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--bg-hover);
  color: var(--text);
}
.admin-nav-item.active { color: var(--primary); border-left: 3px solid var(--primary); }
.admin-nav-item i { width: 18px; }

/* Admin Sidebar Dropdown Groups */
.admin-nav-group { margin: 2px 0; }
.admin-nav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.admin-nav-group-btn span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-nav-group-btn span i { width: 18px; color: var(--primary); opacity: 0.7; }
.admin-nav-group-btn:hover { background: var(--bg-hover); color: var(--text); }
.admin-nav-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.admin-nav-group.open .admin-nav-arrow { transform: rotate(180deg); }
.admin-nav-group-items {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding-left: 8px;
}
.admin-nav-group.open .admin-nav-group-items { max-height: 400px; }
.admin-nav-sub {
  font-size: 13px;
  padding: 8px 12px 8px 28px;
  border-left: 1px solid var(--border);
  border-radius: 0 6px 6px 0;
  margin: 1px 0;
}
.admin-nav-sub:hover, .admin-nav-sub.active {
  border-left-color: var(--primary);
  background: var(--bg-hover);
  color: var(--text);
}
.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}
.admin-menu-btn { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 20px; }
.admin-content { padding: 24px; flex: 1; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.admin-page-header h1 { font-size: 22px; font-weight: 800; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.admin-card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { font-size: 18px; font-weight: 700; }

/* Form controls in admin */
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.required { color: var(--danger); }
.optional { color: var(--text-faint); font-weight: 400; }
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-group { margin-bottom: 16px; }
textarea.form-control { resize: vertical; }

/* Responsive admin */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-sidebar-close { display: flex; }
  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: flex; }
}
@media (max-width: 640px) {
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-branding-inner { padding: 40px 16px 32px; }
}
@media (max-width: 400px) {
  .market-grid { grid-template-columns: 1fr; }
}

/* Toast notification - consolidated (no duplicate) */

/* text-red helper */
.text-red { color: #ef4444; }
/* text-primary alias for var */
html[data-theme="dark"] body { --text-primary: var(--text); }
html[data-theme="light"] body { --text-primary: var(--text); }

/* ================================
   REVIEWS SECTION
   ================================ */
.reviews-section {
  padding: 60px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.12);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, #4f46e5));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; gap: 2px; }
.review-name { font-size: 14px; font-weight: 700; color: var(--text); }
.review-game { font-size: 12px; color: var(--text-muted); }
.review-stars { color: #f59e0b; font-size: 13px; display: flex; gap: 2px; }
.review-text {
  font-size: 13px;
  color: var(--text-secondary, var(--text-muted));
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

/* ================================
   LIVE ORDER TOAST
   ================================ */
.live-order-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  z-index: 9000;
  max-width: 300px;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.live-order-toast.show {
  opacity: 1;
  transform: translateX(0);
}
.lo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.lo-body { flex: 1; }
.lo-name { font-weight: 700; color: var(--text); font-size: 13px; }
.lo-detail { font-size: 12px; color: var(--primary); margin-top: 2px; }
.lo-body { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ================================
   ADMIN SIDEBAR OVERLAY
   ================================ */
.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1002;
  display: none;
  pointer-events: none;
}
.admin-sidebar-overlay.show {
  display: block;
  pointer-events: all;
}

/* ================================
   BANNER SLIDER
   ================================ */
.hero-banner-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}
.banner-slider {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .banner-slider { height: 180px; }
}
.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1e3a8a;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
}
.banner-slide.active { opacity: 1; }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .banner-content { padding: 0 20px; }
}
.banner-title {
  font-size: 28px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
  .banner-title { font-size: 18px; }
}
.banner-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #f97316;
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}
.banner-cta-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.banner-arrow:hover { background: white; }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.banner-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ================================
   FLASH SALE - NEW STYLE
   ================================ */
/* ================================
   FLASH SALE SECTION - BLUE MODERN
   ================================ */
.flash-sale-section-new {
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.flash-header-new {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-card);
  /* putih/card - tidak ada gradient biru */
}
.flash-title-new {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}
.flash-title-new i {
  color: #f59e0b;
  font-size: 20px;
}
.flash-timer-new {
  display: flex;
  align-items: center;
  gap: 6px;
}
.timer-unit-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 38px;
}
.timer-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  min-width: 28px;
  text-align: center;
}
.timer-label-new {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.timer-colon-new {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.flash-nav-new {
  display: flex;
  gap: 6px;
}
.flash-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s;
}
.flash-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}
.flash-cards-wrapper {
  overflow: hidden;
  padding: 16px 20px;
}
.flash-cards-new {
  display: flex;
  gap: 12px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.flash-card-new {
  flex-shrink: 0;
  width: 220px;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.flash-card-new::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  pointer-events: none;
}
.flash-card-new::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none;
}
.flash-card-new:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.flash-card-img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.2);
}
.flash-card-body { flex: 1; min-width: 0; }
.flash-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.flash-card-game {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.flash-card-original {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.flash-card-promo-price {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.flash-card-discount {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 2px;
  border: 1px solid rgba(255,255,255,0.25);
}
.flash-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  color: #fde68a;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.6px;
  border: 1px solid rgba(253,230,138,0.3);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
@media (max-width: 640px) {
  .flash-cards-wrapper { padding: 12px; }
  .flash-card-new { width: 190px; }
  .flash-header-new { padding: 12px 16px; }
}

/* ================================
   FLASH SALE - REFERENCE STYLE (Green label + timer + white cards)
   ================================ */
.flash-sale-ref-wrap {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  min-height: 120px;
}
/* Green label left - like reference */
.flash-label-left {
  flex-shrink: 0;
  width: 110px;
  background: linear-gradient(160deg, #16a34a 0%, #15803d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  position: relative;
  overflow: hidden;
}
.flash-label-left::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.flash-label-badge {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Timer inside green label */
.flash-label-timer {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}
.flash-timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.flash-timer-item span {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 1px 4px;
  min-width: 22px;
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.flash-timer-item small {
  font-size: 8px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.flash-timer-sep {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
/* Nav buttons */
.flash-ref-nav {
  flex-shrink: 0;
  width: 32px;
  background: var(--bg-hover);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.flash-ref-nav:hover { background: var(--primary); color: #fff; }
/* Overflow scrollable area */
.flash-ref-overflow {
  flex: 1;
  overflow: hidden;
  padding: 12px 6px;
}
/* Cards container - horizontal slide */
.flash-cards-new {
  display: flex;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
/* Individual flash card - clean white card */
.flash-card-ref {
  flex-shrink: 0;
  width: 195px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.flash-card-ref:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: rgba(34,197,94,0.5);
}
.flash-card-ref-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.flash-card-ref-body { flex: 1; min-width: 0; }
.flash-card-ref-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flash-card-ref-game {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flash-card-ref-prices { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flash-card-ref-promo {
  font-size: 13px;
  font-weight: 800;
  color: #16a34a;
}
.flash-card-ref-orig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}
@media (max-width: 640px) {
  .flash-label-left { width: 88px; }
  .flash-label-badge { font-size: 13px; }
  .flash-timer-item span { font-size: 12px; min-width: 18px; }
  .flash-card-ref { width: 155px; }
}

/* ================================
   SOCIAL PROOF + TESTIMONIAL
   ================================ */
.sp-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .sp-layout { grid-template-columns: 1fr; gap: 36px; }
}
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.sp-headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--text);
}
@media (max-width: 768px) { .sp-headline { font-size: 24px; } }
.sp-subheadline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.sp-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sp-stat { text-align: center; }
.sp-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.sp-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sp-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.sp-cta-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.sp-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.sp-cta-secondary:hover { background: var(--border); }

/* Testimonial right side */
.sp-testimonials {
  position: relative;
  min-height: 220px;
}
.sp-testimonial-track { position: relative; }
.sp-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: none;
  animation: spFadeIn 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sp-review-card.active { display: block; }
@keyframes spFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sp-review-stars {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}
.sp-review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.sp-review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.sp-review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.sp-review-game {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.sp-testi-dots {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  justify-content: center;
}
.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.sp-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ================================
   VOUCHER FORM IMPROVEMENTS
   ================================ */
#voucherGroup { margin-top: 0; }

/* ================================
   LIGHT THEME (Force Light Only)
   ================================ */
.light-theme {
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --bg-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --navbar-bg: rgba(255, 255, 255, 0.97);
  --card-glow: 0 0 30px rgba(99, 102, 241, 0.05);
  --bg-secondary: #e8edf5;
  --bg-primary: #f1f5f9;
  background: #f1f5f9;
  color: #1e293b;
}

/* ================================
   BANNER SLIDER - 2:1 RATIO (Codashop Style)
   ================================ */
.hero-banner-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #1e3a8a;
  margin-top: 64px; /* navbar height */
}
.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 540px;
  overflow: hidden;
  background: #1e3a8a;
}
@media (max-width: 900px) {
  .banner-slider { aspect-ratio: 16/7; }
}
@media (max-width: 600px) {
  .banner-slider { aspect-ratio: 16/9; }
}
.banner-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1e3a8a;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: flex;
  align-items: center;
}
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 640px;
}
@media (max-width: 768px) {
  .banner-content { padding: 0 24px; }
}
.banner-title {
  font-size: 32px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
@media (max-width: 768px) { .banner-title { font-size: 20px; } }
.banner-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 20px;
  line-height: 1.5;
}
.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(249,115,22,0.45);
}
.banner-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,0.55); }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1e293b;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
}
.banner-arrow:hover { background: white; transform: translateY(-50%) scale(1.1); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.banner-dot.active {
  background: white;
  transform: scale(1.2);
  width: 24px;
  border-radius: 4px;
}

/* ================================
   NAVBAR SEARCH
   ================================ */
.navbar-search {
  position: relative;
  display: flex;
  align-items: center;
}
.navbar-search form {
  display: flex;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.navbar-search input {
  border: none;
  background: transparent;
  padding: 7px 4px 7px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 180px;
  transition: width 0.3s;
}
.navbar-search input:focus { width: 220px; }
.navbar-search button {
  background: none;
  border: none;
  padding: 7px 12px 7px 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  transition: color 0.2s;
}
.navbar-search button:hover { color: var(--primary); }
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 2000;
  display: none;
  overflow: hidden;
  min-width: 260px;
}
.nav-search-dropdown.show { display: block; }
.nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.nav-search-item:hover { background: var(--bg-hover); }
.nav-search-item img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.nav-search-item-name { font-size: 13px; font-weight: 600; }
.nav-search-item-cat { font-size: 11px; color: var(--text-muted); }

/* ================================
   PURCHASE FORM - 4 SECTIONS
   ================================ */
.purchase-form-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.pf-section {
  padding: 20px 20px 20px;
  border-bottom: 1px solid var(--border);
}
.pf-section:last-child { border-bottom: none; }
.pf-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.pf-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf1-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(99,102,241,0.08);
  border: 2px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
}
.pf1-selected-name { font-weight: 700; font-size: 14px; color: var(--text); }
.pf1-selected-price { font-weight: 800; font-size: 15px; color: var(--primary); }
.voucher-apply-btn {
  padding: 0 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  font-size: 13px;
  height: 42px;
  transition: background 0.2s;
}
.voucher-apply-btn:hover { background: var(--primary-dark); }
.voucher-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* Order Summary (inside form) */
.order-summary {
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.order-row.total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}
.order-total-price { color: var(--primary); font-size: 18px; font-weight: 800; }
.fw-semibold { font-weight: 600; color: var(--text); }
.price-tag { font-weight: 700; color: var(--text); }

/* ================================
   BANTUAN / CARA ORDER (homepage)
   ================================ */
.bantuan-home-section {
  padding: 48px 0 40px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.cara-order-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cara-step {
  flex: 1;
  min-width: 160px;
  background: var(--bg-hover);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
}
.cara-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.cara-step h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.cara-step p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ================================
   REMOVE MAIN SECTION TOP PADDING
   (since banner has margin-top)
   ================================ */
.main-section {
  padding: 24px 0;
}

/* ================================
   RESPONSIVE MEDIA QUERY UPDATES
   ================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-menu { display: none; }
  .navbar-search { display: none; }
}


/* ================================
   MEMBER AREA STYLES
   ================================ */
.member-nav-link {
  font-weight: 600;
  color: var(--primary) !important;
}
.member-nav-link:hover {
  color: var(--primary-hover) !important;
}

/* Product card member price */
.product-card .member-price-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

/* Admin pricing page enhancements */
.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
}

/* Member login form improvements */
@media (max-width: 480px) {
  .admin-card .modal-box { max-width: 95vw; }
}

/* =====================
   TRUST / WHY CHOOSE US SECTION - AlphaOne Style (Purple/Blue Accent)
   ===================== */
.trust-section {
  padding: 80px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* AlphaOne Layout: left text + right grid */
.trust-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}
.trust-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: #818cf8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.trust-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  /* no gradient — plain white/text color */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
.trust-subtitle {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.trust-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  width: fit-content;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.trust-right-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1100px) {
  .trust-layout { grid-template-columns: 280px 1fr; gap: 40px; }
  .trust-right-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .trust-layout { grid-template-columns: 1fr; gap: 28px; }
  .trust-right-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-left { align-items: center; text-align: center; }
  .trust-badge-pill { margin: 0 auto; }
  .trust-cta-btn { margin: 0 auto; }
  .trust-title { font-size: clamp(18px, 5vw, 22px); }
  .trust-subtitle { font-size: 13px; }
}
@media (max-width: 480px) {
  .trust-right-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .trust-section { padding: 48px 0 36px; }
}
/* Trust heading for old ref compat */
.trust-heading { display: none; }
/* Trust Card - AlphaOne style */
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px 20px;
  text-align: left;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.trust-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #818cf8, #22c55e);
  opacity: 0;
  transition: opacity 0.25s;
}
.trust-card:hover::after { opacity: 1; }
.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.15), 0 4px 12px rgba(0,0,0,0.1);
  border-color: rgba(99,102,241,0.3);
}
/* Icon - purple circle AlphaOne style */
.trust-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(129,140,248,0.1));
  border: 1.5px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #818cf8;
  margin: 0 0 14px 0;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.trust-card:hover .trust-icon-wrap {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(129,140,248,0.2));
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.trust-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.trust-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* =====================
   MAIN BANNER SECTION
   ===================== */
/* ================================================
   UNIPLAY-STYLE BANNER — full-width, aspect-ratio,
   teks aman di safe-zone tengah, tidak terpotong
   ================================================ */
/* =====================================================
   SEAGM-STYLE BANNER — 16:6 ratio, contain, no crop
   Gambar selalu tampil utuh, proporsi terjaga semua device
   ===================================================== */
.main-banner-section {
  padding: 12px 0 0;
  background: var(--bg);
}

/* Container banner pakai padding normal */
.main-banner-section .container {
  padding: 0 16px;
  max-width: 1280px;
}

/* ── Wrapper luar: menampung track + dots ── */
.main-banner-carousel {
  position: relative;
  width: 100%;
  background: transparent;
}

/* ── Track berisi satu slide aktif, ratio 16:6 ── */
.main-banner-track {
  position: relative;
  width: 100%;
  /* Rasio SEAGM: 16:6 = 2.667:1 */
  aspect-ratio: 16 / 6;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* ── Setiap slide menggunakan <img> contain agar tidak crop ── */
.main-banner-card {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.main-banner-card.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bannerFadeIn 0.35s ease;
}
@keyframes bannerFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Gambar banner: CONTAIN agar seluruh gambar terlihat ── */
.main-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* TIDAK TERPOTONG */
  object-position: center;
  display: block;
  border-radius: 12px;
}

/* ── Background-image fallback (jika admin pakai URL tanpa <img>) ── */
.main-banner-card[data-bg] {
  background-size: contain;   /* TIDAK TERPOTONG */
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Overlay tipis hanya untuk teks — TIDAK menutupi gambar sisi ── */
.main-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 40%,
    transparent 65%
  );
  pointer-events: none;
  border-radius: 12px;
}

/* ── Konten teks dalam safe-zone kiri ── */
.main-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5% 0 5%;
  gap: 8px;
  max-width: 52%;
  z-index: 2;
}

/* ── Navigasi arrow ── */
.main-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.main-banner-prev { left: 10px; }
.main-banner-next { right: 10px; }
.main-banner-arrow:hover {
  background: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.08);
}

/* ── Dots di bawah track ── */
.main-banner-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 8px;
}
.main-banner-dot {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.main-banner-dot.active {
  background: var(--primary);
  width: 28px;
}

/* ── Teks / tag / headline / CTA ── */
.main-banner-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.main-banner-headline {
  font-size: clamp(13px, 2.4vw, 28px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  word-break: keep-all;
}
.main-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(5px,0.9vw,10px) clamp(10px,1.8vw,20px);
  background: var(--primary);
  color: white;
  border-radius: 7px;
  font-size: clamp(10px,1vw,13px);
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px rgba(99,102,241,0.45);
  white-space: nowrap;
}
.main-banner-cta:hover { background: #4338ca; transform: translateY(-2px); }

/* ══ RESPONSIVE ══════════════════════════════════════
   Rasio tetap 16:6 di semua breakpoint — tidak berubah
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Rasio tetap 16:6 — tidak berubah */
  .main-banner-track { aspect-ratio: 16 / 6; }
  .main-banner-section .container { padding: 0 12px; }
}
@media (max-width: 768px) {
  /* Rasio tetap 16:6 — mobile pun tidak berubah */
  .main-banner-track { aspect-ratio: 16 / 6; border-radius: 10px; }
  .main-banner-img { border-radius: 10px; }
  .main-banner-overlay { border-radius: 10px; }
  .main-banner-section { padding: 8px 0 0; }
  .main-banner-section .container { padding: 0 10px; }
  .main-banner-content { max-width: 72%; gap: 5px; padding: 0 4% 0 4%; }
  .main-banner-arrow { width: 28px; height: 28px; font-size: 10px; }
  .main-banner-prev { left: 6px; }
  .main-banner-next { right: 6px; }
  .main-banner-dots { margin-top: 6px; }
}
@media (max-width: 480px) {
  /* Rasio tetap 16:6 — konsisten */
  .main-banner-track { aspect-ratio: 16 / 6; border-radius: 8px; }
  .main-banner-img { border-radius: 8px; }
  .main-banner-overlay { border-radius: 8px; }
  .main-banner-section .container { padding: 0 8px; }
  .main-banner-content { max-width: 85%; gap: 4px; padding: 0 3% 0 3%; }
  .main-banner-arrow { width: 24px; height: 24px; font-size: 9px; }
  .main-banner-dots { gap: 4px; margin-top: 5px; }
  .main-banner-dot { width: 14px; height: 3px; }
  .main-banner-dot.active { width: 22px; }
}

/* Discover / old banner – keep classes for reference but hidden */
.discover-section { display: none; }
.hero-banner-section { display: none; }
.about-content-body h2 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.about-content-body h3 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; color: var(--text); }
.about-content-body p { margin: 0 0 14px; }
.about-content-body ul, .about-content-body ol { padding-left: 20px; margin: 0 0 14px; }
.about-content-body li { margin-bottom: 6px; }
.about-content-body strong { font-weight: 700; }

/* =====================
   MARKETPLACE REDESIGN (E-Commerce Style)
   ===================== */
.mkt-page { padding-top: 64px; min-height: 60vh; }

/* Hero */
.mkt-hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 56px 0 36px;
  text-align: center;
}
.mkt-hero-inner { position: relative; z-index: 1; }
.mkt-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}
.mkt-hero-title {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 10px;
}
.mkt-hero-sub { color: var(--text-muted); font-size: 14px; margin: 0; }

/* Toolbar */
.mkt-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mkt-search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.mkt-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.mkt-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.mkt-search-input:focus { border-color: var(--primary); }
.mkt-count { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* Filter tags */
.mkt-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.mkt-filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.mkt-filter-btn.active, .mkt-filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Marketplace Grid */
.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .mkt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 380px) {
  .mkt-grid { grid-template-columns: 1fr; }
}

/* Marketplace Card */
.mkt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.mkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  border-color: var(--primary);
}
.mkt-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-hover);
  height: 190px;
}
.mkt-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.mkt-card:hover .mkt-card-img { transform: scale(1.04); }
.mkt-card-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--text-faint);
}
.mkt-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: white;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mkt-badge-new { background: #3b82f6; }
.mkt-badge-hot { background: #ef4444; }
.mkt-badge-sale { background: #22c55e; }

.mkt-card-body { padding: 14px 14px 12px; flex: 1; display: flex; flex-direction: column; }
.mkt-game-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 5px;
}
.mkt-card-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  flex: 1;
}
.mkt-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}
.mkt-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.mkt-cta-hint {
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* =====================
   MARKETPLACE DETAIL PAGE
   ===================== */
.mkt-detail-page { padding-top: 64px; min-height: 60vh; }
.mkt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mkt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .mkt-detail-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Gallery */
.mkt-gallery { position: sticky; top: 80px; }
.mkt-gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mkt-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.mkt-gallery-ph {
  font-size: 80px;
  color: var(--text-faint);
}
.mkt-badge-detail {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: white;
  z-index: 2;
  text-transform: uppercase;
}
.mkt-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mkt-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
}
.mkt-thumb.active, .mkt-thumb:hover { border-color: var(--primary); }
.mkt-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.mkt-detail-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.mkt-detail-title {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.3;
  color: var(--text);
}
.mkt-detail-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 20px;
}
.mkt-detail-section { margin-bottom: 20px; }
.mkt-detail-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mkt-detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-hover);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  white-space: pre-wrap;
}

/* CTAs */
.mkt-detail-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mkt-detail-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: #25d366;
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.mkt-detail-buy-btn:hover { background: #1ea854; transform: translateY(-1px); }
.mkt-detail-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.mkt-detail-back-btn:hover { background: var(--border); }

/* Trust badges */
.mkt-detail-trust {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg-hover);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.mkt-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ================================
   NEWS / BERITA SECTION
   ================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.news-card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-hover);
  flex-shrink: 0;
}
.news-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.news-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.news-cat-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.news-cat-btn:hover, .news-cat-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.news-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.news-content p {
  margin-bottom: 16px;
}
/* Flash Sale badge selection styling */
.fs-badge-opt.selected {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* ================================
   REVIEW PAGE FULL
   ================================ */
.review-hero-section {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 40px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  flex-wrap: wrap;
}
.review-overall-score {
  text-align: center;
  min-width: 120px;
}
.review-big-rating {
  font-size: 64px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.review-rating-bars { flex: 1; min-width: 200px; }
.reviews-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.review-card-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.review-card-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .review-hero-section { padding: 24px 20px; gap: 20px; }
  .review-big-rating { font-size: 48px; }
  .reviews-grid-full { grid-template-columns: 1fr; }
}

/* ================================
   POPULAR GAMES - Styled Background Bar
   ================================ */
/* ================================
   POPULAR GAMES — INFINITE AUTO-SCROLL
   ================================ */
.popular-games-section {
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(99,102,241,0.10) 0%, rgba(139,92,246,0.08) 50%, rgba(59,130,246,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 18px;
  padding: 18px 0 16px;
  position: relative;
  overflow: hidden;
}
.popular-games-section::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.popular-games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}
.popular-games-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.popular-games-title .fa-fire {
  color: #f97316;
  filter: drop-shadow(0 2px 4px rgba(249,115,22,0.4));
}

/* Produk Unggulan — horizontal scroll by user */
.pop-carousel-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,0.4) transparent;
  padding-bottom: 6px;
}
.pop-carousel-wrap::-webkit-scrollbar {
  height: 4px;
}
.pop-carousel-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.pop-carousel-wrap::-webkit-scrollbar-thumb {
  background: rgba(99,102,241,0.4);
  border-radius: 4px;
}

/* Track horizontal flex */
.pop-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  padding: 6px 18px 8px;
  animation: none !important;
}

/* Individual game card in popular carousel */
.pop-game-card {
  flex-shrink: 0;
  width: 130px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  /* Glow border effect */
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1.5px rgba(99,102,241,0.35),
    0 0 12px rgba(99,102,241,0.18),
    0 2px 8px rgba(0,0,0,0.15);
}
.pop-game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(99,102,241,0.7) 0%, rgba(139,92,246,0.5) 50%, rgba(249,115,22,0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.25s;
  opacity: 0.6;
}
.pop-game-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 0 0 1.5px rgba(99,102,241,0.7),
    0 0 22px rgba(99,102,241,0.4),
    0 0 40px rgba(139,92,246,0.2),
    0 6px 20px rgba(0,0,0,0.2);
}
.pop-game-card:hover::before { opacity: 1; }

@media (max-width: 640px) {
  .pop-game-card { width: 110px; flex-shrink: 0; }
  .popular-games-section { padding: 14px 0 12px; }
  .pop-carousel-track { gap: 10px; padding: 6px 12px 8px; }
}

/* ================================
   LOAD MORE BUTTON
   ================================ */
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
/* Hidden game cards */
.game-card.game-hidden { display: none !important; }
.game-card.game-reveal {
  animation: gameReveal 0.3s ease both;
}
@keyframes gameReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================================
   BLOG / NEWS HOMEPAGE SECTION
   ================================ */
.blog-home-section {
  padding: 48px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.blog-home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.blog-home-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-home-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.blog-home-see-all {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-card);
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-home-see-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-home-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.blog-home-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-hover);
}
.blog-home-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-home-card:hover .blog-home-img { transform: scale(1.05); }
.blog-home-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  opacity: 0.3;
}
.blog-home-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-home-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-home-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-home-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-home-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
@media (max-width: 768px) {
  .blog-home-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-home-header { flex-direction: column; }
}

/* =====================
   NAVBAR MORE MENU DROPDOWN
   ===================== */
.nav-more-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
  margin-left: 4px;
}
.nav-more-btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: var(--primary);
}
.nav-more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 8px;
  display: none;
  z-index: 1200;
  animation: dropdownFade 0.18s ease;
}
.nav-more-dropdown.open { display: block; }
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.nav-more-item i {
  width: 16px;
  text-align: center;
  color: var(--primary);
  font-size: 13px;
}
.nav-more-item:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

/* =====================
   POPULAR GAMES BADGE LABEL
   ===================== */
.popular-badge-label {
  position: absolute;
  top: 7px;
  left: 7px;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(99,102,241,0.4);
  display: flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
}
.popular-game-item {
  position: relative;
}

/* =====================
   CEK TRANSAKSI HERO SECTION
   ===================== */
.cek-tx-hero {
  padding: 32px 0 24px;
}
.cek-tx-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cek-tx-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 8px;
}
.cek-tx-form-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.cek-tx-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  gap: 10px;
  transition: border-color 0.2s;
}
.cek-tx-input-wrap:focus-within {
  border-color: var(--primary);
}
.cek-tx-input-icon {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}
.cek-tx-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 13px 0;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.cek-tx-input::placeholder { color: var(--text-muted); }
.cek-tx-btn {
  padding: 13px 22px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.cek-tx-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}
.cek-tx-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.cek-tx-wa-link {
  color: #22c55e;
  font-weight: 700;
  text-decoration: none;
}
.cek-tx-wa-link:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .cek-tx-form-row { flex-direction: column; }
  .cek-tx-btn { justify-content: center; }
}

/* =====================
   REVIEW FORM CARD (order/waiting success)
   ===================== */
.review-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.review-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.star-rating-input {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.star-inp {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}
.star-inp:hover { transform: scale(1.2); }

/* =====================
   TRUST SECTION MAX-WIDTH FIX
   ===================== */
.trust-heading {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 52px;
}
/* duplicate overridden by main definition above */


/* ============================
   PAYMENT METHOD CAROUSEL
   ============================ */
.pm-carousel-section {
  padding: 20px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.pm-carousel-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pm-carousel-track-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.pm-carousel-track {
  display: flex;
  align-items: center;
  gap: 0;
  will-change: transform;
  animation: pmScroll 25s linear infinite;
  width: max-content;
}
.pm-carousel-track:hover {
  animation-play-state: paused;
}
@keyframes pmScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.pm-carousel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  min-width: 140px;
}
.pm-carousel-logo {
  width: 44px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
  background: white;
  padding: 3px;
  flex-shrink: 0;
}
.pm-carousel-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .pm-carousel-item { min-width: 120px; padding: 8px 16px; }
  .pm-carousel-logo { width: 36px; height: 24px; }
}

/* ============================
   PRODUCT CARD (Nominal) - No cart icon, clean style
   ============================ */
.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 14px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  text-align: center;
}
.product-card::before { display: none !important; content: none !important; }
.product-card::after { display: none !important; content: none !important; }
.product-card:hover {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.15);
}

/* ============================
   PROFIT FILTER BUTTONS (Dashboard Admin)
   ============================ */
.profit-filter-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.profit-filter-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.profit-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* =============================================
   GAME DETAIL PAGE v24 - REVAMP HERO & FORM
   ============================================= */

/* Hero Banner */
.gd-hero {
  position: relative;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 64px; /* navbar height */
  display: flex;
  align-items: flex-end;
}
.gd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0.45) 0%, rgba(10,10,20,0.82) 100%);
}
.breadcrumb-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.75);
}
.breadcrumb-hero a { color: rgba(255,255,255,0.9); }
.breadcrumb-hero a:hover { color: #fff; }
.breadcrumb-hero i { color: rgba(255,255,255,0.5); }
.breadcrumb-hero span { color: rgba(255,255,255,0.95); }

/* Main layout wrap */
.gd-main-wrap {
  padding: 32px 0 60px;
  background: var(--bg);
}
.gd-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: start;
}

/* LEFT SIDE */
.gd-left { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }

/* Glass Card */
.gd-glass-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.13) 0%, rgba(139,92,246,0.08) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.12);
}
[data-theme="light"] .gd-glass-card {
  background: linear-gradient(135deg, rgba(99,102,241,0.07) 0%, rgba(139,92,246,0.05) 100%);
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 4px 24px rgba(99,102,241,0.1);
}
.gd-game-header { display: flex; gap: 16px; margin-bottom: 16px; }
.gd-game-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid rgba(99,102,241,0.4);
  flex-shrink: 0;
}
.gd-game-meta { flex: 1; min-width: 0; }
.gd-game-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 4px; line-height: 1.2; }
/* gd-game-desc removed - replaced by gd-game-desc-full */
.gd-game-desc-full {
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.6;
  /* No line-clamp - show full description */
}
.gd-store-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.gd-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
[data-theme="light"] .gd-store-badge {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.12);
}

/* Trust Badges Grid */
.gd-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(99,102,241,0.2);
}
.gd-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 10px 4px;
  background: rgba(99,102,241,0.07);
  border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.15);
  transition: all 0.2s;
}
.gd-trust-item:hover { background: rgba(99,102,241,0.14); }
.gd-trust-icon { font-size: 18px; color: var(--primary); }
.gd-trust-label { font-size: 10px; font-weight: 600; color: var(--text-muted); line-height: 1.3; }

/* Action bar */
.gd-action-bar {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.gd-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.gd-action-btn:hover { background: var(--bg-hover); color: var(--text); }
.gd-action-btn.active { background: var(--primary); color: #fff; }

/* Tab panels */
.gd-tab-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.gd-tab-active { display: block; }

/* Cara Order steps */
.gd-cara-order { display: flex; flex-direction: column; gap: 12px; }
.gd-co-step { display: flex; align-items: flex-start; gap: 12px; }
.gd-co-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.gd-co-text strong { font-size: 13px; font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; }
.gd-co-text p { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* RIGHT SIDE - Form sections */
.gd-right { display: flex; flex-direction: column; gap: 16px; }
.gd-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.gd-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-hover);
}
.gd-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gd-form-body { padding: 20px; }
.gd-products-grid { padding: 16px 16px 20px !important; }

/* Products grid inside gd-section-card */
.gd-section-card .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px;
  margin-top: 0;
}

/* Product card: WHITE background when selected */
.product-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  text-align: center;
}
.product-card:hover { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.product-card.selected {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}
[data-theme="dark"] .product-card.selected {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.4);
}
[data-theme="dark"] .product-card.selected .product-name { color: #1e1e2e !important; font-weight: 700; }
[data-theme="dark"] .product-card.selected .product-price { color: #4f46e5 !important; font-weight: 800; }
[data-theme="dark"] .product-card.selected .product-original-price { color: #64748b !important; }
.product-card.selected .product-name { color: var(--primary); font-weight: 700; }
.product-card.selected .product-price { color: var(--primary); font-weight: 800; }

/* Nominal selected display */
.gd-nominal-selected {
  padding: 14px 16px;
  background: var(--bg-hover);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  border: 2px dashed var(--border);
  transition: all 0.2s;
}
.gd-nominal-selected.has-value {
  background: rgba(99,102,241,0.06);
  border-style: solid;
  border-color: var(--primary);
}

/* FAQ inside detail page */
/* gd-glass-card header - no bottom margin when desc follows */
.gd-glass-card .gd-game-header { margin-bottom: 0; }

/* FAQ inside detail page */
.gd-faq-list { display: flex; flex-direction: column; }
.gd-faq-list .faq-item { border-bottom: 1px solid var(--border); }
.gd-faq-list .faq-item:last-child { border-bottom: none; }
.gd-faq-list .faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.gd-faq-list .faq-question:hover { color: var(--primary); }
.gd-faq-list .faq-question i { transition: transform 0.25s; color: var(--text-muted); flex-shrink: 0; }
.gd-faq-list .faq-question.open i { transform: rotate(45deg); color: var(--primary); }
.gd-faq-list .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.3s ease; padding: 0 20px; }
.gd-faq-list .faq-answer.open { max-height: 600px !important; padding: 0 20px 14px; }
.gd-faq-list .faq-answer p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Global: all product-card pseudo hidden */
.product-card::before, .product-card::after { display: none !important; content: none !important; }

/* ======================================
   GAME RECOMMENDATION BAR-BOX SECTION
   ====================================== */
.game-rec-section { margin-top: 0; }
.game-rec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
}
.game-rec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}
.game-rec-card:last-child { border-bottom: none; }
.game-rec-card:hover {
  background: rgba(99,102,241,0.06);
  color: var(--primary);
}
.game-rec-card:hover .game-rec-name { color: var(--primary); }
.game-rec-card:first-child { border-radius: 0 0 0 0; }
.game-rec-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.game-rec-info { flex: 1; min-width: 0; }
.game-rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.game-rec-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.game-rec-arrow {
  font-size: 11px;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.game-rec-card:hover .game-rec-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
  .gd-layout { grid-template-columns: 1fr; }
  .gd-left { position: static; }
  .gd-trust-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .gd-main-wrap { padding-top: 80px !important; padding-bottom: 40px; }
  .gd-game-title { font-size: 17px; }
  .gd-game-thumb { width: 64px; height: 64px; }
  .gd-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-action-bar { gap: 4px; padding: 6px; }
  .gd-action-btn { font-size: 11px; padding: 8px 4px; }
  .gd-section-card .products-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; }
}

/* ======================================
   MARKETPLACE PAGE v26 - FULL REVAMP
   ====================================== */

/* Page wrapper */
.mkt-page-v2 {
  padding-top: 74px;
  min-height: 80vh;
  background: var(--bg);
}

/* ---- Section Title Bar (below navbar, above tabs) ---- */
.mkt-section-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 0;
  margin-bottom: 0;
}

/* ---- Banner ---- */
.mkt-banner-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.mkt-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.mkt-banner-gradient {
  background: linear-gradient(135deg, #1a1a3e 0%, #4c1d95 50%, #1e3a5f 100%);
}
.mkt-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,5,20,0.35) 0%, rgba(5,5,20,0.75) 100%);
  display: flex;
  align-items: center;
  width: 100%;
}
.mkt-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 0 8px;
}
.mkt-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.mkt-banner-title {
  font-size: clamp(20px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.mkt-banner-sub {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin: 0;
}

/* ---- Body ---- */
.mkt-body {
  padding: 20px 0 60px;
}

/* ---- Category Tabs ---- */
.mkt-cat-tabs-wrap {
  margin-bottom: 20px;
  position: relative;
}
.mkt-cat-tabs-wrap::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.mkt-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
  padding-right: 40px;
}
.mkt-cat-tabs::-webkit-scrollbar { display: none; }
.mkt-cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.mkt-cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,0.06);
}
.mkt-cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ---- Toolbar v2 ---- */
.mkt-toolbar-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ---- Empty state ---- */
.mkt-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.mkt-empty i { font-size: 56px; opacity: 0.25; margin-bottom: 16px; display: block; }
.mkt-empty p { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.mkt-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* ---- mkt-cta-btn (Lihat) ---- */
.mkt-cta-btn {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 3px 10px;
}

/* ---- Responsive banner ---- */
@media (max-width: 768px) {
  .mkt-banner-wrap { height: 200px; }
  .mkt-banner-title { font-size: 20px; }
}
@media (max-width: 480px) {
  .mkt-banner-wrap { height: 160px; }
  .mkt-banner-title { font-size: 17px; }
  .mkt-cat-tab { font-size: 12px; padding: 7px 14px; }
}

/* ======================================
   PAYMENT METHOD ACCORDION
   ====================================== */
.pm-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 4px;
}
.pm-acc-group {
  border-bottom: 1px solid var(--border);
}
.pm-acc-group:last-child { border-bottom: none; }

.pm-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  color: var(--text);
}
.pm-acc-header:hover { background: rgba(99,102,241,0.04); }
.pm-acc-header.open { background: rgba(99,102,241,0.05); }

.pm-acc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 14px;
}
.pm-acc-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.pm-acc-logos {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}
.pm-acc-logo-preview {
  width: 32px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  padding: 2px;
}
.pm-acc-extra {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
}
.pm-acc-chevron {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.pm-acc-header.open .pm-acc-chevron { transform: rotate(180deg); }
.pm-acc-header.open .pm-acc-icon {
  background: rgba(99,102,241,0.18);
  color: var(--primary);
}

/* Accordion body */
.pm-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 20px;
}
.pm-acc-body.open {
  max-height: 600px;
  padding: 0 20px 12px;
}
.pm-acc-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Individual payment method item inside accordion */
.pm-acc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: 2px solid var(--border);
  margin-bottom: 6px;
  background: var(--bg-input);
  position: relative;
}
.pm-acc-item:last-child { margin-bottom: 0; }
.pm-acc-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pm-acc-item:hover { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.pm-acc-item:has(input:checked) {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}
[data-theme="dark"] .pm-acc-item:has(input:checked) {
  background: #ffffff;
}
[data-theme="dark"] .pm-acc-item:has(input:checked) .pm-acc-item-name {
  color: #1e1e2e;
}
.pm-acc-item-img {
  width: 40px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.pm-acc-item-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pm-acc-check {
  font-size: 16px;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.pm-acc-item:has(input:checked) .pm-acc-check { opacity: 1; }
.pm-acc-item:has(input:checked) .pm-acc-item-name { color: var(--primary); font-weight: 700; }

/* ======================================
   VOUCHER / KODE PROMO SECTION
   ====================================== */
.voucher-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.voucher-input {
  flex: 1;
  min-width: 0;
}
.voucher-apply-btn {
  flex-shrink: 0;
  padding: 0 22px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
  min-height: 44px;
}
.voucher-apply-btn:hover { background: var(--primary-dark, #4f46e5); transform: translateY(-1px); }
.voucher-apply-btn:active { transform: translateY(0); }

/* ======================================
   POPULAR SECTION - HOMEPAGE
   ====================================== */
.pop-section {
  margin: 20px 0 0;
  padding: 20px 0 36px;
}
.pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pop-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pop-title i { color: #f97316; }

.pop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  min-width: 0;
}
.pop-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
  transform: translateY(-2px);
}
.pop-card-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.pop-card-info {
  min-width: 0;
  flex: 1;
}
.pop-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.pop-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* dark mode pop card */
[data-theme="dark"] .pop-card { background: var(--bg-card); }
[data-theme="dark"] .pop-card:hover { border-color: var(--primary); }

/* Responsive Popular */
@media (max-width: 1024px) {
  .pop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .pop-card { padding: 9px 10px; gap: 9px; }
  .pop-card-img { width: 38px; height: 38px; }
  .pop-card-name { font-size: 12px; }
  .pop-section { margin: 12px 0 0; padding-bottom: 28px; }
}
@media (max-width: 380px) {
  .pop-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pop-card { padding: 8px 8px; gap: 8px; }
}

/* ======================================
   ORDER FORM RESPONSIVE FIXES
   ====================================== */
.gd-section-card { margin-bottom: 12px; }
.gd-section-card:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .pm-acc-header { padding: 12px 14px; gap: 10px; }
  .pm-acc-body.open { padding: 0 14px 10px; }
  .pm-acc-logo-preview { width: 26px; height: 17px; }
  .pm-acc-label { font-size: 13px; }
  .voucher-row { flex-direction: row; gap: 8px; }
  .voucher-apply-btn { padding: 0 14px; font-size: 13px; }
}
