/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #030f0a;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CSS VARIABLES ===== */
:root {
  --gold: #f5c842;
  --gold-light: #ffe680;
  --gold-dark: #c9a227;
  --green-deep: #030f0a;
  --green-dark: #061a0e;
  --green-mid: #0a2e18;
  --green-accent: #0d4a26;
  --green-bright: #1a7a40;
  --green-neon: #00ff88;
  --glass-bg: rgba(10, 46, 24, 0.55);
  --glass-border: rgba(245, 200, 66, 0.18);
  --glass-shadow: 0 8px 40px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  /* Typography contrast tokens */
  --text-primary:   #eef7ef;
  --text-secondary: #b8d4bb;
  --text-muted:     #8aab8e;
  --text-faint:     #6a8f6e;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--green-dark); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.45;
}

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.gold { color: var(--gold); }
.gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(245,200,66,0.35);
  box-shadow: 0 12px 60px rgba(0,0,0,0.55), 0 0 30px rgba(245,200,66,0.08);
  transform: translateY(-3px);
}
.section { padding: 90px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(245,200,66,0.05));
  border: 1px solid rgba(245,200,66,0.3);
  color: var(--gold);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 18px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; font-weight: 400; max-width: 520px; margin: 0 auto; line-height: 1.65; }

/* ===== LIVE TICKER ===== */
.ticker-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(90deg, #061a0e, #0a2e18, #061a0e);
  border-bottom: 1px solid rgba(245,200,66,0.25);
  height: 36px; display: flex; align-items: center; overflow: hidden;
  padding: 0 12px; gap: 10px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4444; flex-shrink: 0;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.live-label {
  color: #ff4444; font-size: 0.65rem; font-weight: 800;
  letter-spacing: 2px; flex-shrink: 0;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
}
.ticker-item { color: var(--text-secondary); font-size: 0.8rem; padding-right: 40px; font-weight: 500; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 999;
  background: rgba(3,15,10,0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(245,200,66,0.12);
  transition: var(--transition);
}
.header.scrolled { background: rgba(3,15,10,0.97); box-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { font-size: 1.8rem; }
.logo-text { display: block; font-size: 1.2rem; font-weight: 800; color: #e8f5e9; }
.logo-sub { display: block; font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; }
.desktop-nav { display: flex; gap: 6px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold); background: rgba(245,200,66,0.08);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }
.live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.3);
  color: #ff6b6b; font-size: 0.75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 50px; letter-spacing: 1px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ff4444;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%{box-shadow:0 0 0 0 rgba(255,68,68,0.6)}
  70%{box-shadow:0 0 0 8px rgba(255,68,68,0)}
  100%{box-shadow:0 0 0 0 rgba(255,68,68,0)}
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #030f0a; font-weight: 700; font-size: 0.82rem;
  padding: 9px 20px; border-radius: 10px; border: none;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.5px;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,200,66,0.4); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 20px 16px; background: rgba(3,15,10,0.98);
  border-top: 1px solid rgba(245,200,66,0.1);
}
.mobile-menu.open { display: flex; }
.mob-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.95rem; font-weight: 600; padding: 10px 14px;
  border-radius: 8px; transition: var(--transition);
}
.mob-link:hover { color: var(--gold); background: rgba(245,200,66,0.08); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 0 100px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(26,122,64,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(245,200,66,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 70%, rgba(0,255,136,0.06) 0%, transparent 55%),
    var(--green-deep);
}

/* ---- Background glows ---- */
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.hero-glow-1 {
  width: 700px; height: 700px; top: -250px; left: -150px;
  background: radial-gradient(circle, rgba(26,122,64,0.28) 0%, transparent 70%);
  animation: glowFloat 9s ease-in-out infinite;
}
.hero-glow-2 {
  width: 500px; height: 500px; top: 15%; right: -100px;
  background: radial-gradient(circle, rgba(245,200,66,0.13) 0%, transparent 70%);
  animation: glowFloat 11s ease-in-out infinite reverse;
}
.hero-glow-3 {
  width: 350px; height: 350px; bottom: 8%; left: 25%;
  background: radial-gradient(circle, rgba(0,255,136,0.09) 0%, transparent 70%);
  animation: glowFloat 13s ease-in-out infinite;
}
.hero-glow-4 {
  width: 280px; height: 280px; top: 40%; left: 5%;
  background: radial-gradient(circle, rgba(245,200,66,0.08) 0%, transparent 70%);
  animation: glowFloat 7s ease-in-out infinite 2s;
}
.hero-glow-5 {
  width: 220px; height: 220px; bottom: 20%; right: 10%;
  background: radial-gradient(circle, rgba(0,200,100,0.1) 0%, transparent 70%);
  animation: glowFloat 15s ease-in-out infinite reverse;
}
@keyframes glowFloat {
  0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-35px) scale(1.06)}
}

/* ---- Light beams ---- */
.light-beam {
  position: absolute; pointer-events: none; z-index: 0;
  width: 2px; border-radius: 999px;
  background: linear-gradient(180deg, transparent 0%, rgba(245,200,66,0.18) 40%, rgba(245,200,66,0.06) 70%, transparent 100%);
  transform-origin: top center;
}
.lb-1 {
  height: 70vh; top: 0; left: 22%;
  transform: rotate(-18deg);
  animation: beamPulse 6s ease-in-out infinite;
  width: 1.5px;
}
.lb-2 {
  height: 60vh; top: 0; left: 50%;
  transform: rotate(8deg);
  animation: beamPulse 8s ease-in-out infinite 1.5s;
  width: 1px; opacity: 0.7;
}
.lb-3 {
  height: 55vh; top: 0; right: 20%;
  transform: rotate(22deg);
  animation: beamPulse 7s ease-in-out infinite 3s;
  width: 1.5px;
}
@keyframes beamPulse {
  0%,100%{opacity:0.3;transform:rotate(-18deg) scaleY(1)}
  50%{opacity:0.9;transform:rotate(-18deg) scaleY(1.08)}
}
.lb-2 { animation-name: beamPulse2; }
@keyframes beamPulse2 {
  0%,100%{opacity:0.2;transform:rotate(8deg) scaleY(1)}
  50%{opacity:0.7;transform:rotate(8deg) scaleY(1.1)}
}
.lb-3 { animation-name: beamPulse3; }
@keyframes beamPulse3 {
  0%,100%{opacity:0.25;transform:rotate(22deg) scaleY(1)}
  50%{opacity:0.8;transform:rotate(22deg) scaleY(1.05)}
}

/* ---- Hero gold canvas ---- */
#heroGoldCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

/* ---- Lottery balls ---- */
.lottery-balls-wrap { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lottery-ball {
  position: absolute; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #030f0a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 -3px 8px rgba(0,0,0,0.25), inset 0 3px 8px rgba(255,255,255,0.3);
}
.lottery-ball span { position: relative; z-index: 1; }
.lb-ball-1 {
  width: 58px; height: 58px; font-size: 1.4rem;
  background: radial-gradient(circle at 35% 35%, #ffe680, #f5c842, #c9a227);
  top: 12%; left: 7%;
  animation: ballFloat 7s ease-in-out infinite, ballSpin 12s linear infinite;
}
.lb-ball-2 {
  width: 44px; height: 44px; font-size: 1.1rem;
  background: radial-gradient(circle at 35% 35%, #6bffb8, #00cc66, #007a3d);
  color: #fff;
  top: 28%; left: 2%;
  animation: ballFloat 9s ease-in-out infinite 1s, ballSpin 16s linear infinite reverse;
}
.lb-ball-3 {
  width: 52px; height: 52px; font-size: 1.3rem;
  background: radial-gradient(circle at 35% 35%, #ffe680, #f5c842, #c9a227);
  top: 65%; left: 5%;
  animation: ballFloat 8s ease-in-out infinite 2s, ballSpin 14s linear infinite;
}
.lb-ball-4 {
  width: 48px; height: 48px; font-size: 1.2rem;
  background: radial-gradient(circle at 35% 35%, #ffe680, #f5c842, #c9a227);
  top: 10%; right: 6%;
  animation: ballFloat 10s ease-in-out infinite 0.5s, ballSpin 18s linear infinite reverse;
}
.lb-ball-5 {
  width: 40px; height: 40px; font-size: 1rem;
  background: radial-gradient(circle at 35% 35%, #6bffb8, #00cc66, #007a3d);
  color: #fff;
  top: 55%; right: 4%;
  animation: ballFloat 6s ease-in-out infinite 3s, ballSpin 10s linear infinite;
}
.lb-ball-6 {
  width: 62px; height: 62px; font-size: 1.5rem;
  background: radial-gradient(circle at 35% 35%, #ffe680, #f5c842, #c9a227);
  bottom: 18%; right: 8%;
  animation: ballFloat 11s ease-in-out infinite 1.5s, ballSpin 20s linear infinite reverse;
}
@keyframes ballFloat {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-22px)}
}
@keyframes ballSpin {
  from{filter:hue-rotate(0deg)} to{filter:hue-rotate(15deg)}
}

/* ---- Floating coins ---- */
.coin {
  position: absolute; border-radius: 50%; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #030f0a;
  background: radial-gradient(circle at 35% 30%, #ffe680, #f5c842 50%, #a07800);
  box-shadow: 0 0 18px rgba(245,200,66,0.55), 0 4px 16px rgba(0,0,0,0.4), inset 0 2px 6px rgba(255,255,255,0.35);
}
.coin-1 { width: 36px; height: 36px; font-size: 0.9rem; top: 20%; left: 14%; animation: coinFloat 5s ease-in-out infinite; }
.coin-2 { width: 28px; height: 28px; font-size: 0.7rem; top: 45%; left: 10%; animation: coinFloat 7s ease-in-out infinite 1s; opacity: 0.85; }
.coin-3 { width: 42px; height: 42px; font-size: 1rem; top: 15%; right: 14%; animation: coinFloat 6s ease-in-out infinite 2s; }
.coin-4 { width: 24px; height: 24px; font-size: 0.6rem; bottom: 28%; left: 16%; animation: coinFloat 8s ease-in-out infinite 0.5s; opacity: 0.7; }
.coin-5 { width: 32px; height: 32px; font-size: 0.8rem; bottom: 22%; right: 15%; animation: coinFloat 9s ease-in-out infinite 3s; }
@keyframes coinFloat {
  0%{transform:translateY(0) rotate(0deg)}
  33%{transform:translateY(-16px) rotate(8deg)}
  66%{transform:translateY(-8px) rotate(-5deg)}
  100%{transform:translateY(0) rotate(0deg)}
}

/* ---- Floating ticket cards (enhanced) ---- */
.floating-ticket {
  position: absolute; z-index: 3; pointer-events: none;
}
/* A: 2 left cards, 1 right card — cleaner layout */
.ft-1 { top: 18%; left: 2%; animation: floatCard 7s ease-in-out infinite; }
.ft-3 { bottom: 16%; left: 4%; animation: floatCard 8s ease-in-out infinite 3s; }
.ft-2 { top: 28%; right: 1.5%; animation: floatCard 9s ease-in-out infinite 1.5s; }
.ft-4 { display: none; }
@keyframes floatCard {
  0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-20px) rotate(2deg)}
}
.ft-inner {
  background: rgba(6,26,14,0.82);
  border: 1px solid rgba(245,200,66,0.4);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 16px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(245,200,66,0.12);
  min-width: 148px; position: relative; overflow: hidden;
}
.ft-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: ftShimmer 3s ease-in-out infinite;
}
@keyframes ftShimmer { 0%,100%{opacity:0.4} 50%{opacity:1} }
.ft-glow-ring {
  position: absolute; inset: -1px; border-radius: 16px;
  border: 1px solid rgba(245,200,66,0.0);
  animation: ftRingPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ftRingPulse {
  0%,100%{box-shadow:0 0 0 0 rgba(245,200,66,0)} 50%{box-shadow:0 0 20px 4px rgba(245,200,66,0.18)}
}
.ft-logo { font-size: 1.3rem; margin-bottom: 2px; }
.ft-label { font-size: 0.62rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.ft-prize { font-size: 1.15rem; font-weight: 900; color: var(--gold); text-shadow: 0 0 12px rgba(245,200,66,0.4); }
.ft-tag {
  font-size: 0.65rem;
  background: linear-gradient(135deg, rgba(245,200,66,0.18), rgba(245,200,66,0.06));
  border: 1px solid rgba(245,200,66,0.3); color: var(--gold);
  padding: 3px 10px; border-radius: 50px; font-weight: 700;
  letter-spacing: 0.5px; width: fit-content;
}

/* ---- Hero content — no search, vertically balanced ---- */
.hero-content {
  position: relative; z-index: 5; text-align: center;
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.3);
  color: var(--green-neon); font-size: 0.8rem; font-weight: 600;
  padding: 8px 22px; border-radius: 50px; margin-bottom: 28px;
  animation: fadeInDown 0.8s ease both;
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 22px;
  animation: fadeInUp 0.9s ease 0.1s both;
  text-shadow: 0 2px 40px rgba(0,0,0,0.4);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary);
  max-width: 480px; margin: 0 auto 28px; font-weight: 400; line-height: 1.6;
  animation: fadeInUp 0.9s ease 0.2s both;
}

/* ---- Hero stats — 3 items ---- */
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: rgba(10,46,24,0.5); border: 1px solid rgba(245,200,66,0.15);
  border-radius: 16px; padding: 16px 24px; backdrop-filter: blur(16px);
  max-width: 520px; margin: 0 auto 32px;
  animation: fadeInUp 0.9s ease 0.25s both;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 40px rgba(245,200,66,0.04);
}
.hero-stat { text-align: center; padding: 0 24px; }
.hero-stat-value {
  display: block; font-size: 1.35rem; font-weight: 900; color: var(--gold);
  text-shadow: 0 0 16px rgba(245,200,66,0.35); line-height: 1;
}
.hero-stat-label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; margin-top: 5px; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(245,200,66,0.15); flex-shrink: 0; }

/* ---- Trust row ---- */
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  animation: fadeInUp 0.9s ease 0.4s both;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 600;
  background: rgba(10,46,24,0.4); border: 1px solid rgba(245,200,66,0.1);
  padding: 7px 16px; border-radius: 50px; backdrop-filter: blur(10px);
  transition: var(--transition);
}
.trust-item:hover { border-color: rgba(245,200,66,0.3); color: var(--text-primary); }
.trust-item svg { color: var(--green-neon); width: 14px; height: 14px; }

/* ---- Hero wave ---- */
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 4;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; display: block; }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

/* ===== CHECKER SECTION ===== */
.checker-section { background: linear-gradient(180deg, transparent, rgba(10,46,24,0.3), transparent); }
.checker-card { padding: 40px; max-width: 720px; margin: 0 auto; }

/* 2-column: date + ticket */
.checker-grid-simple {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 20px; margin-bottom: 12px;
}
.checker-hint {
  font-size: 0.78rem; color: var(--text-faint); font-weight: 500;
  margin-bottom: 22px; text-align: center;
}
.checker-hint strong { color: var(--text-muted); }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.84rem; font-weight: 700; color: var(--text-secondary);
  letter-spacing: 0.5px;
}
.form-label svg { width: 14px; height: 14px; color: var(--gold); }
.form-input {
  background: rgba(6,26,14,0.8); border: 1.5px solid rgba(245,200,66,0.2);
  color: #e8f5e9; font-size: 0.92rem; padding: 12px 16px;
  border-radius: 10px; outline: none; font-family: 'Inter', sans-serif;
  transition: var(--transition); width: 100%;
}
.form-input:focus { border-color: rgba(245,200,66,0.55); box-shadow: 0 0 20px rgba(245,200,66,0.1); }
.form-input option { background: #061a0e; }
.ticket-input-wrap { display: flex; gap: 8px; }
.ticket-input-wrap .form-input { flex: 1; }

/* Scan button */
.scan-btn {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(245,200,66,0.15), rgba(245,200,66,0.06));
  border: 1.5px solid rgba(245,200,66,0.4);
  color: var(--gold); padding: 12px 16px; border-radius: 10px;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
  position: relative; overflow: hidden;
}
.scan-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,200,66,0.2), transparent);
  opacity: 0; transition: var(--transition);
}
.scan-btn:hover { border-color: rgba(245,200,66,0.7); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,200,66,0.2); }
.scan-btn:hover::before { opacity: 1; }
.scan-btn svg { width: 17px; height: 17px; }
.scan-btn span { position: relative; z-index: 1; }

.btn-gold-full {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #030f0a; font-weight: 800; font-size: 1rem;
  padding: 16px; border-radius: 12px; border: none;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.5px;
}
.btn-gold-full:hover { transform: translateY(-2px); box-shadow: 0 10px 35px rgba(245,200,66,0.4); }
.btn-gold-full svg { width: 18px; height: 18px; }

/* Result display */
.result-display { margin-top: 28px; border-radius: 14px; overflow: hidden; }
.result-winner {
  background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(245,200,66,0.04));
  border: 2px solid rgba(245,200,66,0.5);
  padding: 32px; text-align: center; border-radius: 14px;
  box-shadow: 0 0 40px rgba(245,200,66,0.15);
  animation: resultReveal 0.6s ease both;
}
.result-loser {
  background: linear-gradient(135deg, rgba(255,68,68,0.1), rgba(255,68,68,0.03));
  border: 2px solid rgba(255,68,68,0.35);
  padding: 32px; text-align: center; border-radius: 14px;
  animation: resultReveal 0.6s ease both;
}
@keyframes resultReveal { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
.result-trophy { font-size: 3.5rem; margin-bottom: 12px; }
.result-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.result-amount { font-size: 2.4rem; font-weight: 900; color: var(--gold); margin-bottom: 12px; }
.result-badge {
  display: inline-block; background: rgba(245,200,66,0.2);
  border: 1px solid rgba(245,200,66,0.4); color: var(--gold);
  font-size: 0.8rem; font-weight: 700; padding: 5px 16px;
  border-radius: 50px; margin-bottom: 12px;
}
.result-meta { color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; }

/* ===== 1ST PRIZE HERO CARD ===== */
.prize-hero-wrap { margin-bottom: 24px; }
.prize-hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(10,36,20,0.9) 0%, rgba(6,20,12,0.95) 100%);
  border: none !important; /* border handled by animated overlay */
  padding: 0;
}

/* Animated gold border via conic-gradient rotation */
.prize-hero-border {
  position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--gold-light) 60deg,
    var(--gold) 120deg,
    var(--gold-dark) 180deg,
    transparent 240deg,
    var(--gold-light) 300deg,
    var(--gold) 360deg
  );
  animation: borderSpin 4s linear infinite;
  z-index: 0;
}
.prize-hero-border::after {
  content: ''; position: absolute; inset: 2px;
  background: linear-gradient(135deg, rgba(10,36,20,0.97), rgba(6,20,12,0.99));
  border-radius: calc(var(--radius));
}
@keyframes borderSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

/* Crown glow blob */
.prize-hero-crown-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 200px;
  background: radial-gradient(ellipse, rgba(245,200,66,0.22) 0%, transparent 70%);
  filter: blur(30px); z-index: 1; pointer-events: none;
  animation: crownGlowPulse 3s ease-in-out infinite;
}
@keyframes crownGlowPulse {
  0%,100%{opacity:0.7;transform:translateX(-50%) scale(1)}
  50%{opacity:1;transform:translateX(-50%) scale(1.15)}
}

.prize-hero-inner {
  position: relative; z-index: 2;
  padding: 44px 40px 40px;
  text-align: center;
}
.prize-hero-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.prize-hero-rank-badge {
  background: linear-gradient(135deg, rgba(245,200,66,0.2), rgba(245,200,66,0.08));
  border: 1px solid rgba(245,200,66,0.45);
  color: var(--gold); font-size: 0.82rem; font-weight: 800;
  padding: 7px 18px; border-radius: 50px; letter-spacing: 1px;
  text-transform: uppercase;
}
.prize-hero-draw { color: var(--text-muted); font-size: 0.82rem; font-weight: 500; }

.prize-hero-crown {
  font-size: 2.8rem; line-height: 1;
  animation: crownBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(245,200,66,0.6));
}
@keyframes crownBounce {
  0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-8px) scale(1.08)}
}
.prize-hero-trophy { font-size: 5rem; margin: 8px 0; filter: drop-shadow(0 0 20px rgba(245,200,66,0.5)); }

/* Pulsing jackpot amount */
.prize-hero-amount {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold-light));
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: jackpotShine 3s ease-in-out infinite, jackpotPulse 2s ease-in-out infinite;
  margin: 8px 0 6px; line-height: 1;
  filter: drop-shadow(0 0 1px rgba(245,200,66,0.3));
}
@keyframes jackpotShine {
  0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
}
@keyframes jackpotPulse {
  0%,100%{transform:scale(1)} 50%{transform:scale(1.03)}
}
.prize-hero-words {
  font-size: 0.92rem; color: var(--text-muted); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 28px;
}
.prize-hero-ticket-wrap {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(6,26,14,0.7); border: 1.5px solid rgba(245,200,66,0.35);
  border-radius: 14px; padding: 14px 36px; margin-bottom: 28px;
}
.prize-hero-ticket-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.prize-hero-ticket {
  font-size: 2rem; font-weight: 900; color: #e8f5e9; letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(245,200,66,0.3);
}
.prize-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-check-mine {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #030f0a; font-weight: 800; font-size: 0.9rem;
  padding: 13px 28px; border-radius: 12px; border: none;
  cursor: pointer; transition: var(--transition);
}
.btn-check-mine:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,200,66,0.4); }
.btn-check-mine svg { width: 16px; height: 16px; }
.btn-share-result {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,200,66,0.08); border: 1.5px solid rgba(245,200,66,0.3);
  color: var(--gold); font-weight: 700; font-size: 0.9rem;
  padding: 13px 24px; border-radius: 12px;
  cursor: pointer; transition: var(--transition); font-family: 'Inter', sans-serif;
}
.btn-share-result:hover { background: rgba(245,200,66,0.15); transform: translateY(-2px); }
.btn-share-result svg { width: 16px; height: 16px; }

/* Corner sparkles */
.sparkle {
  position: absolute; color: var(--gold); font-size: 1.1rem; z-index: 3;
  animation: sparkleTwinkle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(245,200,66,0.8));
}
.sp-1 { top: 16px; left: 20px; animation-delay: 0s; }
.sp-2 { top: 16px; right: 20px; animation-delay: 0.5s; }
.sp-3 { bottom: 16px; left: 20px; animation-delay: 1s; }
.sp-4 { bottom: 16px; right: 20px; animation-delay: 1.5s; }
@keyframes sparkleTwinkle {
  0%,100%{opacity:0.3;transform:scale(0.8) rotate(0deg)}
  50%{opacity:1;transform:scale(1.3) rotate(20deg)}
}

/* ===== PRIZE CARDS (2nd, 3rd, Consolation) ===== */
.prize-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.prize-card {
  padding: 32px 20px; text-align: center; position: relative; overflow: hidden;
}
.prize-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 18px 18px 0 0;
}
.prize-second::before { background: linear-gradient(90deg, #c0c0c0, #e8e8e8); }
.prize-third::before { background: linear-gradient(90deg, #cd7f32, #e8a060); }
.prize-consolation::before { background: linear-gradient(90deg, var(--green-bright), var(--green-neon)); }
.prize-rank {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px;
}
.prize-icon { font-size: 2.4rem; margin-bottom: 12px; }
.prize-amount { font-size: 1.5rem; font-weight: 900; color: var(--gold); margin-bottom: 8px; }
.prize-ticket {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.2);
  padding: 6px 16px; border-radius: 8px; display: inline-block; margin-bottom: 8px;
  letter-spacing: 2px;
}
.prize-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.prize-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.more-prizes { padding: 0; overflow: hidden; }
.more-prizes-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; cursor: pointer; color: var(--text-secondary);
  font-size: 0.92rem; font-weight: 600; transition: var(--transition);
}
.more-prizes-header:hover { color: var(--gold); }
.more-prizes-header svg { width: 18px; height: 18px; transition: var(--transition); }
.more-prizes-header span { display: flex; align-items: center; gap: 8px; }
.more-prizes-header span svg { color: var(--gold); }
.more-prizes-body { padding: 0 24px 24px; }
.prize-table { width: 100%; border-collapse: collapse; }
.prize-table th, .prize-table td {
  padding: 13px 16px; text-align: left; font-size: 0.9rem;
  border-bottom: 1px solid rgba(245,200,66,0.1);
}
.prize-table th { color: var(--gold); font-weight: 800; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.prize-table td { color: var(--text-secondary); font-weight: 500; }
.prize-table tr:hover td { background: rgba(245,200,66,0.05); color: var(--text-primary); }

/* ===== COUNTDOWN ===== */
.countdown-section {
  background: linear-gradient(135deg, rgba(10,46,24,0.5), rgba(6,26,14,0.8));
}
.countdown-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 48px 56px; gap: 40px; flex-wrap: wrap;
}
.countdown-left { flex: 1; min-width: 260px; }
.countdown-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 10px 0 8px; }
.countdown-sub { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; line-height: 1.6; }
.countdown-right { display: flex; align-items: center; gap: 12px; }
.timer-block {
  background: rgba(6,26,14,0.8); border: 1.5px solid rgba(245,200,66,0.25);
  border-radius: 14px; padding: 20px 28px; text-align: center; min-width: 90px;
  box-shadow: 0 0 30px rgba(245,200,66,0.08);
}
.timer-value {
  font-size: 2.8rem; font-weight: 900; color: var(--gold);
  font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 0 20px rgba(245,200,66,0.4);
  transition: all 0.3s ease;
}
.timer-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px; }
.timer-sep { font-size: 2.5rem; font-weight: 900; color: var(--gold); opacity: 0.5; animation: blink 1s infinite; }

/* ===== WINNERS ===== */
.winners-scroll-wrap { overflow: hidden; position: relative; }
.winners-scroll-wrap::before, .winners-scroll-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.winners-scroll-wrap::before { left: 0; background: linear-gradient(90deg, var(--green-deep), transparent); }
.winners-scroll-wrap::after { right: 0; background: linear-gradient(-90deg, var(--green-deep), transparent); }
.winners-track {
  display: flex; gap: 18px; width: max-content;
  animation: winnersScroll 30s linear infinite;
}
.winners-track:hover { animation-play-state: paused; }
@keyframes winnersScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.winner-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); border-radius: 14px;
  padding: 20px 22px; min-width: 220px; flex-shrink: 0;
  transition: var(--transition);
}
.winner-card:hover { border-color: rgba(245,200,66,0.4); transform: translateY(-3px); }
.winner-emoji { font-size: 1.6rem; margin-bottom: 8px; }
.winner-name { font-size: 0.97rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.winner-district { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.winner-amount { font-size: 1.2rem; font-weight: 900; color: var(--gold); margin-bottom: 4px; }
.winner-ticket { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; font-weight: 600; }

/* ===== PREMIUM TABLE UPGRADES ===== */

/* Sticky headers */
.history-table thead tr,
.prize-table thead tr {
  position: sticky; top: 0; z-index: 2;
}

/* History table — zebra + glow hover */
.history-card { padding: 28px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.history-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; }

.history-table thead tr {
  background: linear-gradient(90deg, rgba(245,200,66,0.1), rgba(245,200,66,0.05), rgba(245,200,66,0.1));
  backdrop-filter: blur(20px);
}
.history-table th {
  padding: 15px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 800; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase;
  border-bottom: 1.5px solid rgba(245,200,66,0.2);
}
.history-table tbody tr:nth-child(even) td { background: rgba(245,200,66,0.025); }
.history-table tbody tr:nth-child(odd) td  { background: rgba(10,46,24,0.3); }
.history-table tbody tr { transition: var(--transition); }
.history-table tbody tr:hover td {
  background: rgba(245,200,66,0.07) !important;
  color: var(--text-primary);
}
.history-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* Prize table inside accordion */
.prize-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.prize-table thead tr {
  background: rgba(245,200,66,0.07);
  position: sticky; top: 0;
}
.prize-table tbody tr:nth-child(even) td { background: rgba(245,200,66,0.02); }
.prize-table tbody tr:hover td {
  background: rgba(245,200,66,0.07) !important;
  color: var(--text-primary);
}
.prize-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.history-controls { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.search-wrap {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: rgba(6,26,14,0.8); border: 1.5px solid rgba(245,200,66,0.2);
  border-radius: 10px; padding: 0 14px; transition: var(--transition);
}
.search-wrap:focus-within { border-color: rgba(245,200,66,0.5); }
.search-wrap svg { color: var(--text-muted); width: 16px; height: 16px; flex-shrink: 0; }
.history-search {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.92rem; padding: 12px 0;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.history-search::placeholder { color: var(--text-faint); }
.history-filter { max-width: 180px; }
.table-wrap { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.history-table th {
  padding: 14px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase;
  border-bottom: 1px solid rgba(245,200,66,0.15);
}
.history-table td {
  padding: 15px 16px; font-size: 0.92rem; color: var(--text-primary);
  border-bottom: 1px solid rgba(245,200,66,0.07);
  transition: var(--transition); font-weight: 500; line-height: 1.5;
}
.history-table tbody tr:hover td { background: rgba(245,200,66,0.07) !important; color: var(--text-primary); }
.view-btn {
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.25);
  color: var(--gold); font-size: 0.75rem; font-weight: 600;
  padding: 5px 14px; border-radius: 6px; cursor: pointer; transition: var(--transition);
}
.view-btn:hover { background: rgba(245,200,66,0.2); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  background: rgba(10,46,24,0.6); border: 1px solid rgba(245,200,66,0.2);
  color: var(--text-secondary); font-size: 0.87rem; font-weight: 700;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: rgba(245,200,66,0.15); border-color: rgba(245,200,66,0.5); color: var(--gold);
}

/* ===== FEATURES ===== */
.features-section {
  background: linear-gradient(180deg, transparent, rgba(10,46,24,0.25), transparent);
}
/* D: 4-card features grid */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { padding: 36px 28px; text-align: center; }
.feature-icon { font-size: 2.6rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; font-weight: 400; }
.feature-card:hover .feature-icon { animation: iconBounce 0.5s ease; }
@keyframes iconBounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }

/* ===== FOOTER ===== */
.footer {
  background: var(--green-dark);
  padding: 0;
  position: relative;
  z-index: 1;
}

/* Thin top border with soft gold glow */
.footer-top-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,200,66,0.12) 20%,
    rgba(245,200,66,0.4) 50%,
    rgba(245,200,66,0.12) 80%,
    transparent 100%);
  box-shadow: 0 0 12px rgba(245,200,66,0.08);
}

.footer .container {
  padding-top: 28px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Row 1 — quick links */
.footer-links {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px 4px;
}
.footer-links .footer-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  transition: var(--transition);
}
.footer-links .footer-link:hover { color: var(--gold); background: rgba(245,200,66,0.07); }
.footer-dot { color: rgba(245,200,66,0.3); font-size: 0.75rem; user-select: none; }

/* Row 2 — disclaimer */
.footer-disclaimer-text {
  font-size: 0.78rem; color: var(--text-faint);
  text-align: center; max-width: 560px;
  line-height: 1.6; font-weight: 400;
}

/* Row 3 — bottom bar */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding-top: 14px;
  border-top: 1px solid rgba(245,200,66,0.07);
  font-size: 0.78rem; color: var(--text-muted);
  font-weight: 500; flex-wrap: wrap; gap: 8px;
}
.footer-live {
  display: flex; align-items: center; gap: 7px;
  color: var(--green-neon); font-weight: 700; font-size: 0.78rem;
}
.footer-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-neon);
  box-shadow: 0 0 6px rgba(0,255,136,0.7);
  animation: pulse 1.5s infinite; display: inline-block;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
  background: rgba(6,26,14,0.92); backdrop-filter: blur(24px);
  border-top: 1px solid rgba(245,200,66,0.15);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  justify-content: space-around; align-items: center;
}
.mob-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.67rem; font-weight: 700; padding: 6px 12px;
  border-radius: 10px; transition: var(--transition); letter-spacing: 0.5px;
}
.mob-nav-item svg { width: 20px; height: 20px; }
.mob-nav-item.active, .mob-nav-item:hover {
  color: var(--gold);
  background: rgba(245,200,66,0.1);
}

/* ===== FLOATING SUPPORT ===== */
.floating-support {
  position: fixed; bottom: 90px; right: 20px; z-index: 997;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; text-decoration: none; border: none; cursor: pointer;
  transition: var(--transition); position: relative;
}
.float-btn::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  animation: floatPulse 2s infinite;
}
.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.whatsapp::before { border: 2px solid rgba(37,211,102,0.4); }
.telegram { background: linear-gradient(135deg, #0088cc, #005fa3); }
.telegram::before { border: 2px solid rgba(0,136,204,0.4); }
.support { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.support::before { border: 2px solid rgba(245,200,66,0.4); }
.float-btn:hover { transform: scale(1.12); }
@keyframes floatPulse {
  0%,100%{transform:scale(1);opacity:0.6} 50%{transform:scale(1.3);opacity:0}
}

/* ===== CONFETTI ===== */
.confetti-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; display: none;
}

/* ===== SCANNER MODAL ===== */
.scanner-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(3,15,10,0.88); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  animation: overlayFadeIn 0.3s ease;
}
.scanner-overlay.open { display: flex; }
@keyframes overlayFadeIn { from{opacity:0} to{opacity:1} }

.scanner-modal {
  width: 100%; max-width: 480px; padding: 32px;
  position: relative; animation: modalSlideUp 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes modalSlideUp { from{opacity:0;transform:translateY(40px) scale(0.95)} to{opacity:1;transform:translateY(0) scale(1)} }

.scanner-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.scanner-close:hover { background: rgba(255,68,68,0.15); color: #ff8080; border-color: rgba(255,68,68,0.3); }
.scanner-close svg { width: 16px; height: 16px; }

.scanner-header { text-align: center; margin-bottom: 24px; }
.scanner-icon-wrap {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(245,200,66,0.2), rgba(245,200,66,0.06));
  border: 1.5px solid rgba(245,200,66,0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(245,200,66,0.15);
}
.scanner-icon-wrap svg { width: 26px; height: 26px; color: var(--gold); }
.scanner-title { font-size: 1.3rem; font-weight: 800; color: #e8f5e9; margin-bottom: 6px; }
.scanner-sub { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; font-weight: 400; }

/* Viewfinder */
.scanner-viewfinder {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #000; border-radius: 14px; overflow: hidden;
  margin-bottom: 20px; border: 1px solid rgba(245,200,66,0.2);
}
#scannerVideo { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame {
  position: absolute; inset: 0; pointer-events: none;
}
/* Corner brackets */
.scanner-corner {
  position: absolute; width: 28px; height: 28px;
  border-color: var(--gold); border-style: solid;
}
.sc-tl { top: 16px; left: 16px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.sc-tr { top: 16px; right: 16px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.sc-bl { bottom: 16px; left: 16px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.sc-br { bottom: 16px; right: 16px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

/* Scanning laser line */
.scanner-laser {
  position: absolute; left: 16px; right: 16px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(245,200,66,0.8), var(--gold), transparent);
  box-shadow: 0 0 10px rgba(245,200,66,0.8), 0 0 20px rgba(245,200,66,0.4);
  animation: laserScan 2.2s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes laserScan {
  0%{top:16px;opacity:0.8} 50%{opacity:1} 100%{top:calc(100% - 18px);opacity:0.8}
}

/* Hint overlay on viewfinder */
.scanner-hint-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 16px 12px; text-align: center;
}
.scanner-hint-text { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* Divider */
.scanner-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 16px;
}
.scanner-divider::before, .scanner-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(245,200,66,0.1);
}
.scanner-divider span { white-space: nowrap; }

.scanner-manual { display: flex; flex-direction: column; gap: 0; }

.scanner-demo-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px;
  background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.25);
  color: var(--green-neon); font-size: 0.82rem; font-weight: 700;
  padding: 11px; border-radius: 10px; cursor: pointer; transition: var(--transition);
  font-family: 'Inter', sans-serif; letter-spacing: 0.5px;
}
.scanner-demo-btn:hover { background: rgba(0,255,136,0.14); box-shadow: 0 0 20px rgba(0,255,136,0.1); }
.scanner-demo-btn svg { width: 15px; height: 15px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .prize-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .checker-grid-simple { grid-template-columns: 1fr 1fr; }
  .countdown-wrap { padding: 36px 32px; }
  .ft-4 { display: none; }
  .lb-ball-4, .lb-ball-5, .lb-ball-6 { display: none; }
}

@media (max-width: 768px) {
  .desktop-nav, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-bottom-nav { display: flex; }
  .floating-support { bottom: 80px; }
  .floating-ticket { display: none; }
  .coin { display: none; }
  .lottery-balls-wrap { display: none; }
  .light-beam { display: none; }
  .hero { padding: 100px 0 70px; }
  .btn-gold-lg { width: 100%; justify-content: center; }
  .hero-stats { padding: 14px 16px; gap: 0; }
  .hero-stat { padding: 0 14px; }
  .hero-stat-value { font-size: 1.1rem; }
  .prize-grid { grid-template-columns: 1fr 1fr; }
  .prize-hero-inner { padding: 32px 24px 28px; }
  .prize-hero-amount { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .checker-grid-simple { grid-template-columns: 1fr; }
  .checker-card { padding: 24px; }
  .countdown-wrap { flex-direction: column; text-align: center; padding: 32px 24px; }
  .timer-value { font-size: 2.2rem; }
  .timer-block { padding: 16px 20px; min-width: 72px; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .prize-grid { grid-template-columns: 1fr; }
  .prize-hero-inner { padding: 28px 18px 24px; }
  .prize-hero-amount { font-size: 1.9rem; }
  .prize-hero-ticket { font-size: 1.5rem; letter-spacing: 2px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
  .hero-title { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .countdown-right { gap: 8px; }
  .timer-block { min-width: 64px; padding: 14px 16px; }
  .timer-value { font-size: 1.9rem; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { width: 60px; height: 1px; }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */

/* Base reveal state — hidden */
.reveal {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none !important; }

/* Slide up */
.reveal-up    { transform: translateY(40px); }
/* Slide from left */
.reveal-left  { transform: translateX(-40px); }
/* Slide from right */
.reveal-right { transform: translateX(40px); }
/* Scale in */
.reveal-scale { transform: scale(0.92); }
/* Fade only */
.reveal-fade  { transform: none; }

/* Section headers auto-reveal */
.section-header { opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease; }
.section-header.visible { opacity: 1; transform: none; }

/* Prize cards stagger */
.prize-card { opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms); }
.prize-card.visible { opacity: 1; transform: none; }

/* Prize hero card */
.prize-hero-wrap { opacity: 0; transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.34,1.2,0.64,1), transform 0.8s cubic-bezier(0.34,1.2,0.64,1); }
.prize-hero-wrap.visible { opacity: 1; transform: none; }

/* Winner cards stagger via JS */
.winner-card { opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease; }
.winner-card.visible { opacity: 1; transform: none; }

/* Countdown */
.countdown-wrap { opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease; }
.countdown-wrap.visible { opacity: 1; transform: none; }

/* Checker card */
.checker-card { opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease; }
.checker-card.visible { opacity: 1; transform: none; }

/* More prizes */
.more-prizes { opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s; }
.more-prizes.visible { opacity: 1; transform: none; }

/* ===== SECTION DIVIDER GLOW ===== */
.section-divider {
  height: 1px; margin: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,200,66,0.06) 20%,
    rgba(245,200,66,0.18) 50%,
    rgba(245,200,66,0.06) 80%,
    transparent 100%);
}

/* ===== LIVE PLATFORM AMBIENT PULSE ===== */
/* Subtle section background pulse to feel "alive" */
@keyframes sectionAmbient {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.countdown-section {
  background: linear-gradient(135deg,
    rgba(10,46,24,0.5) 0%,
    rgba(6,26,14,0.8) 50%,
    rgba(10,46,24,0.5) 100%);
  background-size: 200% 200%;
  animation: sectionAmbient 12s ease infinite;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(10,46,24,0.6) 25%, rgba(26,122,64,0.15) 50%, rgba(10,46,24,0.6) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeletonShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== SELECTION ===== */
::selection { background: rgba(245,200,66,0.25); color: #e8f5e9; }
