/* ============================
   MAZZBUDETZZ TOPUP - MAIN CSS
   Black + Neon Purple + Electric Blue
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --purple-dark: #5b21b6;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --cyan: #06b6d4;
  --bg-dark: #050508;
  --bg-card: rgba(15, 10, 30, 0.8);
  --bg-card-hover: rgba(20, 15, 40, 0.9);
  --border: rgba(124, 58, 237, 0.2);
  --border-hover: rgba(124, 58, 237, 0.5);
  --text-primary: #f1f0ff;
  --text-secondary: #a0a0c0;
  --text-muted: #606080;
  --neon-glow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
  --blue-glow: 0 0 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(37, 99, 235, 0.2);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   BASE RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(124, 58, 237, 0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a15; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ============================
   LOADING SCREEN
   ============================ */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #050508;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-content { text-align: center; }
.loader-logo {
  font-size: 4rem; line-height: 1;
  animation: pulse-glow 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(124,58,237,0.8));
}
.loader-name {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0.5rem 0 1.5rem;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(124,58,237,0.2);
  border-radius: 9999px; overflow: hidden; margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 9999px;
  animation: load-progress 1.8s ease-in-out forwards;
}
@keyframes load-progress { 0% { width: 0; } 100% { width: 100%; } }
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(124,58,237,0.6)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(124,58,237,1)); }
}

/* ============================
   AURORA BACKGROUND
   ============================ */
.aurora-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.12;
  animation: aurora-float 20s ease-in-out infinite;
}
.aurora-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -200px; left: -100px;
  animation-delay: 0s;
}
.aurora-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2563eb, transparent);
  top: 20%; right: -150px;
  animation-delay: -7s;
}
.aurora-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: 10%; left: 30%;
  animation-delay: -14s;
}
@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 5, 8, 0.95);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.15);
}
.navbar-brand { display: flex; align-items: center; text-decoration: none; }
.logo-text {
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-link {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(124, 58, 237, 0.15);
}
.nav-link.active { color: var(--purple-light); }

.nav-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer; font-size: 1rem;
  transition: var(--transition);
  position: relative;
}
.nav-icon-btn:hover { background: rgba(124,58,237,0.15); color: #fff; border-color: var(--purple); }

.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: #ef4444;
  color: white; font-size: 0.625rem; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-dark);
}

.user-menu-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  background: rgba(124,58,237,0.1);
  border: 1px solid var(--border);
  border-radius: 50px; cursor: pointer;
  transition: var(--transition); color: var(--text-primary);
}
.user-menu-btn:hover { border-color: var(--purple); background: rgba(124,58,237,0.2); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-name { font-size: 0.875rem; font-weight: 600; }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(10, 8, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px; min-width: 220px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.1);
  overflow: hidden; z-index: 200;
  animation: dropdown-appear 0.2s ease;
}
@keyframes dropdown-appear {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem; font-weight: 600; color: #fff;
}
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none; font-size: 0.875rem;
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(124,58,237,0.15); color: #fff; }
.dropdown-item i { width: 16px; }
.dropdown-footer { padding: 10px 16px; border-top: 1px solid var(--border); }
.dropdown-footer a { color: var(--purple-light); font-size: 0.8125rem; text-decoration: none; }
.dropdown-user-info { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }

/* Notif menu */
.notif-menu { min-width: 300px; }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.notif-item:hover { background: rgba(124,58,237,0.08); }
.notif-item.unread { background: rgba(124,58,237,0.05); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.875rem;
}
.notif-success { background: rgba(34,197,94,0.15); color: #22c55e; }
.notif-error { background: rgba(239,68,68,0.15); color: #ef4444; }
.notif-warning { background: rgba(234,179,8,0.15); color: #eab308; }
.notif-info { background: rgba(59,130,246,0.15); color: #3b82f6; }
.notif-title { font-size: 0.8125rem; font-weight: 600; color: #fff; }
.notif-msg { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* Mobile menu */
.mobile-menu {
  background: rgba(5, 5, 8, 0.98);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.mobile-menu-content { padding: 1rem; space-y: 0.25rem; }
.mobile-nav-link {
  display: block; padding: 0.75rem 1rem;
  color: var(--text-secondary); text-decoration: none;
  border-radius: 10px; font-size: 0.9375rem; font-weight: 500;
  transition: var(--transition);
}
.mobile-nav-link:hover { background: rgba(124,58,237,0.15); color: #fff; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 100px; animation: fadeIn 0.2s ease;
}
.search-container { width: 100%; max-width: 600px; padding: 0 1rem; }
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 20px;
  transition: var(--transition);
}
.search-input-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.search-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 1.125rem; font-family: 'Poppins', sans-serif;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-input-wrap button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.125rem; }
.search-results {
  margin-top: 1rem;
  background: rgba(10, 8, 25, 0.95);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}

/* ============================
   BUTTONS
   ============================ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white; font-weight: 600; font-size: 0.9375rem;
  border: none; border-radius: 12px; cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  opacity: 0; transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white; font-weight: 600; font-size: 0.8125rem;
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: var(--transition);
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(124,58,237,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75rem 1.75rem;
  background: rgba(124,58,237,0.08);
  color: var(--purple-light); font-weight: 600; font-size: 0.9375rem;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  text-decoration: none; transition: var(--transition);
}
.btn-ghost:hover { background: rgba(124,58,237,0.15); border-color: var(--purple); color: #fff; }

.btn-ghost-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.125rem;
  background: transparent;
  color: var(--text-secondary); font-weight: 500; font-size: 0.8125rem;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  text-decoration: none; transition: var(--transition);
}
.btn-ghost-sm:hover { border-color: var(--purple); color: #fff; }

.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.6rem 1.5rem;
  background: rgba(239,68,68,0.15);
  color: #ef4444; font-weight: 600; font-size: 0.875rem;
  border: 1px solid rgba(239,68,68,0.3); border-radius: 10px;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); border-color: #ef4444; }

.btn-success {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.6rem 1.5rem;
  background: rgba(34,197,94,0.15);
  color: #22c55e; font-weight: 600; font-size: 0.875rem;
  border: 1px solid rgba(34,197,94,0.3); border-radius: 10px;
  cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-success:hover { background: rgba(34,197,94,0.25); }

/* Ripple effect */
.ripple { position: relative; overflow: hidden; }
.ripple::after {
  content: ''; position: absolute;
  width: 100px; height: 100px; margin-left: -50px; margin-top: -50px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%; transform: scale(0);
  animation: ripple-anim 0.6s linear;
  top: var(--y); left: var(--x);
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ============================
   GLASS CARD
   ============================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2);
  transform: translateY(-2px);
}

/* ============================
   FLASH ALERTS
   ============================ */
.flash-alert {
  display: flex; align-items: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.875rem; font-weight: 500;
  backdrop-filter: blur(20px);
  cursor: pointer;
  animation: slideInRight 0.4s ease;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.flash-success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}
.flash-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative; padding: 8rem 0 5rem;
  min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 25% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 30%, rgba(37,99,235,0.08) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(rgba(124,58,237,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.5) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--purple-light);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-light);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--text-secondary); max-width: 560px;
  margin-bottom: 2.5rem; line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stat-value {
  font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* Hero Slider */
.hero-slider {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 80px rgba(124,58,237,0.3), 0 0 0 1px var(--border);
  animation: fadeInRight 0.8s ease 0.3s both;
}
.slider-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(37,99,235,0.4));
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.slide-content { color: #fff; }
.slide-title { font-size: 1.25rem; font-weight: 700; }
.slide-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer; transition: var(--transition);
}
.slider-dot.active { width: 24px; background: #fff; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: rgba(124,58,237,0.6); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* ============================
   SECTION STYLES
   ============================ */
section { padding: 5rem 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; }
.section-subtitle { color: var(--text-secondary); margin-top: 0.75rem; font-size: 1.0625rem; }
.section-header { margin-bottom: 3rem; }

.neon-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(124,58,237,0.5);
  margin-top: 1rem;
}

/* ============================
   GAME CARDS
   ============================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.game-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  group: true;
}
.game-card:hover {
  border-color: var(--purple);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), var(--neon-glow);
}
.game-card-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-img { transform: scale(1.08); }
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.4) 50%, transparent 100%);
}
.game-card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.875rem;
}
.game-card-name {
  font-size: 0.8125rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card-sold { font-size: 0.6875rem; color: var(--text-muted); margin-top: 2px; }
.game-card-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 10px; border-radius: 9999px;
  font-size: 0.625rem; font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white; text-transform: uppercase;
}
.game-card-popular { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* ============================
   FLASH SALE
   ============================ */
.flash-sale-section { background: rgba(124,58,237,0.03); }
.flash-timer {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
}
.timer-unit {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 8px; padding: 6px 10px;
  min-width: 44px;
}
.timer-value { font-size: 1.25rem; font-weight: 800; color: var(--purple-light); line-height: 1; }
.timer-label { font-size: 0.5625rem; color: var(--text-muted); text-transform: uppercase; }
.timer-sep { font-size: 1.25rem; font-weight: 800; color: var(--purple); }

.product-scroll { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; }
.product-scroll::-webkit-scrollbar { height: 4px; }

.product-card {
  flex-shrink: 0; width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1rem;
  cursor: pointer; transition: var(--transition);
  position: relative;
}
.product-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--neon-glow); }
.product-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.product-card-name { font-size: 0.8125rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.product-card-price { font-size: 0.9375rem; font-weight: 800; color: var(--purple-light); }
.product-card-original { font-size: 0.75rem; color: var(--text-muted); text-decoration: line-through; }
.product-card-sale-badge {
  position: absolute; top: -8px; right: 8px;
  padding: 2px 10px; border-radius: 9999px;
  font-size: 0.625rem; font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white; text-transform: uppercase;
}

/* ============================
   HOW TO TOPUP
   ============================ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.step-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; position: relative; transition: var(--transition);
}
.step-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.step-num {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  margin: 0 auto 1rem; box-shadow: 0 8px 20px rgba(124,58,237,0.3);
}
.step-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.step-title { font-size: 0.9375rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.8125rem; color: var(--text-muted); }
.step-connector {
  position: absolute; top: 35px; right: -1rem;
  color: var(--purple); font-size: 1.25rem; z-index: 1;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; transition: var(--transition);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 1rem; right: 1.25rem;
  font-size: 4rem; line-height: 1; color: rgba(124,58,237,0.15);
  font-family: Georgia, serif;
}
.testimonial-card:hover { border-color: var(--purple); transform: translateY(-4px); }
.testimonial-stars { color: #f59e0b; font-size: 0.875rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.testimonial-name { font-size: 0.875rem; font-weight: 700; color: #fff; }
.testimonial-game { font-size: 0.75rem; color: var(--purple-light); }

/* ============================
   FAQ
   ============================ */
.faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: var(--transition); margin-bottom: 0.75rem;
}
.faq-item.open { border-color: var(--purple); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.125rem 1.5rem; cursor: pointer;
  font-weight: 600; font-size: 0.9375rem; color: #fff;
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
}
.faq-question:hover { background: rgba(124,58,237,0.08); }
.faq-icon { color: var(--purple-light); font-size: 1.125rem; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 1.5rem 1.25rem; }

/* ============================
   FEATURES / KEUNGGULAN
   ============================ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.75rem;
  transition: var(--transition); text-align: center;
}
.feature-card:hover { border-color: var(--purple); transform: translateY(-4px); box-shadow: var(--neon-glow); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(37,99,235,0.2));
  border: 1px solid rgba(124,58,237,0.2);
}
.feature-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.625rem; }
.feature-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ============================
   TOPUP PAGE
   ============================ */
.topup-hero {
  padding: 7rem 0 3rem;
  background: linear-gradient(180deg, rgba(124,58,237,0.05) 0%, transparent 100%);
}
.game-info-card {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem;
  margin-bottom: 2rem;
}
.game-icon-large {
  width: 80px; height: 80px; border-radius: 18px;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.game-info-name { font-size: 1.5rem; font-weight: 800; color: #fff; }
.game-info-desc { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* Input form */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.5rem;
}
.form-label span.required { color: #ef4444; margin-left: 3px; }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 12px;
  color: #fff; font-size: 0.9375rem; font-family: 'Poppins', sans-serif;
  outline: none; transition: var(--transition);
}
.form-control:focus { border-color: var(--purple); background: rgba(124,58,237,0.05); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.form-control::placeholder { color: var(--text-muted); }
.form-control option { background: #1a0533; color: #fff; }

.nick-check-result {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.8125rem; font-weight: 600; margin-top: 8px;
}
.nick-check-result.success { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.nick-check-result.error { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }

/* Product selector */
.product-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.product-option {
  padding: 0.875rem; border: 2px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: var(--transition); text-align: center;
  background: rgba(255,255,255,0.02); position: relative;
}
.product-option:hover { border-color: rgba(124,58,237,0.5); background: rgba(124,58,237,0.05); }
.product-option.selected {
  border-color: var(--purple); background: rgba(124,58,237,0.1);
  box-shadow: 0 0 0 1px var(--purple);
}
.product-option-name { font-size: 0.8125rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.product-option-price { font-size: 0.875rem; font-weight: 800; color: var(--purple-light); }
.product-option-original { font-size: 0.6875rem; color: var(--text-muted); text-decoration: line-through; }
.product-option-badge {
  position: absolute; top: -8px; right: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: white; font-size: 0.5625rem; font-weight: 800;
  padding: 2px 8px; border-radius: 9999px; text-transform: uppercase;
}
.product-option input[type="radio"] { display: none; }

/* Payment method */
.payment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.75rem; }
.payment-option {
  padding: 0.75rem; border: 2px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: var(--transition); text-align: center;
  background: rgba(255,255,255,0.02);
}
.payment-option:hover { border-color: rgba(124,58,237,0.5); }
.payment-option.selected { border-color: var(--purple); background: rgba(124,58,237,0.1); }
.payment-option input[type="radio"] { display: none; }
.payment-icon { font-size: 1.5rem; margin-bottom: 4px; }
.payment-name { font-size: 0.6875rem; font-weight: 600; color: var(--text-secondary); }
.payment-option.selected .payment-name { color: var(--purple-light); }

/* Order summary */
.order-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; position: sticky; top: 90px;
}
.summary-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.summary-label { font-size: 0.8125rem; color: var(--text-muted); }
.summary-value { font-size: 0.875rem; font-weight: 600; color: #fff; }
.summary-total {
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem;
}
.summary-total-label { font-size: 0.875rem; font-weight: 700; color: #fff; }
.summary-total-value { font-size: 1.25rem; font-weight: 800; color: var(--purple-light); }
.voucher-input-wrap {
  display: flex; gap: 8px;
}
.voucher-input-wrap .form-control { border-radius: 8px 0 0 8px; }
.voucher-apply-btn {
  padding: 0 1rem;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white; border: none; border-radius: 0 8px 8px 0;
  font-weight: 600; cursor: pointer; font-size: 0.8125rem;
  white-space: nowrap; transition: var(--transition);
}

/* ============================
   STATUS BADGES
   ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700;
}
.badge-success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-warning { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.badge-error { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-info { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.badge-purple { background: rgba(124,58,237,0.15); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-gray { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }

/* ============================
   FORMS (Auth)
   ============================ */
.auth-container {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 5rem 1rem;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: rgba(10, 8, 25, 0.9);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo-text {
  font-size: 1.75rem; font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-title { font-size: 1.5rem; font-weight: 800; color: #fff; text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 2rem; }

.oauth-buttons { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.75rem; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  color: #fff; font-weight: 600; font-size: 0.875rem;
  text-decoration: none; transition: var(--transition); cursor: pointer;
}
.oauth-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.oauth-btn img { width: 20px; height: 20px; }
.oauth-btn i { font-size: 1.125rem; }
.oauth-btn.google:hover { border-color: #ea4335; }
.oauth-btn.github:hover { border-color: #6e5494; }
.oauth-btn.discord:hover { border-color: #5865f2; }

.auth-divider {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }

.password-toggle {
  position: relative;
}
.password-toggle input { padding-right: 3rem; }
.toggle-eye {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); cursor: pointer; font-size: 1rem;
  transition: var(--transition);
}
.toggle-eye:hover { color: var(--purple-light); }

/* ============================
   USER DASHBOARD
   ============================ */
.dashboard-layout { padding-top: 4.5rem; min-height: 100vh; }
.dashboard-sidebar {
  background: var(--bg-card); border-right: 1px solid var(--border);
  width: 260px; position: fixed; top: 64px; bottom: 0; left: 0;
  overflow-y: auto; z-index: 50; transition: transform 0.3s ease;
}
.dashboard-sidebar::-webkit-scrollbar { width: 3px; }
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.sidebar-user-name { font-weight: 700; color: #fff; }
.sidebar-user-email { font-size: 0.75rem; color: var(--text-muted); }
.sidebar-nav { padding: 1rem; }
.sidebar-section { margin-bottom: 0.25rem; }
.sidebar-section-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 0.75rem 0.75rem 0.5rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 0.75rem; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(124,58,237,0.1); color: #fff; }
.sidebar-link.active { background: rgba(124,58,237,0.15); color: var(--purple-light); }
.sidebar-link i { width: 20px; font-size: 1rem; }
.sidebar-link .badge-count {
  margin-left: auto; background: rgba(239,68,68,0.15);
  color: #ef4444; font-size: 0.625rem; font-weight: 700;
  padding: 2px 7px; border-radius: 9999px;
}
.dashboard-main { margin-left: 260px; padding: 2rem; }

/* Stat cards */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; margin-bottom: 1rem;
}
.stat-icon.purple { background: rgba(124,58,237,0.2); color: var(--purple-light); }
.stat-icon.blue { background: rgba(37,99,235,0.2); color: var(--blue-light); }
.stat-icon.green { background: rgba(34,197,94,0.2); color: #22c55e; }
.stat-icon.orange { background: rgba(249,115,22,0.2); color: #f97316; }
.stat-icon.red { background: rgba(239,68,68,0.2); color: #ef4444; }
.stat-icon.cyan { background: rgba(6,182,212,0.2); color: var(--cyan); }
.stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 6px; }
.stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 8px; }
.stat-change.up { color: #22c55e; }
.stat-change.down { color: #ef4444; }

/* ============================
   ADMIN PANEL
   ============================ */
.admin-layout { display: flex; min-height: 100vh; padding-top: 64px; }
.admin-sidebar {
  width: 260px; position: fixed; top: 64px; bottom: 0; left: 0;
  background: rgba(5, 5, 12, 0.97);
  border-right: 1px solid var(--border);
  overflow-y: auto; z-index: 50;
}
.admin-main { margin-left: 260px; flex: 1; padding: 2rem; min-width: 0; }

/* Admin table */
.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th {
  padding: 0.875rem 1rem;
  background: rgba(124,58,237,0.08);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-muted); text-align: left;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem; color: var(--text-secondary);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(124,58,237,0.04); }
.admin-table tr:last-child td { border-bottom: none; }

.table-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.table-title { font-size: 1rem; font-weight: 700; color: #fff; }

/* Search input */
.search-input {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0 0.875rem;
}
.search-input input {
  background: none; border: none; outline: none;
  color: #fff; font-size: 0.875rem; padding: 0.625rem 0;
  width: 200px; font-family: 'Poppins', sans-serif;
}
.search-input i { color: var(--text-muted); }

/* Chart */
.chart-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem;
}
.chart-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.page-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.875rem;
  text-decoration: none; transition: var(--transition);
  cursor: pointer; background: rgba(255,255,255,0.02);
}
.page-link:hover { border-color: var(--purple); color: var(--purple-light); }
.page-link.active { background: linear-gradient(135deg, var(--purple), var(--blue)); border-color: transparent; color: #fff; }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ============================
   SKELETON LOADER
   ============================ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(124,58,237,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================
   FOOTER
   ============================ */
.footer {
  position: relative; margin-top: 4rem;
  background: rgba(5, 5, 10, 0.95);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer-glow {
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--blue), var(--cyan), transparent);
  opacity: 0.6;
}
.footer-brand {
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}
.footer-tagline { color: var(--purple-light); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer-desc { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-heading { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; space-y: 0.5rem; }
.footer-links li { margin-bottom: 0.625rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8125rem; transition: var(--transition); display: flex; align-items: center; }
.footer-links a:hover { color: var(--purple-light); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 0.75rem; }
.footer-contact a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-contact a:hover { color: var(--purple-light); }
.footer-contact i { color: var(--purple-light); font-size: 1rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 0.5rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem;
  text-decoration: none; transition: var(--transition);
}
.social-btn:hover { background: rgba(124,58,237,0.2); border-color: var(--purple); color: var(--purple-light); transform: translateY(-2px); }
.payment-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.pay-badge {
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  font-size: 0.6875rem; font-weight: 700; color: var(--text-muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem; margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: var(--text-muted);
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.animate-fadeIn { animation: fadeIn 0.6s ease both; }
.animate-fadeInUp { animation: fadeInUp 0.6s ease both; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Scroll-reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================
   UTILITIES
   ============================ */
.container { max-width: 1280px; margin: 0 auto; }
.text-gradient {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.neon-border { border: 1px solid var(--purple); box-shadow: 0 0 10px rgba(124,58,237,0.3); }
.neon-glow { box-shadow: var(--neon-glow); }
.glass { background: var(--bg-card); backdrop-filter: blur(20px); }
.divider { height: 1px; background: var(--border); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .dashboard-sidebar { transform: translateX(-100%); }
  .dashboard-sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; padding: 1rem; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 1rem; }
  .hero { padding: 6rem 0 3rem; }
  .hero-title { font-size: 2.25rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .product-selector { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .product-selector { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ============================
   TOASTS / MODALS
   ============================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn 0.2s ease;
}
.modal {
  background: rgba(10, 8, 25, 0.97);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 2rem; max-width: 480px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: fadeInUp 0.3s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.125rem; font-weight: 700; color: #fff; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; transition: var(--transition); }
.modal-close:hover { color: #fff; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-dot {
  position: absolute; left: -26px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple); border: 2px solid var(--bg-dark);
  box-shadow: 0 0 8px rgba(124,58,237,0.4);
}
.timeline-dot.success { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.timeline-dot.error { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.timeline-time { font-size: 0.6875rem; color: var(--text-muted); }
.timeline-text { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 2px; }

/* Invoice */
.invoice-card {
  max-width: 640px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
}
.invoice-header {
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(37,99,235,0.2));
  padding: 2rem; text-align: center; border-bottom: 1px solid var(--border);
}
.invoice-body { padding: 2rem; }
.invoice-row { display: flex; justify-content: space-between; padding: 0.625rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.invoice-row:last-child { border-bottom: none; }
.invoice-label { font-size: 0.8125rem; color: var(--text-muted); }
.invoice-value { font-size: 0.875rem; font-weight: 600; color: #fff; text-align: right; }

/* Progress bar */
.progress-bar {
  height: 6px; border-radius: 9999px;
  background: rgba(255,255,255,0.06); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 9999px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transition: width 0.5s ease;
}

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,0.1); border-radius: 9999px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, var(--purple), var(--blue)); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
