/* ==========================================================================
   VORTEXPAY - STYLES.CSS (V2.1 MOBILE-FIRST ULTRA REFINED)
   Features: Dual Theme, Off-Canvas Mobile Drawer, Touch-Optimized Cards,
             Pixel-Perfect Typography & Layout on Smartphone & Desktop
   ========================================================================== */

/* DARK THEME (DEFAULT) */
:root {
  --bg-main: #07090e;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.4);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --primary-dark: #6d28d9;
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(139, 92, 246, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(139, 92, 246, 0.45);
  
  --primary: #7c3aed;
  --primary-glow: rgba(124, 58, 237, 0.2);
  --primary-dark: #5b21b6;
  
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-gold: #d97706;
  --accent-rose: #e11d48;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(124, 58, 237, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #1e293b;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 20%, var(--accent-cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #fff 20%, #a78bfa 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   NAVBAR & MOBILE DRAWER
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Off-Canvas Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-glass);
  z-index: 160;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.drawer-close {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.drawer-link:hover, .drawer-link.active {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 6.5rem 0 2.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 5px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* Search Bar Box */
.hero-search-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.search-input-wrapper input {
  flex: 1;
  min-width: 0; /* Prevents overflow */
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 0.4rem 0.25rem;
}

.search-input-wrapper input::placeholder {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.search-input-wrapper .btn-primary {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Live Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-item h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item p {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Hero Visual Card */
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

.hero-card-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 9, 14, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

/* ==========================================================================
   FLASH SALE BANNER
   ========================================================================== */
.promo-bar {
  padding: 0.5rem 0 2rem 0;
  width: 100%;
}

.promo-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 1.1rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  gap: 1.25rem;
}

.promo-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-gold), #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.timer-box {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

/* ==========================================================================
   SECTION HEADERS & TABS
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 600px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* ==========================================================================
   GAME CATALOG (APP-STORE CARD GRID)
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
}

.game-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-icon-img {
  transform: scale(1.08);
}

.game-tag-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  padding: 2px 7px;
}

.game-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.game-publisher {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.game-price-box {
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-price-label {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.game-price-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* ==========================================================================
   PPOB CATALOG
   ========================================================================== */
.ppob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ppob-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ppob-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-hover);
}

.ppob-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ppob-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-pln { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.icon-pulsa { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.25); }
.icon-wallet { background: rgba(6, 182, 212, 0.12); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.25); }
.icon-pdam { background: rgba(59, 130, 246, 0.12); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.25); }
.icon-bpjs { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.icon-wifi { background: rgba(244, 63, 94, 0.12); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.25); }

.ppob-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.ppob-specs {
  list-style: none;
  margin: 0.65rem 0 1rem 0;
}

.ppob-specs li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.ppob-specs li i {
  color: var(--accent-emerald);
  font-size: 0.72rem;
}

/* ==========================================================================
   ORDER SIMULATOR (4-STEP BOX)
   ========================================================================== */
.order-section {
  padding: 3rem 0;
}

.order-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Input Fields */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Nominal Selector Grid */
.nominal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.nominal-item {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nominal-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.nominal-item.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 12px var(--primary-glow);
}

.nominal-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.nominal-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.nominal-disc {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

/* Payment Methods Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.payment-item {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-item:hover {
  border-color: var(--accent-cyan);
}

.payment-item.active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.payment-info {
  text-align: right;
}

.payment-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.payment-fee {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Checkout Bar */
.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  margin-top: 1rem;
  gap: 1.25rem;
}

.checkout-total-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-total-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   TRANSACTION TRACKER
   ========================================================================== */
.tracker-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.tracker-input-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.tracker-input {
  flex: 1;
  min-width: 0;
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.tracker-input:focus {
  border-color: var(--primary);
}

/* Timeline */
.tracking-result {
  display: none;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.75rem 0 0.75rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--border-glass);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-main);
}

.timeline-step.completed .timeline-dot {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.timeline-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   RESELLER & API
   ========================================================================== */
.reseller-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.reseller-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.feature-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.feature-item p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.api-box {
  background: #030712;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.api-header {
  background: #0f172a;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-dots {
  display: flex;
  gap: 5px;
}

.api-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.api-body {
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #38bdf8;
  overflow-x: auto;
}

/* ==========================================================================
   TRUST & SECURITY STRIP
   ========================================================================== */
.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-card);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.trust-icon {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.trust-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-main);
}

.trust-card p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MODAL INVOICE CHECKOUT
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qris-box {
  background: #fff;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 0.75rem auto;
}

.qris-img {
  width: 150px;
  height: 150px;
  display: block;
}

.invoice-details {
  background: var(--bg-main);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 1.25rem;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.25rem 0;
  color: var(--text-muted);
}

.invoice-row.total {
  border-top: 1px solid var(--border-glass);
  padding-top: 0.45rem;
  margin-top: 0.3rem;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.92rem;
}

/* ==========================================================================
   LIVE TOAST TICKER
   ========================================================================== */
.live-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 380px;
  z-index: 99;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.live-toast-content h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.live-toast-content p {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 3.5rem 0 2rem 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0.85rem 0 1.25rem 0;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.payment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.payment-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MOBILE RESPONSIVE RULES (< 768px & < 576px)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .reseller-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; } /* Hide bulky CTA on small phone navbar */
  
  .hero { padding: 5.5rem 0 2rem 0; }
  .hero-title { font-size: 1.85rem; }
  
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } /* 2 columns on phone */
  .game-card { padding: 0.85rem 0.65rem; }
  .game-icon-wrap { width: 68px; height: 68px; border-radius: 15px; }
  .game-title { font-size: 0.85rem; }
  
  .input-grid { grid-template-columns: 1fr; }
  .nominal-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .payment-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  
  .promo-container { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
  .promo-info { flex-direction: column; gap: 0.65rem; }
  
  .checkout-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 0.85rem; }
  .checkout-bar .btn-primary { width: 100%; }
  
  .tracker-input-group { flex-direction: column; }
  .tracker-input-group .btn-primary { width: 100%; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  
  .live-toast { bottom: 15px; left: 15px; right: 15px; max-width: calc(100% - 30px); }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .stat-item { padding: 0.6rem 0.3rem; }
  .stat-item h4 { font-size: 1.1rem; }
  .stat-item p { font-size: 0.68rem; }
  
  .timeline { flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .timeline::before { display: none; }
}
