/* Newsletter Preference Center */

.nl-settings-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.nl-settings-header {
  padding: 24px 0 28px;
  text-align: center;
}

.nl-settings-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--al2-text, #111827);
  letter-spacing: -.02em;
}

.nl-settings-header p {
  color: var(--al2-muted, #6b7280);
  font-size: .98rem;
  line-height: 1.55;
  margin: 0;
}

.nl-settings-loading,
.nl-settings-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--al2-muted, #6b7280);
}

.nl-settings-empty i {
  font-size: 2.6rem;
  color: #d1d5db;
  margin-bottom: 16px;
}

.nl-settings-empty h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--al2-text, #111827);
}

.nl-settings-empty p {
  margin: 0 0 20px;
}

.nl-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-set-card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--al2-border, #e5e7eb);
  border-radius: 14px;
}

.nl-set-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--al2-text, #111827);
}

.nl-set-help {
  font-size: .88rem;
  color: var(--al2-muted, #6b7280);
  margin: 0 0 14px;
  line-height: 1.5;
}

.nl-set-email {
  font-size: 1rem;
  font-weight: 500;
  color: var(--al2-text, #111827);
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}

.nl-set-status {
  margin-top: 10px;
  font-size: .84rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.nl-set-status.verified { background: #d1fae5; color: #065f46; }
.nl-set-status.pending { background: #fef3c7; color: #92400e; }

.nl-set-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nl-set-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--al2-border, #e5e7eb);
  background: #fff;
  color: var(--al2-text, #374151);
  font-size: .88rem;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}

.nl-set-chip:hover {
  border-color: var(--al2-accent, #4f46e5);
  color: var(--al2-accent, #4f46e5);
}

.nl-set-chip.on {
  background: var(--al2-accent, #4f46e5);
  border-color: var(--al2-accent, #4f46e5);
  color: #fff;
  font-weight: 600;
}

.nl-set-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nl-set-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--al2-border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
  transition: all .18s ease;
  font-size: .95rem;
}

.nl-set-radio:hover {
  border-color: var(--al2-accent, #4f46e5);
  background: #fafafa;
}

.nl-set-radio input { margin: 0; }

.nl-set-radio input:checked + span {
  color: var(--al2-accent, #4f46e5);
  font-weight: 600;
}

.nl-set-radio:has(input:checked) {
  border-color: var(--al2-accent, #4f46e5);
  background: var(--al2-accent-soft, #eef2ff);
}

.nl-set-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.nl-set-unsub {
  color: #ef4444;
  font-size: .88rem;
  text-decoration: none;
}

.nl-set-unsub:hover { text-decoration: underline; }

.nl-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: #111827;
  color: #fff;
  font-size: .9rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.nl-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nl-mute {
  color: var(--al2-muted, #6b7280);
  font-size: .88rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .nl-settings-header h1 { font-size: 1.4rem; }
  .nl-set-card { padding: 18px; }
  .nl-set-actions { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
  .nl-set-actions .nl-hero-btn { width: 100%; justify-content: center; }
  .nl-set-unsub { text-align: center; }
}
