/* NotiVault Settings Explorer — Classic theme interactive demo */

#settings-explorer {
  scroll-margin-top: 88px;
}

.nv-explorer-wrap {
  --nv-root: #ffffff;
  --nv-shell: #1b2a41;
  --nv-row-bg: #000000;
  --nv-row-text: #c0c0c0;
  --nv-accent: #1e4d7b;
  --nv-on-accent: #ffffff;
  --nv-text-primary: #111827;
  --nv-text-secondary: #475569;
  --nv-text-muted: #64748b;
  --nv-chip: #e9eef5;
  --nv-selected-row: #dceeff;
  --nv-onboarding-bg: #f2f2f2;
  --nv-pro-trial: #b45309;
  --nv-pro-green: #15803d;
  --nv-toast-bg: #1f2937;
  --nv-toast-text: #f9fafb;
  --nv-radius: 8px;
  --nv-phone-width: min(100%, 380px);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 24px 0 32px;
}

.nv-explorer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  width: var(--nv-phone-width);
  max-width: 100%;
}

.nv-explorer-toolbar label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.nv-explorer-tier {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.nv-explorer-tier button {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.nv-explorer-tier button.is-active {
  background: var(--nv-accent);
  color: var(--nv-on-accent);
}

.nv-explorer-hint {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 420px;
  margin: 0;
  line-height: 1.5;
}

.nv-phone {
  width: var(--nv-phone-width);
  max-width: 100%;
  border-radius: 28px;
  border: 3px solid #0f172a;
  background: var(--nv-shell);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nv-phone-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.nv-phone-notch {
  height: 28px;
  background: var(--nv-shell);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-phone-notch span {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.nv-phone-screen {
  background: var(--nv-root);
  min-height: 520px;
  max-height: min(72vh, 640px);
  overflow-y: auto;
  padding: 16px 16px 56px;
}

.nv-settings-title {
  margin: 8px 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--nv-text-primary);
}

.nv-settings-status {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--nv-text-secondary);
}

.nv-settings-tier {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nv-pro-trial);
}

.nv-settings-tier.is-pro {
  color: var(--nv-pro-green);
}

.nv-settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nv-settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nv-row-bg);
  border-radius: var(--nv-radius);
  padding: 10px 10px 10px 14px;
  min-height: 48px;
  margin-bottom: 10px;
  border: none;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.nv-settings-row:disabled,
.nv-settings-row.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.nv-settings-row-label {
  flex: 1;
  color: var(--nv-row-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.nv-settings-help {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 4px 6px;
  border-radius: var(--nv-radius);
  border: none;
  background: var(--nv-on-accent);
  color: var(--nv-accent);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.nv-settings-help:hover {
  filter: brightness(0.96);
}

.nv-onboarding-card {
  background: var(--nv-onboarding-bg);
  border-radius: var(--nv-radius);
  padding: 14px;
  margin-bottom: 10px;
}

.nv-onboarding-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--nv-text-primary);
}

.nv-onboarding-card p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--nv-text-secondary);
  line-height: 1.45;
}

.nv-onboarding-step {
  background: #fff;
  border-radius: var(--nv-radius);
  padding: 12px;
  margin-bottom: 10px;
}

.nv-onboarding-step h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--nv-text-primary);
}

.nv-onboarding-step p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  white-space: pre-line;
}

.nv-onboarding-step-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--nv-radius);
  background: var(--nv-row-bg);
  color: var(--nv-row-text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
}

.nv-onboarding-step-btn.is-done {
  opacity: 0.85;
}

.nv-onboarding-hide {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: none;
  border-radius: var(--nv-radius);
  background: var(--nv-chip);
  color: var(--nv-text-primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
}

.nv-toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  transform: translateY(120%);
  padding: 12px 14px;
  border-radius: var(--nv-radius);
  background: var(--nv-toast-bg);
  color: var(--nv-toast-text);
  font-size: 0.82rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 5;
  transition: transform 0.28s var(--ease-out, ease);
  pointer-events: none;
}

.nv-toast.is-visible {
  transform: translateY(0);
}

.nv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nv-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nv-overlay--help {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(3px);
}

.nv-modal {
  width: min(100%, 360px);
  max-height: min(88vh, 640px);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 24px 64px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nv-modal--help {
  border: 2px solid var(--nv-accent);
  box-shadow:
    0 0 0 4px rgba(30, 77, 123, 0.18),
    0 28px 72px rgba(0, 0, 0, 0.45);
}

.nv-modal--help .nv-modal-header {
  background: #e8eef5;
  border-bottom: 1px solid #c5d4e4;
  padding: 16px 18px 12px;
}

.nv-modal--help .nv-modal-header h2 {
  color: var(--nv-accent);
}

.nv-modal--help .nv-modal-body {
  max-height: 50vh;
  background: #ffffff;
}

.nv-modal--help .nv-modal-actions {
  background: #f1f5f9;
  border-top: 1px solid #dbe3ec;
}

.nv-modal-header {
  padding: 18px 18px 8px;
  background: #ffffff;
}

.nv-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--nv-text-primary);
}

.nv-modal-teaser {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--nv-text-muted);
}

.nv-modal--help .nv-modal-teaser {
  color: var(--nv-text-secondary);
  font-weight: 500;
}

.nv-modal-body {
  padding: 8px 18px 12px;
  overflow-y: auto;
  flex: 1;
}

.nv-modal-body p,
.nv-modal-message {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--nv-text-secondary);
  line-height: 1.5;
  white-space: pre-line;
}

.nv-modal-body img {
  width: 100%;
  border-radius: var(--nv-radius);
  margin-bottom: 12px;
  border: 1px solid var(--line);
}

.nv-modal-body ul {
  margin: 0;
  padding: 0 0 0 1.1em;
}

.nv-modal-body li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--nv-text-secondary);
  line-height: 1.45;
}

.nv-modal-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nv-modal-options li {
  margin-bottom: 6px;
  padding: 0;
}

.nv-modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--nv-radius);
  background: var(--nv-chip);
  font: inherit;
  font-size: 0.92rem;
  color: var(--nv-text-primary);
  cursor: pointer;
  text-align: left;
}

.nv-modal-option.is-selected {
  background: var(--nv-selected-row);
  font-weight: 700;
}

.nv-modal-option input {
  accent-color: var(--nv-accent);
  pointer-events: none;
}

.nv-modal-retention-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--nv-radius);
  font: inherit;
  font-size: 1rem;
  margin-bottom: 8px;
}

.nv-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
}

.nv-modal-btn {
  border: none;
  border-radius: var(--nv-radius);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.nv-modal-btn--primary {
  background: var(--nv-row-bg);
  color: var(--nv-row-text);
}

.nv-modal-btn--cancel {
  background: var(--nv-chip);
  color: var(--nv-text-primary);
}

.nv-modal-btn--neutral {
  background: var(--nv-chip);
  color: var(--nv-text-primary);
}

.nv-explorer-embed .nv-phone {
  --nv-phone-width: 100%;
}

.nv-explorer-embed .nv-phone-screen {
  min-height: 420px;
  max-height: 520px;
  padding-bottom: 52px;
}

@media (max-width: 480px) {
  .nv-phone-screen {
    min-height: 460px;
  }
}
