.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}
.newsletter-popup.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.newsletter-popup.is-open .newsletter-popup-container {
  transform: scale(1) translateY(0);
}

.newsletter-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.newsletter-popup-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.newsletter-popup-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
body.dark-mode .newsletter-popup-content {
  background: #1a2c30;
  border-color: #234348;
}

.newsletter-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 250ms ease;
}
.newsletter-popup-close:hover {
  background: #f1f5f9;
  color: #1a1a1a;
}
body.dark-mode .newsletter-popup-close {
  color: #6b7280;
}
body.dark-mode .newsletter-popup-close:hover {
  background: #1a2c30;
  color: #ffffff;
}
[dir=rtl] .newsletter-popup-close, .rtl .newsletter-popup-close {
  right: auto;
  left: 1rem;
}

.newsletter-popup-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #20d3ee, #f97316);
  border-radius: 1rem;
  font-size: 1.75rem;
  color: #fff;
}

.newsletter-popup-title {
  color: #1a1a1a;
}
body.dark-mode .newsletter-popup-title {
  color: #ffffff;
}

.newsletter-popup-description {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.newsletter-popup-form .form-control {
  background: #f8f9fa;
  border-color: #e5e7eb;
  color: #1a1a1a;
  text-align: center;
}
.newsletter-popup-form .form-control::placeholder {
  color: #9ca3af;
}
.newsletter-popup-form .form-control:focus {
  background: #f1f5f9;
  border-color: #20d3ee;
  box-shadow: 0 0 0 0.25rem rgba(32, 211, 238, 0.25);
}
body.dark-mode .newsletter-popup-form .form-control {
  background: #152629;
  border-color: #234348;
  color: #ffffff;
}
body.dark-mode .newsletter-popup-form .form-control::placeholder {
  color: #6b7280;
}
body.dark-mode .newsletter-popup-form .form-control:focus {
  background: #1a2c30;
}

.newsletter-popup-decline {
  display: inline-block;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 250ms ease;
}
.newsletter-popup-decline:hover {
  color: #4b5563;
  text-decoration: underline;
}
body.dark-mode .newsletter-popup-decline {
  color: #6b7280;
}
body.dark-mode .newsletter-popup-decline:hover {
  color: #9ca3af;
}
