/* ============================================================
   PREMIAZO — Premium Design System
   Dark Theme · Luxury Casino Aesthetic
   ============================================================ */

/* -------------------------------------------------------
   0. Google Fonts Import
   ------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* -------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-card-hover: #1e2442;

  /* Accent Colors */
  --accent-purple: #6c5ce7;
  --accent-purple-light: #a855f7;
  --accent-emerald: #00d4aa;
  --accent-emerald-dark: #00b894;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-red: #ef4444;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(108, 92, 231, 0.3);

  /* Gradients */
  --gradient-purple: linear-gradient(135deg, #6c5ce7, #a855f7);
  --gradient-emerald: linear-gradient(135deg, #00d4aa, #00b894);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);

  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 39, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(108, 92, 231, 0.3);
  --shadow-glow-emerald: 0 0 20px rgba(0, 212, 170, 0.3);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}

/* -------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* Selection */
::selection {
  background: rgba(108, 92, 231, 0.4);
  color: #fff;
}

::-moz-selection {
  background: rgba(108, 92, 231, 0.4);
  color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) var(--bg-primary);
}

/* -------------------------------------------------------
   3. Utility Classes
   ------------------------------------------------------- */
.text-gradient-purple {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.text-accent-emerald {
  color: var(--accent-emerald);
}

/* -------------------------------------------------------
   4. Buttons .btn
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
}

.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-purple), 0 8px 25px rgba(108, 92, 231, 0.35);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple-light);
}

.btn--outline:hover {
  background: rgba(108, 92, 231, 0.12);
  border-color: var(--accent-purple-light);
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.15);
}

.btn--outline:active {
  transform: scale(0.98);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.btn--play {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.25);
  position: relative;
  overflow: hidden;
}

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

.btn--play:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-purple), 0 8px 25px rgba(108, 92, 231, 0.4);
}

.btn--play:hover::before {
  left: 100%;
}

.btn--play:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* -------------------------------------------------------
   5. Header .header
   ------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease;
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header__logo-icon {
  font-size: 1.8rem;
  animation: float 3s ease-in-out infinite;
}

.header__logo-text {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header__logo-accent {
  color: var(--accent-emerald);
  text-shadow: 0 0 12px rgba(0, 212, 170, 0.4);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple);
  border-radius: 50px;
  transition: width 0.3s ease;
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s ease;
}

.header__menu-toggle:hover {
  color: var(--accent-purple-light);
}

.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.header__menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------------------------------
   6. Hero .hero
   ------------------------------------------------------- */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero__content {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
}

.hero__title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

/* Stat Card */
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow-purple);
}

.stat-card__number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-card__label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* -------------------------------------------------------
   7. Catalog .catalog
   ------------------------------------------------------- */
.catalog {
  padding: 60px 0 80px;
  position: relative;
}

.catalog__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.catalog__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.catalog__title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
}

.catalog__subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 0.95rem;
}

.catalog__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--accent-purple);
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.06);
}

.filter-btn.active {
  background: var(--gradient-purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* -------------------------------------------------------
   8. Raffle Card .raffle-card
   ------------------------------------------------------- */
.raffle-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.6s ease-out both;
}

.raffle-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-purple);
  background: var(--bg-card-hover);
}

/* Staggered animation delays */
.raffle-card:nth-child(1) { animation-delay: 0.1s; }
.raffle-card:nth-child(2) { animation-delay: 0.2s; }
.raffle-card:nth-child(3) { animation-delay: 0.3s; }
.raffle-card:nth-child(4) { animation-delay: 0.4s; }
.raffle-card:nth-child(5) { animation-delay: 0.5s; }
.raffle-card:nth-child(6) { animation-delay: 0.6s; }

/* Card Image */
.raffle-card__image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.raffle-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.raffle-card:hover .raffle-card__image {
  transform: scale(1.08);
}

/* Card Badge */
.raffle-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.raffle-card__badge--premium {
  background: var(--gradient-purple);
  color: #fff;
}

.raffle-card__badge--speed {
  background: linear-gradient(135deg, #ff6b35, #ff4444);
  color: #fff;
}

.raffle-card__badge--tech {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
}

.raffle-card__badge--cash {
  background: var(--gradient-gold);
  color: #1a1a2e;
}

/* Card Info */
.raffle-card__info {
  padding: 24px;
}

.raffle-card__title {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.3;
}

.raffle-card__description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.raffle-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-bottom: 16px;
  font-weight: 500;
}

.raffle-card__date-icon {
  font-size: 0.9rem;
}

/* -------------------------------------------------------
   9. Countdown .raffle-card__countdown
   ------------------------------------------------------- */
.raffle-card__countdown {
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.raffle-card__countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple-light);
  margin-bottom: 8px;
  text-align: center;
  font-weight: 600;
}

.raffle-card__countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.countdown-unit {
  text-align: center;
}

.countdown-unit__value {
  display: block;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 45px;
  border: 1px solid var(--border-subtle);
}

.countdown-unit__label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* -------------------------------------------------------
   10. Progress Bar .raffle-card__progress
   ------------------------------------------------------- */
.raffle-card__progress {
  margin-bottom: 16px;
}

.raffle-card__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.raffle-card__progress-header span:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.raffle-card__progress-percent {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.raffle-card__progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.raffle-card__progress-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--gradient-emerald);
  position: relative;
  transition: width 1.5s ease-out;
}

.raffle-card__progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* -------------------------------------------------------
   11. Card Footer .raffle-card__footer
   ------------------------------------------------------- */
.raffle-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.raffle-card__price-amount {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.raffle-card__price-min {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* -------------------------------------------------------
   12. Modal .modal
   ------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 95%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal__content--sm {
  max-width: 450px;
}

/* Modal content scrollbar */
.modal__content::-webkit-scrollbar {
  width: 4px;
}

.modal__content::-webkit-scrollbar-track {
  background: transparent;
}

.modal__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
}

.modal__content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal-success {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.modal-success__content {
  text-align: center;
  padding: 20px;
}

.modal-success__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease-out;
}

.modal-success__title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.modal-success__detail {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-success__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------
   13. Modal Header .modal__header
   ------------------------------------------------------- */
.modal__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal__back,
.modal__close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal__back:hover,
.modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal__close {
  margin-left: auto;
}

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

.modal__title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* -------------------------------------------------------
   14. Modal Body .modal__body
   ------------------------------------------------------- */
.modal__body {
  padding: 24px;
}

.modal__section {
  margin-bottom: 24px;
}

.modal__section:last-child {
  margin-bottom: 0;
}

.modal__section-title {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   15. Ticket Selector .ticket-selector
   ------------------------------------------------------- */
.ticket-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.ticket-selector__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-selector__btn:hover {
  border-color: var(--accent-purple);
  background: rgba(108, 92, 231, 0.1);
  color: var(--accent-purple-light);
}

.ticket-selector__btn:active {
  transform: scale(0.92);
}

.ticket-selector__display {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-lg);
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-purple);
}

.ticket-selector__number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.ticket-selector__min {
  font-size: 0.8rem;
  color: var(--accent-emerald);
  text-align: center;
  font-weight: 600;
  margin-top: 4px;
}

/* -------------------------------------------------------
   16. Info Box .info-box
   ------------------------------------------------------- */
.info-box {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: var(--radius-md);
}

.info-box__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.info-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.info-box strong {
  color: var(--accent-emerald);
}

/* -------------------------------------------------------
   17. Form Elements
   ------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-secondary);
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.825L0.175 3 1.05 2.125 6 7.075 10.95 2.125 11.825 3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* -------------------------------------------------------
   18. Upload Zone .upload-zone
   ------------------------------------------------------- */
.upload-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--accent-purple);
  background: rgba(108, 92, 231, 0.03);
}

.upload-zone.has-file {
  border-color: var(--accent-emerald);
  border-style: solid;
  background: rgba(0, 212, 170, 0.05);
}

.upload-zone__icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.upload-zone small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* -------------------------------------------------------
   19. Checkbox .checkbox-wrapper
   ------------------------------------------------------- */
.checkbox-wrapper {
  display: flex;
  gap: 12px;
  cursor: pointer;
  align-items: flex-start;
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 4px;
  border: 2px solid var(--border-subtle);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--gradient-purple);
  border-color: var(--accent-purple);
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.checkbox-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--accent-purple-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-text a:hover {
  color: var(--accent-purple);
}

/* -------------------------------------------------------
   20. Modal Footer .modal__footer
   ------------------------------------------------------- */
.modal__footer {
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  bottom: 0;
  background: var(--bg-secondary);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal__total-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.modal__total-amount {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

/* -------------------------------------------------------
   21. Verify Result .verificar-resultado
   ------------------------------------------------------- */
.verificar-resultado {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  animation: fadeInUp 0.4s ease-out;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.verificar-resultado--found {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.2);
}

.verificar-resultado--found strong,
.verificar-resultado--found .verificar-resultado__title {
  color: var(--accent-emerald);
}

.verificar-resultado--not-found {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.verificar-resultado--not-found strong,
.verificar-resultado--not-found .verificar-resultado__title {
  color: var(--accent-red);
}

.verificar-resultado__title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.verificar-resultado p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Estructura interna icono + info: una fila por cada boleto encontrado.
   El contenedor padre .verificar-resultado los apila en columna (arriba);
   esta clase pone icono + texto uno junto al otro DENTRO de cada fila. */
.verificar-resultado__match {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

.verificar-resultado__icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.verificar-resultado__info {
  flex: 1;
  min-width: 0;
}

.verificar-resultado__raffle {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.verificar-resultado__status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.verificar-resultado__status--confirmado {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent-emerald);
}

.verificar-resultado__status--pendiente {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold-light);
}

.verificar-resultado__status--rechazado {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.verificar-resultado__match + .verificar-resultado__match {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------
   21b. Sold Out State .raffle-card--soldout
   ------------------------------------------------------- */
.raffle-card--soldout {
  opacity: 0.6;
}

.raffle-card--soldout .raffle-card__image {
  filter: grayscale(70%);
}

.raffle-card__badge--soldout {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}

.btn--play:disabled,
.btn--play[disabled] {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn--play:disabled::before {
  display: none;
}

/* -------------------------------------------------------
   21c. Números de boleto asignados (chips) .ticket-chip
   ------------------------------------------------------- */
.ticket-chip-section {
  margin: 18px 0;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.ticket-chip-section__label {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: left;
}

.ticket-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.ticket-chip-grid--sm {
  justify-content: flex-start;
  margin: 8px 0;
}

.ticket-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  min-width: 64px;
}

.ticket-chip--sm {
  padding: 4px 9px;
  min-width: auto;
}

.ticket-chip--highlight {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.25);
}

.ticket-chip__number {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--accent-gold-light);
}

.ticket-chip--sm .ticket-chip__number {
  font-size: 0.85rem;
}

.ticket-chip__status {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.modal-success__ref {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 16px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: var(--accent-purple-light);
}

.modal-success__close {
  margin-top: 20px;
  width: 100%;
  max-width: 220px;
}

/* -------------------------------------------------------
   21d. Enlace discreto al panel admin en el footer
   ------------------------------------------------------- */
.footer__admin-link {
  opacity: 0.55;
  font-size: 0.8rem;
}

.footer__admin-link:hover {
  opacity: 1;
}

/* -------------------------------------------------------
   22. Footer .footer
   ------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.footer__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

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

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer__links a:hover {
  color: var(--accent-purple-light);
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-purple-light);
  transition: width 0.3s ease;
}

.footer__links a:hover::after {
  width: 100%;
}

/* -------------------------------------------------------
   23. Particles Background
   ------------------------------------------------------- */
#particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Ensure main content sits above particles */
.hero,
.catalog,
.footer {
  position: relative;
  z-index: 1;
}

/* Header keeps its own fixed positioning (see rule above); just ensure it
   stacks above other sections so its mobile dropdown nav isn't covered */
.header {
  z-index: 1000;
}

/* -------------------------------------------------------
   24. Keyframe Animations
   ------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(108, 92, 231, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
  }
}

/* -------------------------------------------------------
   25. Responsive Design
   ------------------------------------------------------- */

/* Tablet landscape */
@media (max-width: 1024px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet portrait & small devices */
@media (max-width: 768px) {
  /* Header */
  .header__nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 20px 2rem;
    gap: 16px;
    animation: fadeIn 0.3s ease;
  }

  .header__nav.active {
    display: flex;
  }

  .header__nav a {
    font-size: 1rem;
    padding: 8px 0;
    width: 100%;
  }

  .header__nav a::after {
    display: none;
  }

  .header__menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 16px;
  }

  .stat-card {
    padding: 24px 16px;
  }

  .stat-card__number {
    font-size: 2rem;
  }

  /* Catalog */
  .catalog {
    padding: 40px 0 60px;
  }

  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Modal */
  .modal {
    align-items: flex-end;
  }

  .modal__content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal__header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal__footer {
    flex-direction: column;
    text-align: center;
    border-radius: 0;
  }

  .modal__footer .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .header__container {
    padding: 0 1rem;
    height: 60px;
  }

  .header__logo-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .header__logo-icon {
    font-size: 1.4rem;
  }

  .hero__container,
  .catalog__container,
  .footer__container {
    padding: 0 1rem;
  }

  .hero__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__content {
    margin-bottom: 40px;
  }

  .catalog__title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }

  .raffle-card__image-wrapper {
    height: 180px;
  }

  .raffle-card__info {
    padding: 20px 16px;
  }

  .raffle-card__title {
    font-size: 1.05rem;
  }

  .raffle-card__price-amount {
    font-size: 1.2rem;
  }

  .countdown-unit__value {
    padding: 6px 10px;
    font-size: 1.1rem;
    min-width: 38px;
  }

  .modal__body {
    padding: 20px 16px;
  }

  .modal__header {
    padding: 20px 16px;
  }

  .modal__footer {
    padding: 20px 16px;
  }

  .ticket-selector__display {
    width: 75px;
    height: 75px;
  }

  .ticket-selector__number {
    font-size: 2rem;
  }

  .ticket-selector__btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: 0.9rem;
  }
}
