:root {
  --accent: #e8420e;
  --accent-glow: #ff6b35;
  --gold: #d4a843;
  --gold-soft: #f5d78e;
  --dark-bg: #0a0a0f;
  --dark-bg-2: #111219;
  --text-main: #e9e3db;
  --text-soft: #b8b1a8;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-bg-strong: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.08);
  --success: #4ade80;
  --warning: #d4a843;
  --danger: #f87171;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(232, 66, 14, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.12), transparent 28%),
    linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg) 100%);
  color: var(--text-main);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

img {
  display: block;
  max-width: 100%;
}

.font-display {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.accent-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
}

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.28) 0%, rgba(10, 10, 15, 0.95) 100%);
}

.raffle-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.raffle-gallery__viewport {
  width: 100%;
  height: 100%;
}

.raffle-gallery__viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.raffle-gallery__empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
}

.raffle-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.raffle-gallery__nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.raffle-gallery__nav--prev {
  left: 12px;
}

.raffle-gallery__nav--next {
  right: 12px;
}

.raffle-gallery__nav[hidden] {
  display: none !important;
}

.raffle-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.raffle-gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.raffle-gallery__dot.is-active {
  background: var(--accent);
}

.ticket {
  width: 56px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid transparent;
  user-select: none;
  outline: none;
}

.ticket.available {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d6d1cb;
}

.ticket.available:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(232, 66, 14, 0.15);
}

.ticket.selected {
  background: var(--accent);
  border-color: var(--accent-glow);
  color: #fff;
  box-shadow: 0 0 14px rgba(232, 66, 14, 0.42);
}

.ticket.selected:hover {
  transform: translateY(-2px);
}

.ticket.sold {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
  color: #4f4a45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.ticket.reserved {
  background: rgba(212, 168, 67, 0.12);
  border-color: rgba(212, 168, 67, 0.3);
  color: var(--gold);
  cursor: not-allowed;
}

.ticket.highlight {
  animation: pulse-highlight 0.6s ease;
}

@keyframes pulse-highlight {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 0 0 18px rgba(232, 66, 14, 0.55);
  }
}

.packages-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.packages-scroll::-webkit-scrollbar {
  display: none;
}

.pkg-card {
  min-width: 260px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pkg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 66, 14, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.progress-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
}

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.spin-anim {
  animation: spin-roulette 1.2s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes spin-roulette {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(1080deg);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ticket-helper {
  color: var(--text-soft);
}

#verify-result {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

#verify-result.hidden {
  display: none;
}

#verify-result:not(.hidden) {
  display: block;
}

input,
select,
button {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

input,
select {
  color: #f3eee8;
  background-color: rgba(255, 255, 255, 0.05);
}

input::placeholder {
  color: #8f8a83;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 66, 14, 0.14);
  outline: none;
}

select,
option {
  color: #f3eee8;
  background-color: #161821;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

@media (max-width: 767px) {
  .ticket {
    width: 52px;
    height: 38px;
    font-size: 11px;
  }

  .pkg-card {
    min-width: 220px;
  }

  .sticky-bar {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .raffle-gallery__nav {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 1024px) {
  .packages-scroll {
    overflow-x: visible;
  }

  .pkg-card {
    min-width: 0;
    flex: 1 1 0;
  }
}