/* ============================================================
   NEWSLETTER POPUP
   ============================================================ */

.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  pointer-events: none;
}

.newsletter-popup__overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 1, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: all;
  animation: overlayIn 0.35s ease;
}

.newsletter-popup__modal {
  position: relative;
  z-index: 1;
  background: #1D092B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 32px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6),
              0 0 0 1px rgba(255,80,4,0.08);
  pointer-events: all;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Close ──────────────────────────────────────────────────── */

.newsletter-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.newsletter-popup__close:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.newsletter-popup__close svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255,255,255,0.5);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

/* ── Icon ───────────────────────────────────────────────────── */

.newsletter-popup__icon {
  display: none;
}

/* ── Eyebrow ────────────────────────────────────────────────── */

.newsletter-popup__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF5004;
  margin-bottom: 12px;
  display: block;
}

/* ── Title ──────────────────────────────────────────────────── */

.newsletter-popup__title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
}

/* ── Subtitle ───────────────────────────────────────────────── */

.newsletter-popup__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Form ───────────────────────────────────────────────────── */

.newsletter-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-popup__input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-popup__input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.newsletter-popup__input::placeholder {
  color: rgba(255,255,255,0.25);
}

.newsletter-popup__input:focus {
  border-color: #FF5004;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(255,80,4,0.1);
}

.newsletter-popup__input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.newsletter-popup__btn {
  width: 100%;
  padding: 13px;
  background: #FF5004;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: -0.01em;
}

.newsletter-popup__btn:hover {
  background: #cc4003;
  transform: translateY(-1px);
}

.newsletter-popup__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Note ───────────────────────────────────────────────────── */

.newsletter-popup__note {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  line-height: 1.5;
}

/* ── Success ────────────────────────────────────────────────── */

.newsletter-popup__success {
  padding: 16px 0 4px;
}

.newsletter-popup__success p {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

/* ── Error ──────────────────────────────────────────────────── */

.newsletter-popup__error {
  padding: 10px 14px;
  background: rgba(229,62,62,0.08);
  border: 1px solid rgba(229,62,62,0.2);
  border-radius: 6px;
}

.newsletter-popup__error p {
  font-size: 12px;
  color: #fc8181;
}

/* ── Animations ─────────────────────────────────────────────── */

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

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

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 480px) {
  .newsletter-popup {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }

  .newsletter-popup__modal {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 28px 20px 32px;
  }
}