/* Newsletter VIP Popup — V2 tokens, light/dark via data-theme */
.ff-nl-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: color-mix(in srgb, var(--ff-ink) 42%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.ff-nl-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.ff-nl-popup {
  position: relative;
  background: var(--ff-card);
  border: 1px solid var(--ff-line);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--ff-ink) 16%, transparent);
  animation: ffPopIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ffPopIn {
  from {
    transform: scale(0.94) translateY(16px);
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .ff-nl-popup {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  .ff-nl-popup-image {
    height: 200px;
  }
}
.ff-nl-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ff-card);
  border: 1px solid var(--ff-line);
  color: var(--ff-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--ff-ink) 10%, transparent);
}
.ff-nl-popup-close:hover {
  background: var(--ff-soft);
  border-color: color-mix(in srgb, var(--ff-accent) 35%, var(--ff-line));
}
.ff-nl-popup-image {
  position: relative;
  overflow: hidden;
  background: var(--ff-panel);
}
.ff-nl-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ff-nl-popup-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}
.ff-nl-popup-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: color-mix(in srgb, var(--ff-panel) 72%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.35rem 0.875rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}
.ff-nl-popup-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: ffNlPulse 2s infinite;
}
@keyframes ffNlPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.ff-nl-popup-content {
  padding: 2rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ff-ink);
}
@media (max-width: 640px) {
  .ff-nl-popup-content {
    padding: 1.5rem;
  }
}
.ff-nl-popup-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--ff-ink);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.ff-nl-popup-title em {
  font-style: italic;
  color: var(--ff-accent);
}
.ff-nl-popup-desc {
  font-size: 0.8125rem;
  color: var(--ff-gray);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.ff-nl-popup-perks {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.ff-nl-popup-perk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ff-ink);
}
.ff-nl-popup-perk svg {
  color: var(--ff-gray);
  flex-shrink: 0;
}
.ff-nl-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ff-nl-popup-form input[type="email"],
.ff-nl-popup-hsn-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--ff-bg);
  border: 1px solid var(--ff-line);
  border-radius: 12px;
  color: var(--ff-ink);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ff-nl-popup-hsn-field input {
  padding: 0.75rem 3rem 0.75rem 1rem;
}
.ff-nl-popup-form input:focus,
.ff-nl-popup-hsn-field input:focus {
  border-color: color-mix(in srgb, var(--ff-accent) 45%, var(--ff-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ff-accent) 14%, transparent);
}
.ff-nl-popup-form input::placeholder {
  color: var(--ff-gray);
}
.ff-nl-popup-hsn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ff-nl-popup-hsn-field {
  position: relative;
}
.ff-nl-popup-field-badge {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--ff-gray);
  background: var(--ff-soft);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  pointer-events: none;
}
.ff-nl-popup-submit {
  width: 100%;
  padding: 0.9375rem;
  background: var(--ff-btn);
  color: var(--ff-btn-ink);
  border: none;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, color 0.2s;
  font-family: inherit;
}
.ff-nl-popup-submit:hover {
  background: var(--ff-accent);
  color: #fff;
}
.ff-nl-popup-submit:active {
  transform: scale(0.98);
}
.ff-nl-popup-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ff-nl-popup-legal {
  margin-top: 0.875rem;
  font-size: 10px;
  color: var(--ff-gray);
  text-align: center;
  line-height: 1.5;
}
.ff-nl-popup-legal a {
  color: var(--ff-ink);
  text-decoration: underline;
}
.ff-nl-popup-success {
  text-align: center;
  padding: 2rem 0;
}
.ff-nl-popup-success svg {
  color: #22c55e;
  margin-bottom: 1rem;
}
.ff-nl-popup-success-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ff-ink);
  margin-bottom: 0.5rem;
}
.ff-nl-popup-success-text {
  font-size: 0.8125rem;
  color: var(--ff-gray);
}
[data-theme="dark"] .ff-nl-popup {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
