/* Iteration 8 — Notification preferences page.
   Namespace: .mpv2pref-*
   Consumes --mpv2-* vars from nft_marketplace_v2.css.
*/

.mpv2pref-body       { background: var(--mpv2-bg, #06001a); color: var(--mpv2-text, #e8e5ff); }
.mpv2pref-main       { padding-bottom: 64px; }

/* ── HEADLINE ─────────────────────────────────────────────── */
.mpv2pref-headline {
  padding: 36px 24px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mpv2pref-headline-inner {
  max-width: 880px;
  margin: 0 auto;
}
.mpv2pref-title {
  font: 700 30px/1.15 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 10px;
}
.mpv2pref-subtitle {
  color: var(--mpv2-text-dim, #9a92c9);
  margin: 0;
  max-width: 58ch;
  font: 400 14px/1.55 'Inter', system-ui, sans-serif;
}

/* ── LOADING / CARD ───────────────────────────────────────── */
.mpv2pref-body-wrap,
.mpv2pref-card {
  max-width: 880px;
  margin: 24px auto 0;
  padding: 28px;
  background: var(--mpv2-surface, rgba(20, 16, 40, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.mpv2pref-loading {
  text-align: center;
  padding: 40px 12px;
  color: var(--mpv2-text-dim);
}

/* ── FORM GROUPS ──────────────────────────────────────────── */
.mpv2pref-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mpv2pref-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mpv2pref-group-title {
  font: 600 12px 'Inter', sans-serif;
  color: var(--mpv2-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 0 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
  margin: 0 0 4px;
}

.mpv2pref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.mpv2pref-row-lbl {
  font: 500 14px 'Inter', sans-serif;
  color: var(--mpv2-text);
}
.mpv2pref-input {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--mpv2-text);
  padding: 8px 10px;
  border-radius: 8px;
  font: 500 13px 'JetBrains Mono', monospace;
  min-width: 220px;
}
.mpv2pref-toggle { transform: scale(1.25); accent-color: #a78bfa; }

/* ── MATRIX TABLE ─────────────────────────────────────────── */
.mpv2pref-matrix .mpv2pref-group-title { margin-bottom: 0; }
.mpv2pref-table {
  width: 100%;
  border-collapse: collapse;
  font: 500 13px 'Inter', sans-serif;
}
.mpv2pref-table th,
.mpv2pref-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mpv2pref-table th {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mpv2-text-dim);
}
.mpv2pref-table td:nth-child(2),
.mpv2pref-table td:nth-child(3),
.mpv2pref-table th:nth-child(2),
.mpv2pref-table th:nth-child(3) {
  text-align: center;
  width: 100px;
}

/* ── ACTIONS ──────────────────────────────────────────────── */
.mpv2pref-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.mpv2pref-status {
  font: 500 12px 'Inter', sans-serif;
  color: var(--mpv2-text-dim);
}
.mpv2pref-status.is-saved   { color: #86efac; }
.mpv2pref-status.is-failed  { color: #fca5a5; }

@media (max-width: 640px) {
  .mpv2pref-headline { padding: 24px 16px 8px; }
  .mpv2pref-card, .mpv2pref-body-wrap { margin: 16px 12px; padding: 18px; }
  .mpv2pref-row { grid-template-columns: 1fr; align-items: flex-start; }
  .mpv2pref-input { width: 100%; min-width: 0; }
}
