/* ===============================
   NEWSLETTER POPUP – FINAL FIX
   =============================== */

/* Overlay */
#newsletter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* Modal */
#newsletter-popup {
  position: relative;
  width: min(420px, 92vw);
  background: #0f0f12;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);

  /* reserve space for close button */
  padding: 48px 24px 24px;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
}

/* Title */
#newsletter-popup h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

/* Text */
#newsletter-popup p {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.85;
}

/* =========================================
   CLOSE BUTTON — ABSOLUTE FORCE OVERRIDE
   ========================================= */
#newsletter-popup > #newsletter-close {
  position: absolute;
  top: 12px;
  right: 12px;

  /* FORCE SIZE */
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  height: 24px !important;

  /* KILL GLOBAL BUTTON STYLES */
  display: inline-flex !important;
  box-sizing: border-box !important;
  flex: none !important;

  padding: 0 !important;
  margin: 0 !important;

  background: none !important;
  border: none !important;
  box-shadow: none !important;

  /* TEXT */
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  text-align: center;

  align-items: center;
  justify-content: center;

  cursor: pointer;
  opacity: 0.7;
}

#newsletter-popup > #newsletter-close:hover {
  opacity: 1;
}

/* =========================================
   FORM
   ========================================= */
#newsletter-form {
  margin-top: 8px;
}

/* Email input */
#newsletter-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;
  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1a1a20;
  color: #ffffff;

  font-size: 14px;
}

#newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Submit button */
#newsletter-form button {
  width: 100%;
  margin-top: 12px;

  padding: 10px 12px;
  border-radius: 8px;

  border: none;
  background: #7b5cff;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#newsletter-form button:hover {
  filter: brightness(1.05);
}

/* Success message */
.newsletter-success {
  font-size: 15px;
  font-weight: 600;
  color: #6cff9e;
  margin-top: 10px;
}

/* Mobile */
@media (max-width: 480px) {
  #newsletter-popup {
    padding: 48px 18px 18px;
  }
}
