:root {
  --gold: #d4a825;
  --gold-light: #f0d060;
  --gold-dark: #b8941f;
  --gold-glow: rgba(212, 168, 37, 0.35);
  --primary: #d4a825;
  --primary-hover: #b8941f;
  --secondary: #f0d060;
  --accent: #f59e0b;
  --dark: #0a0a0a;
  --dark-card: #141414;
  --dark-surface: #1a1a1a;
  --dark-border: #2a2a2a;
  --light: #0e0e0e;
  --gray-100: #1c1c1c;
  --gray-200: #2a2a2a;
  --gray-300: #444444;
  --gray-400: #666666;
  --gray-500: #999999;
  --gray-700: #cccccc;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 25px rgba(212, 168, 37, 0.2);
  --radius: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--gray-700);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* ======== HEADER ======== */
header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--dark-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-login {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark) !important;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-gold);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 37, 0.4);
}

/* ======== HERO SECTION ======== */
.hero {
  padding: 6rem 2rem 5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1a1a 0%, #0a0a0a 70%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 168, 37, 0.06) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(212, 168, 37, 0.15));
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.hero .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--dark);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 30px rgba(212, 168, 37, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(212, 168, 37, 0.5);
}

/* ======== RAFFLES SECTION ======== */
.raffles-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
  position: relative;
}

.raffles-section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--white);
}

.raffles-section .section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.raffles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.raffle-card {
  background: var(--dark-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid var(--dark-border);
  position: relative;
}

.raffle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.raffle-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 37, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 168, 37, 0.08);
}

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

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

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

.raffle-image-wrapper {
  overflow: hidden;
  position: relative;
}

.raffle-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--dark-card));
  pointer-events: none;
}

.raffle-content {
  padding: 1.5rem;
}

.raffle-tag {
  background: rgba(212, 168, 37, 0.15);
  color: var(--gold);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(212, 168, 37, 0.25);
}

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

.raffle-content p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.5;
}

.raffle-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.2rem;
  border-top: 1px solid var(--dark-border);
  padding-top: 1.2rem;
}

.raffle-price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
}

.raffle-progress {
  margin-top: 12px;
}

.raffle-progress small {
  color: var(--gray-500) !important;
}

/* ======== NUMBERS SECTION ======== */
.numbers-section {
  background: var(--dark-surface);
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.numbers-container {
  max-width: 1000px;
  margin: 0 auto;
}

.raffle-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.raffle-detail-img {
  flex: 1;
  min-width: 300px;
  height: 350px;
  border-radius: var(--radius);
  object-fit: cover;
}

.raffle-detail-info {
  flex: 1;
  min-width: 300px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.number-box {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--dark-border);
}

.number-box.available {
  background: var(--dark-surface);
  color: var(--gray-700);
}

.number-box.available:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.number-box.sold {
  background: var(--gray-200);
  color: var(--gray-300);
  cursor: not-allowed;
  text-decoration: line-through;
}

.number-box.reserved {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* ======== SPARKLE / SHIMMER FX ======== */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ======== PULSE ANIMATION ======== */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 168, 37, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(212, 168, 37, 0); }
}

.pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}
/* ======== RESPONSIVE ======== */
/* Tablet Adjustments */
@media (max-width: 1024px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .raffles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  :root {
    --radius: 0.75rem;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .btn-login {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 3rem 1rem 2.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-badge {
    padding: 0.3rem 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .hero-stat .num {
    font-size: 1.5rem;
  }
  
  .hero-stat .label {
    font-size: 0.7rem;
  }
  
  .btn-primary {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .raffles-section {
    margin: 2.5rem auto;
    padding: 0 1rem;
  }
  
  .raffles-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }
  
  .raffles-grid {
    gap: 1.2rem;
  }
  
  .raffle-card {
    border-radius: 0.75rem;
  }
  
  .raffle-image {
    height: 160px;
  }
  
  .raffle-content {
    padding: 1rem;
  }
  
  .raffle-tag {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .raffle-title {
    font-size: 1.05rem;
  }
  
  .raffle-content p {
    font-size: 0.8rem;
  }
  
  .raffle-info {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .raffle-price {
    font-size: 0.95rem;
  }
  
  .btn-login {
    width: 100%;
    text-align: center;
  }
  
  .how-section {
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
  }
  
  .how-section h2 {
    font-size: 1.5rem;
  }
  
  .how-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .how-card {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
  }
  
  .how-card .step-num {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .how-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .how-card h4 {
    font-size: 1rem;
  }
  
  .how-card p {
    font-size: 0.8rem;
  }
  
  .gold-divider {
    width: 50px;
    height: 2px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .nav-container {
    padding: 0.6rem 0.75rem;
  }
  
  .logo {
    font-size: 1rem;
    gap: 0.3rem;
  }
  
  .logo i {
    font-size: 1rem;
  }
  
  .btn-login {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
  }

  .hero {
    padding: 2rem 0.75rem 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .hero p {
    font-size: 0.85rem;
  }
  
  .hero-badge {
    padding: 0.25rem 0.8rem;
    font-size: 0.6rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .hero-stat .num {
    font-size: 1.2rem;
  }
  
  .hero-stat .label {
    font-size: 0.65rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .btn-primary {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }
  
  .raffles-section {
    margin: 2rem auto;
    padding: 0 0.75rem;
  }
  
  .raffles-section h2 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .raffles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .raffle-image {
    height: 140px;
  }
  
  .raffle-content {
    padding: 0.85rem;
  }
  
  .raffle-title {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .raffle-content p {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  
  .raffle-info {
    gap: 0.6rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }
  
  .raffle-price {
    font-size: 0.9rem;
  }
  
  .raffle-progress {
    margin-top: 10px;
  }
  
  .raffle-progress small {
    font-size: 0.65rem !important;
  }
  
  .how-section {
    margin: 0 auto 2rem;
    padding: 0 0.75rem;
  }
  
  .how-section h2 {
    font-size: 1.3rem;
  }
  
  .how-subtitle {
    font-size: 0.85rem;
  }
  
  .how-card {
    padding: 1.2rem 0.8rem;
    border-radius: 0.65rem;
  }
  
  .how-card .step-num {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
    top: -13px;
  }
  
  .how-card .icon {
    font-size: 1.3rem;
    margin-top: 0.3rem;
  }
  
  .how-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .how-card p {
    font-size: 0.75rem;
  }
}