:root {
  --bg-deep: #5BC2E7; /* Pantone 2985 */
  --bg-turquoise: #054C54;
  --bg-turquoise-dark: #022327;
  --bg-turquoise-light: #0d8390;
  --bg-turquoise-glow: rgba(0, 229, 255, 0.15);
  
  --card-bg: rgba(5, 22, 25, 0.75);
  --card-bg-solid: #031719;
  
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.25);
  --cyan: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  
  --red: #FF4D5E;
  --red-glow: rgba(255, 77, 94, 0.2);
  --green: #00E676;
  --green-glow: rgba(0, 230, 118, 0.2);
  
  --text-white: #FFFFFF;
  --text-grey: #B2C4C6;
  --text-muted: rgba(255, 255, 255, 0.35);
  --border-cyan: rgba(0, 229, 255, 0.18);
  --border-white: rgba(255, 255, 255, 0.08);
  
  --font-sans: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.3);
  --shadow-gold: 0 0 25px rgba(255, 215, 0, 0.3);
}

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

html, body {
  background: var(--bg-deep);
  color: #022327; /* Dark blue/teal for readability on PMS 2985 background */
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  overflow-x: hidden;
  min-height: 100vh;
}

body {
  background-image: 
    radial-gradient(circle at 5% 15%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 95% 85%, rgba(2, 35, 39, 0.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-deep) 0%, #30A2CE 100%);
  background-attachment: fixed;
}

/* Background Floating Aura */
.bg-aura-1 {
  position: fixed;
  top: 15%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: floatAura1 25s infinite alternate ease-in-out;
}

.bg-aura-2 {
  position: fixed;
  bottom: 5%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: floatAura2 30s infinite alternate ease-in-out;
}

@keyframes floatAura1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 5vh) scale(1.15); }
}

@keyframes floatAura2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, -10vh) scale(1.1); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Scanline scan effect */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 6px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
}

/* Navbar navigation */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 8vw;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFF 60%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo {
  height: 40px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.nav-links-desktop {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 900px) {
  .nav-links-desktop {
    display: none; /* Hide on mobile/tablet */
  }
}

.nav-link-btn {
  color: var(--text-grey);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s;
}

.nav-link-btn:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
}

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

.sound-btn, .admin-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-white);
  color: var(--text-grey);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sound-btn:hover, .admin-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}

.admin-btn:hover {
  transform: translateY(-2px) rotate(45deg);
}

/* Main Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

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

.hero-banner-frame {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-cyan);
  background: #000;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.carousel-slide.active .hero-banner-img {
  transform: scale(1.04);
}

.hero-banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 10, 12, 0) 40%, rgba(1, 10, 12, 0.95) 100%);
  z-index: 3;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #022327;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(2, 35, 39, 0.25);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #022327;
}

.hero h1 span {
  background: linear-gradient(90deg, #010a0c, #0d8390);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero p.sub {
  color: #2b565a;
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glass Card System */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-white);
}

.glass-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 25px 60px rgba(0, 229, 255, 0.05);
}

/* STEP indicator layout */
.step-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-cyan);
  padding-bottom: 15px;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--bg-turquoise-light));
  color: #031719;
  font-family: var(--font-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.step-card-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

/* Multi-Raffle Selector Panel */
.raffle-selector-title {
  text-align: center;
  margin: 50px 0 20px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #022327;
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.raffle-card {
  background: var(--card-bg-solid);
  border: 2px solid var(--border-cyan);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  position: relative;
  color: var(--text-white);
}

.raffle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 229, 255, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.raffle-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 20px 45px rgba(0, 229, 255, 0.15);
}

.raffle-card:hover::before, .raffle-card.active::before {
  opacity: 1;
}

.raffle-card.active {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
}

/* Metallic Shine Sweep Overlay */
.raffle-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.15) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 4;
}

.raffle-card:hover::after {
  left: 150%;
  transition: left 0.85s ease-in-out;
}

.raffle-img-box {
  width: 100%;
  height: 180px;
  position: relative;
  background: #020c0e;
  overflow: hidden;
}

.raffle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.raffle-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent 0%, rgba(1, 10, 12, 0.95) 100%);
}

.raffle-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-white);
}

.raffle-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.raffle-card-price {
  font-weight: 800;
  color: var(--gold);
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.raffle-card-percent {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-weight: 700;
}

/* Dynamic purchase steps container */
.buying-flow-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 750px;
  margin: 0 auto 50px;
}

.form-unlock-warning {
  background: rgba(255, 77, 94, 0.08);
  border: 1px solid rgba(255, 77, 94, 0.25);
  color: var(--red);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.form-locked-state {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Ticket Selection Box */
.tab-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 25px;
  background: rgba(1, 10, 12, 0.5);
  padding: 6px;
  border-radius: 100px;
  border: 1px solid var(--border-cyan);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-grey);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: var(--text-white);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.ticket-box {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.ticket-deco-line {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.ticket-deco-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
}

.ticket-deco-dot.glow {
  background: var(--cyan);
  box-shadow: var(--shadow-glow);
  animation: blip 1.5s infinite;
}

@keyframes blip {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Casino Marquee Styling */
.casino-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background: linear-gradient(180deg, #180900 0%, #000 100%);
  border: 4px double #FFD700;
  border-radius: 18px;
  padding: 14px 28px;
  margin-bottom: 25px;
  box-shadow: 
    0 0 25px rgba(255, 215, 0, 0.35),
    inset 0 0 15px rgba(255, 215, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.casino-marquee.mini {
  padding: 8px 16px;
  margin-bottom: 18px;
  border-width: 3px;
  border-radius: 12px;
}

.marquee-text {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 900;
  color: #FFD700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 
    0 0 5px #FFF,
    0 0 10px #FFD700,
    0 0 20px #FFB300,
    0 0 40px #FF8F00;
  animation: textGlow 1.5s infinite alternate ease-in-out;
}

.casino-marquee.mini .marquee-text {
  font-size: 1.20rem;
}

.marquee-lights {
  display: flex;
  gap: 6px;
}

.light {
  width: 8px;
  height: 8px;
  background: #FFF;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFF;
  animation: lightPulse 0.6s infinite alternate ease-in-out;
}

.light:nth-child(2) {
  animation-delay: 0.2s;
  background: #FFD700;
  box-shadow: 0 0 8px #FFD700;
}

.light:nth-child(3) {
  animation-delay: 0.4s;
  background: #FF5722;
  box-shadow: 0 0 8px #FF5722;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFD700, 0 0 20px #FFB300;
  }
  100% {
    text-shadow: 0 0 10px #FFF, 0 0 25px #FFD700, 0 0 45px #FF8F00, 0 0 60px #FF5722;
    transform: scale(1.02);
  }
}

@keyframes lightPulse {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Casino Slot Machine Digits Row */
.digits-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
  background: rgba(1, 10, 12, 0.95);
  padding: 18px 22px;
  border-radius: 20px;
  border: 3px solid #FFD700;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.7),
    0 0 20px rgba(255, 215, 0, 0.2),
    inset 0 0 15px rgba(0, 0, 0, 0.95);
  position: relative;
}

/* Jackpot Handle styling on the right side of the row */
.digits-row::after {
  content: '';
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 64px;
  background: linear-gradient(90deg, #555, #CCC, #888, #333);
  border-radius: 6px;
  border: 2px solid #FFD700;
  box-shadow: 3px 5px 12px rgba(0,0,0,0.5);
  z-index: 5;
}

/* Jackpot Handle Ball */
.digits-row::before {
  content: '';
  position: absolute;
  right: -39px;
  top: 50%;
  transform: translateY(-120%);
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 35%, #FF3D00, #B20000, #540000);
  border-radius: 50%;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 6;
  animation: handleBob 2s infinite ease-in-out;
}

@keyframes handleBob {
  0%, 100% { transform: translateY(-120%); }
  50% { transform: translateY(-90%); }
}

.digit-cell {
  width: 62px;
  height: 84px;
  background: linear-gradient(180deg, #090909 0%, #1c1c1c 50%, #090909 100%);
  border: 2px solid #FFD700;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 900;
  color: #FFF;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 5px 15px rgba(0,0,0,0.65),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.digit-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.digit-cell.placeholder-icon {
  font-size: 1.8rem;
  color: var(--cyan);
  animation: slotBounce 2s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
}

.digit-cell.filled {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 
    0 0 5px rgba(0,229,255,0.5),
    0 0 15px rgba(0,229,255,0.3);
  box-shadow: 
    0 0 15px rgba(0, 229, 255, 0.25),
    inset 0 0 8px rgba(0,0,0,0.8);
}

.digit-cell.ok {
  border-color: var(--green);
  color: var(--green);
  text-shadow: 
    0 0 5px rgba(0, 230, 118, 0.5),
    0 0 15px rgba(0, 230, 118, 0.3);
  box-shadow: 
    0 0 18px rgba(0, 230, 118, 0.35),
    inset 0 0 8px rgba(0,0,0,0.8);
}

.digit-cell.taken {
  border-color: var(--red);
  color: var(--red);
  text-shadow: 
    0 0 5px rgba(255, 77, 94, 0.5),
    0 0 15px rgba(255, 77, 94, 0.3);
  box-shadow: 
    0 0 18px rgba(255, 77, 94, 0.35),
    inset 0 0 8px rgba(0,0,0,0.8);
}

@keyframes slotBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.casino-slot-modal {
  background: var(--card-bg-solid) !important;
  border: 3px solid #FFD700 !important;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.4),
    0 25px 60px rgba(0, 0, 0, 0.8) !important;
}

#secretInput {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-lbl {
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-lbl.ok { color: var(--green); }
.status-lbl.bad { color: var(--red); }
.status-lbl.info { color: var(--text-grey); }

.ticket-actions {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #FFF 0%, #E2E8F0 100%);
  color: #031719;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

.btn-primary:disabled {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-white);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-cyan);
  color: var(--text-white);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-2px);
}

/* Manual entry layout digits keyboard helper */
.manual-keypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  animation: fadeIn 0.3s ease;
}

.keypad-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white);
  color: #FFF;
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.2s;
}

.keypad-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.keypad-btn:active {
  transform: scale(0.95);
}

/* Visual Ticket Explorer Grid */
.explorer-panel {
  animation: fadeIn 0.4s ease;
}

.explorer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-input {
  flex: 1;
  min-width: 140px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-cyan);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 0.85rem;
}

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

.filter-select {
  background: #020f11;
  border: 1px solid var(--border-cyan);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 0.85rem;
  cursor: pointer;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0,0,0,0.5);
  border-radius: 16px;
  border: 1px solid var(--border-white);
  margin-bottom: 15px;
}

.grid-container::-webkit-scrollbar {
  width: 6px;
}

.grid-container::-webkit-scrollbar-thumb {
  background: var(--border-cyan);
  border-radius: 10px;
}

.grid-ticket {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 4px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.grid-ticket:hover {
  background: var(--green);
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

.grid-ticket.sold {
  background: rgba(255, 77, 94, 0.05);
  border: 1px solid rgba(255, 77, 94, 0.2);
  color: var(--red);
  cursor: not-allowed;
  pointer-events: none;
}

.grid-ticket.selected {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
  box-shadow: 0 0 12px var(--cyan);
}

.explorer-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-grey);
  padding: 0 5px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-white);
  color: #FFF;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Progress Track */
.progress-wrap {
  margin-top: 25px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-grey);
  margin-bottom: 10px;
}

.progress-track {
  height: 12px;
  background: #010809;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.8);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Grid Panel: Countdown and Sorteo Tiers */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.stat-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-grey);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Timer */
.countdown-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.countdown-box {
  background: #000;
  border: 1px solid var(--border-cyan);
  border-radius: 14px;
  padding: 12px;
  min-width: 62px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.countdown-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.countdown-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Lotto Balls style for draw */
.lotto-balls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.lotto-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #B2C4C6 60%, #4A5D5F 100%);
  color: #020d0f;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px rgba(0,0,0,0.4), inset -2px -2px 6px rgba(0,0,0,0.4);
  animation: bounceBall 0.8s ease;
}

@keyframes bounceBall {
  0% { transform: translateY(-15px) scaleY(0.9); opacity: 0; }
  50% { transform: translateY(0) scaleY(1); }
  70% { transform: translateY(-5px); }
  100% { transform: translateY(0); opacity: 1; }
}

.bottom-info-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.bottom-info-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
  margin-top: 6px;
}

/* Dynamic Winners Carousel Section */
.carousel-section {
  padding: 30px 0;
  margin-bottom: 50px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #022327;
}

.section-title p {
  color: #2b565a;
  font-size: 0.95rem;
  margin-top: 4px;
}

.carousel-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-white);
  color: #FFF;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.arrow-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,229,255,0.05);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0 20px;
  scrollbar-width: none;
  flex: 1;
  scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.winner-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: var(--card-bg-solid);
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.winner-card:hover {
  transform: translateY(-5px);
}

.winner-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.winner-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-white);
}

.winner-ticket-num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.winner-prize-desc {
  font-size: 0.85rem;
  color: var(--text-grey);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 100px;
  display: inline-block;
}

/* Vertical Winner Stories feed (Specific request) */
.stories-section {
  margin-bottom: 60px;
}

.stories-vertical-feed {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 700px;
  margin: 0 auto;
}

.story-card-vertical {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border-cyan);
  border-radius: 24px;
  background: var(--card-bg-solid);
  transition: all 0.3s ease;
}

.story-card-vertical:hover {
  border-color: var(--cyan);
  transform: translateX(5px);
}

.story-video-container {
  flex: 0 0 150px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.story-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.5s;
}

.story-card-vertical:hover .story-video-poster {
  transform: scale(1.05);
}

.story-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 10, 12, 0.35);
  cursor: pointer;
  transition: background-color 0.3s;
}

.story-play-overlay:hover {
  background: rgba(1, 10, 12, 0.15);
}

.story-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-white);
  color: #031719;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.35);
  transition: all 0.3s;
}

.story-play-overlay:hover .story-play-icon {
  transform: scale(1.1);
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.story-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FFF;
}

.story-details p {
  color: var(--text-grey);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.story-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

@media (max-width: 550px) {
  .story-card-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .story-video-container {
    width: 100%;
    flex: initial;
    height: 250px;
  }
}

/* Ads and Videos Grid Area */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.ad-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #021a1b, #000);
  border: 2px dashed rgba(0, 229, 255, 0.2);
  text-align: center;
  padding: 35px;
  border-radius: 28px;
  min-height: 280px;
  transition: border-color 0.3s;
  color: var(--text-white);
}

.ad-panel:hover {
  border-color: var(--cyan);
}

.ad-badge {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-panel {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-cyan);
  min-height: 280px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  color: var(--text-white);
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(1, 10, 12, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  padding: 20px;
}

.video-placeholder:hover {
  background: rgba(1, 10, 12, 0.75);
}

.play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--text-white);
  color: #031719;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 15px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.4);
  background: var(--cyan);
}

/* Ticket Verification Box */
.search-section {
  max-width: 650px;
  margin: 0 auto 50px;
}

.search-input-box {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-cyan);
  border-radius: 18px;
  padding: 6px;
  align-items: center;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  padding: 12px 18px;
  font-size: 1rem;
}

.search-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-white);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideUp 0.3s ease;
}

.result-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.result-status-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
}

.result-item-card.available .result-status-dot { background: rgba(0, 230, 118, 0.12); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.25); }
.result-item-card.sold .result-status-dot { background: rgba(255, 77, 94, 0.12); color: var(--red); border: 1px solid rgba(255, 77, 94, 0.25); }
.result-item-card.paid .result-status-dot { background: rgba(0, 229, 255, 0.12); color: var(--cyan); border: 1px solid rgba(0, 229, 255, 0.25); }

/* Accordion FAQ */
.faq-section {
  max-width: 800px;
  margin: 50px auto;
}

.faq-accordion {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--card-bg-solid);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-white);
  transition: background-color 0.2s;
}

.faq-question:hover {
  background: rgba(255,255,255,0.02);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0,0,0,0.2);
  border-top: 0px solid transparent;
}

.faq-answer-content {
  padding: 20px 24px;
  color: var(--text-grey);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  border-top: 1px solid var(--border-white);
}

.faq-item.active .chevron-icon {
  transform: rotate(180deg);
}

.chevron-icon {
  transition: transform 0.3s;
}

/* Modals and Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #010c0e;
  border: 1px solid var(--border-cyan);
  border-radius: 28px;
  width: 100%;
  max-width: 500px;
  padding: 35px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 229, 255, 0.15);
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-white);
}

.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-thumb {
  background: var(--border-cyan);
  border-radius: 10px;
}

.overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #FFF;
}

/* Form Fields */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-grey);
  margin-bottom: 8px;
  font-weight: 600;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-cyan);
  color: #FFF;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.field select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(1, 10, 12, 0.85);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  border: 1.5px solid rgba(0, 229, 255, 0.25);
  color: #FFF;
  padding: 16px 45px 16px 20px;
  border-radius: 16px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  outline: none;
  cursor: pointer;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.field select:hover {
  border-color: var(--cyan);
  background-color: rgba(1, 10, 12, 0.95);
  box-shadow: 
    0 0 15px rgba(0, 229, 255, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.field select:focus {
  border-color: var(--cyan);
  box-shadow: 
    0 0 20px rgba(0, 229, 255, 0.35),
    0 8px 25px rgba(0, 0, 0, 0.45);
}

.field select option {
  background-color: #031719;
  color: #FFF;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 12px;
}

/* Digital Receipt Pass (Apple Wallet Design) */
.receipt {
  background: #FFFFFF;
  color: #000;
  border-radius: 24px;
  padding: 30px;
  margin: 20px 0;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  background-image: 
    radial-gradient(circle at 0% 50%, transparent 12px, #FFFFFF 12px),
    radial-gradient(circle at 100% 50%, transparent 12px, #FFFFFF 12px);
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.receipt-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: #032A2F;
  letter-spacing: -0.01em;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.receipt-lbl {
  color: #718096;
  font-weight: 500;
}

.receipt-val {
  font-weight: 700;
  color: #1A202C;
}

.receipt-ticket-display {
  background: #F7FAFC;
  padding: 15px;
  border-radius: 14px;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #EDF2F7;
}

.receipt-ticket-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #054C54;
}

/* simulated barcode */
.barcode-wrapper {
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.barcode-stripes {
  width: 85%;
  height: 38px;
  background: linear-gradient(90deg, 
    #000 2px, transparent 2px, #000 5px, transparent 5px,
    #000 8px, transparent 8px, #000 12px, transparent 12px,
    #000 18px, transparent 18px, #000 22px, transparent 22px,
    #000 26px, transparent 26px, #000 32px, transparent 32px,
    #000 35px, transparent 35px, #000 42px, transparent 42px
  );
  background-size: 48px 38px;
}

.barcode-lbl {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  margin-top: 6px;
  color: #718096;
}

.receipt-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Admin Dashboard Layout */
.admin-modal {
  max-width: 850px;
  width: 95%;
}

.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  margin-top: 10px;
}

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

.admin-sidebar {
  border-right: 1px solid var(--border-cyan);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 768px) {
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-cyan);
    padding-right: 0;
    padding-bottom: 20px;
    flex-direction: row;
    overflow-x: auto;
  }
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-grey);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: left;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  width: 100%;
}

@media (max-width: 768px) {
  .admin-tab-btn {
    width: auto;
    white-space: nowrap;
  }
}

.admin-tab-btn.active {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--border-cyan);
  color: var(--cyan);
}

.admin-content {
  min-height: 400px;
}

.admin-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.admin-pane.active {
  display: block;
}

/* Admin Dashboard Quick Stats */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.admin-stat-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-white);
  padding: 18px;
  border-radius: 16px;
}

.admin-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  margin-top: 5px;
  font-family: var(--font-title);
}

/* Admin Reservations Table */
.table-wrap {
  overflow-x: auto;
  background: rgba(0,0,0,0.4);
  border-radius: 16px;
  border: 1px solid var(--border-white);
  margin-top: 15px;
  max-height: 350px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-white);
}

.admin-table th {
  background: #020f11;
  font-weight: 700;
  color: var(--text-white);
  position: sticky;
  top: 0;
}

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

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-pending {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.badge-paid {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.25);
}

/* Live Draw Spinner Module */
.live-draw-box {
  text-align: center;
  padding: 30px;
  background: linear-gradient(180deg, #021417 0%, #000 100%);
  border: 2px solid var(--border-cyan);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.1);
}

.draw-spinner-reels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 30px 0;
}

.draw-spinner-reel {
  width: 60px;
  height: 80px;
  background: #000;
  border: 3px solid var(--border-cyan);
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), inset 0 2px 10px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}

.draw-spinner-reel.spinning {
  animation: drawReelSpin 0.1s linear infinite;
  border-color: var(--gold);
  color: var(--gold);
}

@keyframes drawReelSpin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Giga-Jackpot Screen Overlay (Specific request) */
.jackpot-modal {
  max-width: 600px;
  width: 95%;
  text-align: center;
  border: 2px solid var(--gold);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.35);
  background: radial-gradient(circle at 50% 30%, #02262d 0%, #000405 100%);
}

.jackpot-stars {
  font-size: 2.5rem;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.jackpot-winner-box {
  background: rgba(255, 215, 0, 0.05);
  border: 2px dashed var(--gold);
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0;
}

/* Chart Canvas wrapper */
.chart-wrapper {
  height: 220px;
  position: relative;
  margin-top: 15px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--border-cyan);
  margin-top: 100px;
  background: rgba(1, 10, 12, 0.9);
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FFF 60%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 0.9rem;
  color: var(--text-grey);
  margin-bottom: 20px;
}

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

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive layout updates */
@media (max-width: 768px) {
  .navbar { padding: 15px 5vw; }
  .hero-banner-frame { height: 240px; }
  .digits-row { gap: 6px; }
  .digit-cell { width: 44px; height: 60px; font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: 0.75rem; padding: 10px 10px; }
  .keypad-btn { padding: 8px; font-size: 1rem; }
}

/* Canvas Particles Background */
#particlesCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(1, 10, 12, 0.95);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFF;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
  opacity: 0;
}

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

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toast-icon.ok { color: var(--green); }
.toast-icon.bad { color: var(--red); }
.toast-icon.info { color: var(--cyan); }

.toast-content {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Live Purchase Ticker Feed */
.live-activity-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  pointer-events: none;
}

.activity-card {
  pointer-events: auto;
  background: rgba(5, 22, 25, 0.9);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  max-width: 320px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
  color: var(--text-white);
  margin-top: 10px;
}

.activity-card.show {
  transform: translateY(0);
  opacity: 1;
}

.activity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
}

.activity-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.activity-user {
  font-size: 0.8rem;
  font-weight: 700;
}

.activity-desc {
  font-size: 0.75rem;
  color: var(--text-grey);
}

.activity-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  align-self: flex-start;
}

/* Virtual Tombola Reel Styles */
.reel-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px 0;
  perspective: 1000px;
}

.reel-cell {
  width: 54px;
  height: 76px;
  background: #000;
  border: 2px solid var(--border-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, color 0.2s;
}

.reel-cell.spinning {
  animation: slotSpin 0.08s linear infinite;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.9);
  filter: blur(1px);
}

.reel-cell.locked {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.35), inset 0 2px 10px rgba(0, 0, 0, 0.9);
  animation: lockPulse 0.4s ease-out;
}

@keyframes slotSpin {
  0% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-8px) scaleY(0.9); }
  100% { transform: translateY(0) scaleY(1); }
}

@keyframes lockPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Estilos para Transición de Pantallas */
.btn-giga-cta {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--bg-turquoise-light) 100%);
  color: #010a0c;
  font-size: 1.25rem;
  padding: 16px 36px;
  border-radius: 20px;
  font-weight: 800;
  margin: 20px auto 0;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.btn-giga-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, #FFF 0%, var(--cyan) 100%);
}
.btn-giga-cta:active {
  transform: translateY(-1px) scale(0.98);
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(5, 22, 25, 0.75);
  border: 1px solid var(--border-cyan);
  margin-bottom: 20px;
  transition: all 0.3s;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.btn-back-home:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateX(-4px);
  box-shadow: var(--shadow-glow);
}
/* Highlight nav action button */
.nav-buy-highlight {
  background: rgba(0, 229, 255, 0.12) !important;
  border: 1px solid var(--border-cyan) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.nav-buy-highlight:hover {
  background: rgba(0, 229, 255, 0.25) !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  color: #FFF !important;
}

/* Manejo de Vistas (Pantalla Principal vs Pantalla de Compra) */
#btnBackToHomeContainer {
  display: none;
  margin-bottom: 20px;
  justify-content: flex-start;
}
#buyingFlowSection {
  display: none;
}

body.purchase-mode-active #btnBackToHomeContainer {
  display: flex;
}
body.purchase-mode-active #buyingFlowSection {
  display: flex;
}

body.purchase-mode-active .hero,
body.purchase-mode-active .raffle-selector-title,
body.purchase-mode-active #raffleGrid,
body.purchase-mode-active .stats-grid,
body.purchase-mode-active .content-grid,
body.purchase-mode-active #winnersSection,
body.purchase-mode-active #storiesSection,
body.purchase-mode-active #searchSection,
body.purchase-mode-active .faq-section {
  display: none !important;
}

/* Animación Buena Suerte */
.good-luck-anim {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
  margin-top: 15px;
  animation: goodLuckPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate;
}
@keyframes goodLuckPulse {
  0% { transform: scale(0.9); opacity: 0.8; filter: drop-shadow(0 0 5px var(--gold)); }
  105% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px var(--gold)); }
}

/* Estilos de la Campana de Notificaciones y Panel Lateral */
.notification-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-white);
  color: var(--text-grey);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}
.notification-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
}
.notification-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
  animation: badgePulse 1.5s infinite alternate ease-in-out;
}
@keyframes badgePulse {
  0% { transform: scale(0.8); box-shadow: 0 0 3px var(--red); }
  100% { transform: scale(1.3); box-shadow: 0 0 10px var(--red); }
}
.notifications-drawer {
  position: fixed;
  top: 73px;
  right: -360px;
  width: 350px;
  height: calc(100vh - 73px);
  background: rgba(3, 23, 25, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-cyan);
  box-shadow: -15px 0 35px rgba(0,0,0,0.6);
  z-index: 1000;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-white);
}
.notifications-drawer.active {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-cyan);
  padding-bottom: 15px;
}
.drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-close-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  outline: none;
}
.drawer-close-btn:hover {
  color: #FFF;
}
.drawer-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-right: 5px;
}
.drawer-feed::-webkit-scrollbar {
  width: 4px;
}
.drawer-feed::-webkit-scrollbar-thumb {
  background: var(--border-cyan);
  border-radius: 10px;
}
.notification-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s;
  cursor: pointer;
}
.notification-card:hover {
  border-color: var(--border-cyan);
  background: rgba(0, 229, 255, 0.03);
  transform: translateY(-2px);
}
.notification-card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-grey);
}
.notification-card-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Casino LED Glowing Card */
.casino-led-card {
  position: relative;
  border: 2px solid transparent !important;
  background-image: 
    linear-gradient(rgba(5, 22, 25, 0.75), rgba(5, 22, 25, 0.75)), 
    linear-gradient(135deg, var(--cyan), var(--gold), var(--cyan));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.6),
    0 0 25px rgba(0, 229, 255, 0.15);
  animation: ledBorderGlow 6s infinite linear;
}

@keyframes ledBorderGlow {
  0% {
    background-image: 
      linear-gradient(rgba(5, 22, 25, 0.75), rgba(5, 22, 25, 0.75)), 
      linear-gradient(0deg, var(--cyan), var(--gold), var(--cyan));
  }
  50% {
    background-image: 
      linear-gradient(rgba(5, 22, 25, 0.75), rgba(5, 22, 25, 0.75)), 
      linear-gradient(180deg, var(--gold), var(--cyan), var(--gold));
  }
  100% {
    background-image: 
      linear-gradient(rgba(5, 22, 25, 0.75), rgba(5, 22, 25, 0.75)), 
      linear-gradient(360deg, var(--cyan), var(--gold), var(--cyan));
  }
}

/* LED Warning Badge "ELIGE TU RIFA AQUÍ" */
.led-warning-badge {
  background: #B20000;
  color: #FFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #FF3D00;
  box-shadow: 
    0 0 10px rgba(255, 61, 0, 0.4),
    inset 0 0 5px rgba(255,255,255,0.2);
  margin-left: auto;
  letter-spacing: 0.5px;
  animation: ledBlink 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ledBlink {
  0% {
    opacity: 0.4;
    box-shadow: 0 0 2px rgba(255, 61, 0, 0.1);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(255, 61, 0, 0.7);
  }
}

/* Dynamic Prize Showcase Panel */
.prize-showcase-panel {
  margin-top: 25px;
  background: rgba(1, 10, 12, 0.9);
  border: 1.5px solid var(--border-cyan);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
}

.prize-showcase-panel.show-anim {
  animation: panelSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes panelSlideIn {
  0% { opacity: 0; transform: translateY(15px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.showcase-content {
  display: flex;
  flex-direction: row;
  min-height: 180px;
}

@media (max-width: 600px) {
  .showcase-content {
    flex-direction: column;
  }
}

.showcase-visual {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
  background: #020c0e;
  border-right: 1.5px solid var(--border-cyan);
}

@media (max-width: 600px) {
  .showcase-visual {
    height: 180px;
    border-right: none;
    border-bottom: 1.5px solid var(--border-cyan);
  }
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: floatPrize 4s infinite alternate ease-in-out;
}

@keyframes floatPrize {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-5px) scale(1.03); }
}

.showcase-shine {
  position: absolute;
  top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 30%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0.12) 70%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
  pointer-events: none;
  animation: showcaseShineSweep 5s infinite ease-in-out;
}

@keyframes showcaseShineSweep {
  0% { left: -150%; }
  30%, 100% { left: 150%; }
}

.showcase-details {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.showcase-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  color: #031719;
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
}

.showcase-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFF;
}

.showcase-stats {
  display: flex;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0;
  margin: 4px 0;
}

.showcase-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-stat .stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.showcase-stat .stat-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}

.showcase-stat .stat-val.highlight {
  color: var(--gold);
}

.showcase-desc {
  font-size: 0.8rem;
  color: var(--text-grey);
  line-height: 1.4;
}

/* Floating Gold Coins in step1Card background */
.floating-coin {
  position: absolute;
  font-size: 1.5rem;
  pointer-events: none;
  animation: coinFloat 6s infinite ease-in-out;
  opacity: 0.12;
  z-index: 1;
}

.floating-coin:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.floating-coin:nth-child(2) { bottom: 12%; right: 8%; animation-delay: 2s; }
.floating-coin:nth-child(3) { top: 35%; right: 22%; animation-delay: 4s; }
.floating-coin:nth-child(4) { bottom: 25%; left: 28%; animation-delay: 1s; }

@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(0.9); opacity: 0.12; }
  50% { transform: translateY(-16px) rotate(180deg) scale(1.1); opacity: 0.35; }
}

/* Casino Golden Frame around the Showcase Visual */
.showcase-visual {
  border: 3.5px double #FFD700 !important;
  box-shadow: 
    0 0 15px rgba(255, 215, 0, 0.4),
    inset 0 0 12px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
}

/* Dynamic 777 Jackpot corner badge on prize visual */
.showcase-visual::after {
  content: '🎰 777';
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #FFF;
  box-shadow: 0 0 10px #FFD700;
  z-index: 5;
  animation: badgeBlink 0.6s infinite alternate ease-in-out;
}

@keyframes badgeBlink {
  0% { opacity: 0.55; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Blinking marquee border around step1Card header */
.casino-led-card .step-card-header {
  border-bottom: 2px solid #FFD700 !important;
  background: rgba(24, 9, 0, 0.4);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.4),
    inset 0 0 5px rgba(255,215,0,0.2);
}

.casino-led-card .step-badge {
  background: linear-gradient(135deg, #FFD700, #FF8F00);
  color: #000;
  box-shadow: 0 0 15px #FFD700;
}

.led-warning-badge {
  background: linear-gradient(90deg, #B20000 0%, #FF3D00 50%, #B20000 100%) !important;
  border-color: #FFD700 !important;
  color: #FFF !important;
  text-shadow: 0 1px 3px #000;
  font-weight: 900 !important;
}

/* Phase 2: Live Activity Notifications Dropdown */
.notifications-dropdown {
  position: absolute;
  top: 55px;
  right: 0;
  width: 320px;
  background: rgba(3, 23, 25, 0.96);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(0, 229, 255, 0.15);
  z-index: 110;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notifications-dropdown.active {
  display: flex;
}

.dropdown-header {
  padding: 12px 16px;
  background: rgba(1, 10, 12, 0.95);
  border-bottom: 1px solid var(--border-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}

.dropdown-body {
  max-height: 250px;
  overflow-y: auto;
}

.notification-item {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-grey);
  line-height: 1.4;
  transition: background 0.2s;
  text-align: left;
}

.notification-item:hover {
  background: rgba(0, 229, 255, 0.04);
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Phase 4: Shopping Cart Tags */
.cart-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  animation: zoomIn 0.2s ease;
}

.cart-item-remove {
  cursor: pointer;
  color: var(--red);
  display: flex;
  align-items: center;
  font-weight: 800;
  transition: transform 0.2s;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

/* Phase 1: PIN login styles overlay */
.pin-modal {
  background: rgba(3, 23, 25, 0.98) !important;
  border: 2px solid var(--cyan) !important;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.3) !important;
}

/* ZoomIn Animation */
@keyframes zoomIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   ANIMATED BUTTONS HOVER & ACTIVE STATE
   ========================================== */
button, .btn, .keypad-btn, .sound-btn, .admin-btn, .tab-btn, .arrow-btn, .page-btn, .btn-back-home, .notification-btn, .modal-close-btn, .btn-primary, .btn-secondary {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease !important;
}

button:hover:not(:disabled), .btn:hover:not(:disabled), .keypad-btn:hover, .sound-btn:hover, .admin-btn:hover, .tab-btn:hover, .arrow-btn:hover, .page-btn:hover, .btn-back-home:hover, .notification-btn:hover, .modal-close-btn:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.18), 0 0 15px rgba(0, 229, 255, 0.1) !important;
}

button:active:not(:disabled), .btn:active:not(:disabled), .keypad-btn:active, .sound-btn:active, .admin-btn:active, .tab-btn:active, .arrow-btn:active, .page-btn:active, .btn-back-home:active, .notification-btn:active, .modal-close-btn:active {
  transform: translateY(0) scale(0.95) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   BLESSED NUMBERS (10 NUMEROS BENDECIDOS) STYLES
   ========================================== */
.bendecidos-card {
  background: #E2E8F0;
  border: 4px double #054C54;
  border-radius: 28px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.6);
  color: #022327;
  max-width: 100%;
  margin: 0 auto 20px;
}

.bendecidos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #f1f5f9;
  border: 2px solid #054C54;
  border-radius: 20px;
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.bendecidos-title {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: #000;
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bendecidos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 25px;
  width: 100%;
  max-width: 680px;
  justify-content: center;
  align-content: center;
  margin-bottom: 20px;
}

@media (max-width: 580px) {
  .bendecidos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 15px;
  }
}

@media (max-width: 400px) {
  .bendecidos-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.bendecido-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.bendecido-btn {
  width: 100%;
  max-width: 180px;
  height: 54px;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 3D bevel and reflection gloss for Black button */
.bendecido-btn.btn-black {
  background: linear-gradient(180deg, #3a3a3a 0%, #1e1e1e 50%, #000000 100%) !important;
  color: #FFF !important;
  border: 2px solid #555 !important;
  border-bottom: 5px solid #000 !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
}

.bendecido-btn.btn-black::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

/* 3D bevel and reflection gloss for Teal button */
.bendecido-btn.btn-teal {
  background: linear-gradient(180deg, #0d8390 0%, #054C54 50%, #022327 100%) !important;
  color: #FFF !important;
  border: 2px solid #0d8390 !important;
  border-bottom: 5px solid #011618 !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
}

.bendecido-btn.btn-teal::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 8px 8px 0 0;
  pointer-events: none;
}

/* Hover effect */
.bendecido-btn:hover {
  transform: translateY(-5px) scale(1.06) !important;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4) !important;
}

.bendecido-btn:active {
  transform: translateY(2px) scale(0.97) !important;
  border-bottom-width: 2px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

/* Ya Salió sticker label styled nicely */
.badge-status-red {
  background: linear-gradient(135deg, #FF4D5E 0%, #D32F2F 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: -6px;
  z-index: 10;
  position: relative;
  border: 1px solid #FF8F00;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transform: rotate(-3deg);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.bendecidos-footer {
  background: #E2E8F0;
  color: #334155;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  max-width: 680px;
  margin-top: 15px;
  line-height: 1.4;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Locked Raffle Styles */
.raffle-card.raffle-locked {
  cursor: not-allowed;
  opacity: 0.80;
  filter: grayscale(15%);
}
.raffle-card.raffle-locked:hover {
  transform: none;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border-color: var(--border-cyan);
}
.raffle-status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--red) 0%, #D32F2F 100%);
  color: #FFF;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #FF8F00;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  z-index: 10;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Blessed Numbers Mini Grid in Stats Section */
.blessed-balls-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 15px 0;
  min-height: 64px;
  align-items: center;
}

.blessed-mini-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-cyan);
  transition: all 0.3s ease;
  user-select: none;
}

.blessed-mini-ball.available {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.blessed-mini-ball.sold {
  background: rgba(255, 77, 94, 0.12);
  color: var(--red);
  border-color: rgba(255, 77, 94, 0.4);
  box-shadow: 0 0 10px rgba(255, 77, 94, 0.15);
  text-decoration: line-through;
}

/* Packages Grid on Main Page */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.package-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.package-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--glow-color) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.package-card:hover {
  transform: translateY(-8px);
  border-color: var(--theme-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 15px rgba(var(--theme-rgb), 0.2);
}

.package-card:hover::before {
  opacity: 0.1;
}

.package-card * {
  position: relative;
  z-index: 1;
}

.package-badge {
  position: absolute;
  top: 12px;
  right: -30px;
  background: var(--theme-color);
  color: #fff !important;
  font-weight: 900;
  font-size: 0.6rem;
  padding: 4px 30px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.package-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease;
}

.package-card:hover .package-icon {
  transform: scale(1.1) rotate(15deg);
}

.package-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  color: #111 !important;
  margin-bottom: 8px;
}

.package-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--theme-color);
  margin-bottom: 5px;
  text-shadow: 0 0 1px rgba(var(--theme-rgb), 0.1);
}

.package-discount {
  font-size: 0.75rem;
  color: #009624 !important;
  font-weight: 700;
  margin-bottom: 20px;
  background: rgba(0, 150, 36, 0.08) !important;
  padding: 3px 8px;
  border-radius: 10px;
}

.package-btn {
  width: 100%;
  background: var(--theme-color);
  border: none;
  color: #fff !important;
  padding: 8px 15px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--theme-rgb), 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.package-card:hover .package-btn {
  background: #111;
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Package Color Variables */
.package-bronce {
  --theme-color: #cd7f32;
  --theme-rgb: 205, 127, 50;
  --glow-color: rgba(205, 127, 50, 0.3);
}
.package-plata {
  --theme-color: #c0c0c0;
  --theme-rgb: 192, 192, 192;
  --glow-color: rgba(192, 192, 192, 0.3);
}
.package-oro {
  --theme-color: #ffd700;
  --theme-rgb: 255, 215, 0;
  --glow-color: rgba(255, 215, 0, 0.3);
}
.package-diamante {
  --theme-color: #00e676;
  --theme-rgb: 0, 230, 118;
  --glow-color: rgba(0, 230, 118, 0.3);
}

/* Second Screen Carousel Glow */
.carousel-package-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.carousel-package-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


