/* NexaTel Tombola — layout v3 (premium landing) */

:root {
  --bg: #08091f;
  --bg-2: #0b102f;
  --card: rgba(18, 22, 55, 0.78);
  --card-2: rgba(23, 28, 68, 0.92);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f7f7ff;
  --muted: #a9b0d8;
  --gold: #f7c948;
  --gold-2: #ffb000;
  --cyan: #22d3ee;
  --danger: #fb7185;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shell: min(1120px, calc(100% - 32px));
  --footer-text: #c8d0ea;
  --footer-muted: #a8b4d4;
}

.tombola-page {
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(247, 201, 72, 0.13), transparent 24%),
    linear-gradient(180deg, #08091f 0%, #0b102f 45%, #08091f 100%);
}

.page-shell,
.nx-wrap.tmb-wrap {
  width: var(--shell);
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: calc(2rem + var(--tmb-safe-b, 0px));
}

.nx-container {
  max-width: 1120px;
  padding: 0;
}

/* Topbar */
.tmb-header,
.nx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 9, 31, 0.72);
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: calc(0.5rem + var(--tmb-safe-t, 0px)) max(16px, calc((100% - 1120px) / 2 + 16px)) 0.5rem;
}

.nx-header__actions {
  gap: 8px;
  flex-wrap: nowrap;
}

.nx-header__counter,
.nx-participant-counter--header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.nx-header__counter strong,
.nx-participant-counter--header strong {
  color: var(--cyan);
}

/* Hero */
.nx-hero,
.tmb-hero {
  text-align: center;
  padding: 48px 0 32px;
  max-width: none;
}

.nx-hero::before,
.nx-hero::after {
  opacity: 0.55;
}

.badge,
.nx-hero__badge,
.tmb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247, 201, 72, 0.35);
  color: var(--gold);
  background: rgba(247, 201, 72, 0.08);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nx-hero-title,
.tmb-hero h1 {
  max-width: 760px;
  margin: 18px auto 12px;
  font-size: clamp(34px, 6.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 900;
  background: none;
  -webkit-text-fill-color: var(--text);
  color: var(--text);
}

.nx-hero-title .nx-gold,
.tmb-hero h1 .nx-gold {
  color: var(--gold);
  text-shadow: 0 0 38px rgba(247, 201, 72, 0.35);
}

.nx-hero-sub,
.tmb-hero-sub {
  max-width: 650px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.nx-countdown-date {
  margin-bottom: 8px;
}

.countdown-heading {
  margin: 20px auto 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-widget {
  margin: 0 auto 22px;
  padding: 20px 18px 18px;
  max-width: 480px;
  border-radius: 22px;
  border: 1px solid rgba(247, 201, 72, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 40px rgba(247, 201, 72, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nx-countdown,
.tmb-countdown {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 14px;
  max-width: 440px;
}

.nx-countdown-unit,
.tmb-countdown-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 31, 0.55);
  border-radius: 18px;
  padding: 18px 12px 14px;
  min-width: 0;
}

.nx-countdown-number,
.tmb-countdown-item strong {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 24px rgba(247, 201, 72, 0.35);
}

.nx-hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px auto 0;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nx-hero-scroll-cue:hover,
.nx-hero-scroll-cue:focus-visible {
  color: var(--gold);
  transform: translateY(2px);
}

.nx-hero-scroll-cue__arrow {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  animation: nx-scroll-bounce 2s ease-in-out infinite;
}

@keyframes nx-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.nx-hero__fine {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--footer-muted);
  line-height: 1.55;
}

.nx-countdown-label,
.tmb-countdown-item span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.trust-row,
.nx-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 14px;
  max-width: none;
  list-style: none;
  padding: 0;
}

.trust-row a,
.nx-trust-bar a {
  color: var(--cyan);
}

.primary-btn,
.secondary-btn,
.nx-btn--hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  width: auto;
  min-width: 240px;
  max-width: 360px;
}

.primary-btn,
.nx-btn--hero,
.nx-btn-cta.nx-btn--gold {
  color: #17120a !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
  box-shadow: 0 16px 42px rgba(247, 201, 72, 0.26);
}

.secondary-btn,
#nx-notif-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  width: 100%;
}

.secondary-btn:hover:not(:disabled),
.primary-btn:hover:not(:disabled),
.nx-btn--hero:hover {
  transform: translateY(-2px);
}

.secondary-btn.is-done {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

/* Sections */
.section-block,
.nx-section {
  padding: 36px 0;
  margin: 0;
}

.section-title,
.nx-section-title {
  text-align: center;
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
}

/* Stepper */
.stepper-card,
.nx-stepper-section .stepper-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 0 auto 28px;
}

.nx-stepper-section {
  padding: 8px 0 0;
  background: transparent;
}

.nx-stepper,
.stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}

.nx-step,
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
}

.nx-step-circle,
.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-weight: 900;
}

.nx-step.active .nx-step-circle,
.nx-step.is-active .step-circle {
  background: var(--gold);
  color: #17120a;
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(247, 201, 72, 0.35);
}

.nx-step.done .nx-step-circle,
.nx-step.is-done .step-circle {
  background: var(--cyan);
  color: #031018;
  border-color: var(--cyan);
}

.nx-step-connector {
  width: clamp(20px, 6vw, 48px);
  height: 2px;
  margin: 0;
  align-self: center;
  margin-top: -22px;
}

/* Wheel section — two columns */
.wheel-section,
.nx-wheel-section {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 48px;
  overflow: visible;
  text-align: left;
}

.wheel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.wheel-col--wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-wrap,
.nx-wheel-wrap,
.tmb-wheel-wrap {
  width: min(100%, 390px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
  min-height: 280px;
}

.wheel-note,
.nx-wheel-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.participation-card {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.participation-title,
.participation-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--text);
}

.participation-actions {
  gap: 0;
}

.participation-actions .primary-btn,
.participation-actions #nx-spin-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.notif-info-details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.notif-info-details summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.notif-info-details summary::-webkit-details-marker {
  display: none;
}

.notif-info-details summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 900;
}

.notif-info-details[open] summary::after {
  content: "−";
}

.notif-info-details summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.notif-info-details__body {
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--footer-muted);
}

.notif-info-details__body p {
  margin: 0 0 8px;
}

.notif-info-details__body p:last-child {
  margin-bottom: 0;
}

.participation-actions,
.nx-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
}

#nx-spin-btn {
  width: 100%;
}

.nx-play-hint,
.tmb-play-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
  max-width: none;
}

.nx-skip-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Wheel visuals — prevent clipping */
.tmb-wheel,
.nx-wheel {
  overflow: visible;
}

.nx-wheel-wrap--glow {
  animation: none;
  box-shadow:
    0 0 0 6px rgba(247, 201, 72, 0.22),
    0 24px 70px rgba(0, 0, 0, 0.45);
}

.nx-wheel--ready .nx-wheel-wrap--glow {
  box-shadow:
    0 0 0 8px rgba(247, 201, 72, 0.35),
    0 0 60px rgba(247, 201, 72, 0.2),
    0 24px 70px rgba(0, 0, 0, 0.45);
}

/* Prizes */
.nx-prizes-section {
  background: transparent;
}

.nx-prizes-grid,
.tmb-prize-grid,
.prize-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: none;
}

.nx-prize-card,
.tmb-prize-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 201, 72, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border-radius: 24px;
  padding: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nx-prize-card:hover,
.tmb-prize-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 201, 72, 0.55);
  box-shadow: var(--shadow), 0 0 30px rgba(247, 201, 72, 0.12);
}

.nx-prize-img,
.tmb-prize-img-wrap .nx-prize-img {
  animation: none;
}

.nx-prize__spotlight,
.tmb-prize-img-wrap {
  aspect-ratio: 1.25;
  border-radius: 18px;
  margin-bottom: 14px;
}

.nx-prize-badge {
  background: rgba(247, 201, 72, 0.15);
  color: var(--gold);
  font-weight: 700;
}

/* Testimonials */
.nx-testimonials-grid,
.tmb-testimonial-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.nx-testimonials-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.nx-testimonial-card--lifted,
.tmb-testimonial.nx-testimonial-card--lifted {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(32, 38, 72, 0.72);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.nx-testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.nx-testimonial-card .nx-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.nx-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
}

/* Trust */
.trust-grid,
.nx-trust-badges-row {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nx-trust-partner-note {
  text-align: center;
  margin: 12px 0 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.tmb-trust-rich,
.nx-trust {
  background: transparent;
  border: none;
  padding: 0;
}

/* FAQ */
.faq-grid,
.nx-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.tmb-faq {
  display: block !important;
  max-width: none;
}

.nx-faq details,
.tmb-faq-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 20px;
  margin: 0;
}

.nx-faq summary,
.tmb-faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  min-height: 52px;
}

/* Footer */
.footer,
.nx-footer,
.tmb-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 31, 0.88);
  margin-top: 24px;
  padding: 24px 0 calc(20px + var(--tmb-safe-b, 0px));
  color: var(--footer-text);
}

.nx-footer-tagline,
.nx-footer-bottom p,
.footer-inner p {
  color: var(--footer-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.nx-footer-links a {
  color: var(--footer-text);
  font-weight: 600;
}

.nx-footer-links a:hover,
.nx-footer-bottom a:hover {
  color: var(--gold);
}

.nx-footer-bottom a {
  color: #dce3f8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-footer__logo {
  color: #f7f7ff;
}

.nx-trust-partner-note {
  color: var(--footer-muted);
  font-size: 0.84rem;
}

.footer-inner,
.nx-footer .nx-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.nx-footer-links a {
  color: var(--muted);
  margin-left: 0;
}

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

.nx-footer-bottom {
  border-top-color: var(--border);
  width: 100%;
}

/* Form grid when visible */
#tmb-form-section.is-visible,
#tmb-form-section:not([hidden]) {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 48px;
}

/* Focus */
.tmb-btn:focus-visible,
.nx-btn:focus-visible,
.nx-faq summary:focus-visible,
.nx-skip-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 860px) {
  .nx-hero,
  .tmb-hero {
    padding-top: 36px;
  }

  .wheel-grid,
  .nx-prizes-grid,
  .tmb-prize-grid,
  .nx-testimonials-grid,
  .tmb-testimonial-grid,
  .nx-testimonials-grid--two,
  .trust-grid,
  .nx-trust-badges-row,
  .faq-grid,
  .nx-faq,
  #tmb-form-section.is-visible,
  #tmb-form-section:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .wheel-section,
  .nx-wheel-section {
    padding: 20px 16px;
  }

  .wheel-wrap,
  .nx-wheel-wrap,
  .tmb-wheel-wrap {
    width: min(100%, 320px);
  }

  .nx-stepper,
  .stepper {
    gap: 6px;
  }

  .nx-step-label {
    font-size: 11px;
  }

  .primary-btn,
  .secondary-btn,
  .nx-btn--hero,
  #nx-spin-btn,
  #nx-notif-btn {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .nx-countdown,
  .tmb-countdown {
    gap: 8px;
  }

  .nx-countdown-number,
  .tmb-countdown-item strong {
    font-size: 20px;
  }

  .nx-header__counter,
  .nx-participant-counter--header {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .nx-wrap.tmb-wrap {
    width: min(100% - 20px, 1120px);
  }

  .tmb-header,
  .nx-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nx-header__label {
    display: none;
  }

  .nx-hero-title {
    font-size: 36px;
  }

  .nx-header__chip {
    font-size: 10px;
    padding: 4px 8px;
  }

  .tmb-notif-pill {
    max-width: 42vw;
    font-size: 10px;
    padding: 6px 8px;
  }
}

@media (min-width: 1024px) {
  .nx-wheel-section .wheel-grid {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn,
  .secondary-btn,
  .nx-prize-card,
  .tmb-prize-card {
    transition: none;
  }
}

/* Inline flow: never block page with loading/notification overlays */
#nx-overlay,
#nx-notif-overlay:not(.nx-overlay--force) {
  display: none !important;
  pointer-events: none !important;
}

/* ===== Layout fix v4 — override legacy tombola.css grid conflicts ===== */

.site-container,
.page-shell .site-container,
.nx-wrap .site-container,
.site-container.nx-container {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0;
  padding-right: 0;
}

.nx-wrap.tmb-wrap.page-shell {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.nx-section,
.section-block {
  padding: 28px 0 !important;
}

.nx-hero,
.tmb-hero {
  padding: 40px 0 28px !important;
}

/* CRITICAL: legacy tombola.css turns #tmb-spin-section into a broken 2-col grid */
#tmb-spin-section,
#tmb-spin-section.wheel-section,
#tmb-spin-section.nx-wheel-section,
#tmb-spin-section.tmb-wheel-section {
  display: block !important;
  grid-template-columns: unset !important;
  grid-template-areas: unset !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto 32px !important;
  padding: 24px 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wheel-section__intro {
  text-align: center;
  margin-bottom: 20px;
}

.wheel-section__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--text);
}

.wheel-section__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

#tmb-spin-section .wheel-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 400px) !important;
  grid-template-areas: none !important;
  gap: 28px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: none !important;
}

#tmb-spin-section .wheel-grid > * {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  min-width: 0;
}

.wheel-col--wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#tmb-spin-section .tmb-wheel-wrap,
#tmb-spin-section .nx-wheel-wrap,
#tmb-spin-section .wheel-wrap {
  position: relative !important;
  width: min(100%, 400px) !important;
  max-width: 400px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 280px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  grid-area: unset !important;
  justify-self: center !important;
}

#tmb-spin-section .nx-wheel-wrapper::before {
  z-index: 0;
  pointer-events: none;
}

#tmb-spin-section .tmb-wheel,
#tmb-spin-section .nx-wheel {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  border-radius: 50%;
}

#tmb-spin-section .tmb-wheel-rotor,
#tmb-spin-section .nx-wheel-rotor {
  width: 100% !important;
  height: 100% !important;
}

#tmb-spin-section .tmb-wheel-svg,
#tmb-spin-section .nx-wheel-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#tmb-spin-section .tmb-wheel-pointer,
#tmb-spin-section .nx-wheel-pointer {
  z-index: 8;
  top: -6px;
}

#tmb-spin-section .tmb-wheel-lock,
#tmb-spin-section .nx-wheel-lock {
  z-index: 7;
  border-radius: 50%;
}

#tmb-spin-section .tmb-wheel-hub,
#tmb-spin-section .nx-wheel-hub {
  z-index: 4;
}

.wheel-note,
#tmb-spin-section .wheel-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.wheel-col--action.participation-card {
  border: 1px solid var(--border);
  background: var(--card-2);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.participation-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(247, 201, 72, 0.12);
  border: 1px solid rgba(247, 201, 72, 0.35);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.participation-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.participation-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* FAQ centered */
.faq-shell {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

section.tmb-faq,
section.tmb-faq.nx-faq {
  display: block !important;
  grid-template-columns: none !important;
}

.tmb-faq .nx-section-title,
.tmb-faq .section-title {
  text-align: center;
}

.faq-grid,
.tmb-faq .nx-faq {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

.tmb-faq-item,
.faq-grid details {
  height: 100%;
}

/* Trust section */
.tmb-trust-logos img,
.nx-trust-logos img {
  height: 22px !important;
  max-width: 88px !important;
  opacity: 0.85;
}

.nx-trust-partner-note {
  font-size: 0.78rem;
  text-align: center;
  margin: 10px auto 14px;
}

@media (min-width: 769px) and (max-width: 1023px) {
  .trust-grid,
  .nx-trust-badges-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Footer */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nx-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.nx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  #tmb-spin-section .wheel-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .wheel-section__intro {
    margin-bottom: 14px;
  }

  #tmb-spin-section .tmb-wheel-wrap,
  #tmb-spin-section .nx-wheel-wrap,
  #tmb-spin-section .wheel-wrap {
    width: min(320px, 92vw) !important;
    max-width: min(320px, 92vw) !important;
    min-height: min(320px, 92vw) !important;
  }

  .wheel-col--action.participation-card {
    max-width: none;
  }

  .participation-actions .primary-btn,
  .participation-actions #nx-spin-btn {
    width: 100%;
  }

  .faq-grid,
  .tmb-faq .nx-faq {
    grid-template-columns: 1fr !important;
  }

  .nx-footer-top,
  .nx-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nx-footer-links {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  #tmb-spin-section .wheel-grid {
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 420px) !important;
    gap: 32px !important;
  }

  /* Kill legacy direct-child grid rules from tombola.css */
  #tmb-spin-section > .nx-wheel-wrap,
  #tmb-spin-section > .tmb-wheel-wrap,
  #tmb-spin-section > .nx-wheel-content,
  #tmb-spin-section > .tmb-wheel-content {
    grid-area: unset !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
  }
}

/* ===== Desktop center alignment fix (861px+) — do not affect mobile ===== */
@media (min-width: 861px) {
  html,
  body.tombola-page {
    overflow-x: hidden;
  }

  body.tombola-page {
    margin: 0;
  }

  main.page-shell,
  .nx-wrap.tmb-wrap.page-shell {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-container,
  .site-container.nx-container,
  .page-shell .stepper-card,
  .page-shell > section .nx-container {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nx-stepper-section,
  #tmb-spin-section.wheel-section,
  .nx-prizes-section,
  section.tmb-prizes.nx-prizes,
  section.tmb-prizes,
  .tmb-prizes,
  .nx-prizes,
  .tmb-testimonials,
  .tmb-trust-rich,
  section.tmb-faq {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  section.tmb-prizes.nx-prizes.nx-prizes-section .site-container,
  section.nx-prizes-section .site-container,
  .nx-prizes-section .site-container {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nx-prizes,
  .tmb-prizes {
    max-width: none !important;
  }

  .stepper-card,
  .wheel-section,
  #tmb-spin-section,
  .nx-prizes-section,
  .tmb-testimonials,
  .tmb-trust-rich,
  section.tmb-faq {
    position: relative;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .faq-shell {
    width: min(820px, calc(100% - 32px)) !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-inner {
    width: min(1120px, calc(100% - 32px)) !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .nx-prizes-grid,
  .tmb-prize-grid,
  .prize-grid {
    width: 100%;
    margin-inline: auto;
  }

  .nx-trust-badges-row,
  .trust-grid {
    width: 100%;
    margin-inline: auto;
  }

  .nx-testimonials-grid,
  .tmb-testimonial-grid,
  .nx-testimonials-grid--two {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .faq-grid,
  .tmb-faq .nx-faq {
    width: 100%;
    margin-inline: auto;
  }
}
