:root {
  --bg-dark: #0b0f19;
  --card-bg: #131b2e;
  --card-hover: #1b2640;
  --card-border: #1e293b;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
}

.top-nav {
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(0.95); opacity: 1; }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge.live {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: #1e293b;
  padding: 0.2rem;
  border-radius: 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.lang-btn.active {
  background: var(--accent-purple);
  color: #fff;
}

.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.25rem;
  border-radius: 12px;
  text-align: left;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.metric-value.highlight {
  color: var(--accent-purple);
}

.metric-value.profit {
  color: var(--accent-emerald);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  background: var(--card-hover);
  color: var(--text-main);
}

.pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: #c084fc;
}

.search-box input {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  width: 280px;
  outline: none;
  font-size: 0.9rem;
}

.search-box input:focus {
  border-color: var(--accent-purple);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.game-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  background: #0f172a;
  overflow: hidden;
}

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

.game-card:hover .game-thumb {
  transform: scale(1.04);
}

.badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-strike-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-strike-overlay span {
  text-decoration: line-through;
  margin-right: 0.3rem;
}

.price-strike-overlay strong {
  color: var(--accent-emerald);
}

.game-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.game-platform-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.game-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  margin-top: auto;
}

.expiry-tag {
  font-size: 0.75rem;
  color: var(--accent-amber);
  font-family: var(--font-mono);
}

.claim-btn {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.claim-btn:hover {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--card-border);
  margin-top: 4rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  color: var(--accent-purple);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclaimer {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-section h1 { font-size: 1.85rem; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .games-grid { grid-template-columns: 1fr; }
}
