/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

:root {
  --navy: #0a0e27;
  --navy-mid: #121640;
  --purple: #2d1b69;
  --purple-light: #4a2c8a;
  --gold: #d4a843;
  --gold-light: #f0d078;
  --gold-bright: #ffd700;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.7);
  --white-muted: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 30%, var(--purple) 70%, var(--purple-light) 100%);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: url('http://offertabs.s3.amazonaws.com/offer/3y29jn/69b996499991b6.50755697.jpg') center/cover no-repeat;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
  animation: sparkle-float linear infinite;
  box-shadow: 0 0 6px var(--gold-bright), 0 0 12px var(--gold);
}

@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0);
  }
  20% {
    opacity: 1;
    transform: translateY(-30px) scale(1);
  }
  80% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0.3);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-headline {
  margin-bottom: 20px;
  line-height: 1;
}

.shimmer-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5rem, 15vw, 10rem);
  background: linear-gradient(
    105deg,
    var(--gold) 0%,
    var(--gold-light) 20%,
    var(--gold-bright) 40%,
    #fff8e1 50%,
    var(--gold-bright) 60%,
    var(--gold-light) 80%,
    var(--gold) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 30px rgba(212, 168, 67, 0.4));
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--white-dim);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* === COUNTDOWN === */
.countdown-wrapper {
  margin-bottom: 40px;
}

.countdown-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 12px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: 80px;
  backdrop-filter: blur(10px);
}

.countdown-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}

.countdown-label-small {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-top: 6px;
}

.countdown-ended {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  padding: 20px;
}

/* === FORM === */
.form-wrapper {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.entry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--white-dim);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.form-group input.error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* === CTA BUTTON === */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold-light) 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s, background-position 0.5s;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4), 0 0 40px rgba(212, 168, 67, 0.15);
  text-decoration: none;
  animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4), 0 0 40px rgba(212, 168, 67, 0.15);
    background-position: 0% 50%;
  }
  50% {
    box-shadow: 0 4px 30px rgba(212, 168, 67, 0.6), 0 0 60px rgba(212, 168, 67, 0.25);
    background-position: 100% 50%;
  }
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.6), 0 0 60px rgba(212, 168, 67, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

.cta-btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  box-shadow: none;
  animation: none;
  margin-top: 20px;
}

.cta-btn-outline:hover {
  background: rgba(212, 168, 67, 0.1);
  box-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
}

.cta-btn-large {
  padding: 20px 56px;
  font-size: 1.2rem;
}

.cta-btn-modal {
  padding: 14px 40px;
  font-size: 0.95rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--white-muted);
  margin-top: 4px;
}

/* === FORM MESSAGES === */
.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-error {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

/* === SUCCESS STATE === */
.success-state {
  max-width: 520px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease;
}

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

.success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.success-message {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white-dim);
  margin-bottom: 8px;
}

/* === SHARE PANEL === */
.share-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.share-divider {
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.share-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.share-description {
  font-size: 0.9rem;
  color: var(--white-dim);
  margin-bottom: 16px;
}

.share-link-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-url-input {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
}

.copy-btn {
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--gold-light);
}

.social-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.social-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.twitter {
  background: #1d1d1d;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--navy-mid) 100%);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.3), transparent);
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-muted);
  text-align: center;
  margin-bottom: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 700px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 168, 67, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--white-muted);
}

/* === FINAL CTA === */
.final-cta {
  padding: 80px 24px;
  text-align: center;
  background: var(--navy-mid);
  position: relative;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.3), transparent);
}

.final-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 12px;
}

.final-cta-text {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  padding: 40px 24px;
  text-align: center;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

.rules-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.rules-link:hover {
  color: var(--gold-light);
}

#wbx-powered-by-slot {
  margin-top: 24px;
}

/* === OFFICIAL RULES MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.3s ease;
  overflow-y: auto;
}

.modal-overlay.hidden {
  display: none !important;
}

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

.modal-container {
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #141836 0%, #1a1050 50%, #0e1130 100%);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 168, 67, 0.08);
  animation: modalSlideUp 0.35s ease;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--white), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--white-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

.rules-updated {
  font-size: 0.8rem;
  color: var(--white-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.modal-footer {
  padding: 20px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  flex-shrink: 0;
}

/* Body no-scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .modal-container {
    max-height: calc(100vh - 32px);
    border-radius: 16px;
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-body h3 {
    font-size: 0.95rem;
  }

  .modal-body p {
    font-size: 0.85rem;
  }

  .modal-footer {
    padding: 16px 20px 20px;
  }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content > * {
  animation: fadeIn 0.8s ease both;
}

.hero-content > :nth-child(1) { animation-delay: 0.1s; }
.hero-content > :nth-child(2) { animation-delay: 0.2s; }
.hero-content > :nth-child(3) { animation-delay: 0.3s; }
.hero-content > :nth-child(4) { animation-delay: 0.4s; }
.hero-content > :nth-child(5) { animation-delay: 0.5s; }
.hero-content > :nth-child(6) { animation-delay: 0.6s; }
.hero-content > :nth-child(7) { animation-delay: 0.7s; }

