/* ═══════════════════════════════════════════════════════════════
   LottoCripto — Complete Design System
   Dark theme with gold/amber accents and purple highlights
   Glassmorphism + micro-animations + psychological triggers
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   CSS CUSTOM PROPERTIES
   ───────────────────────────────────────── */
:root {
  /* Background */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-tertiary: #141420;
  --bg-card: rgba(15, 15, 24, 0.7);
  --bg-card-hover: rgba(20, 20, 35, 0.85);

  /* Gold / Bitcoin Orange */
  --gold-start: #f7931a;
  --gold-end: #ffd700;
  --gold-mid: #ffbf00;
  --gold-light: #fff3a0;
  --gold-glow: rgba(247, 147, 26, 0.3);
  --gold-gradient: linear-gradient(135deg, var(--gold-start), var(--gold-end));

  /* Purple Accent */
  --purple-start: #7c3aed;
  --purple-end: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --purple-gradient: linear-gradient(135deg, var(--purple-start), var(--purple-end));

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;
  --text-gold: var(--gold-start);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --glass-blur: 16px;

  /* Sizes */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-round: 50px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 30px rgba(247, 147, 26, 0.15);
  --shadow-purple: 0 0 30px rgba(124, 58, 237, 0.15);

  /* Z-index */
  --z-particles: 0;
  --z-content: 1;
  --z-nav: 100;
  --z-toast: 200;
}

/* ─────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Allow text selection only in code blocks or specific elements if needed */
code, .address-box, .formula {
  user-select: text;
  -webkit-user-select: text;
}

/* Subtle grid background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: var(--gold-start);
  color: var(--bg-primary);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

code {
  font-family: 'JetBrains Mono', monospace;
}

/* ─────────────────────────────────────────
   PARTICLE CANVAS
   ───────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-particles);
  pointer-events: none;
}

/* ─────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: var(--z-content);
}

/* ─────────────────────────────────────────
   UTILITY CLASSES
   ───────────────────────────────────────── */
.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-purple {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS
   ───────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.animate-on-scroll--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll--visible .step-card:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll--visible .step-card:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll--visible .step-card:nth-child(5) { transition-delay: 0.3s; }

/* ─────────────────────────────────────────
   NAVIGATION
   ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.24);
  transition: all var(--transition-normal);
}

.navbar--scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar--hidden {
  transform: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  z-index: 10;
  perspective: 900px;
}

.hex-3d-wrapper {
  perspective: 800px;
  width: 42px; /* Perfect hexagon ratio width */
  height: 48px; /* Perfect hexagon ratio height */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  filter: drop-shadow(0 6px 12px rgba(247, 147, 26, 0.3));
}

.hex-3d-coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  /* Pause for 3s, spin for 2s */
  animation: hexSpinPremium 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hex-face {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.6rem;
  font-family: Arial, sans-serif;
  color: #1a0f00;
}

.hex-front, .hex-back {
  background: linear-gradient(135deg, #fff2a8 0%, #f7931a 40%, #c46200 100%);
  backface-visibility: hidden;
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Inner golden ring */
.hex-front::before, .hex-back::before {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: inherit;
  background: linear-gradient(135deg, #f7931a 0%, #df7a00 50%, #b35a00 100%);
  z-index: -1;
}

/* Sparkle sweep */
.hex-front::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-20deg);
  animation: hexSweep 5s infinite;
  z-index: 1;
}

.hex-front {
  transform: translateZ(4px);
}

.hex-back {
  transform: rotateY(180deg) translateZ(4px);
}

/* The solid edges to create 3D voxel depth */
.hex-edge {
  background: #a65200; /* Darker gold/bronze for the sides */
}

/* Interleaved shading for edge realism */
.hex-edge:nth-child(even) { background: #8c4200; }
.hex-edge:nth-child(odd) { background: #b35a00; }

/* Scale slightly (1.02) to hide the microscopic 1px gap created by 3D translation */
.hex-edge-1 { transform: translateZ(3px) scale(1.02); }
.hex-edge-2 { transform: translateZ(2px) scale(1.02); }
.hex-edge-3 { transform: translateZ(1px) scale(1.02); }
.hex-edge-4 { transform: translateZ(0px) scale(1.02); }
.hex-edge-5 { transform: translateZ(-1px) scale(1.02); }
.hex-edge-6 { transform: translateZ(-2px) scale(1.02); }
.hex-edge-7 { transform: translateZ(-3px) scale(1.02); }

@keyframes hexSpinPremium {
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  10%  { transform: rotateY(-20deg) rotateX(15deg); } /* Wind up */
  35%  { transform: rotateY(360deg) rotateX(10deg); } /* Fast spin */
  100% { transform: rotateY(360deg) rotateX(10deg); } /* Wait */
}

@keyframes hexSweep {
  0%   { left: -100%; }
  20%  { left: 200%; }
  100% { left: 200%; }
}

.nav-logo:hover .hex-3d-coin {
  animation: hexHoverSpin 1.5s linear infinite;
}

@keyframes hexHoverSpin {
  0%   { transform: rotateY(0deg) rotateX(10deg); }
  100% { transform: rotateY(360deg) rotateX(10deg); }
}

.logo-text {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  background: linear-gradient(to bottom, #ffffff, #d4d4d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: uppercase;
  margin-left: 0.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.logo-text .text-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 70%, #b35a00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-round);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--gold-start);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle--active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 5;
  }

  .nav-links--open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }
}

/* ─────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: heroGlowPulse 4s ease-in-out infinite;
}

.hero-glow--purple {
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  width: 400px;
  height: 400px;
  top: 30%;
  left: 70%;
  animation-delay: 2s;
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-start);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
  animation: badgePulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(247, 147, 26, 0); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Title */
.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.title-line {
  display: block;
}

.title-line--gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(247, 147, 26, 0.3));
}

/* Tagline */
.hero-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--text-secondary);
}

/* Prize Pool Card */
.prize-pool-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid rgba(247, 147, 26, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem 3rem;
  margin-bottom: 2.5rem;
  text-align: center;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.prize-pool-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.prize-pool-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.prize-pool-label i {
  color: var(--gold-start);
}

.prize-pool-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.prize-sats {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.prize-unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.prize-pool-sub {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prize-pool-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(247, 147, 26, 0.05), transparent 50%);
  pointer-events: none;
  animation: prizeGlow 3s ease-in-out infinite;
}

@keyframes prizeGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.stat-card--highlight {
  border-color: rgba(247, 147, 26, 0.15);
  background: rgba(247, 147, 26, 0.05);
}

.stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gold-start);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius-round);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 25px rgba(247, 147, 26, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 35px rgba(247, 147, 26, 0.45);
}

.hero-cta:hover::before {
  left: 100%;
}

.hero-cta i {
  transition: transform var(--transition-fast);
}

.hero-cta:hover i {
  transform: translateX(4px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--gold-start);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ─────────────────────────────────────────
   SECTIONS COMMON
   ───────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
  z-index: var(--z-content);
}

.section--alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-round);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-end);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

/* ─────────────────────────────────────────
   GLASS CARDS
   ───────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─────────────────────────────────────────
   LIVE DRAW SECTION
   ───────────────────────────────────────── */
.live-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .live-grid {
    grid-template-columns: 1fr;
  }
}

/* Pulse dot */
.pulse-dot {
  color: #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.round-badge {
  padding: 4px 12px;
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-start);
  font-family: 'JetBrains Mono', monospace;
}

/* Progress */
.progress-section {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.progress-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
}

.count-highlight {
  color: var(--gold-start);
  font-weight: 700;
  transition: transform 0.3s var(--ease-spring);
  display: inline-block;
}

.count-bump {
  animation: countBump 0.3s var(--ease-spring);
}

@keyframes countBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); color: var(--gold-end); }
  100% { transform: scale(1); }
}

.count-separator {
  color: var(--text-muted);
  margin: 0 2px;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 6px;
  transition: width 0.8s var(--ease-out);
  position: relative;
  min-width: 0;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 6px 6px 0 0;
}

.progress-glow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, var(--gold-glow), transparent);
  border-radius: 50%;
  animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.3); }
}

.progress-bar--hot {
  background: linear-gradient(135deg, #f7931a, #ff6b00);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.progress-bar--critical {
  background: linear-gradient(135deg, #ef4444, #f7931a);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  animation: criticalPulse 0.8s ease-in-out infinite;
}

@keyframes criticalPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.scarcity-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.scarcity--hot {
  color: var(--gold-start);
  font-weight: 600;
}

.scarcity--critical {
  color: #ef4444;
  font-weight: 700;
  animation: scarcityBlink 1s ease-in-out infinite;
}

@keyframes scarcityBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.progress-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-start);
}

/* Live Prize */
.live-prize {
  background: rgba(247, 147, 26, 0.05);
  border: 1px solid rgba(247, 147, 26, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.live-prize-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.live-prize-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.live-prize-winner {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.live-prize-winner strong {
  color: var(--gold-start);
}

/* Round Status */
.round-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--waiting {
  background: var(--text-muted);
  animation: dotBlink 2s ease-in-out infinite;
}

.status-dot--active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: dotBlink 1.5s ease-in-out infinite;
}

.status-dot--drawing {
  background: var(--gold-start);
  box-shadow: 0 0 8px var(--gold-glow);
  animation: dotBlink 0.5s ease-in-out infinite;
}

.status-dot--completed {
  background: var(--purple-end);
  box-shadow: 0 0 8px var(--purple-glow);
}

/* Live Indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: liveDotPulse 1.5s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* Purchases List */
.purchases-list {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.purchases-list::-webkit-scrollbar {
  width: 4px;
}

.purchases-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.purchase-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.purchase-empty i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.purchase-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  animation: purchaseSlideIn 0.4s var(--ease-out) both;
}

.purchase-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.purchase-item--new {
  background: rgba(247, 147, 26, 0.05);
  border-left: 3px solid var(--gold-start);
}

@keyframes purchaseSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.purchase-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--purple-light);
  flex-shrink: 0;
}

.purchase-info {
  flex: 1;
  min-width: 0;
}

.purchase-address {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.purchase-status {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--success);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-status i {
  margin-right: 0.25rem;
}

.purchase-amount {
  text-align: right;
  flex-shrink: 0;
}

.purchase-tickets {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-start);
}

.purchase-sats {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.purchases-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  margin-top: 1rem;
}

.social-proof {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.social-proof i {
  color: #22c55e;
}

/* ─────────────────────────────────────────
   HOW TO PARTICIPATE
   ───────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.step-card:hover {
  border-color: rgba(247, 147, 26, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-card p strong {
  color: var(--gold-start);
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .step-connector {
    transform: rotate(90deg);
    padding: 0.5rem;
  }
}

/* Payment Card */
.payment-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  /* Animated gradient border */
  padding: 2px;
  background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
              linear-gradient(135deg, var(--gold-start), var(--purple-start), var(--gold-end)) border-box;
  border: 2px solid transparent;
}

.payment-card-inner {
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .payment-card-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

.payment-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.payment-title i {
  color: var(--gold-start);
}

.payment-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.payment-note strong {
  color: var(--gold-start);
}

/* Address Box */
.address-container {
  margin-bottom: 1.5rem;
  position: relative;
}

.address-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.address-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(247, 147, 26, 0.05);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: var(--radius-md);
  position: relative;
  transition: all var(--transition-normal);
}

.address-box:hover {
  border-color: rgba(247, 147, 26, 0.4);
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.1);
}

.address-box--pulse {
  animation: addressPulse 1.5s ease-in-out;
}

@keyframes addressPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(247, 147, 26, 0); }
}

.address-box code {
  flex: 1;
  font-size: 0.8rem;
  color: var(--gold-start);
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  padding: 0.5rem 0.75rem;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 12px rgba(247, 147, 26, 0.4);
}

.copy-feedback {
  position: absolute;
  bottom: -28px;
  left: 0;
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition-fast);
}

.copy-feedback--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Payment Info Grid */
.payment-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-info-item {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.info-value--testnet {
  color: var(--gold-start);
}

/* QR Code */
.payment-right {
  display: flex;
  justify-content: center;
}

.qr-container {
  text-align: center;
}

.qr-frame {
  padding: 1rem;
  background: rgba(10, 10, 15, 0.8);
  border: 2px solid rgba(247, 147, 26, 0.2);
  border-radius: var(--radius-lg);
  display: inline-block;
  transition: all var(--transition-normal);
}

.qr-frame:hover {
  border-color: rgba(247, 147, 26, 0.5);
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.15);
}

.qr-code {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code img {
  border-radius: var(--radius-sm);
}

.qr-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Payment Warning */
.payment-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: rgba(239, 68, 68, 0.05);
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.payment-warning i {
  color: #ef4444;
  margin-top: 2px;
  flex-shrink: 0;
}

.payment-warning strong {
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────
   RULES SECTION
   ───────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .rules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.rule-card:hover {
  border-color: rgba(247, 147, 26, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.rule-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gold-start);
}

.rule-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.rule-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Rules Table */
.rules-table-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
}

.rules-table th,
.rules-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.9rem;
}

.rules-table thead {
  background: rgba(247, 147, 26, 0.05);
}

.rules-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-start);
  border-bottom: 1px solid rgba(247, 147, 26, 0.1);
}

.rules-table td {
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.rules-table td i {
  margin-right: 0.5rem;
}

.rules-table tr:last-child td {
  border-bottom: none;
}

.rules-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ─────────────────────────────────────────
   PROVABLY FAIR SECTION
   ───────────────────────────────────────── */
.fair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .fair-grid {
    grid-template-columns: 1fr;
  }
}

.fair-card {
  height: 100%;
}

.fair-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Fair Steps */
.fair-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fair-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.fair-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.fair-step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.fair-step-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Formula */
.formula-container {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.formula {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.formula-line {
  color: var(--text-primary);
}

.formula-comment {
  color: var(--text-muted);
}

.formula-str {
  color: var(--gold-start);
}

.formula-fn {
  color: var(--purple-light);
}

.formula-op {
  color: #ef4444;
  font-weight: 700;
}

.fair-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.fair-note i {
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   WINNERS SECTION
   ───────────────────────────────────────── */
.winners-container {
  max-width: 800px;
  margin: 0 auto;
}

.winners-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.winners-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.winners-empty h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.winners-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: var(--radius-round);
  color: var(--gold-start);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: rgba(247, 147, 26, 0.1);
  border-color: rgba(247, 147, 26, 0.5);
  transform: translateY(-2px);
}

/* Winner Cards */
.winner-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.winner-card:hover {
  border-color: rgba(247, 147, 26, 0.2);
  background: var(--bg-card-hover);
  transform: translateX(5px);
}

.winner-card:first-child {
  border-color: rgba(247, 147, 26, 0.2);
  background: rgba(247, 147, 26, 0.03);
}

.winner-rank {
  text-align: center;
  position: relative;
}

.winner-round {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-start);
}

.winner-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--gold-end);
  animation: crownBounce 2s ease-in-out infinite;
}

@keyframes crownBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

.winner-details {
  flex: 1;
  min-width: 0;
}

.winner-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.winner-address code {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.winner-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.winner-meta i {
  margin-right: 0.25rem;
}

.winner-prize {
  text-align: right;
  flex-shrink: 0;
}

.winner-prize-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.winner-prize-unit {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .winner-card {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .winner-prize {
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
  }
}

.winner-proof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(247, 147, 26, 0.35);
  border-radius: var(--radius-round);
  background: rgba(247, 147, 26, 0.08);
  color: var(--gold-start);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.winner-proof-btn:hover,
.winner-proof-btn:focus-visible {
  background: rgba(247, 147, 26, 0.16);
  border-color: rgba(247, 147, 26, 0.65);
  transform: translateY(-1px);
  outline: none;
}

/* Proof Modal */
.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.proof-modal--open {
  display: flex;
}

.proof-modal-lock {
  overflow: hidden;
}

.proof-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(10px);
}

.proof-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 900px);
  overflow-y: auto;
  padding: 1.5rem;
  border: 1px solid rgba(247, 147, 26, 0.25);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(16, 18, 28, 0.98), rgba(8, 10, 18, 0.98));
  box-shadow: var(--shadow-xl), 0 0 80px rgba(247, 147, 26, 0.12);
}

.proof-modal__close {
  position: sticky;
  top: 0;
  float: right;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1;
}

.proof-modal__header {
  margin-bottom: 1rem;
  padding-right: 3rem;
}

.proof-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: var(--gold-start);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-modal__header h3 {
  margin: 0 0 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.proof-modal__header p {
  color: var(--text-muted);
  margin: 0;
}

.proof-status {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.proof-status--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.proof-status--pending {
  color: var(--gold-start);
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.25);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.proof-field {
  padding: 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.proof-field--wide {
  grid-column: 1 / -1;
  margin-bottom: 0.8rem;
}

.proof-field span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proof-field strong {
  color: var(--text-primary);
}

.proof-field code,
.proof-code {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--gold-start);
  font-size: 0.82rem;
  line-height: 1.45;
}

.proof-code--formula {
  margin-top: 0.5rem;
  color: var(--text-primary);
}

.proof-value--warning {
  color: #fca5a5;
}

@media (max-width: 600px) {
  .winner-proof-btn {
    width: 100%;
  }

  .proof-modal {
    align-items: flex-end;
    padding: 0;
  }

  .proof-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.1rem;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────
   TOAST NOTIFICATIONS
   ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 24, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  pointer-events: all;
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.toast--exiting {
  transform: translateX(120%);
  opacity: 0;
}

.toast--ticket {
  border-left: 3px solid var(--gold-start);
}

.toast--winner {
  border-left: 3px solid #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.05);
}

.toast--success {
  border-left: 3px solid #22c55e;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast--ticket .toast-icon {
  color: var(--gold-start);
}

.toast--winner .toast-icon {
  color: #22c55e;
}

.toast--success .toast-icon {
  color: #22c55e;
}

.toast--error .toast-icon {
  color: #ef4444;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

.toast-message strong {
  color: var(--text-primary);
}

.toast-close {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.25rem;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-primary);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
.footer {
  position: relative;
  z-index: var(--z-content);
  background: var(--bg-tertiary);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

.footer-top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.4);
}
.pay-btn:active {
  transform: translateY(0);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-start);
}

.footer-disclaimers {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer-disclaimers p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-disclaimers strong {
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-btc {
  margin-top: 0.5rem;
}

/* ─────────────────────────────────────────
   MOBILE RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .prize-pool-card {
    padding: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .payment-info-grid {
    grid-template-columns: 1fr;
  }

  .rules-table th,
  .rules-table td {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .toast-container {
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .prize-sats {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1rem 0.75rem;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .glass-card {
    padding: 1.25rem;
  }
}

/* ─────────────────────────────────────────
   ANIMATED GRADIENT BORDER UTILITY
   ───────────────────────────────────────── */
@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, var(--gold-start), var(--purple-start), var(--gold-end), var(--purple-end));
  background-size: 300% 300%;
  animation: borderGradient 4s ease infinite;
  z-index: -1;
  opacity: 0.6;
}

/* ─────────────────────────────────────────
   PERFORMANCE: REDUCE MOTION
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* Latest winner visible near live draw */
.latest-winner-card { margin-top: 1.5rem; }
.latest-winner-inline .winner-card { opacity: 1; transform: none; }
.winner-card--visible { opacity: 1; transform: none; }
.btn-small { padding: .5rem .75rem; font-size: .8rem; }
