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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --card: #111122;
  --card2: #161628;
  --border: rgba(255,255,255,0.07);
  --text: #c8c8e0;
  --text2: #8888aa;
  --accent: #00f0ff;
  --accent2: #7c3aed;
  --gold: #f0b429;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── BACKGROUND ANIMATED GRID ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,7,15,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.header-badge {
  background: linear-gradient(90deg, rgba(0,240,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(0,240,255,0.3);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 24px 56px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,240,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 20px currentColor;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── SECTION ── */
.section {
  position: relative;
  z-index: 1;
  padding: 0 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── GAMES GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--card-color, var(--accent));
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--card-color, var(--accent));
}

/* ── SHIMMER SKELETON ── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.game-card-banner {
  height: 155px;
  background: var(--card-gradient, linear-gradient(135deg, #1a1a2e, #16213e));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: background-image 0.4s ease;
}

.game-card-banner.skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 50%, transparent 100%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  z-index: 3;
}

/* Dark gradient overlay over image */
.game-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.75) 80%,
    var(--card) 100%
  );
  z-index: 1;
}

/* Small logo: top-left corner */
.game-card-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
}

.game-card-logo-fallback {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 2rem;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

/* FREE badge: top-right */
.game-card-free-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #22c55e;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 50px;
  z-index: 2;
}

/* Game name overlay: bottom of banner */
.game-card-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-body {
  padding: 10px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.game-card-currency {
  font-size: 0.78rem;
  color: var(--card-color, var(--accent));
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.currency-icon-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.game-card-btn {
  padding: 7px 14px;
  background: var(--card-gradient, linear-gradient(90deg, var(--accent), var(--accent2)));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.game-card-btn:hover { opacity: 0.88; transform: scale(1.04); }

/* ── GENERATOR PAGE ── */
.gen-page {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.gen-banner {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
}

.gen-banner-bg {
  position: absolute;
  inset: 0;
  background: var(--game-gradient, linear-gradient(135deg, #1a1a2e, #16213e));
}

.gen-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 50%, var(--bg) 100%);
}

.gen-banner-game-logo {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-55%);
  width: 110px;
  height: 110px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  opacity: 0.9;
}

.gen-banner-emoji-fallback {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-60%);
  font-size: 5rem;
  opacity: 0.3;
  filter: blur(1px);
}

.gen-banner-content {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text2);
  margin-bottom: 8px;
}

.breadcrumb a {
  color: var(--text2);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--accent); }

.gen-game-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 900;
  color: #fff;
}

.gen-currency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
}

/* ── GENERATOR CONTAINER ── */
.gen-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── STEPS INDICATOR ── */
.steps-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
  transition: all 0.3s;
}

.step-dot.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0,240,255,0.3);
}

.step-dot.done {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.step-label {
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  transition: background 0.3s;
}

.step-line.done { background: var(--accent); }

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── CARDS ── */
.gen-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.gen-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gen-card-title .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fff;
  flex-shrink: 0;
}

/* ── FORM ELEMENTS ── */
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"] {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,240,255,0.1);
}

input[type="text"]::placeholder { color: var(--text2); opacity: 0.5; }

/* ── PLATFORM GRID ── */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.platform-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.platform-btn:hover, .platform-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,240,255,0.05);
}

/* ── AMOUNT GRID ── */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.amount-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.currency-icon-md {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-bottom: 2px;
}

.amount-btn:hover, .amount-btn.selected {
  border-color: var(--accent);
  background: rgba(0,240,255,0.05);
}

.amount-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.amount-label {
  font-size: 0.7rem;
  color: var(--text2);
  margin-top: 2px;
}

/* ── GENERATE BUTTON ── */
.btn-generate {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}

.btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-generate:hover::after { transform: translateX(100%); }
.btn-generate:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── LOADING ── */
#loading-section {
  display: none;
}

.loading-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.loading-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.loading-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.loading-status {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 20px;
  min-height: 20px;
  font-weight: 600;
}

.progress-bar-wrap {
  background: var(--bg2);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 50px;
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px var(--accent);
}

.loading-steps-list {
  list-style: none;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text2);
}

.loading-steps-list li {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading-steps-list li .check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.loading-steps-list li.done .check {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.loading-steps-list li.done { color: var(--text); }

/* ── LOCKER SECTION ── */
#locker-section {
  display: none;
}

.locker-card {
  background: var(--card);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0,240,255,0.05);
  overflow: visible;
}

#content-locker-wrapper {
  overflow: visible;
  width: 100%;
}

.locker-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.locker-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.locker-desc {
  font-size: 0.88rem;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.locker-result-preview {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.result-item {
  text-align: center;
}

.result-label {
  font-size: 0.72rem;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

/* ===== PASTE LOCKER CODE HERE ===== */
#content-locker-wrapper {
  min-height: 60px;
  /* Your content locker will appear here */
}
/* ================================== */

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text2);
  font-size: 0.78rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  header { padding: 0 16px; }
  .hero { padding: 40px 16px 32px; }
  .section { padding: 0 16px 48px; }
}
