/* LuxorLot.com – Modern lottery layout, CSS Grid + Flexbox */

:root {
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #252542;
  --gold: #d4af37;
  --gold-light: #f4e4a6;
  --gold-dark: #b8860b;
  --accent: #6c5ce7;
  --text: #e8e8f0;
  --text-muted: #a0a0b8;
  --border: rgba(212, 175, 55, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 175, 55, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(212, 175, 55, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
  animation: bgGradientShift 15s ease-in-out infinite;
}

@keyframes bgGradientShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

/* Floating orbs background animation */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(108, 92, 231, 0.07) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
  animation: bgOrbsFloat 20s ease-in-out infinite;
}

@keyframes bgOrbsFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(2%, -1%) scale(1.03); }
  50% { transform: translate(-1%, 2%) scale(0.98); }
  75% { transform: translate(-2%, -2%) scale(1.01); }
}

/* Premium JS background canvas */
#luxor-bg-canvas-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

#luxor-bg-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Form success popup */
.luxor-form-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.luxor-form-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.luxor-form-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.luxor-form-popup p {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.luxor-form-popup .btn {
  min-width: 120px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  position: relative;
  z-index: 1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 3rem;
  border-radius: 10px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  vertical-align: middle;
  transition: opacity var(--transition);
}

.logo:hover img {
  opacity: 0.9;
}

nav ul {
  display: flex;
  list-style: none;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

/* Burger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  color: var(--gold);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  padding: clamp(100px, 18vw, 140px) 0 clamp(80px, 12vw, 100px);
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease-out;
}

.hero .hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero .hero-desc {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeUp 0.8s ease-out 0.25s both;
}

.prize-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease-out 0.35s both;
  transition: transform var(--transition), box-shadow var(--transition);
}

.prize-box:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.prize-amount {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
  animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { text-shadow: 0 0 32px rgba(212, 175, 55, 0.5); }
}

.prize-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.45s both;
}

.hero-cta .btn {
  min-width: 160px;
}

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

/* Section titles */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Choose your path */
.path-section {
  padding: clamp(60px, 10vw, 80px) 0;
}

main > .path-section:first-child {
  padding-top: clamp(100px, 14vw, 120px);
}

.path-section .section-title {
  animation: fadeUp 0.6s ease-out;
}

.path-section .section-subtitle {
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation: fadeUp 0.6s ease-out both;
}

.pack-card:nth-child(1) { animation-delay: 0.1s; }
.pack-card:nth-child(2) { animation-delay: 0.2s; }
.pack-card:nth-child(3) { animation-delay: 0.3s; }
.pack-card:nth-child(4) { animation-delay: 0.4s; }

.pack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.12);
}

.pack-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.pack-badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.pack-features {
  list-style: none;
  margin-bottom: 1.5rem;
  text-align: left;
}

.pack-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pack-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.pack-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.pack-card .btn {
  width: 100%;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  padding-bottom: 2rem;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease-out;
}

.auth-box h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.auth-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-dark);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

.auth-box .btn-primary {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.auth-link {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Inner page content */
.page-content {
  padding: clamp(100px, 14vw, 120px) 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text);
}

.page-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--gold);
}

.page-content p, .page-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-content a {
  color: var(--gold);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.page-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Contact form on page */
.contact-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.contact-details-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}

.contact-details-item span:first-child {
  color: var(--gold);
}

.form-wrap {
  max-width: 480px;
  margin-top: 2rem;
}

.form-wrap h2 {
  margin-top: 0;
}

/* Disclaimer block (before footer) */
.disclaimer-block {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(26, 26, 46, 0.6);
}

.disclaimer-block .container {
  max-width: 720px;
}

.disclaimer-block h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.disclaimer-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.disclaimer-block a {
  color: var(--gold);
  text-decoration: none;
}

.disclaimer-block a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: rgba(15, 15, 26, 0.8);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-inner a:hover {
  color: var(--gold);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-policies a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-policies a:hover {
  color: var(--gold);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  height: 35px !important;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity var(--transition), border-color var(--transition);
}

.footer-badge:hover {
  opacity: 1;
  border-color: var(--gold);
}

.footer-badge-img {
  height: 35px !important;
  width: auto !important;
  display: block;
  object-fit: contain;
}

.footer-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-badge-text:hover {
  color: var(--gold);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-dark);
  background: var(--gold);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile nav */
@media (max-width: 899px) {
  .menu-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px 1.5rem 1.5rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }

  nav ul.is-open {
    transform: translateX(0);
  }

  nav ul li {
    width: 100%;
  }

  nav ul a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .hero {
    padding-top: clamp(80px, 14vw, 100px);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* Buy Tickets page */
.buy-tickets-page {
  padding: clamp(100px, 14vw, 120px) 0 3rem;
}

.buy-tickets-page .section-title {
  margin-bottom: 1.5rem;
}

.ticket-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ticket-layout {
    grid-template-columns: 1fr 320px;
  }
}

.number-picker h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.number-btn {
  aspect-ratio: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.number-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.number-btn.selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}

.number-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.picker-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.ticket-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.ticket-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--gold);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row strong {
  color: var(--text);
}

.selected-numbers-display {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  word-break: break-all;
  min-height: 1.5em;
}

.summary-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.summary-actions {
  margin-top: 1.5rem;
}

.summary-actions .btn {
  width: 100%;
  padding: 0.85rem;
}

.ticket-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.5;
}

.draw-date-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* About – why choose cards */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.why-choose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.why-choose-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

.why-choose-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.why-choose-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
