/* ============================================================
   KZL-Games — Professional Web3 Gaming Theme
   Cyberpunk Dark Theme with Neon Accents
   ============================================================ */

/* ============ CSS Variables ============ */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #222940;
  --bg-input: #0d1117;
  --border: #1e293b;
  --border-glow: #2a3a5c;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --cyan-dim: rgba(0, 240, 255, 0.1);

  --purple: #7b2fff;
  --purple-glow: rgba(123, 47, 255, 0.3);
  --purple-dim: rgba(123, 47, 255, 0.1);

  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.4);

  --common: #a0a0a0;
  --uncommon: #00ff88;
  --rare: #0088ff;
  --epic: #aa00ff;
  --legendary: #ffaa00;

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-glow: 0 0 20px var(--cyan-glow);
  --shadow-purple: 0 0 20px var(--purple-glow);
}

/* ============ Reset & Base ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Particle/Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    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: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-dim) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 15s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-50px, 30px) scale(1.05); }
  50% { transform: translate(-20px, -20px) scale(0.95); }
  75% { transform: translate(30px, -40px) scale(1.03); }
}

/* ============ Container ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ============ Typography ============ */
h1, h2, h3, h4 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; letter-spacing: 2px; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-dim);
}

.nav-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00b8d4);
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), #9333ea);
  color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-purple:hover {
  box-shadow: 0 0 30px var(--purple-glow);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px var(--gold-glow);
}
.btn-gold:hover {
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover {
  background: var(--cyan-dim);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.15rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============ Hero Section ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-text .subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 40px var(--purple-dim);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  z-index: -1;
  opacity: 0.3;
}

.hero-card .token-symbol {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card .token-name {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============ Stat Cards ============ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-dim);
}
.stat-card .stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ Sections ============ */
.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Card Grid ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px var(--cyan-dim);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::after {
  opacity: 1;
}

/* ============ Forms ============ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.input-with-suffix {
  position: relative;
}

.input-with-suffix .suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

/* ============ Tiers Display ============ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.tier-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.tier-card.common { border-color: var(--common); }
.tier-card.uncommon { border-color: var(--uncommon); }
.tier-card.rare { border-color: var(--rare); }
.tier-card.epic { border-color: var(--epic); }
.tier-card.legendary {
  border-color: var(--legendary);
  box-shadow: 0 0 20px var(--gold-glow);
}

.tier-card.active {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.tier-card .tier-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tier-card .tier-range {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.tier-card .tier-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.tier-card.common .tier-name { color: var(--common); }
.tier-card.uncommon .tier-name { color: var(--uncommon); }
.tier-card.rare .tier-name { color: var(--rare); }
.tier-card.epic .tier-name { color: var(--epic); }
.tier-card.legendary .tier-name { color: var(--legendary); }

/* ============ Marketplace ============ */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.listing-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.listing-card .listing-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-card .listing-body {
  padding: 16px;
}

.listing-card .listing-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rarity-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rarity-badge.common { background: rgba(160,160,160,0.2); color: var(--common); }
.rarity-badge.uncommon { background: rgba(0,255,136,0.2); color: var(--uncommon); }
.rarity-badge.rare { background: rgba(0,136,255,0.2); color: var(--rare); }
.rarity-badge.epic { background: rgba(170,0,255,0.2); color: var(--epic); }
.rarity-badge.legendary { background: rgba(255,170,0,0.2); color: var(--legendary); }

/* ============ Inventory ============ */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.nft-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nft-item:hover {
  transform: translateY(-4px);
}

.nft-item .nft-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.nft-item .nft-count {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============ Wallet Modal ============ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal h3 {
  margin-bottom: 16px;
  text-align: center;
}

/* ============ Toast / Notifications ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 16px 24px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px var(--cyan-dim);
  animation: slideUp 0.3s ease;
  max-width: 400px;
}

.toast.error {
  border-color: var(--danger);
  box-shadow: 0 10px 40px rgba(239,68,68,0.2);
}

.toast.success {
  border-color: var(--success);
  box-shadow: 0 10px 40px rgba(16,185,129,0.2);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============ Loading Spinner ============ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ Progress Bars ============ */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
}

/* ============ Table (Admin-like) ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.data-table tr:hover td {
  background: var(--bg-card-hover);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--cyan);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .tiers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-grid {
    grid-template-columns: 1fr;
  }

  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tiers-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ Utility ============ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none !important; }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.font-mono { font-family: 'Courier New', monospace; }

/* ============================================================
   CYBERPUNK GAMING ENHANCEMENTS — Neon + Scanlines + Glitch
   ============================================================ */

/* ============ CRT Scanline Overlay ============ */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}
.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ============ Glitch Text Animation ============ */
@keyframes glitch {
  0%, 100% { transform: translate(0); text-shadow: none; }
  2% { transform: translate(-2px, 1px); text-shadow: -1px 0 var(--cyan), 1px 0 var(--purple); }
  4% { transform: translate(2px, -1px); text-shadow: 1px 0 var(--cyan), -1px 0 var(--purple); }
  6% { transform: translate(0); text-shadow: none; }
  92%, 94% { transform: translate(0); text-shadow: none; }
  96% { transform: translate(-2px, 1px); text-shadow: -1px 0 var(--cyan), 1px 0 var(--purple); }
  98% { transform: translate(2px, 0); text-shadow: 1px 0 var(--cyan), -1px 0 var(--purple); }
}

.glitch-text {
  animation: glitch 3s ease-in-out infinite;
  position: relative;
  display: inline-block;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.glitch-text::before {
  color: var(--cyan);
  animation: glitchSlice 3s ease-in-out infinite;
  clip-path: polygon(0 35%, 100% 35%, 100% 45%, 0 45%);
}
.glitch-text::after {
  color: var(--purple);
  animation: glitchSlice 3s ease-in-out 0.15s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 75%, 0 75%);
}

@keyframes glitchSlice {
  0%, 90%, 100% { opacity: 0; transform: translate(0); }
  92% { opacity: 0.6; transform: translate(-4px, 2px); }
  96% { opacity: 0.6; transform: translate(4px, -2px); }
}

/* ============ Neon Pulse Rings ============ */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--cyan);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid var(--purple);
  animation: pulseRing 2s ease-out 0.6s infinite;
  pointer-events: none;
  opacity: 0;
}

@keyframes pulseRing {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ============ Floating Particles Canvas ============ */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============ Neon Border Pulse ============ */
@keyframes borderPulse {
  0%, 100% { border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan-dim); }
  50% { border-color: var(--purple); box-shadow: 0 0 20px var(--purple-dim); }
}

.neon-border {
  animation: borderPulse 3s ease-in-out infinite;
}

/* ============ Flicker Text ============ */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.8; }
  43% { opacity: 1; }
  45% { opacity: 0.3; }
  46% { opacity: 1; }
}

.flicker {
  animation: flicker 4s linear infinite;
}

/* ============ Hover Glow Intensify ============ */
.glow-hover {
  transition: all 0.4s ease;
}
.glow-hover:hover {
  box-shadow:
    0 0 20px var(--cyan-glow),
    0 0 40px var(--purple-dim),
    0 0 80px var(--cyan-dim);
  transform: translateY(-3px);
}

/* ============ Element-Themed Dividers ============ */
.divider-fire {
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4500, #ff8c00, var(--gold), transparent);
  border: none;
  margin: 20px 0;
}
.divider-water {
  height: 2px;
  background: linear-gradient(90deg, transparent, #0088ff, #00d4ff, var(--cyan), transparent);
  border: none;
  margin: 20px 0;
}
.divider-air {
  height: 2px;
  background: linear-gradient(90deg, transparent, #7b8cff, #a78bfa, var(--purple), transparent);
  border: none;
  margin: 20px 0;
}
.divider-nature {
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, #00ff88, var(--uncommon), transparent);
  border: none;
  margin: 20px 0;
}

/* ============ Count-Up Number Animation ============ */
@keyframes countIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.count-in {
  animation: countIn 0.5s ease-out forwards;
}

/* ============ Staggered Card Appear ============ */
.stagger-1 { animation: countIn 0.4s ease-out 0.1s both; }
.stagger-2 { animation: countIn 0.4s ease-out 0.2s both; }
.stagger-3 { animation: countIn 0.4s ease-out 0.3s both; }
.stagger-4 { animation: countIn 0.4s ease-out 0.4s both; }
.stagger-5 { animation: countIn 0.4s ease-out 0.5s both; }

/* ============ Cyber Button Enhance ============ */
.btn-cyber {
  position: relative;
  overflow: visible;
}
.btn-cyber::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--purple), var(--cyan));
  background-size: 200% 200%;
  z-index: -1;
  animation: cyberBorder 2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-cyber:hover::after {
  opacity: 0.5;
}

@keyframes cyberBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============ Typewriter Cursor ============ */
.typewriter::after {
  content: '▌';
  animation: blink 1s step-end infinite;
  color: var(--cyan);
}
@keyframes blink {
  50% { opacity: 0; }
}