/* ==========================================
   Pixstore PREMIUM STYLE SHEET
   Visual Identity: Vygaming.id Inspired Theme
   Colors: Slate Dark (#0e1018), Cyber Blue (#0066ff), Golden Yellow (#eab308)
   ========================================== */

/* Global Variables */
:root {
  --bg-dark-black: #0e1018; /* Dark navy-slate for header and footer */
  --bg-body: #07090e;       /* Very dark space blue background */
  --bg-card: #0f1320;       /* Lighter slate card background */
  --bg-card-hover: #151b2e; /* Soft glow background on hover */
  --bg-input: #0a0d16;      /* Dark input background */
  
  --primary-blue: #0066ff;
  --primary-blue-hover: #257eff;
  --primary-glow: rgba(0, 102, 255, 0.25);
  
  --accent-orange: #f97316;
  --accent-yellow: #eab308;
  
  --text-white: #f8fafc;    /* Off-white text */
  --text-gray: #94a3b8;     /* Gray-400 slate text */
  --text-muted: #64748b;    /* Gray-500 muted text */
  
  --border-color: rgba(0, 102, 255, 0.15); /* Sleek neon blue border */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #242838;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-white);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover {
  color: var(--text-white);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-green { color: #10b981 !important; }
.text-red { color: #ef4444 !important; }
.text-orange { color: var(--accent-orange) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.font-bold { font-weight: 700; }
.font-sm { font-size: 0.85rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.d-inline-block { display: inline-block; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* TOP HEADER BAR */
.top-header {
  background-color: rgba(14, 16, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}
.logo-icon {
  color: var(--primary-blue);
  font-size: 1.7rem;
}
.header-logo span span {
  color: var(--primary-blue);
}

/* Header Search */
.header-search {
  position: relative;
  flex: 1;
  margin: 0 2.5rem;
  max-width: 950px;
}
.header-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.8rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.header-search input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-glow);
  outline: none;
}
.header-search .search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Language selector button */
.btn-lang {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}
.btn-lang .flag-icon {
  display: flex;
  align-items: center;
  font-size: 0.6rem;
}

/* SUB HEADER NAVIGATION */
.sub-navbar {
  background-color: rgba(14, 16, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 55px;
  position: sticky;
  top: 70px;
  z-index: 99;
}
.sub-navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.nav-tabs {
  display: flex;
  height: 100%;
}
.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  transition: color 0.25s;
}
.nav-tab-btn:hover {
  color: var(--text-white);
}
.nav-tab-btn.active {
  color: var(--primary-blue);
  font-weight: 600;
}
.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px 3px 0 0;
}

.btn-login-header {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s;
}
.btn-login-header:hover {
  color: var(--text-white);
}

/* MAIN VIEW CONTAINER */
.main-content {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.spa-view {
  display: none;
}
.spa-view.active {
  display: block;
  animation: fadeIn 0.35s ease-out forwards;
}

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

/* HOME VIEW */
/* Banner Carousel */
.promo-banner {
  border-radius: 18px;
  height: 230px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.banner-overlay-text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--text-white), var(--text-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.banner-overlay-text p {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 550px;
}

/* Populer Sekarang Header */
.populer-header {
  margin-bottom: 1.5rem;
}
.populer-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.populer-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* Game Grid (Horizontal Layout) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 780px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: linear-gradient(135deg, var(--bg-card) 30%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
  box-shadow: 0 6px 20px var(--primary-glow);
}
.game-card-img-wrapper {
  flex-shrink: 0;
}
.game-card-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  font-size: 2rem;
  transition: transform 0.25s;
}
.game-card:hover .game-card-img {
  transform: scale(1.05);
}
.game-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.game-card-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
}
.game-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Features Grid Info */
.features-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 650px) {
  .features-info-grid {
    grid-template-columns: 1fr;
  }
}
.feat-info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feat-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
}
.feat-info-card h4 {
  font-size: 1.1rem;
}
.feat-info-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* ORDER VIEW LAYOUT */
/* Banner Game Top Page */
.order-header-banner {
  background: linear-gradient(to right, #eff6ff, #dbeafe);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  height: 250px;
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  overflow: hidden;
}
.order-banner-graphics {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.banner-logo-text {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.015);
  text-transform: uppercase;
  letter-spacing: 5px;
  user-select: none;
}
.order-game-avatar-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}
.order-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  background-color: var(--bg-body);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.order-avatar-details h2 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}
.order-avatar-details p {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.order-avatar-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.order-avatar-badges span {
  font-size: 0.75rem;
  color: var(--text-gray);
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Grid Order Split Layout */
.order-split-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .order-split-layout {
    grid-template-columns: 1fr;
  }
}

.order-form-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.order-step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}
.step-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}
.step-num {
  background-color: var(--primary-blue);
  color: var(--text-white);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}
.step-card-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Inputs styling */
.inputs-row {
  display: flex;
  gap: 1rem;
}
.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.8rem;
}
.input-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
}
.input-field input, .input-field select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.input-field input:focus, .input-field select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 8px var(--primary-glow);
  outline: none;
}
.id-tip-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Products Section inside select step */
.prod-category-section {
  margin-bottom: 1.5rem;
}
.prod-category-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--primary-blue);
  padding-left: 0.5rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}
.prod-item-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.prod-item-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.25);
  background-color: var(--bg-card-hover);
}
.prod-item-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.prod-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.prod-card-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.4);
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.2s;
}
.prod-item-card:hover .prod-card-icon {
  transform: scale(1.05);
}
.prod-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.prod-name-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}
.prod-price-lbl {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
}
.prod-item-card.selected {
  border-color: var(--primary-blue);
  background-color: rgba(0, 102, 255, 0.12);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.35);
}

/* Payment selection */
.pay-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.8rem;
}
@media (max-width: 580px) {
  .pay-methods-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}
.pay-method-card {
  position: relative;
  display: block;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  background-color: var(--bg-input);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}
.pay-method-card input[type="radio"] {
  position: absolute;
  opacity: 0; /* Sembunyikan radio button asli karena kartu ter-highlight saat checked */
}
.pay-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.pay-card-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.pay-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.pay-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pay-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-white);
}
.pay-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.pay-badge.green {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e !important;
}
.pay-badge.amber {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b !important;
}
.pay-card-right {
  text-align: right;
}
.pay-est-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-blue);
  transition: color 0.2s;
}
.pay-method-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
  background-color: var(--bg-card-hover);
}
.pay-method-card:has(input:checked) {
  border-color: var(--primary-blue);
  background-color: rgba(0, 102, 255, 0.12);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}
.pay-method-card:has(input:checked) .pay-est-price {
  color: var(--text-white);
}

/* RIGHT COLUMN - SIDEBAR STICKY WIDGETS */
.order-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: sticky;
  top: 140px;
}
.sidebar-widget-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}
.rating-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.2rem 0;
}
.rating-num {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 800;
}
.stars {
  color: var(--accent-yellow);
  font-size: 0.95rem;
  display: flex;
  gap: 0.1rem;
}
.rating-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.help-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.help-icon {
  font-size: 1.8rem;
  color: var(--primary-blue);
}
.help-text h5 {
  font-size: 0.95rem;
  font-weight: 600;
}
.help-text p {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0.1rem;
}

/* Sticky Checkout Summary widget */
.checkout-sticky-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.checkout-product-summary {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border-color);
  min-height: 50px;
  display: flex;
  align-items: center;
}
.empty-summary-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}
.checkout-summary-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.3rem;
}
.sum-prod-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.sum-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.2rem;
}
.sum-price-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.btn-checkout-primary {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-checkout-primary:hover:not(:disabled) {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-checkout-primary:disabled {
  background-color: #242838;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* CEK TRANSAKSI VIEW (IMAGE 4 STYLE) */
.track-wrapper {
  max-width: 680px;
  margin: 3.5rem auto;
  text-align: center;
}
.track-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.track-subtitle {
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.track-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.track-card label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
}
.track-input-wrapper {
  position: relative;
  width: 100%;
}
.track-input-wrapper input {
  width: 100%;
  padding: 0.8rem 2.8rem 0.8rem 1rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all 0.25s;
}
.track-input-wrapper input:focus {
  border-color: var(--primary-blue);
  outline: none;
}
.paste-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.25s;
}
.paste-icon:hover {
  color: var(--text-white);
}

.btn-track-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.btn-track-submit:hover {
  background-color: var(--primary-blue-hover);
}

/* LEADERBOARD VIEW */
.leaderboard-wrapper {
  max-width: 650px;
  margin: 2rem auto;
}
.leaderboard-header {
  text-align: center;
  margin-bottom: 2rem;
}
.leaderboard-icon {
  font-size: 2.8rem;
  color: var(--accent-yellow);
  margin-bottom: 0.6rem;
}
/* Leaderboard Columns Layout */
.leaderboard-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.leaderboard-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.col-header-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
  padding: 0.6rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-white);
  border-bottom: 2px solid var(--primary-blue);
  width: fit-content;
  margin-bottom: -1px;
}

.leaderboard-card-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0 12px 12px 12px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.lead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 102, 255, 0.05);
}

.lead-row.rank-1 {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.03) 100%);
  border-color: rgba(234, 179, 8, 0.45);
}
.lead-row.rank-1 .lead-name {
  color: #fbbf24;
  font-weight: 700;
}
.lead-row.rank-1 .lead-price {
  color: #f59e0b;
}

.lead-row.rank-2 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-color: rgba(59, 130, 246, 0.35);
}
.lead-row.rank-2 .lead-name {
  color: #60a5fa;
  font-weight: 700;
}
.lead-row.rank-2 .lead-price {
  color: #3b82f6;
}

.lead-row.rank-3 {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.02) 100%);
  border-color: rgba(249, 115, 22, 0.35);
}
.lead-row.rank-3 .lead-name {
  color: #fdba74;
  font-weight: 700;
}
.lead-row.rank-3 .lead-price {
  color: #f97316;
}

.lead-row.rank-other {
  background: var(--bg-input);
  border-color: var(--border-color);
}
.lead-row.rank-other .lead-name {
  color: var(--text-white);
  font-weight: 600;
}
.lead-row.rank-other .lead-price {
  color: var(--text-white);
}

.lead-row:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.06);
}

.lead-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lead-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  width: 18px;
  color: var(--text-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lead-icon {
  font-size: 0.95rem;
}

.lead-name {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
}

.lead-price {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* KALKULATOR VIEW */
.calc-wrapper {
  max-width: 600px;
  margin: 2rem auto;
}
.calc-header-box {
  text-align: center;
  margin-bottom: 2rem;
}
.calc-icon {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 0.6rem;
}
.calc-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.btn-calc-submit {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s;
}
.btn-calc-submit:hover {
  background-color: var(--primary-blue-hover);
}
.calc-result-box {
  margin-top: 1rem;
  background-color: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.2rem;
}
.calc-result-box h5 {
  color: #10b981;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.calc-result-diff {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
}
.calc-result-text {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}
.btn-calc-go-topup {
  width: 100%;
  padding: 0.6rem 1rem;
  background-color: transparent;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-calc-go-topup:hover {
  background-color: var(--primary-blue-hover) !important;
  color: var(--text-white);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

/* Event Cards Grid */
.calc-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.calc-event-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.8rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.calc-event-card i {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 0.4rem;
  transition: color 0.3s;
}
.calc-event-card .event-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.1rem;
}
.calc-event-card .event-desc {
  font-size: 0.65rem;
  color: var(--text-gray);
}
.calc-event-card:hover {
  background: rgba(0, 102, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.3);
}
.calc-event-card.active {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--primary-blue);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.3);
}
.calc-event-card.active i {
  color: var(--accent-cyan);
}

/* Recommendation Cards */
.calc-recom-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recom-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  transition: all 0.25s;
}
.recom-item-card:hover {
  border-color: rgba(0, 102, 255, 0.2);
  background: rgba(15, 23, 42, 0.6);
}
.recom-item-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.recom-item-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.recom-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}
.recom-item-qty {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  font-weight: 700;
}
.recom-item-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
}

/* INVOICE DETAILS SHEET */
.invoice-wrapper {
  max-width: 650px;
  margin: 1.5rem auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.2rem 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.invoice-status-banner {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}
.status-unpaid { background-color: rgba(234, 179, 8, 0.12); border: 1px solid var(--accent-yellow); color: var(--accent-yellow); }
.status-processing { background-color: rgba(0, 102, 255, 0.12); border: 1px solid var(--primary-blue); color: var(--primary-blue); }
.status-success { background-color: rgba(16, 185, 129, 0.12); border: 1px solid #10b981; color: #10b981; }
.status-failed { background-color: rgba(239, 68, 68, 0.12); border: 1px solid #ef4444; color: #ef4444; }

.invoice-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
}
.invoice-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.invoice-item span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.invoice-item span:last-child {
  font-weight: 600;
  font-size: 0.95rem;
}
.invoice-divider {
  border: none;
  border-top: 1px dashed var(--border-color);
  margin: 1.5rem 0;
}
.payment-instructions-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.qr-code-img {
  background: white;
  padding: 0.5rem;
  border-radius: 6px;
  width: 170px;
  height: 170px;
  margin: 1rem auto;
}
.va-code-num {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary-blue);
  margin: 0.5rem 0;
}
.btn-sim-pay-mock {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-sim-pay-mock:hover {
  background-color: var(--accent-orange);
  color: var(--text-white);
}

/* ADMIN PANEL STYLES */
.admin-login-wrapper {
  max-width: 440px;
  margin: 5rem auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}
.admin-login-wrapper h3 {
  margin-bottom: 0.4rem;
}
.admin-login-wrapper p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}
.btn-admin-login-submit {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.25s;
}
.btn-admin-login-submit:hover {
  background-color: var(--primary-blue-hover);
}

/* Dashboard Panel Layout */
.admin-dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}
@media (max-width: 800px) {
  .admin-dashboard-container {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.admin-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
}
.admin-avatar {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}
.admin-mode-badge {
  font-size: 0.7rem;
  background-color: rgba(0, 102, 255, 0.12);
  color: var(--primary-blue);
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.3rem;
}

.admin-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-nav-link {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background-color: var(--bg-card-hover);
  color: var(--text-white);
}
.admin-nav-link.active {
  box-shadow: inset 3px 0 0 var(--primary-blue);
}
.logout-btn {
  color: #ef4444;
  margin-top: 1.5rem;
}
.logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.admin-content-pane {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
}
.admin-pane-tab {
  display: none;
}
.admin-pane-tab.active {
  display: block;
  animation: fadeIn 0.25s ease;
}
.pane-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0 1.5rem 0;
}

/* Config fields */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 650px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
}
.admin-form-group input, .admin-form-group select {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--text-white);
  font-size: 0.9rem;
  transition: all 0.25s;
}
.admin-form-group input:focus, .admin-form-group select:focus {
  border-color: var(--primary-blue);
  outline: none;
}
.full-width-field {
  grid-column: 1 / -1;
}
.field-section-title {
  font-size: 0.95rem;
  color: var(--primary-blue);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  margin-top: 0.8rem;
}
.pane-action-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}
.btn-save-config {
  padding: 0.8rem 1.8rem;
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s;
}
.btn-save-config:hover {
  background-color: var(--primary-blue-hover);
}

/* Admin Table */
.table-container {
  width: 100%;
  overflow-x: auto;
}
.transactions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.transactions-table th, .transactions-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.transactions-table th {
  color: var(--text-gray);
  font-weight: 600;
}
.transactions-table tbody tr:hover {
  background-color: #1a1d2e;
}
.transactions-table .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* MAIN FOOTER */
.main-footer {
  background-color: var(--bg-dark-black);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 750px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.footer-col-about {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-col-about p {
  color: var(--text-gray);
  font-size: 0.85rem;
  max-width: 320px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}
.footer-logo span span {
  color: var(--primary-blue);
}

.footer-col-links h5, .footer-col-contact h5 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}
.footer-col-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col-links a {
  color: var(--text-gray);
  font-size: 0.85rem;
}
.footer-col-links a:hover {
  color: var(--text-white);
}
.footer-col-contact p {
  color: var(--text-gray);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-icon {
  color: var(--primary-blue);
  font-size: 1rem;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Animations helpers */
.animate-pulse {
  animation: heartPulse 1.8s infinite ease-in-out;
}
@keyframes heartPulse {
  0% { opacity: 0.8; }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.8; }
}

.nickname-check-result {
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.nickname-check-result.checking {
  background-color: rgba(0, 102, 255, 0.05);
  border-color: rgba(0, 102, 255, 0.25);
  color: var(--text-gray);
}
.nickname-check-result.success {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}
.nickname-check-result.error {
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.08);
}

/* Custom Canvas & Cyberpunk Glows */
#bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg-body);
}

/* Glassmorphism/Glow upgrades on hover */
.game-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.25);
  transform: translateY(-4px);
}

.order-step-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.order-step-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 102, 255, 0.1);
}

.nominal-card, .payment-card-box {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.nominal-card:hover:not(.active), .payment-card-box:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.nominal-card.active {
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.25);
}

.payment-card-box.active {
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.25);
}

/* Pulsing accent animation on active tab subnav */
.nav-tab-btn.active::after {
  animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 4px var(--primary-blue);
    opacity: 0.8;
  }
  100% {
    box-shadow: 0 0 12px var(--primary-blue);
    opacity: 1;
  }
}

/* Smooth input fields glow on focus */
.input-field input:focus, .input-field select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
  background-color: rgba(0, 102, 255, 0.03);
  transition: all 0.25s;
}

/* Light Mode Overrides for White Text Contrast */
.btn-checkout-primary,
.btn-track-submit,
.btn-calc-submit,
.btn-admin-login-submit,
.btn-checkout-primary *,
.btn-track-submit *,
.btn-calc-submit *,
.btn-admin-login-submit *,
.step-num,
.admin-mode-badge {
  color: #ffffff !important;
}

/* ======================== CUSTOM LAYOUT: SERING DIBELI & SEMUA GAME ======================== */

/* Horizontal Capsule Grid (Sering Dibeli) */
.horizontal-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 780px) {
  .horizontal-game-grid {
    grid-template-columns: 1fr;
  }
}

.horizontal-game-card {
  background: linear-gradient(135deg, var(--bg-card) 80%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Background fog glow */
.horizontal-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, var(--card-glow, transparent) 0%, transparent 50%);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.horizontal-game-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
  transform: skewX(-20deg);
  pointer-events: none;
}

/* Game Specific Glows and Left Borders */
.horizontal-game-card.ml {
  border-left: 4px solid rgba(0, 102, 255, 0.6);
  --card-glow: #0066ff;
}
.horizontal-game-card.ml:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.horizontal-game-card.ff {
  border-left: 4px solid rgba(249, 115, 22, 0.6);
  --card-glow: #f97316;
}
.horizontal-game-card.ff:hover {
  border-color: #f97316;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.horizontal-game-card.pubg {
  border-left: 4px solid rgba(132, 204, 22, 0.6);
  --card-glow: #84cc16;
}
.horizontal-game-card.pubg:hover {
  border-color: #84cc16;
  box-shadow: 0 8px 24px rgba(132, 204, 22, 0.25);
}

.horizontal-game-card.valo {
  border-left: 4px solid rgba(255, 70, 85, 0.6);
  --card-glow: #ff4655;
}
.horizontal-game-card.valo:hover {
  border-color: #ff4655;
  box-shadow: 0 8px 24px rgba(255, 70, 85, 0.35);
}

.horizontal-game-card.genshin {
  border-left: 4px solid rgba(6, 182, 212, 0.6);
  --card-glow: #06b6d4;
}
.horizontal-game-card.genshin:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}

.horizontal-game-card.hok {
  border-left: 4px solid rgba(245, 158, 11, 0.6);
  --card-glow: #f59e0b;
}
.horizontal-game-card.hok:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.horizontal-game-card:hover {
  transform: translateY(-4px);
}
.horizontal-game-card:hover::before {
  opacity: 0.25;
}

.horizontal-game-card .game-card-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-game-card .game-card-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.1rem;
}

.horizontal-game-card .game-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tab Selectors (Category Tabs) */
.category-tab-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.category-tab-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}
.category-tab-btn.active {
  background-color: #475569;
  border-color: #475569;
  color: #ffffff !important;
}

/* Vertical Poster Grid (Semua Game) */
.vertical-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
@media (max-width: 580px) {
  .vertical-game-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

.vertical-game-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.vertical-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.vertical-game-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1rem;
  z-index: 2;
}

.vertical-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.3);
}

.vertical-game-card:hover img {
  transform: scale(1.05);
}

.vertical-game-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.15rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.vertical-game-card-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Load More Button */
.btn-load-more {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 0.6rem 1.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-load-more:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background-color: rgba(0, 102, 255, 0.02);
}

/* Floating Interactive Search Dropdown */
.search-results-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 1100;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-result-item:hover {
  background-color: var(--bg-card-hover);
}

.search-result-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.search-result-info h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.search-result-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

.header-search {
  position: relative; /* Ensure the dropdown aligns with the search input wrapper */
}

/* Sliding Carousel Banner */
.promo-banner-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.promo-banner-carousel {
  display: flex;
  width: 300%; /* 3 slides = 300% */
  height: 240px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

/* Gradients for slides */
.banner-slide.slide-1 {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%);
}
.banner-slide.slide-2 {
  background: linear-gradient(135deg, #7e22ce 0%, #6b21a8 50%, #581c87 100%);
}
.banner-slide.slide-3 {
  background: linear-gradient(135deg, #c2410c 0%, #b45309 50%, #78350f 100%);
}

/* Subtle decorative circles inside slide background */
.banner-slide::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.banner-slide::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: 150px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.banner-overlay-text {
  max-width: 600px;
  z-index: 5;
}

.banner-overlay-text h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  /* Override light mode gradient text settings for white slider title */
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

.banner-overlay-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.carousel-dots .dot.active {
  background: #ffffff;
  width: 24px; /* Pill shape active state */
  border-radius: 5px;
}

@media (max-width: 768px) {
  /* Compact Single-Row Header */
  .top-header {
    height: 56px !important;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  .header-container {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    height: 100%;
    padding: 0 0.8rem !important;
    gap: 0.4rem !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .header-logo {
    order: 1 !important;
    font-size: 1.15rem !important;
    gap: 0.3rem !important;
  }
  .header-logo span {
    display: none !important;
  }
  .logo-icon {
    font-size: 1.3rem !important;
  }
  .header-lang {
    order: 3 !important;
  }
  .btn-lang {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.72rem !important;
    height: 32px !important;
    gap: 0.3rem !important;
  }
  .header-search {
    order: 2 !important;
    margin: 0 !important;
    flex: 1 !important;
    max-width: 150px !important;
  }
  .header-search input {
    height: 32px !important;
    padding: 0.4rem 0.5rem 0.4rem 1.8rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }
  .header-search .search-icon {
    left: 0.6rem !important;
    font-size: 0.75rem !important;
  }

  /* Sub Navbar swipeable tabs directly below header */
  .sub-navbar {
    top: 56px !important; /* Sticks right below the 56px header! */
    height: 42px !important;
  }
  .sub-navbar .nav-container {
    padding: 0 0.5rem;
  }
  .nav-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.15rem !important;
    width: 100%;
    scrollbar-width: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab-btn {
    flex: 0 0 auto !important;
    padding: 0 0.6rem !important;
    font-size: 0.78rem !important;
    height: 42px !important;
    display: inline-flex;
    align-items: center;
  }
  .btn-login-header {
    display: none;
  }

  /* Main content spacing */
  .main-content {
    margin: 0.8rem auto;
    padding: 0 0.8rem;
  }

  /* Promo Banner Carousel heights */
  .promo-banner-container {
    border-radius: 12px;
    margin-bottom: 1.5rem;
  }
  .promo-banner-carousel {
    height: 130px;
  }
  .banner-slide {
    padding: 0 1rem;
  }
  .banner-overlay-text h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  .banner-overlay-text p {
    font-size: 0.75rem;
  }
  .carousel-dots {
    bottom: 0.4rem;
  }

  /* 2-Column Grid for Horizontal Game Cards (Sering Dibeli) */
  .horizontal-game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .horizontal-game-card {
    padding: 0.4rem 0.5rem !important;
    gap: 0.5rem !important;
    border-radius: 10px !important;
  }
  .horizontal-game-card .game-card-img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
  }
  .horizontal-game-card .game-card-info h4 {
    font-size: 0.82rem !important;
  }
  .horizontal-game-card .game-card-info p {
    font-size: 0.68rem !important;
  }

  /* 3-Column Grid for Vertical Game Cards (Semua Game) */
  .vertical-game-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }
  .vertical-game-card {
    border-radius: 10px !important;
  }
  .vertical-game-card-overlay {
    padding: 0.4rem !important;
    height: 60%;
  }
  .vertical-game-card-title {
    font-size: 0.72rem !important;
    font-weight: 700;
  }
  .vertical-game-card-subtitle {
    font-size: 0.58rem !important;
  }

  /* Game Detail Header Card */
  .order-header-banner {
    height: 130px;
    padding: 0.8rem;
    margin-top: 0.5rem !important;
    margin-bottom: 1.2rem;
  }
  .order-game-avatar-box {
    gap: 0.8rem;
  }
  .order-avatar-img {
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
    border-radius: 10px;
  }
  .order-avatar-details h2 {
    font-size: 1.2rem;
  }
  .order-avatar-details p {
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
  }
  .order-avatar-badges {
    gap: 0.3rem;
  }
  .order-avatar-badges span {
    font-size: 0.65rem;
    padding: 0.05rem 0.3rem;
  }

  /* General Form step padding */
  .order-step-card {
    padding: 1rem;
  }

  /* Leaderboard grids 3col spacing */
  .leaderboard-grid-3col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Compact Product Item Cards (Denom) for mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }
  .prod-item-card {
    padding: 0.4rem 0.5rem !important;
    border-radius: 8px !important;
    gap: 0.15rem !important;
    min-width: 0 !important; /* Allow flex shrinking */
  }
  .prod-item-content {
    gap: 0.3rem !important;
    min-width: 0 !important; /* Allow flex shrinking */
  }
  .prod-card-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    padding: 1px !important;
    flex-shrink: 0 !important;
  }
  .prod-card-details {
    min-width: 0 !important; /* Allow details wrapper to shrink */
  }
  .prod-name-lbl {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .prod-price-lbl {
    font-size: 0.74rem !important;
    margin-top: 1px !important;
  }
}

/* WhatsApp Floating Widget styling */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: waPulse 2s infinite;
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) rotate(8deg);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-floating-btn .wa-tooltip {
  position: absolute;
  right: 75px;
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  transform: translateX(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-floating-btn:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes waPulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0px rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3), 0 0 0 0px rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .whatsapp-floating-btn .wa-tooltip {
    display: none;
  }
  
  /* Footer responsive grid stacking override */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: left !important;
  }
  .footer-col-about {
    align-items: flex-start;
  }
  .footer-col-links h5 {
    margin-bottom: 0.8rem !important;
  }
  .footer-col-links ul {
    align-items: flex-start;
  }
}

/* Live Purchase Toasts */
.live-toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 10000;
  pointer-events: none;
}

.live-purchase-toast {
  background: rgba(15, 19, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 102, 255, 0.25);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 102, 255, 0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.live-purchase-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.live-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.15);
  flex-shrink: 0;
  overflow: hidden;
}

.live-toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.live-toast-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.live-toast-desc {
  font-size: 0.76rem;
  color: var(--text-gray);
  line-height: 1.4;
}

.live-toast-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .live-toast-container {
    top: 90px;
    bottom: auto;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    align-items: center;
  }
  .live-purchase-toast {
    width: 100%;
    max-width: 340px;
    transform: translateY(-120%);
  }
  .live-purchase-toast.show {
    transform: translateY(0);
  }
}

/* Button Back to Home */
.order-back-container {
  max-width: 1200px;
  margin: 0.5rem auto 1.2rem auto;
  width: 100%;
  padding: 0 1rem;
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-gray) !important;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-back-home i {
  color: var(--primary-blue);
  transition: transform 0.25s ease;
}
.btn-back-home:hover {
  color: var(--text-white) !important;
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
}
.btn-back-home:hover i {
  transform: translateX(-4px);
}
@media (max-width: 768px) {
  .order-back-container {
    margin: 0.4rem auto 0.8rem auto;
    padding: 0 0.8rem;
  }
  .btn-back-home {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}






