/**
 * Nove-Tix — event payment / checkout page
 * Uses design tokens from landing-home.css
 */

body.layout-payment {
  font-family: var(--nx-font);
  background: var(--nx-bg);
  color: var(--nx-text);
  -webkit-font-smoothing: antialiased;
}

/* Event browse page (ticket selection) — comfortable side margins */
body.layout-payment:not(.layout-checkout) {
  --nx-gutter: clamp(1.25rem, 5vw, 2.5rem);
}

.layout-payment .container-xxl {
  max-width: 1480px;
  padding-left: var(--nx-gutter);
  padding-right: var(--nx-gutter);
}

/* ── Page shell ── */
.event-payment-modern {
  width: 100%;
}

.event-hero-section {
  padding: 0 0 1.5rem;
  background: var(--nx-bg);
}

/* Full-width hero with overlaid event info */
.np-event-hero {
  position: relative;
  width: 100%;
  margin-top: var(--nx-header-h);
  overflow: hidden;
  background: var(--nx-surface);
  aspect-ratio: 21 / 9;
  min-height: 280px;
  max-height: min(58vh, 520px);
  color: #fff;
}

.np-event-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.np-event-hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.np-event-hero-placeholder .np-poster-placeholder {
  min-height: 100%;
  border-radius: 0;
}

.np-event-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 45%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

.np-event-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem var(--nx-gutter) 1.15rem;
  pointer-events: none;
}

.np-event-hero-content a,
.np-event-hero-content button {
  pointer-events: auto;
}

.np-hero-overlay-bl {
  max-width: 720px;
}

.np-hero-all-events {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.15s;
}

.np-hero-all-events:hover {
  color: #fff;
}

.np-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.layout-payment .nx-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.layout-payment .nx-badge-sale {
  background: var(--nx-badge-sale-bg, rgba(142, 229, 63, 0.12));
  color: var(--nx-badge-sale-text, #5a9e28);
}

.layout-payment .nx-badge-warn {
  background: var(--nx-badge-warn-bg, rgba(245, 158, 11, 0.12));
  color: var(--nx-badge-warn-text, #b45309);
}

.layout-payment .nx-badge-muted {
  background: var(--nx-border-soft);
  color: var(--nx-muted);
  border: 1px solid var(--nx-border);
}

.nx-badge-hero {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}

.nx-badge-hero.nx-badge-sale {
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.5);
}

.nx-badge-hero.nx-badge-warn {
  background: rgba(245, 158, 11, 0.35);
  border-color: rgba(245, 158, 11, 0.5);
}

.nx-badge-hero.nx-badge-muted {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.np-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.np-hero-subtitle {
  margin: 0.35rem 0 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

/* Meta strip — below hero, above About */
.np-event-meta-strip {
  margin-bottom: 1.25rem;
}

.np-meta-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.np-meta-fact-card {
  flex: 1 1 auto;
  min-width: 7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
}

.np-meta-fact-card-venue {
  flex: 1.35 1 10rem;
}

.np-meta-fact-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-subtle);
}

.np-meta-fact-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nx-text);
}

.np-meta-countdown {
  padding: 0.75rem 0.9rem;
  border-radius: var(--nx-radius-lg);
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
}

.np-meta-countdown-label {
  margin: 0 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-subtle);
}

.np-meta-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 0.5rem;
}

.np-meta-countdown-unit {
  text-align: center;
  min-width: 0;
}

.np-meta-countdown-unit strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--nx-text);
}

.np-meta-countdown-unit span {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nx-muted);
}

/* Hide duplicate header link — shown on hero */
.layout-payment:not(.layout-checkout) .nt-header-actions .np-back-link {
  display: none !important;
}

/* Checkout: full-width navbar; minimal body side inset */
html.layout-checkout,
body.layout-checkout {
  --nx-gutter: 0;
  --np-checkout-inset: 3.5rem;
}

.layout-checkout .np-checkout-page {
  padding: calc(var(--nx-header-h) + 0.5rem) 0 1rem;
  width: 100%;
}

.layout-checkout .np-checkout-container {
  width: calc(100% - (2 * var(--np-checkout-inset)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.layout-checkout .nt-header-wrap,
.layout-payment .nt-header-wrap {
  padding: 0;
}

.layout-checkout .nt-header-shell,
.layout-payment .nt-header-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.layout-checkout .nt-footer .nx-page-inner {
  width: calc(100% - (2 * var(--np-checkout-inset)));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 767.98px) {
  html.layout-checkout,
  body.layout-checkout {
    --np-checkout-inset: 1rem;
  }

  .layout-checkout .nt-header-shell,
  .layout-payment .nt-header-shell {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

.layout-checkout .payment-form-card {
  position: static;
  max-height: none;
  border: none;
  background: transparent;
}

.layout-checkout .np-checkout-body {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 1rem;
  align-items: start;
}

.layout-checkout .np-checkout-body.np-checkout-body--full {
  grid-template-columns: 1fr;
}

.layout-checkout .np-continue-browsing {
  margin-bottom: 0.75rem;
}

.layout-checkout .np-flow-steps {
  margin-bottom: 1rem;
}

.layout-checkout .np-order-sidebar {
  position: sticky;
  top: calc(var(--nx-header-h) + 1rem);
}

body.layout-checkout .nt-footer {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .layout-checkout .np-checkout-body {
    grid-template-columns: 1fr;
  }

  .layout-checkout .np-order-sidebar {
    position: static;
  }
}

.np-event-content {
  padding-top: 0.75rem;
}

.np-event-detail-head {
  margin-bottom: 0.5rem;
}

.np-event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.np-event-tagline {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .np-event-hero {
    aspect-ratio: 4 / 3;
    max-height: 420px;
    min-height: 300px;
  }

  .np-event-hero-content {
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  .np-meta-facts-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .np-meta-fact-card {
    min-width: 0;
    padding: 0.55rem 0.6rem;
  }

  .np-meta-fact-value {
    font-size: 0.75rem;
  }

  .np-meta-countdown-unit strong {
    font-size: 1.125rem;
  }

  .np-event-content {
    padding-top: 0.5rem;
  }

  .event-hero-section {
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 479.98px) {
  .np-meta-facts-row {
    grid-template-columns: 1fr 1fr;
  }

  .np-meta-fact-card-venue {
    grid-column: 1 / -1;
  }
}

.event-details-card {
  background: var(--nx-surface);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem;
  margin-top: 1.25rem;
  border: 1px solid var(--nx-border);
}

.np-event-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--nx-text);
}

.np-event-meta-line {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-muted);
  line-height: 1.45;
}

.np-event-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.np-event-meta-line i {
  font-size: 1rem;
  color: var(--nx-subtle);
}

.np-meta-sep {
  color: var(--nx-subtle);
}

.np-about-title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
}

.np-about-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nx-muted);
}

/* Poster placeholder (matches landing cards) */
.np-poster-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(124, 58, 237, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(236, 72, 153, 0.14) 0%,
      transparent 42%
    ),
    var(--nx-placeholder-bg);
}

[data-theme="dark"] .np-poster-placeholder {
  background:
    radial-gradient(
      circle at 20% 25%,
      rgba(167, 139, 250, 0.22) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(244, 114, 182, 0.16) 0%,
      transparent 42%
    ),
    var(--nx-placeholder-bg);
}

.np-poster-placeholder .nx-card-placeholder-art {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}

.np-poster-placeholder .nx-card-placeholder-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

/* Checkout card */
.payment-form-card {
  background: var(--nx-surface);
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--nx-border);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nx-header-h) + 1rem);
  max-height: calc(100vh - var(--nx-header-h) - 2rem);
  display: flex;
  flex-direction: column;
}

.payment-card-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--nx-border-soft);
  background: var(--nx-surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.payment-card-header h4 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nx-text);
}

.payment-card-header i {
  color: var(--nx-muted);
}

.payment-form-content {
  padding: 1.35rem;
  overflow-y: auto;
  flex: 1;
}

/* Bootstrap overrides */
.layout-payment .btn-primary {
  background: var(--nx-accent);
  border-color: var(--nx-accent);
  color: var(--nx-on-accent);
  font-weight: 600;
  border-radius: 999px;
}

.layout-payment .btn-primary:hover,
.layout-payment .btn-primary:focus {
  background: var(--nx-accent-hover);
  border-color: var(--nx-accent-hover);
  color: var(--nx-on-accent);
}

.layout-payment .btn-outline-primary {
  color: var(--nx-text);
  border-color: var(--nx-border);
  border-radius: 999px;
  font-weight: 600;
}

.layout-payment .btn-outline-primary:hover {
  background: var(--nx-border-soft);
  border-color: var(--nx-text);
  color: var(--nx-text);
}

.layout-payment .btn-outline-secondary {
  border-radius: 999px;
  font-weight: 600;
  color: var(--nx-muted);
  border-color: var(--nx-border);
}

.layout-payment .btn-outline-secondary:hover {
  background: var(--nx-border-soft);
  color: var(--nx-text);
}

.layout-payment .btn-success {
  border-radius: 999px;
  font-weight: 600;
}

.layout-payment .form-control,
.layout-payment .input-group-text {
  border-color: var(--nx-border);
  background: var(--nx-surface);
  color: var(--nx-text);
  border-radius: var(--nx-radius);
}

.layout-payment .form-control:focus {
  border-color: var(--nx-text);
  box-shadow: 0 0 0 3px var(--nx-focus-ring);
  background: var(--nx-surface);
  color: var(--nx-text);
}

.layout-payment .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--nx-text);
}

.layout-payment .text-muted {
  color: var(--nx-muted) !important;
}

.layout-payment .alert {
  border-radius: var(--nx-radius);
  border: 1px solid var(--nx-border);
}

.layout-payment .alert-success {
  background: var(--nx-badge-sale-bg, rgba(142, 229, 63, 0.12));
  color: var(--nx-badge-sale-text, #5a9e28);
  border-color: transparent;
}

.layout-payment .alert-info {
  background: var(--nx-border-soft);
  color: var(--nx-text);
}

.layout-payment .spinner-border.text-primary {
  color: var(--nx-accent) !important;
}

/* Order summary */
.np-order-summary {
  padding: 1rem;
  border-radius: var(--nx-radius);
  background: var(--nx-border-soft);
  border: 1px solid var(--nx-border);
}

.np-order-total {
  color: var(--nx-text);
  font-weight: 800;
}

/* Checkout steps */
.event-checkout-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.event-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--nx-subtle);
  font-weight: 600;
  font-size: 0.8125rem;
}

.event-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--nx-border-soft);
  color: var(--nx-muted);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.event-step.is-active,
.event-step.is-complete {
  color: var(--nx-text);
}

.event-step.is-active .event-step-dot {
  background: var(--nx-accent);
  color: var(--nx-on-accent);
  box-shadow: 0 0 0 3px var(--nx-focus-ring);
}

.event-step.is-complete .event-step-dot {
  background: var(--nx-badge-sale-text, #8ee53f);
  color: #fff;
}

.event-step-connector {
  flex: 1;
  height: 1px;
  background: var(--nx-border);
  min-width: 12px;
}

/* Merchandise — theme-aligned list (matches ticket tiers) */
.np-merch-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--nx-border-soft);
}

.np-merch-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.np-merch-section-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-muted);
}

.np-merch-section-title i {
  font-size: 1rem;
  color: var(--nx-text);
}

.np-merch-section-count {
  font-size: 0.75rem;
  color: var(--nx-subtle);
  white-space: nowrap;
}

.np-merch-list {
  display: flex;
  flex-direction: column;
}

.np-merch-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--nx-border-soft);
}

.np-merch-row:last-child {
  border-bottom: none;
}

.np-merch-row.is-sold-out {
  opacity: 0.6;
}

.np-merch-main {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.np-merch-copy {
  flex: 1;
  min-width: 0;
}

.np-merch-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.np-merch-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
  line-height: 1.35;
}

.np-merch-price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--nx-text);
  white-space: nowrap;
}

.np-merch-desc {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--nx-muted);
  line-height: 1.45;
}

.np-merch-note {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nx-badge-warn-text, #b45309);
}

.np-merch-note i {
  font-size: 0.875rem;
}

.np-merch-tag {
  margin-top: 0.45rem;
}

.np-merch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.np-merch-feedback {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--nx-muted);
}

.np-merch-show-more-wrap {
  margin-top: 0.75rem;
}

.ticket-badge {
  display: inline-block;
  background: var(--nx-accent);
  color: var(--nx-on-accent);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.no-items-container {
  text-align: center;
  padding: 2rem;
  border-radius: var(--nx-radius-lg);
  background: var(--nx-border-soft);
  border: 1px dashed var(--nx-border);
  color: var(--nx-muted);
}

.no-items-container i {
  font-size: 2rem;
  color: var(--nx-subtle);
  display: block;
  margin-bottom: 0.75rem;
}

/* Quantity controls */
.qty-controls {
  border-radius: var(--nx-radius);
  overflow: hidden;
  border: 1px solid var(--nx-border);
  background: var(--nx-surface);
}

.qty-btn {
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-text);
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
}

.qty-btn:hover:not(:disabled) {
  background: var(--nx-accent);
  color: var(--nx-on-accent);
}

.qty-input {
  border: none;
  border-left: 1px solid var(--nx-border-soft);
  border-right: 1px solid var(--nx-border-soft);
  text-align: center;
  width: 52px;
  height: 40px;
  background: var(--nx-surface);
  font-weight: 700;
  color: var(--nx-text);
}

.qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--nx-focus-ring);
}

/* Presale — ticket rows */
#ticket-product-list-step .np-tier-row.presale-locked {
  opacity: 0.85;
}

/* Live viewers — compact single-line social proof */
.np-scarcity-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: var(--nx-surface);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.1);
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--nx-text);
  white-space: nowrap;
}

.np-scarcity-banner__live {
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: np-scarcity-live-pulse 1.5s ease-out infinite;
}

@keyframes np-scarcity-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.np-scarcity-banner__line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
}

.np-scarcity-banner__count {
  font-size: inherit;
  font-weight: 800;
  color: var(--nx-text);
  font-variant-numeric: tabular-nums;
}

.np-scarcity-banner__count--pop {
  animation: np-scarcity-count-pop 0.35s ease-out;
}

.np-scarcity-banner--enter {
  animation: np-scarcity-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes np-scarcity-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes np-scarcity-count-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

[data-theme="dark"] .np-scarcity-banner {
  border-color: rgba(248, 113, 113, 0.35);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .np-scarcity-banner__live,
  .np-scarcity-banner--enter,
  .np-scarcity-banner__count--pop {
    animation: none;
  }
}

/* Sales drop soon — high-visibility countdown */
.np-sales-drop {
  position: relative;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--nx-border);
  background: var(--nx-surface);
  overflow: hidden;
  box-shadow: var(--nx-card-shadow);
}

.np-sales-drop-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(245, 158, 11, 0.22), transparent 55%),
    linear-gradient(135deg, var(--nx-badge-warn-bg, rgba(245, 158, 11, 0.14)) 0%, transparent 48%);
  animation: np-sales-glow-pulse 2.8s ease-in-out infinite;
}

@keyframes np-sales-glow-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

.np-sales-drop-inner {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.2rem;
  text-align: center;
}

.np-sales-drop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nx-badge-warn-text, #b45309);
}

.np-sales-drop-eyebrow i {
  font-size: 1rem;
}

.np-sales-drop-live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--nx-badge-warn-text, #b45309);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: np-sales-live-pulse 1.6s ease-out infinite;
}

@keyframes np-sales-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.np-sales-drop-title {
  display: block;
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--nx-text);
}

.np-sales-drop-date {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-muted);
  font-variant-numeric: tabular-nums;
}

.np-sales-drop-countdown {
  margin: 0;
}

.np-countdown-units {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.np-countdown-unit {
  flex: 1 1 3.5rem;
  min-width: 3.25rem;
  max-width: 4.5rem;
  padding: 0.55rem 0.35rem 0.45rem;
  border-radius: var(--nx-radius);
  background: var(--nx-bg);
  border: 1px solid var(--nx-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.np-countdown-value {
  display: block;
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--nx-text);
  font-variant-numeric: tabular-nums;
}

.np-countdown-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-subtle);
}

[data-theme="dark"] .np-sales-drop {
  border-color: var(--nx-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .np-sales-drop-glow {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(245, 158, 11, 0.28), transparent 55%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, transparent 48%);
}

[data-theme="dark"] .np-countdown-unit {
  background: var(--nx-border-soft);
  border-color: var(--nx-border);
}

#sales-start-notice .btn {
  margin-top: 1rem !important;
}

.presale-lock-badge {
  background: var(--nx-badge-warn-text, #b45309);
  color: #fff;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
}

/* Merch preview modal */
.merch-preview-modal-content {
  background: var(--nx-surface);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  color: var(--nx-text);
}

.merch-preview-modal-content .modal-header {
  border-bottom: 1px solid var(--nx-border-soft);
}

#merch-preview-image {
  max-height: 72vh;
  object-fit: contain;
  background: var(--nx-border-soft);
  border-radius: var(--nx-radius);
}

.merch-image-trigger {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: var(--nx-radius);
  overflow: hidden;
  border: 1px solid var(--nx-border);
  background: var(--nx-border-soft);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.merch-image-trigger:hover {
  border-color: var(--nx-card-hover-border);
}

.merch-image-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.merch-remove-btn {
  font-size: 0.75rem;
  border-radius: 999px;
}

/* Section headers (shared with landing patterns) */
.nx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nx-section-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-glow, #1e90ff);
}

.nx-section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--nx-text);
}

.nx-section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: none;
  white-space: nowrap;
}

.nx-section-link:hover {
  color: var(--nx-text);
}

/* Upcoming on payment page */
.np-upcoming {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--nx-border-soft);
  background: var(--nx-bg);
}

.np-upcoming .nx-section-head {
  padding: 0 var(--nx-gutter);
  max-width: 1480px;
  margin: 0 auto 1.5rem;
}

.np-upcoming .nx-grid,
.np-upcoming .nx-empty {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--nx-gutter);
}

.layout-payment .nx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.layout-payment .nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.layout-payment .nx-btn-primary {
  background: var(--nx-accent);
  color: var(--nx-on-accent) !important;
}

.layout-payment .nx-empty {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--nx-border);
  border-radius: var(--nx-radius-lg);
  background: var(--nx-surface);
}

.layout-payment .nx-empty > i {
  font-size: 2.5rem;
  color: var(--nx-subtle);
}

.layout-payment .payment-form-content .border-top {
  border-color: var(--nx-border-soft) !important;
}

.np-secure-note {
  color: var(--nx-muted);
}

.np-secure-note i {
  color: var(--nx-subtle);
}

.np-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: none;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}

.np-back-link:hover {
  color: var(--nx-text);
  border-color: var(--nx-text);
  background: var(--nx-border-soft);
}

@keyframes nx-ph-float {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-4px);
  }
}

@keyframes nx-ph-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes nx-ph-sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 991.98px) {
  .payment-form-card {
    position: static;
    max-height: none;
    margin-top: 0;
  }

  .np-event-hero {
    max-height: 240px;
  }
}

@media (max-width: 767px) {
  .event-checkout-steps {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .event-step-connector {
    display: none;
  }

  .event-step {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--nx-border-soft);
  }

  .merch-image-trigger {
    width: 56px;
    height: 56px;
  }

  .np-merch-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .np-merch-actions {
    justify-content: flex-start;
  }
}

/* Checkout layout */
.np-checkout-layout {
  align-items: flex-start;
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/* Ticket tiers — plain rows (no card chrome) */
#ticket-product-list-step .np-tier-row {
  padding: 1rem 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#ticket-product-list-step .np-tier-row + .np-tier-row {
  border-top: 1px solid var(--nx-border-soft);
}

#ticket-product-list-step .np-tier-row.sold-out,
#ticket-product-list-step .np-tier-row.presale-locked {
  opacity: 0.65;
}

/* Merch / legacy card class (if used elsewhere) */
.np-tier-card {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--nx-surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.np-tier-card:not(.sold-out):not(.presale-locked):hover {
  border-color: var(--nx-text);
}

.np-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.np-tier-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-text);
}

.np-tier-desc {
  font-size: 0.8125rem;
  color: var(--nx-muted);
  margin-top: 0.2rem;
}

.np-tier-price {
  font-size: 1.0625rem;
  font-weight: 800;
  white-space: nowrap;
  color: var(--nx-text);
}

.np-tier-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.np-from-price {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--nx-muted);
}

.np-from-price strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nx-text);
  margin-left: 0.35rem;
}

.np-browse-totals .np-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--nx-muted);
  padding: 0.25rem 0;
}

.np-browse-totals .np-total-row-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--nx-text);
  border-top: 1px solid var(--nx-border-soft);
  margin-top: 0.35rem;
  padding-top: 0.65rem;
}

.np-continue-browsing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin-bottom: 1.25rem;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted);
  cursor: pointer;
}

.np-continue-browsing:hover {
  color: var(--nx-text);
}

.np-flow-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.np-flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--nx-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.np-flow-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--nx-border);
  background: var(--nx-surface);
  color: var(--nx-muted);
}

.np-flow-step.is-active .np-flow-dot {
  border-color: var(--nx-accent);
  background: var(--nx-accent);
  color: var(--nx-on-accent);
}

.np-flow-step.is-active {
  color: var(--nx-text);
}

.np-flow-step.is-complete .np-flow-dot {
  border-color: var(--nx-accent);
  color: var(--nx-accent);
}

.np-checkout-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .np-checkout-body {
    grid-template-columns: 1fr 220px;
  }
}

.np-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.np-step-desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--nx-muted);
}

.np-mpesa-card {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1rem 1.1rem;
  background: var(--nx-surface);
}

.np-mpesa-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.np-mpesa-head i {
  font-size: 1.5rem;
  color: #00a651;
}

.np-order-sidebar {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 1.5rem 1.5rem 1.35rem;
  background: var(--nx-surface);
  height: fit-content;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.layout-checkout .np-order-sidebar {
  padding: 1.65rem 1.65rem 1.5rem;
}

.np-sidebar-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--nx-text);
  line-height: 1.2;
}

.np-sidebar-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.25rem;
}

.np-sidebar-lines:empty,
.np-sidebar-empty {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  margin: 0 0 1rem;
}

.np-order-line {
  padding: 0 0 1.1rem;
  margin: 0 0 1.1rem;
  border-bottom: 1px solid var(--nx-border-soft);
}

.np-order-line:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.np-order-line-event {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-text);
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.np-order-line-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.np-order-line-desc {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.np-order-line-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.np-sidebar-totals {
  padding-top: 0.15rem;
  border-top: 1px solid var(--nx-border);
}

.np-sidebar-totals .np-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9375rem;
  color: var(--nx-muted);
  padding: 0.45rem 0;
}

.np-sidebar-totals .np-total-amount {
  font-weight: 600;
  color: var(--nx-text);
  white-space: nowrap;
}

.np-sidebar-totals .np-total-row-main {
  font-weight: 800;
  color: var(--nx-text);
  font-size: 1.0625rem;
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  padding-bottom: 0;
  border-top: 1px solid var(--nx-border-soft);
}

.np-sidebar-totals .np-total-row-main .np-total-amount {
  font-weight: 800;
  font-size: 1.0625rem;
}

.np-sidebar-secure {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--nx-border-soft);
  font-size: 0.8125rem;
  color: var(--nx-subtle);
  text-align: center;
  line-height: 1.45;
}

.np-confirmation .np-conf-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.np-conf-sub {
  font-size: 0.875rem;
  color: var(--nx-muted);
  margin-bottom: 1.25rem;
}

.np-conf-actions .btn i {
  font-size: 1.125rem;
  line-height: 1;
}

.np-conf-ticket {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  background: var(--nx-surface);
  margin-bottom: 0.5rem;
}

.np-conf-ticket-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-subtle);
}

.np-event-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--nx-border-soft);
}

.np-block-title {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
}

.np-about-text,
.np-venue-address {
  margin: 0;
  font-size: 0.875rem;
  color: var(--nx-muted);
  line-height: 1.55;
}

.np-venue-name {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--nx-text);
}

.np-organizer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.np-organizer-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nx-muted);
}

.np-organizer-badge i {
  color: #16a34a;
}

.np-venue-map-wrap {
  margin-top: 0.85rem;
}

.np-venue-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  max-height: 320px;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nx-border);
  background: var(--nx-border-soft);
}

.np-venue-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.np-venue-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-text);
  text-decoration: none;
}

.np-venue-map-link:hover {
  color: var(--nx-muted);
}

/* Date + start time below ticket tiers */
.np-checkout-event-when {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--nx-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-align: center;
}

.np-checkout-event-when i {
  font-size: 1.125rem;
  color: var(--nx-text);
}

.np-checkout-event-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--nx-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-muted);
}

.np-checkout-event-footer i {
  font-size: 1.25rem;
  color: var(--nx-text);
}

/* Lineup — two columns */
.np-lineup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .np-lineup-list {
    grid-template-columns: 1fr;
  }
}

.np-lineup-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  background: var(--nx-surface);
}

.np-lineup-index {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--nx-text);
  color: var(--nx-bg);
}

.np-lineup-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.np-lineup-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--nx-text);
}

.np-lineup-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .np-poster-placeholder .nx-ph-ticket,
  .np-poster-placeholder .nx-ph-note,
  .np-poster-placeholder .nx-ph-spark {
    animation: none;
  }
}

/* Venue row: map + organizer share — responsive */
.np-event-block--venue {
  overflow: hidden;
}

.np-venue-name,
.np-venue-address {
  word-break: break-word;
}

.np-venue-location-grid {
  margin-top: 0.75rem;
  width: 100%;
  min-width: 0;
}

.np-venue-map-col,
.np-venue-share-col {
  min-width: 0;
}

.np-venue-map-col .np-venue-map-wrap {
  margin-top: 0;
}

/* Side-by-side: large screens */
.np-venue-location-grid--with-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 240px), min(300px, 32vw));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: stretch;
}

.np-venue-location-grid--with-share .np-venue-map-col .np-venue-map-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.np-venue-location-grid--with-share .np-venue-map {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
  min-height: clamp(220px, 36vh, 380px);
  max-height: none;
  height: 100%;
}

/* Map only (public page, no share column) */
.np-venue-location-grid:not(.np-venue-location-grid--with-share) .np-venue-map {
  aspect-ratio: 16 / 10;
  min-height: clamp(180px, 45vw, 280px);
  max-height: min(420px, 55vh);
}

.np-venue-share-col--solo {
  max-width: min(100%, 360px);
}

/* Organizer share card */
.np-organizer-share {
  width: 100%;
  min-width: 0;
}

.np-organizer-share--sidebar {
  height: 100%;
}

.np-organizer-share--sidebar .np-organizer-share__card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(0.85rem, 2.5vw, 1.1rem);
  border-radius: 14px;
  border: 1px solid var(--nx-border);
  background: var(--nx-surface);
  box-shadow: var(--nx-card-shadow);
}

.np-organizer-share__section {
  margin-bottom: 0.85rem;
  min-width: 0;
}

.np-organizer-share__section:last-of-type {
  margin-bottom: 0;
}

.np-organizer-share__section--qr {
  text-align: center;
}

.np-organizer-share__label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nx-muted);
}

.np-organizer-share__url-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.np-organizer-share__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--nx-border);
  border-radius: 10px;
  background: var(--nx-bg);
  color: var(--nx-text);
  font-size: clamp(0.75rem, 2.5vw, 0.8125rem);
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

.np-organizer-share__slug-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--nx-muted);
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.np-organizer-share__slug-hint code {
  color: var(--nx-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.np-organizer-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--nx-border);
  background: var(--nx-bg);
  color: var(--nx-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.np-organizer-share__btn:hover {
  border-color: var(--nx-muted);
  color: var(--nx-text);
}

.np-organizer-share__btn--copy {
  width: 100%;
}

.np-organizer-share__btn--copy.is-copied {
  border-color: var(--nx-success, #8ee53f);
  color: var(--nx-success, #8ee53f);
  background: rgba(5, 150, 105, 0.08);
}

.np-organizer-share__btn--download {
  width: 100%;
  max-width: 100%;
  margin-top: 0.5rem;
  background: var(--nx-text);
  border-color: var(--nx-text);
  color: var(--nx-bg);
}

.np-organizer-share__btn--download:hover {
  opacity: 0.92;
  color: var(--nx-bg);
}

.np-organizer-share__qr-frame {
  display: inline-flex;
  max-width: 100%;
  padding: clamp(0.4rem, 2vw, 0.55rem);
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--nx-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme='dark'] .np-organizer-share__qr-frame {
  background: #fafafa;
}

.np-organizer-share__qr-img {
  display: block;
  width: clamp(112px, 28vw, 148px);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
}

.np-organizer-share__quick {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--nx-border-soft, var(--nx-border));
}

.np-organizer-share__quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.np-organizer-share__quick-link:hover {
  color: var(--nx-text);
}

/* Desktop: link row inline, copy beside input */
@media (min-width: 992px) {
  .np-organizer-share--sidebar .np-organizer-share__url-row {
    flex-direction: row;
    align-items: stretch;
  }

  .np-organizer-share--sidebar .np-organizer-share__btn--copy {
    width: auto;
    flex-shrink: 0;
  }
}

/* Tablet landscape / small laptop: stack map then share */
@media (max-width: 991.98px) {
  .np-venue-location-grid--with-share {
    grid-template-columns: 1fr;
  }

  .np-venue-location-grid--with-share .np-venue-map {
    min-height: clamp(200px, 42vw, 320px);
    height: auto;
  }

  .np-venue-share-col--solo {
    max-width: none;
  }

  .np-organizer-share--sidebar {
    height: auto;
  }

  .np-organizer-share--sidebar .np-organizer-share__card {
    height: auto;
  }

  /* Share card: link left, QR right (when QR present) */
  .np-organizer-share--sidebar .np-organizer-share__card:has(.np-organizer-share__section--qr) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.85rem 1.25rem;
    align-items: start;
  }

  .np-organizer-share--sidebar .np-organizer-share__card:has(.np-organizer-share__section--qr) .np-organizer-share__section:first-of-type {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .np-organizer-share--sidebar .np-organizer-share__card:has(.np-organizer-share__section--qr) .np-organizer-share__section--qr {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-bottom: 0;
  }

  .np-organizer-share--sidebar .np-organizer-share__card:has(.np-organizer-share__section--qr) .np-organizer-share__quick {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .np-organizer-share--sidebar .np-organizer-share__url-row {
    flex-direction: row;
    align-items: stretch;
  }

  .np-organizer-share--sidebar .np-organizer-share__btn--copy {
    width: auto;
  }
}

/* Large phones */
@media (max-width: 575.98px) {
  .np-venue-location-grid--with-share .np-venue-map {
    min-height: clamp(180px, 52vw, 260px);
    aspect-ratio: 4 / 3;
  }

  .np-organizer-share--sidebar .np-organizer-share__card {
    display: flex;
    flex-direction: column;
  }

  .np-organizer-share--sidebar .np-organizer-share__section--qr {
    grid-column: auto;
    grid-row: auto;
  }

  .np-organizer-share__url-row {
    flex-direction: column;
  }

  .np-organizer-share__btn--copy {
    width: 100%;
  }

  .np-organizer-share__quick {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--nx-border-soft, var(--nx-border));
  }

  .np-venue-map-link {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--nx-border);
    background: var(--nx-bg);
  }
}

/* Very small screens */
@media (max-width: 379.98px) {
  .np-venue-location-grid--with-share {
    gap: 0.65rem;
  }

  .np-organizer-share--sidebar .np-organizer-share__card {
    padding: 0.75rem;
  }

  .np-organizer-share__qr-img {
    width: min(100%, 120px);
  }
}
