/* ===== EMAIL SIGNUP POPUP ===== */
.ci-email-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(135deg, #0B1D2E 0%, #0A6E7A 100%);
  border-radius: 18px;
  box-shadow: 0 16px 56px rgba(10, 110, 122, 0.35), 0 0 40px rgba(0, 180, 216, 0.15);
  padding: 28px 24px 24px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
}

.ci-email-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ci-email-popup.closing {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Close button */
.ci-email-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.ci-email-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Header */
.ci-email-popup-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
}

.ci-email-popup-headline {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.ci-email-popup-subtext {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Form */
.ci-email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ci-email-popup-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #0B1D2E;
  outline: none;
  transition: border-color 0.2s;
}

.ci-email-popup-input::placeholder {
  color: #8BA4B8;
}

.ci-email-popup-input:focus {
  border-color: #00B4D8;
}

.ci-email-popup-input.error {
  border-color: #FF6B5A;
}

.ci-email-popup-btn {
  width: 100%;
  padding: 13px 20px;
  background: #FF6B5A;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.ci-email-popup-btn:hover {
  background: #FF5242;
  transform: translateY(-1px);
}

.ci-email-popup-btn:active {
  transform: translateY(0);
}

.ci-email-popup-privacy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-top: 4px;
}

/* Error message */
.ci-email-popup-error {
  font-size: 0.8rem;
  color: #FF9E5E;
  margin-top: -4px;
  display: none;
}

.ci-email-popup-error.show {
  display: block;
}

/* Success state */
.ci-email-popup-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.ci-email-popup-success.show {
  display: block;
}

.ci-email-popup-success .ci-checkmark {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(0, 180, 216, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ciPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ci-email-popup-success .ci-checkmark svg {
  width: 28px;
  height: 28px;
  stroke: #00B4D8;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ci-email-popup-success .ci-checkmark svg .ci-check-path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: ciCheckDraw 0.5s 0.2s ease forwards;
}

.ci-email-popup-success-text {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ci-email-popup-success-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes ciPopIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ciCheckDraw {
  to { stroke-dashoffset: 0; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .ci-email-popup {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 24px 20px 20px;
    border-radius: 14px;
  }

  .ci-email-popup-headline {
    font-size: 1.1rem;
  }
}
