/* Nex+ post-signup offer modal */

.nex-plus-offer-modal {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--text-primary, #f4f4f5);
  max-width: none;
  max-height: none;
}

.nex-plus-offer-modal:not([open]) {
  display: none;
}

.nex-plus-offer-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 12000;
}

.nex-plus-offer-modal[open].is-visible {
  opacity: 1;
}

.nex-plus-offer-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nex-plus-offer-modal[open].is-visible::backdrop {
  opacity: 1;
}

.nex-plus-offer-modal-inner {
  position: relative;
  width: min(440px, calc(100vw - 24px));
  margin: 16px;
  padding: 28px 26px 24px;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(251, 191, 36, 0.14), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(0, 212, 170, 0.1), transparent 50%),
    var(--bg-secondary, #14161c);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.nex-plus-offer-modal[open].is-visible .nex-plus-offer-modal-inner {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .nex-plus-offer-modal[open],
  .nex-plus-offer-modal::backdrop,
  .nex-plus-offer-modal-inner {
    transition: none !important;
  }

  .nex-plus-offer-modal-inner {
    transform: none;
  }
}

.nex-plus-offer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #a1a1aa);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nex-plus-offer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #f4f4f5);
}

.nex-plus-offer-close:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.nex-plus-offer-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fbbf24;
}

.nex-plus-offer-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nex-plus-offer-title span {
  color: #fbbf24;
}

.nex-plus-offer-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.nex-plus-offer-was {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}

.nex-plus-offer-now {
  font-family: Outfit, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fbbf24;
}

.nex-plus-offer-interval {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(251, 191, 36, 0.72);
}

.nex-plus-offer-lead {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary, #a1a1aa);
}

.nex-plus-offer-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nex-plus-offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.35;
  color: var(--text-primary, #f4f4f5);
}

.nex-plus-offer-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.nex-plus-offer-soon {
  margin-top: -10px;
  opacity: 0.82;
}

.nex-plus-offer-soon-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 200, 114, 0.12);
  border: 1px solid rgba(232, 200, 114, 0.4);
  color: #f5d27a;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.nex-plus-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nex-plus-offer-actions .btn {
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
}

.nex-plus-offer-actions .btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: transparent;
  color: #111;
  font-weight: 700;
}

.nex-plus-offer-actions .btn-primary:hover {
  filter: brightness(1.06);
}

.nex-plus-offer-note {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted, #71717a);
}
