/* ═══════════════════════════════════════════════════
   JACKPOTKE  –  Main Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── CSS Variables ───────────────────────────────── */
:root {
  --gold:         #FFD700;
  --gold-light:   #FFF176;
  --gold-dark:    #B8860B;
  --neon-green:   #39FF14;
  --neon-cyan:    #00F5FF;
  --red-hot:      #FF2D2D;
  --orange-fire:  #FF6B00;
  --deep-bg:      #0A0A0F;
  --card-bg:      #12121C;
  --card-border:  #1E1E2E;
  --purple:       #7B2FBE;
}

/* ── Reset / Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--deep-bg);
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Ambient glow background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%,  rgba(123,47,190,.18)  0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 90%,  rgba(255,107,0,.15)   0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(0,245,255,.05)   0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Particles ───────────────────────────────────── */
.particle-container {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: particle-float linear infinite; opacity: 0;
}
@keyframes particle-float {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: .4; }
  90%  { opacity: .2; }
  100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ── Navbar ──────────────────────────────────────── */
.navbar-jackpot {
  background: rgba(10,10,15,.97);
  border-bottom: 2px solid var(--gold-dark);
  box-shadow: 0 4px 30px rgba(255,215,0,.15);
  position: sticky; top: 0; z-index: 1000;
}
.navbar-brand-logo {
  font-family: 'Black Ops One', cursive;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--gold), var(--orange-fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}
.nav-badge {
  background: var(--red-hot);
  color: #fff; font-size: .6rem; padding: 2px 6px;
  border-radius: 10px; font-weight: 700;
  animation: pulse-badge 1.5s infinite;
}
.btn-nav-play {
  background: linear-gradient(135deg, var(--gold-dark), var(--orange-fire));
  color: #fff !important; font-weight: 700;
  border-radius: 8px; font-size: .8rem; padding: 6px 14px;
  transition: opacity .2s;
}
.btn-nav-play:hover { opacity: .88; }

@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,45,45,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255,45,45,0); }
}

/* ── Hero ────────────────────────────────────────── */
.hero-section { position: relative; z-index: 1; padding: 20px 0 0; }

.hero-eyebrow {
  color: var(--gold); font-size: .7rem;
  letter-spacing: 4px; font-weight: 700;
}
.hero-sub {
  font-size: .95rem; line-height: 1.7; max-width: 520px;
}
.jackpot-headline {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--orange-fire) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.jackpot-amount {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--neon-green);
  font-weight: 900;
  animation: glow-green 2s ease-in-out infinite;
}
@keyframes glow-green {
  0%,100% { text-shadow: 0 0 15px rgba(57,255,20,.5), 0 0 30px rgba(57,255,20,.2); }
  50%      { text-shadow: 0 0 30px rgba(57,255,20,.9), 0 0 60px rgba(57,255,20,.5); }
}

/* ── Stat Pills ──────────────────────────────────── */
.stat-pill {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 16px 12px; text-align: center;
}
.stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.stat-lbl {
  font-size: .7rem; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}

/* ── Winners Marquee ─────────────────────────────── */
.winners-bar {
  background: linear-gradient(90deg, #0A0A0F 0%, #1a0a30 30%, #0a200a 70%, #0A0A0F 100%);
  border-top: 1px solid var(--gold-dark);
  border-bottom: 1px solid var(--gold-dark);
  padding: 10px 0; overflow: hidden; position: relative;
}
.winners-bar::before,
.winners-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 80px; z-index: 2; pointer-events: none;
}
.winners-bar::before { left:  0; background: linear-gradient(90deg,  var(--deep-bg), transparent); }
.winners-bar::after  { right: 0; background: linear-gradient(-90deg, var(--deep-bg), transparent); }

.winners-label {
  background: linear-gradient(135deg, var(--gold), var(--orange-fire));
  color: #000; font-weight: 900; font-size: .7rem;
  padding: 3px 12px; border-radius: 20px;
  letter-spacing: 1px; white-space: nowrap; flex-shrink: 0;
}
.marquee-track {
  display: flex; align-items: center;
  animation: marquee-scroll 35s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.winner-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(57,255,20,.2);
  border-radius: 20px; padding: 4px 14px; margin: 0 8px;
  font-size: .8rem; flex-shrink: 0;
}
.winner-chip .phone  { color: #fff; font-weight: 600; font-family: 'Orbitron', monospace; font-size: .7rem; }
.winner-chip .amount { color: var(--neon-green); font-weight: 700; }

/* ── Section Headers ─────────────────────────────── */
.section-title {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255,215,0,.4);
  letter-spacing: 2px;
}
.section-divider {
  height: 3px; border: none; margin: 8px 0 24px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange-fire), var(--gold), transparent);
}

/* ── Draw Card ───────────────────────────────────── */
.draw-section { position: relative; z-index: 1; }
.draw-card {
  background: linear-gradient(135deg, #0d0d1a 0%, #141428 100%);
  border: 1px solid rgba(123,47,190,.5);
  border-radius: 20px; padding: 30px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 60px rgba(123,47,190,.2), inset 0 1px 0 rgba(255,255,255,.05);
}
.draw-card::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg,
    transparent 0%, rgba(123,47,190,.05) 25%,
    transparent 50%, rgba(255,107,0,.05) 75%, transparent 100%);
  animation: slow-spin 20s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
.draw-card > * { position: relative; z-index: 1; }

/* Live badge */
.live-badge {
  background: rgba(255,45,45,.1);
  border: 1px solid rgba(255,45,45,.3);
}
.live-dot {
  width: 8px; height: 8px; background: var(--red-hot);
  border-radius: 50%; display: inline-block;
  animation: pulse-badge 1s infinite;
}
.live-text {
  color: var(--red-hot); font-weight: 700;
  font-size: .8rem; letter-spacing: 1px;
}

/* Prize pool */
.prize-pool-display {
  background: linear-gradient(135deg, rgba(57,255,20,.1), rgba(57,255,20,.05));
  border: 1px solid rgba(57,255,20,.3);
  border-radius: 12px; padding: 12px 20px; text-align: center;
}
.pool-label {
  font-size: .75rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 2px;
}
.pool-value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--neon-green); font-weight: 900;
  text-shadow: 0 0 20px rgba(57,255,20,.5);
}

/* Countdown grid */
.countdown-grid {
  display: flex; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.cd-unit {
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  border: 2px solid rgba(0,245,255,.3);
  border-radius: 14px; padding: 14px 18px;
  text-align: center; min-width: 70px;
  box-shadow: 0 0 20px rgba(0,245,255,.15);
  transition: all .3s;
}
.cd-unit:hover { border-color: var(--neon-cyan); box-shadow: 0 0 30px rgba(0,245,255,.4); }
.cd-number {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900;
  color: var(--neon-cyan); text-shadow: 0 0 15px rgba(0,245,255,.7);
  line-height: 1; display: block;
}
.cd-label {
  font-size: .65rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 2px;
  font-weight: 600; margin-top: 4px;
}
.cd-colon {
  font-family: 'Orbitron', monospace; font-size: 2rem;
  color: var(--gold); align-self: center;
  animation: blink-colon 1s steps(1) infinite;
}
@keyframes blink-colon { 0%,49% { opacity:1; } 50%,100% { opacity:0; } }

/* Latest draw rows */
.latest-draw-row {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 14px; margin-bottom: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.latest-draw-date  { font-size: .73rem; color: rgba(255,255,255,.4); }
.latest-draw-phone {
  font-family: 'Orbitron', monospace;
  font-size: .75rem; color: rgba(255,255,255,.75);
}
.latest-draw-prize {
  font-family: 'Orbitron', monospace;
  font-size: .88rem; color: var(--neon-green); font-weight: 700;
}

/* ── Play Card ───────────────────────────────────── */
.play-section { position: relative; z-index: 1; }
.play-card {
  background: linear-gradient(145deg, #0f0f1e 0%, #1a0a30 100%);
  border: 2px solid rgba(255,215,0,.4);
  border-radius: 24px; padding: 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 80px rgba(255,215,0,.1);
}
.play-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange-fire), var(--gold), transparent);
}

/* Form labels */
.form-label-custom {
  font-size: .75rem; font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px;
  display: block;
}

/* Prefix span */
.jk-prefix {
  background: rgba(255,215,0,.08) !important;
  border: 2px solid rgba(255,215,0,.25) !important;
  border-right: 0 !important;
  color: var(--gold) !important; font-weight: 700;
}

/* Jackpot input */
.input-jackpot {
  background: rgba(255,255,255,.04) !important;
  border: 2px solid rgba(255,215,0,.25) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-family: 'Exo 2', sans-serif !important;
  font-size: 1.05rem !important;
  padding: 14px 18px !important;
  transition: all .3s !important;
  caret-color: var(--gold);
}
.input-jackpot--right {
  border-radius: 0 12px 12px 0 !important;
  border-left: 0 !important;
}
.input-jackpot:focus {
  background: rgba(255,215,0,.05) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,.15), 0 0 20px rgba(255,215,0,.1) !important;
  outline: none !important;
}
.input-jackpot::placeholder { color: rgba(255,255,255,.25) !important; }
/* Remove number spinners */
.input-jackpot[type=number]::-webkit-inner-spin-button,
.input-jackpot[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Field error */
.jk-field-error {
  color: var(--red-hot); font-size: .8rem; margin-top: 5px;
}
.has-error .input-jackpot { border-color: var(--red-hot) !important; }

/* Ticket quick-select */
.ticket-selector { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-btn {
  flex: 1; min-width: 52px; padding: 10px 0;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,215,0,.2);
  border-radius: 10px; color: #fff;
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all .2s; text-align: center;
}
.ticket-btn:hover, .ticket-btn.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--orange-fire));
  border-color: var(--gold); color: #000;
  box-shadow: 0 0 20px rgba(255,215,0,.4);
  transform: translateY(-2px);
}

/* Total / Odds display */
.total-display {
  background: linear-gradient(135deg, rgba(57,255,20,.08), rgba(57,255,20,.03));
  border: 1px solid rgba(57,255,20,.25);
  border-radius: 12px; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center;
  height: 100%;
}
.total-label  { font-size: .8rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; }
.total-amount {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem; font-weight: 900; color: var(--neon-green);
  text-shadow: 0 0 15px rgba(57,255,20,.5);
}

/* CTA Button */
.btn-play-now {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--orange-fire) 50%, var(--red-hot) 100%);
  color: #fff !important;
  font-family: 'Black Ops One', cursive;
  font-size: 1.3rem; letter-spacing: 3px;
  padding: 18px 30px; border: none;
  border-radius: 14px; width: 100%;
  position: relative; overflow: hidden;
  cursor: pointer; text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(255,107,0,.4);
  transition: all .3s; display: block; text-align: center;
}
.btn-play-now::before {
  content: ''; position: absolute;
  top: -50%; left: -60%;
  width: 40%; height: 200%;
  background: rgba(255,255,255,.2);
  transform: skewX(-20deg);
  animation: shine-sweep 3s ease-in-out infinite;
}
@keyframes shine-sweep { 0% { left: -60%; } 60%,100% { left: 130%; } }
.btn-play-now:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255,107,0,.6); }
.btn-play-now:active { transform: translateY(0); }

/* ── How To Play Steps ───────────────────────────── */
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px; padding: 24px 20px;
  text-align: center; height: 100%;
  transition: all .3s;
}
.step-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4), 0 0 30px rgba(255,215,0,.1);
}
.step-number {
  font-family: 'Orbitron', monospace; font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, rgba(255,215,0,.15), rgba(255,107,0,.1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; display: block;
}
.step-icon  { font-size: 2rem; margin: 8px 0; }
.step-title { font-weight: 700; color: var(--gold); margin-bottom: 8px; font-size: 1rem; }
.step-desc  { font-size: .85rem; color: rgba(255,255,255,.55); line-height: 1.5; }

/* ── Footer ──────────────────────────────────────── */
footer {
  background: #050508;
  border-top: 1px solid rgba(255,215,0,.15);
  position: relative; z-index: 1;
}
.footer-brand {
  font-family: 'Black Ops One', cursive; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--gold), var(--orange-fire));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-link { color: rgba(255,255,255,.4); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-link:hover { color: var(--gold); }

/* ── Toast ───────────────────────────────────────── */
#toast-container { position: fixed; top: 70px; right: 16px; z-index: 9999; max-width: 320px; }
.jackpot-toast {
  background: linear-gradient(135deg, #0d1a0d, #1a2a0d);
  border: 1px solid var(--neon-green);
  border-radius: 12px; padding: 14px 18px;
  color: #fff; font-size: .9rem;
  box-shadow: 0 0 30px rgba(57,255,20,.3);
  animation: toast-in .3s ease; margin-bottom: 8px;
}
.jackpot-toast.warning { border-color: var(--gold); }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Float Bar (mobile) ──────────────────────────── */
.float-play-bar {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 1100;
  background: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,.98) 20%);
  padding: 10px 16px 16px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.float-play-bar.hidden { transform: translateY(110%); }
.float-play-bar-inner {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a0a30 100%);
  border: 2px solid rgba(255,215,0,.5);
  border-radius: 18px; padding: 12px 14px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.7), 0 0 30px rgba(255,215,0,.12);
  position: relative; overflow: hidden;
}
.float-play-bar-inner::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange-fire), var(--gold), transparent);
}
.float-bar-title {
  font-family: 'Black Ops One', cursive;
  font-size: .85rem; color: var(--gold); letter-spacing: 1px;
}
.float-bar-divider {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,215,0,.3), transparent);
}
.float-total-tag {
  font-family: 'Orbitron', monospace; font-size: .75rem;
  color: var(--neon-green); font-weight: 700; white-space: nowrap;
  text-shadow: 0 0 10px rgba(57,255,20,.4);
}
.float-phone-input {
  background: rgba(255,255,255,.06) !important;
  border: 1.5px solid rgba(255,215,0,.3) !important;
  border-radius: 10px !important; color: #fff !important;
  font-family: 'Exo 2', sans-serif !important;
  font-size: .95rem !important; padding: 10px 12px !important;
  flex: 1; caret-color: var(--gold);
}
.float-phone-input:focus {
  background: rgba(255,215,0,.06) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255,215,0,.15) !important;
  outline: none !important;
}
.float-ticket-row { display: flex; gap: 6px; }
.float-ticket-btn {
  flex: 1; padding: 8px 0;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,215,0,.2);
  border-radius: 8px; color: #fff;
  font-family: 'Orbitron', monospace;
  font-weight: 700; font-size: .85rem;
  cursor: pointer; transition: all .2s; text-align: center;
}
.float-ticket-btn:hover, .float-ticket-btn.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--orange-fire));
  border-color: var(--gold); color: #000;
  box-shadow: 0 0 12px rgba(255,215,0,.4);
}
.btn-float-play {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--orange-fire) 50%, var(--red-hot) 100%);
  color: #fff; font-family: 'Black Ops One', cursive;
  font-size: 1rem; letter-spacing: 2px; padding: 12px 20px;
  border: none; border-radius: 11px; width: 100%;
  position: relative; overflow: hidden;
  cursor: pointer; box-shadow: 0 4px 20px rgba(255,107,0,.4);
  transition: all .3s;
}
.btn-float-play::before {
  content: ''; position: absolute;
  top: -50%; left: -60%; width: 40%; height: 200%;
  background: rgba(255,255,255,.2); transform: skewX(-20deg);
  animation: shine-sweep 3s ease-in-out infinite;
}
.float-dismiss {
  position: absolute; top: 8px; right: 10px;
  color: rgba(255,255,255,.25); font-size: .75rem;
  cursor: pointer; padding: 2px 6px; z-index: 2;
}
.float-dismiss:hover { color: rgba(255,255,255,.6); }

/* ── Animation helpers ───────────────────────────── */
@keyframes float-icon {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.04); }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 576px) {
  .play-card  { padding: 20px 16px; }
  .draw-card  { padding: 20px 16px; }
  .cd-unit    { min-width: 58px; padding: 10px 12px; }
  .cd-number  { font-size: 1.6rem; }
  body        { padding-bottom: 90px; }
  .float-play-bar { display: block; }
}
@media (min-width: 577px) {
  .float-play-bar { display: none !important; }
}
#shuffleNumbers {
    font-family: 'Courier New', Courier, monospace; /* lottery/digital style */
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700; /* gold */
    background: #1a1a1a; /* dark background for contrast */
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    min-width: 200px;
    text-align: center;
    transition: transform 0.1s ease, color 0.1s ease;
}

#shuffleNumbers.flash {
    color: #00FF00; /* bright green flash */
    transform: scale(1.2);
    text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
}

#shuffleNumbers h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #FFD700;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
}

#shuffleNumbers p {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: #ffffff;
}