/* ═══════════════════════════════════════════════
   PRIVACY SETTINGS MODAL
   ═══════════════════════════════════════════════ */

#privacy-settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 31, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.ps-panel {
  background: var(--paper-deep);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.ps-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  margin: -24px -24px 0;
  padding: 20px 24px 12px;
  background: var(--paper-deep);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 2;
}

.ps-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin: 0 0 4px;
}

.ps-subheading {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.ps-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0 2px;
  transition: color var(--transition);
}

.ps-close:hover {
  color: var(--ink);
}

.ps-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.ps-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

.ps-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-tier-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  background: var(--paper-deep);
  text-align: left;
  transition: background var(--transition), border-color var(--transition);
  border-left-width: 3px;
  border-left-color: transparent;
}

.ps-tier-option:hover {
  background: var(--paper-deep);
}

.ps-tier-option.tier-option-active {
  border-left-color: var(--red);
  background: var(--paper-deep);
}

.ps-tier-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.ps-tier-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.ps-save {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: var(--paper);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.ps-save:hover {
  background: var(--red-hover);
}

.ps-tier-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.ps-tier-option.tier-option-active .ps-tier-icon {
  opacity: 1;
}

.ps-tier-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 480px) {
  #privacy-settings-modal {
    padding: 12px;
  }
  .ps-panel {
    padding: 18px;
    max-height: calc(100vh - 24px);
  }
  .ps-header {
    margin: -18px -18px 0;
    padding: 14px 18px 10px;
  }
}
