.beta-offer-popup[hidden] { display: none; }

.beta-offer-popup .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.beta-offer-popup {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(1, 5, 14, 0.78);
  backdrop-filter: blur(14px);
}

.beta-offer-popup__panel {
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  position: relative;
  padding: clamp(26px, 6vw, 42px);
  border: 1px solid rgba(164, 123, 255, 0.3);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 8%, rgba(100, 168, 255, 0.18), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(255, 93, 135, 0.16), transparent 34%),
    linear-gradient(165deg, rgba(12, 24, 48, 0.98), rgba(3, 8, 20, 0.99));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(100, 168, 255, 0.1),
    0 0 56px rgba(255, 93, 135, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text, #edf5ff);
  text-align: center;
}

.beta-offer-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(164, 123, 255, 0.24);
  border-radius: 50%;
  background: rgba(6, 13, 28, 0.72);
  color: var(--muted, #a6bad7);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.beta-offer-popup__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 38px 16px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 93, 135, 0.3);
  border-radius: 999px;
  background: rgba(255, 93, 135, 0.1);
  color: #ff9ab5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beta-offer-popup h2 {
  margin: 0;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.beta-offer-popup__lede {
  margin: 18px 0 0;
  color: var(--muted, #a6bad7);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: balance;
}

.beta-offer-popup__lede strong:first-child { color: #8bd5ff; }
.beta-offer-popup__lede strong:last-child { color: #ff8caf; }

.beta-offer-popup__form {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  padding: 6px;
  border: 1px solid rgba(164, 123, 255, 0.24);
  border-radius: 999px;
  background: rgba(2, 7, 18, 0.74);
}

.beta-offer-popup__form input {
  min-width: 0;
  flex: 1 1 auto;
  height: 44px;
  border: 0;
  padding: 0 14px;
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: var(--text, #edf5ff);
  font: inherit;
  font-size: 14px;
}

.beta-offer-popup__form button,
.beta-offer-popup__done {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(120deg, #64a8ff, #a47bff, #ff5d87);
  color: #06111f;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.beta-offer-popup__form button:disabled { cursor: wait; opacity: 0.72; }

.beta-offer-popup__status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #ffb3c7;
  font-size: 12px;
  line-height: 1.5;
}

.beta-offer-popup__terms {
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--muted, #a6bad7) 74%, transparent);
  font-size: 10px;
  line-height: 1.5;
}

.beta-offer-popup__terms a { color: inherit; }

.beta-offer-popup__decline {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted, #a6bad7);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.beta-offer-popup__success[hidden] { display: none; }
.beta-offer-popup__success p { color: var(--muted, #a6bad7); line-height: 1.6; }
.beta-offer-popup__done { padding: 0 26px; }

body.has-beta-offer-popup { overflow: hidden; }

html[data-theme="light"] .beta-offer-popup { background: rgba(231, 235, 246, 0.78); }
html[data-theme="light"] .beta-offer-popup__panel {
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 132, 214, 0.14), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(217, 106, 140, 0.12), transparent 34%),
    rgba(255, 253, 250, 0.98);
  border-color: rgba(127, 99, 214, 0.22);
  box-shadow: 0 30px 70px rgba(111, 124, 156, 0.24);
}
html[data-theme="light"] .beta-offer-popup__form { background: rgba(255, 255, 255, 0.78); }

@media (max-width: 560px) {
  .beta-offer-popup { padding: 14px; }
  .beta-offer-popup__panel { max-height: calc(100vh - 28px); padding: 26px 20px; border-radius: 22px; }
  .beta-offer-popup__form { display: grid; border-radius: 20px; }
  .beta-offer-popup__form button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .beta-offer-popup__panel { animation: beta-offer-enter 0.28s ease-out both; }
  @keyframes beta-offer-enter {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}
