@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');
/* ===== DESIGN SYSTEM — CoinDrop (buypin.net cyan) ===== */
.material-symbols-outlined { font-family:'Material Symbols Outlined'; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; vertical-align:middle; line-height:1; }
:root {
  /* buypin.net cyan palitra — o'zgaruvchi nomlari saqlangan (JS/HTML mosligi uchun) */
  --gold: #00e5ff;
  --gold-dark: #00b8d4;
  --gold-light: #33eaff;
  --bg: #090b11;
  --bg2: #141a25;
  --bg3: #1a2130;
  --bg4: #232c3a;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --border: rgba(148,163,184,0.12);
  --border2: rgba(0,229,255,0.28);
  --green: #10b981;
  --red: #ef4444;
  --blue: #00e5ff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 40px rgba(0,229,255,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; }

h1,h2,h3,h4,.logo,.btn-gold,.price-amount,.section-tag,.step-num {
  font-family: 'Space Grotesk',sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--gold); color: #000;
  font-weight: 700; font-size: 14px;
  border-radius: var(--radius-sm); border: none;
  transition: all 0.2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,229,255,0.3); }
.btn-gold.lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-gold.sm { padding: 8px 16px; font-size: 13px; }
.btn-gold.full { width: 100%; justify-content: center; padding: 14px; font-size: 15px; border-radius: 10px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: transparent; color: var(--text2);
  font-weight: 600; font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-outline.lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-outline.sm { padding: 8px 16px; font-size: 13px; }
.btn-outline.full { width: 100%; justify-content: center; padding: 14px; font-size: 15px; border-radius: 10px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(7,6,10,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(7,6,10,0.98); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 40px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; color: var(--text); flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #000;
  box-shadow: 0 4px 12px rgba(0,229,255,0.3);
}
.logo-sub { font-size: 10px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-top: -4px; display: block; }
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text3); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.btn-ghost {
  padding: 8px 18px; background: transparent; color: var(--text2);
  font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.burger span { width: 22px; height: 2px; background: var(--text2); border-radius: 2px; display: block; }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { padding: 10px 0; font-size: 15px; color: var(--text2); border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.07) 0%, transparent 65%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 20px;
  background: rgba(0,229,255,0.07); border: 1px solid var(--border2);
  color: var(--gold); font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
h1 { font-size: 54px; margin-bottom: 18px; }
h1 em { font-style: normal; color: var(--gold); }
.hero-desc { font-size: 16px; color: var(--text2); margin-bottom: 28px; max-width: 440px; line-height: 1.7; }
.hero-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.feat-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,229,255,0.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; }
.hstat { text-align: center; padding: 0 24px; }
.hstat:first-child { padding-left: 0; }
.hstat-num { font-family: 'Space Grotesk',sans-serif; font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.hstat-num span { font-size: 20px; }
.hstat-lbl { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.hstat-div { width: 1px; height: 40px; background: var(--border2); }

/* GAME PREVIEW CARD */
.hero-right { position: relative; }
.game-preview {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), var(--shadow-gold);
}
.preview-header {
  background: var(--bg3); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.preview-url {
  flex: 1; background: var(--bg4); border-radius: 6px;
  padding: 6px 12px; font-size: 12px; color: var(--text3);
  display: flex; align-items: center; gap: 6px;
}
.preview-url .lock { color: var(--green); font-size: 11px; }
.preview-body { padding: 20px; }
.game-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.game-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text3); cursor: pointer;
  transition: all 0.2s;
}
.game-tab.active { background: var(--gold); color: #000; border-color: var(--gold); }
.game-packages { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 16px; }
.pkg-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; text-align: center;
  cursor: pointer; transition: all 0.2s;
}
.pkg-card.selected { border-color: var(--gold); background: rgba(0,229,255,0.06); }
.pkg-card:hover { border-color: var(--border2); }
.pkg-icon { font-size: 20px; margin-bottom: 4px; }
.pkg-amount { font-size: 13px; font-weight: 700; color: var(--text); }
.pkg-price { font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.preview-pay-btn {
  width: 100%; padding: 12px; background: var(--gold); color: #000;
  font-weight: 700; font-size: 14px; border: none; border-radius: 10px;
  font-family: 'Space Grotesk',sans-serif;
}
.hero-float {
  position: absolute; bottom: -16px; left: -24px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.float-icon { font-size: 24px; }
.float-title { font-size: 13px; font-weight: 700; color: var(--text); }
.float-sub { font-size: 11px; color: var(--green); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  background: rgba(0,229,255,0.08); border: 1px solid var(--border2);
  color: var(--gold); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: 42px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text2); max-width: 480px; margin: 0 auto; }

/* ===== GAMES GRID ===== */
.games-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.game-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.25s; cursor: pointer; position: relative;
}
.game-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.game-card-img {
  height: 120px; display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; overflow: hidden;
}
.game-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg2));
}
.game-card-body { padding: 14px; }
.game-card-name { font-family: 'Space Grotesk',sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.game-card-currency { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.game-card-price { font-size: 13px; color: var(--gold); font-weight: 600; }
.game-badge {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.game-badge.hot { background: rgba(239,68,68,0.15); color: var(--red); }
.game-badge.new { background: rgba(16,185,129,0.15); color: var(--green); }

/* ===== HOW IT WORKS ===== */
.steps { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.step {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  transition: all 0.25s;
}
.step:hover { border-color: var(--border2); transform: translateY(-2px); }
.step-num { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.step-icon { font-size: 32px; margin-bottom: 12px; }
.step-title { font-family: 'Space Grotesk',sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
.step-arrow { color: var(--gold); font-size: 20px; padding: 0 8px; margin-top: 60px; flex-shrink: 0; opacity: 0.4; }

/* ===== API SECTION ===== */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.api-code {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); overflow: hidden;
}
.api-code-header {
  background: var(--bg4); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.api-code-title { font-size: 12px; color: var(--text3); font-weight: 600; }
.api-code-lang {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; background: rgba(0,229,255,0.1); color: var(--gold);
}
.api-code pre {
  padding: 20px; font-family: 'Courier New', monospace;
  font-size: 13px; line-height: 1.7; overflow-x: auto;
}
.c-kw { color: #c792ea; }
.c-str { color: #c3e88d; }
.c-key { color: #82aaff; }
.c-val { color: #f78c6c; }
.c-cm { color: var(--text3); font-style: italic; }
.api-features { display: flex; flex-direction: column; gap: 20px; }
.api-feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.api-feat:hover { border-color: var(--border2); }
.api-feat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.api-feat-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.api-feat-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 32px; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: relative; transition: all 0.25s;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(0,229,255,0.05), var(--bg2));
}
.price-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; font-size: 11px; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
  font-family: 'Space Grotesk',sans-serif;
}
.price-tier { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 10px; }
.price-amount { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.price-amount span { font-size: 14px; color: var(--text2); font-family: -apple-system,sans-serif; font-weight: 400; }
.price-margin { font-size: 13px; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.price-features { list-style: none; margin-bottom: 24px; }
.price-features li { font-size: 14px; color: var(--text2); padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.price-features li:last-child { border: none; }
.price-features li .check { color: var(--gold); font-weight: 700; }

/* ===== CTA ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.06), rgba(0,229,255,0.02));
  border-top: 1px solid var(--border2);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 46px; margin-bottom: 12px; }
.cta-inner p { font-size: 16px; color: var(--text2); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text3); line-height: 1.6; margin-bottom: 16px; max-width: 280px; }
.footer-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-pay span {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 4px; border: 1px solid var(--border2); color: var(--gold);
}
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col-title { font-family: 'Space Grotesk',sans-serif; font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text3); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text3); flex-wrap: wrap; gap: 8px;
}

/* ===== GAME PAGE ===== */
.topup-page { padding: 100px 0 60px; min-height: 100vh; }
.topup-inner { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.topup-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
}
.topup-card h2 { font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.step-label { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.uid-form { display: flex; gap: 10px; margin-bottom: 20px; }
.uid-input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-size: 14px; outline: none; transition: border 0.2s;
}
.uid-input:focus { border-color: var(--border2); }
.uid-input::placeholder { color: var(--text3); }
.btn-check {
  padding: 12px 20px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--gold); font-size: 14px; font-weight: 600;
  transition: all 0.2s;
}
.btn-check:hover { border-color: var(--border2); background: var(--bg4); }
.uid-result {
  padding: 12px 16px; background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--green); display: none; margin-bottom: 16px;
}
.packages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.package-item {
  background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
  cursor: pointer; transition: all 0.2s;
}
.package-item:hover { border-color: var(--border2); }
.package-item.selected { border-color: var(--gold); background: rgba(0,229,255,0.06); }
.package-item.popular { position: relative; }
.package-popular {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; font-size: 10px; font-weight: 800;
  padding: 2px 10px; border-radius: 10px; white-space: nowrap;
  font-family: 'Space Grotesk',sans-serif;
}
.package-gems { font-size: 22px; font-weight: 800; color: var(--text); font-family: 'Space Grotesk',sans-serif; }
.package-bonus { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 2px; }
.package-price { font-size: 13px; color: var(--gold); font-weight: 700; margin-top: 6px; }
.package-usd { font-size: 11px; color: var(--text3); }

/* ORDER SUMMARY */
.order-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; position: sticky; top: 84px;
}
.order-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.order-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.order-row .label { color: var(--text2); }
.order-row .value { font-weight: 600; }
.order-total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.order-total .label { font-weight: 700; color: var(--text); }
.order-total .value { font-size: 18px; font-weight: 800; color: var(--gold); }
.payment-methods { margin-top: 16px; margin-bottom: 16px; }
.pay-method-title { font-size: 12px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.pay-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-method {
  padding: 10px; background: var(--bg3); border: 2px solid var(--border);
  border-radius: var(--radius-sm); text-align: center; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--text2); transition: all 0.2s;
}
.pay-method:hover { border-color: var(--border2); color: var(--text); }
.pay-method.selected { border-color: var(--gold); color: var(--gold); background: rgba(0,229,255,0.06); }
.pay-method .pm-icon { font-size: 18px; display: block; margin-bottom: 4px; }
.security-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); margin-top: 12px; justify-content: center; }

/* ===== PANEL (Reseller) ===== */
.panel-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: 64px; }
.sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 24px 0; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-section { margin-bottom: 8px; }
.sidebar-label { font-size: 11px; color: var(--text3); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 0 20px; margin-bottom: 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; color: var(--text2);
  transition: all 0.2s; border-left: 2px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sidebar-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(0,229,255,0.05); }
.sidebar-link .icon { font-size: 16px; width: 20px; text-align: center; }
.panel-content { padding: 32px; }
.panel-header { margin-bottom: 28px; }
.panel-header h1 { font-size: 26px; }
.panel-header p { color: var(--text2); font-size: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.stat-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.stat-badge.up { background: rgba(16,185,129,0.1); color: var(--green); }
.stat-num { font-family: 'Space Grotesk',sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 2px; }
.stat-lbl { font-size: 12px; color: var(--text3); }
.apikey-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.apikey-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.apikey-box {
  display: flex; gap: 10px; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px;
}
.apikey-val { flex: 1; font-family: 'Courier New',monospace; font-size: 13px; color: var(--text2); letter-spacing: 1px; }
.btn-copy {
  padding: 6px 14px; background: rgba(0,229,255,0.1); border: 1px solid var(--border2);
  border-radius: 6px; color: var(--gold); font-size: 12px; font-weight: 700;
  transition: all 0.2s;
}
.btn-copy:hover { background: rgba(0,229,255,0.2); }
.transactions-table { width: 100%; border-collapse: collapse; }
.transactions-table th {
  text-align: left; font-size: 11px; color: var(--text3);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.transactions-table td { padding: 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.transactions-table tr:last-child td { border: none; }
.status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px;
}
.status-badge.success { background: rgba(16,185,129,0.1); color: var(--green); }
.status-badge.pending { background: rgba(0,229,255,0.1); color: var(--gold); }
.status-badge.failed { background: rgba(239,68,68,0.1); color: var(--red); }

/* ===== ANIMATIONS ===== */
[data-aos] { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }
[data-aos][data-aos-delay] { transition-delay: var(--delay, 0s); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .api-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  h1 { font-size: 38px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .games-grid { grid-template-columns: repeat(2,1fr); }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 32px; }
  .topup-inner { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .panel-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .nav-links,.nav-right { display: none; }
  .burger { display: flex; margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: repeat(2,1fr); }
  .packages-grid { grid-template-columns: repeat(2,1fr); }
  .footer-links { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg2); transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border2); }
.faq-q {
  padding: 18px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s; user-select: none;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow { color: var(--text3); transition: transform 0.3s; font-style: normal; }
.faq-item.open .faq-q { color: var(--gold); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--gold); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  font-size: 14px; color: var(--text2); line-height: 1.65;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ===== GAME CARDS (JS-rendered) ===== */
.games-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center;
}
.filter-btn {
  padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text3);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }
.filter-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* emoji fallback */
.game-card-icon {
  height: 110px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid; transition: all 0.25s;
  border-radius: var(--radius) var(--radius) 0 0;
}
.game-card:hover .game-card-icon { filter: brightness(1.12); transform: scale(1.02); }

/* real image */
.game-card-img-wrap {
  height: 140px; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; position: relative;
}
.game-card-img-real {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block; transition: transform 0.35s ease;
}
.game-card:hover .game-card-img-real { transform: scale(1.06); }
.game-card-img-wrap::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 50%; pointer-events: none;
  background: linear-gradient(to top, rgba(14,12,18,0.85), transparent);
}

.game-card-info { padding: 12px 14px 14px; }
.game-card-info h3 {
  font-family: 'Space Grotesk',sans-serif;
  font-size: 13px; font-weight: 700; margin-bottom: 3px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card-cat { font-size: 11px; color: var(--text3); }
.game-card-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  background: rgba(0,229,255,0.9); color: #000; backdrop-filter: blur(4px);
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 14px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; max-width: 320px;
  background: var(--bg3); border: 1px solid var(--border);
  transform: translateX(120%); transition: transform 0.3s ease;
  box-shadow: var(--shadow); color: var(--text);
}
.toast.show { transform: translateX(0); }
.toast-success { border-color: rgba(16,185,129,0.3); color: var(--green); }
.toast-error { border-color: rgba(239,68,68,0.3); color: var(--red); }
.toast-info { color: var(--text); }

/* ===== AUTH PAGE ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 60px; background: var(--bg); position: relative; overflow: hidden;
}
.auth-bg-glow {
  position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.auth-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(0,229,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}
.auth-card {
  width: 100%; max-width: 460px; position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 20px; padding: 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { justify-content: center; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 14px; color: var(--text2); text-align: center; margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--bg3); border-radius: 10px; padding: 4px; margin-bottom: 24px; gap: 4px; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer; color: var(--text2);
  border: none; background: transparent; transition: all 0.2s; font-family: inherit;
}
.auth-tab.active { background: var(--bg2); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-panel { display: none; }
.auth-panel.active { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; color: var(--text2); font-weight: 500; }
.form-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
}
.form-input:focus { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 0 3px rgba(0,229,255,0.07); }
.form-input::placeholder { color: var(--text3); }
.form-input.error { border-color: var(--red); }
.form-error { font-size: 12px; color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .form-input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text3); cursor: pointer;
  font-size: 16px; padding: 0; line-height: 1; transition: color 0.2s;
}
.pw-eye:hover { color: var(--text); }
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text3); white-space: nowrap; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text); font-size: 14px; font-weight: 500;
  transition: all 0.2s; cursor: pointer; font-family: inherit;
}
.btn-google:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.google-svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-footer-note { text-align: center; font-size: 13px; color: var(--text3); margin-top: 12px; }
.auth-footer-note a { color: var(--gold); }
.auth-footer-note a:hover { text-decoration: underline; }
.form-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); }
.form-agree input[type="checkbox"] { margin-top: 2px; accent-color: var(--gold); }
.form-agree a { color: var(--gold); }

/* ===== DASHBOARD USER ===== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.dash-sidebar-header {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
}
.dash-nav { flex: 1; padding: 12px 0; }
.dash-nav-section { margin-bottom: 4px; }
.dash-nav-label {
  font-size: 10px; color: var(--text3); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 20px 4px;
}
.dash-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 14px; color: var(--text2);
  transition: all 0.15s; border-left: 2px solid transparent;
}
.dash-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.dash-nav-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(0,229,255,0.05); }
.dash-nav-link .nav-icon { font-size: 15px; width: 18px; text-align: center; }
.dash-sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.dash-user-mini { display: flex; align-items: center; gap: 10px; }
.dash-user-mini-info .name { font-size: 13px; font-weight: 600; }
.dash-user-mini-info .email { font-size: 11px; color: var(--text3); }
.dash-content { padding: 32px; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.dash-topbar h1 { font-size: 24px; margin: 0; }
.dash-topbar p { font-size: 14px; color: var(--text2); margin: 0; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #000; flex-shrink: 0;
}
.user-avatar.lg {
  width: 64px; height: 64px; font-size: 26px;
}
.user-avatar.xl {
  width: 80px; height: 80px; font-size: 32px;
  box-shadow: 0 8px 24px rgba(0,229,255,0.25);
}
.balance-card {
  background: linear-gradient(135deg, rgba(0,229,255,0.1), rgba(0,229,255,0.03));
  border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.balance-card-left .label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.balance-card-left .amount { font-family: 'Space Grotesk',sans-serif; font-size: 36px; font-weight: 800; color: var(--gold); line-height: 1; }
.balance-card-left .amount-sub { font-size: 13px; color: var(--text3); margin-top: 4px; }
.balance-card-right { display: flex; gap: 10px; }
.orders-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0; overflow: hidden;
}
.orders-card-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.orders-card-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  text-align: left; font-size: 11px; color: var(--text3);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.orders-table tr:last-child td { border: none; }
.orders-table tr:hover td { background: rgba(255,255,255,0.02); }
.orders-empty { text-align: center; padding: 48px 24px; color: var(--text3); font-size: 14px; }
.orders-empty-icon { font-size: 40px; margin-bottom: 12px; }
.topup-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--gold); color: #000;
  border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.topup-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ===== PROFILE PAGE ===== */
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.profile-sidebar-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center; position: sticky; top: 24px;
}
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.profile-nick { font-size: 14px; color: var(--gold); margin-bottom: 4px; font-weight: 600; }
.profile-email { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.profile-balance-box {
  padding: 14px; background: var(--bg3); border-radius: 10px;
  border: 1px solid var(--border2); margin-bottom: 14px;
}
.profile-balance-box .lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.profile-balance-box .val { font-family: 'Space Grotesk',sans-serif; font-size: 22px; font-weight: 800; color: var(--gold); }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-meta-item { background: var(--bg3); border-radius: 8px; padding: 10px; text-align: center; }
.profile-meta-num { font-size: 18px; font-weight: 800; font-family: 'Space Grotesk',sans-serif; }
.profile-meta-lbl { font-size: 11px; color: var(--text3); margin-top: 2px; }
.form-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
}
.form-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.form-section-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-sidebar-card { position: static; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-content { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .auth-page { padding: 70px 16px 40px; }
  .balance-card { flex-direction: column; }
}
