:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #0f141f;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 52, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #06b6d4;
  --accent-orange: #f59e0b;
  --accent-xmr: #ff6600;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --success: #10b981;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(255, 102, 0, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Glassmorphism helpers */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: #fff;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 15px var(--primary-glow);
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

/* Hero Section */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span.gradient {
  background: linear-gradient(135deg, #fff 20%, #a5b4fc 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 30px;
}

/* Feature Ribbons */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.feature-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Product Cards Grid */
.catalog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-title h2 {
  font-size: 24px;
  font-weight: 800;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.game-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1e293b;
}

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

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

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.game-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-category {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.game-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.game-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.game-spec-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

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

.price-box {
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-current {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.btn-buy {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--primary-glow);
  text-decoration: none;
}

.btn-buy:hover {
  background: linear-gradient(135deg, #7c3aed, var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Modals & Checkout layout */
.checkout-wrapper {
  max-width: 960px;
  margin: 40px auto 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

@media (max-width: 860px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--border-focus);
}

/* Payment Method Selectors */
.payment-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.pay-card {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pay-card.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 15px var(--primary-glow);
}

.pay-card-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-card-sub {
  font-size: 11px;
  color: var(--text-dim);
}

/* QR Code & Crypto Display */
.crypto-pay-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed rgba(255, 102, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}

.qr-placeholder {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.qr-placeholder img {
  display: block;
}

.copy-input-group {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Account Revealed Card */
.credentials-display {
  background: #0d1526;
  border: 2px solid var(--success);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.cred-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-item span.label {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

.cred-item span.val {
  color: #38bdf8;
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
