/* ============ Reset & Variables ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #070b14;
  --bg-2: #0e1422;
  --card: #111a2e;
  --card-hover: #16213a;
  --border: #1e2a44;
  --primary: #7c3aed;
  --primary-2: #a855f7;
  --accent: #22d3ee;
  --text: #eef2f9;
  --muted: #8a93a8;
  --wa: #25d366;
  --wa-dark: #1ea952;
  --radius: 16px;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(124,58,237,0.18), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(34,211,238,0.12), transparent 45%);
  background-attachment: fixed;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,20,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px -4px rgba(124,58,237,0.7);
}
.logo-text b { color: var(--primary-2); }

.nav { display: flex; gap: 10px; align-items: center; }
.nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}
.nav a:hover { color: var(--text); background: var(--card); }
.nav .nav-wa {
  background: var(--wa);
  color: #06281a;
  font-weight: 700;
}
.nav .nav-wa:hover { background: var(--wa-dark); color: #fff; }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 70px 20px 40px;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(168,85,247,0.35);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ============ Games Grid ============ */
.games { padding: 40px 20px 60px; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  background: var(--card-hover);
}
.game-art {
  aspect-ratio: 16/10;
  display: grid;
  place-items: center;
  position: relative;
}
.game-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,11,20,0.85));
}
.game-emoji {
  font-size: 64px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  z-index: 1;
}
.game-body { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.game-body h3 { font-size: 18px; font-weight: 800; }
.game-body p { color: var(--muted); font-size: 14px; }
.btn-small {
  margin-top: 12px;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.game-card:hover .btn-small { color: var(--accent); letter-spacing: 0.5px; }

/* ============ Features ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 20px 60px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.feature span { font-size: 28px; display: block; margin-bottom: 8px; }
.feature h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 13px; }

/* ============ Game Page ============ */
.game-page { padding: 40px 20px 70px; max-width: 720px; }

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back:hover { color: var(--accent); }

.game-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.game-icon {
  width: 74px; height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.game-header h1 { font-size: 28px; font-weight: 900; line-height: 1.2; }
.game-header p { color: var(--muted); font-size: 15px; }

/* ============ Form ============ */
.charge-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.form-group { margin-bottom: 26px; }
.form-group > label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  direction: ltr;
  text-align: right;
}
.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}
.hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 8px; }

/* ============ Packs ============ */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.pack { cursor: pointer; position: relative; }
.pack input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pack-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 14px;
  transition: all 0.2s;
  text-align: center;
}
.pack-content strong { font-size: 22px; font-weight: 900; color: var(--text); }
.pack-content small { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.pack-content em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 8px;
}
.pack:hover .pack-content { border-color: var(--primary); transform: translateY(-2px); }
.pack input:checked + .pack-content {
  border-color: var(--primary-2);
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(34,211,238,0.08));
  box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
}
.pack input:checked + .pack-content strong { color: #fff; }

/* ============ WhatsApp Button ============ */
.btn-wa {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.5);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -6px rgba(37,211,102,0.7);
}
.btn-wa:active { transform: translateY(0); }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .muted { font-size: 13px; margin-top: 4px; opacity: 0.7; }

/* ============ Responsive ============ */
@media (max-width: 600px) {
  .nav a:not(.nav-wa) { display: none; }
  .hero { padding: 50px 20px 30px; }
  .charge-form { padding: 20px; }
  .game-header { gap: 14px; }
  .game-icon { width: 60px; height: 60px; font-size: 28px; }
  .game-header h1 { font-size: 22px; }
  .packs { grid-template-columns: repeat(2, 1fr); }
}