/* === TROTH APP STYLES ===
   Design tokens inherited from landing page */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0f0f0f;
  --paper: #faf9f7;
  --warm: #c8a87c;
  --warm-light: #f0e6d6;
  --accent: #3d5a4c;
  --accent-light: #e8efe9;
  --muted: #6b6560;
  --border: #e0dbd5;
  --error: #c0392b;
  --error-light: #fde8e8;
  --success: #3d5a4c;
  --success-light: #e8efe9;
  --white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

/* --- App Shell --- */
.app-nav {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.app-nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.app-nav .logo-dot {
  color: var(--warm);
}

.app-nav .nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-user {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover {
  text-decoration: underline;
}

/* --- Main Container --- */
.app-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: calc(100vh - 60px);
}

/* --- Auth Pages --- */
.auth-page {
  max-width: 420px;
  margin: 3rem auto;
}

.auth-page h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.auth-page .subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.form-error {
  background: var(--error-light);
  color: var(--error);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
}

.btn-primary:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  width: 100%;
}

.btn-accent:hover {
  background: #345248;
  transform: translateY(-1px);
}

.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-row .btn {
  flex: 1;
}

/* --- Progress Bar --- */
.progress-container {
  margin-bottom: 2.5rem;
}

.progress-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-step.active {
  background: var(--warm);
}

.progress-step.complete {
  background: var(--accent);
}

.progress-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* --- Onboarding Steps --- */
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.step-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.step-card .step-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- Option Cards (radio/checkbox style) --- */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.option-grid.single-col {
  grid-template-columns: 1fr;
}

/* Compact chip grid for multi-select identity/attraction chips */
.option-grid.chip-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.option-card.chip {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-align: center;
}

.option-card.chip .option-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0;
}

.option-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option-card:hover {
  border-color: var(--warm);
  background: var(--warm-light);
}

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.option-card .option-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.option-card .option-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Quiz --- */
.quiz-question {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.quiz-question:last-of-type {
  border-bottom: none;
}

.quiz-question .q-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--warm);
  margin-bottom: 0.4rem;
}

.quiz-question .q-text {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.likert-scale {
  display: flex;
  gap: 0.5rem;
}

.likert-option {
  flex: 1;
  text-align: center;
}

.likert-option input[type="radio"] {
  display: none;
}

.likert-option label {
  display: block;
  padding: 0.5rem 0.25rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  color: var(--muted);
  transition: all 0.2s;
  line-height: 1.3;
}

.likert-option input[type="radio"]:checked + label {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}

.likert-option label:hover {
  border-color: var(--warm);
}

/* --- Dashboard --- */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.dashboard-header .greeting {
  color: var(--muted);
  font-size: 1rem;
}

/* Score Overview */
.score-overview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.score-overview h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.score-bars {
  display: grid;
  gap: 0.75rem;
}

.score-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-bar .score-label {
  font-size: 0.85rem;
  width: 130px;
  flex-shrink: 0;
}

.score-bar .bar-track {
  flex: 1;
  height: 8px;
  background: var(--warm-light);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar .bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.score-bar .bar-fill.high { background: var(--accent); }
.score-bar .bar-fill.med { background: var(--warm); }
.score-bar .bar-fill.low { background: var(--error); }

.score-bar .score-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Match Cards */
.matches-section h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.matches-list {
  display: grid;
  gap: 1rem;
}

.match-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.match-card:hover {
  border-color: var(--warm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.match-info h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.match-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.match-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.match-score span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.match-bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-style: italic;
}

.match-compat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.compat-dim {
  text-align: center;
  padding: 0.5rem;
  background: var(--paper);
  border-radius: 8px;
}

.compat-dim .dim-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.compat-dim .dim-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 340px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Loading --- */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .app-container {
    padding: 1.5rem 1rem 3rem;
  }

  .auth-page h1 {
    font-size: 1.6rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .likert-scale {
    gap: 0.3rem;
  }

  .likert-option label {
    font-size: 0.65rem;
    padding: 0.4rem 0.15rem;
  }

  .match-compat {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-row {
    flex-direction: column;
  }
}

/* --- Trust Badges --- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.trust-verified {
  background: var(--accent-light);
  color: var(--accent);
}

.trust-good {
  background: var(--warm-light);
  color: var(--warm);
}

.trust-new {
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* --- Match Actions --- */
.match-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.btn-report {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-report:hover {
  color: var(--error);
  background: var(--error-light);
}

/* --- Report Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-content h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.modal-content .report-options {
  display: grid;
  gap: 0.5rem;
}

.modal-content .report-options .option-card {
  text-align: left;
  padding: 0.75rem 1rem;
}

.modal-content textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  resize: vertical;
  min-height: 60px;
}

.modal-content textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.modal-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.modal-buttons .btn {
  flex: 1;
  padding: 0.7rem 1.5rem;
}

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover {
  background: #a93226;
}

.btn-danger:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.85rem; }

/* --- Email Verification --- */

/* Persistent banner above dashboard */
.verify-banner {
  background: #fffbf0;
  border: 1px solid #e8d5a0;
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
}

.verify-banner-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.verify-banner-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.verify-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.verify-banner-text strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.verify-banner-text span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Small button variant */
.btn-sm {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Verified badge inline in match cards */
.verified-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.02em;
  vertical-align: middle;
  margin-left: 0.4rem;
}

@media (max-width: 600px) {
  .verify-banner-content {
    flex-wrap: wrap;
  }
  .verify-banner-text strong {
    font-size: 0.85rem;
  }
}

/* ================================================
   MESSAGING STYLES
   ================================================ */

/* Dashboard title row — flex between heading and messages link */
.dashboard-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Match card message button */
.btn-match-msg {
  width: auto;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Nav icon link (messages icon in header) */
.nav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
}

.nav-icon-link:hover {
  color: var(--accent);
}

.unread-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--error);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* --- Messages Page --- */
.messages-page {
  max-width: 640px;
}

.messages-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.messages-header h1 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--ink);
}

/* --- Conversation List --- */
.conversation-list {
  display: grid;
  gap: 0;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.conversation-item:hover {
  background: var(--warm-light);
}

.conversation-item:last-child {
  border-bottom: none;
}

.conversation-item.has-unread .conv-name {
  font-weight: 700;
}

.conversation-item.has-unread .conv-preview {
  color: var(--ink);
  font-weight: 500;
}

.conv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.conv-content {
  flex: 1;
  min-width: 0;
}

.conv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.conv-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.conv-time {
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.conv-preview {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.conv-unread {
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

.conv-compat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 0.25rem;
}

.mute-icon {
  font-size: 0.72rem;
  opacity: 0.5;
}

/* --- Chat Page --- */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  max-width: 640px;
  margin: -2rem -1.5rem;
  padding: 0;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: relative;
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.chat-header-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-menu-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.chat-menu-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.chat-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 100;
  min-width: 200px;
}

.menu-item {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.menu-item:hover {
  background: var(--paper);
}

.menu-item-danger {
  color: var(--error);
}

.menu-item-danger:hover {
  background: var(--error-light);
}

/* --- Chat Messages --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.chat-empty-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.chat-empty p {
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.5;
}

.chat-date-sep {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.75rem 0;
}

/* --- Message Bubbles --- */
.msg-row {
  display: flex;
  margin-bottom: 0.15rem;
}

.msg-mine {
  justify-content: flex-end;
}

.msg-theirs {
  justify-content: flex-start;
}

.msg-bubble {
  max-width: 75%;
  padding: 0.625rem 0.875rem;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.msg-mine .msg-bubble {
  background: var(--accent);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.msg-theirs .msg-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.msg-flagged {
  opacity: 0.5;
  border: 1px dashed var(--error) !important;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  justify-content: flex-end;
}

.msg-time {
  font-size: 0.65rem;
  opacity: 0.7;
}

.msg-read {
  font-size: 0.65rem;
  opacity: 0.7;
}

/* --- Chat Input --- */
.chat-input-area {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-input-row input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  background: var(--paper);
  color: var(--ink);
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send:disabled {
  opacity: 0.4;
}

.chat-flag-warning {
  font-size: 0.78rem;
  color: var(--error);
  padding: 0.4rem 0.5rem 0;
  text-align: center;
}

/* --- Modal Card (messaging modals) --- */
.modal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.modal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Report reasons grid */
.report-reasons {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.report-reasons .option-card {
  text-align: left;
  padding: 0.75rem 1rem;
}

/* --- Settings --- */
.settings-page {
  max-width: 640px;
}

.settings-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.settings-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.danger-zone-card {
  border-color: #e8d5d5;
}

.danger-zone-card h3 {
  color: var(--error);
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.setting-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* --- Toggle Switch --- */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: all 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  pointer-events: none;
  white-space: nowrap;
}

.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Messaging Responsive --- */
@media (max-width: 600px) {
  .chat-page {
    margin: -1.5rem -1rem;
  }

  .msg-bubble {
    max-width: 85%;
  }

  .dashboard-title-row {
    flex-wrap: wrap;
  }
}

/* =====================================================
   COURTSHIP BANDWIDTH + FOCUS MODE + ACCOUNT STATUS
   ===================================================== */

/* --- Account Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-badge-open {
  background: var(--accent-light);
  color: var(--accent);
}

.status-badge-selective {
  background: #fff3e0;
  color: #b45309;
}

.status-badge-focused {
  background: #fce4ec;
  color: #c2185b;
}

.status-badge-partnered {
  background: #f3e5f5;
  color: #7b1fa2;
}

.status-badge-paused {
  background: var(--warm-light);
  color: var(--muted);
}

.status-badge-hidden {
  background: #f0f0f0;
  color: #555;
}

/* --- Bandwidth Indicator --- */
.bandwidth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}

.bandwidth-badge span {
  color: var(--warm);
  font-weight: 600;
}

/* --- Match Card Status Row --- */
.match-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* --- Matches Filter Bar --- */
.matches-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.filter-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.filter-chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.filter-chip:hover {
  border-color: var(--warm);
  color: var(--ink);
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* --- Focus Mode Settings Card --- */
.focus-mode-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.focus-mode-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.focus-mode-card .focus-desc {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.focus-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.focus-state-label {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.focus-state-partner {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* --- Account Status Selector (Settings) --- */
.status-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.status-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--paper);
}

.status-option:hover {
  border-color: var(--warm);
  background: var(--warm-light);
}

.status-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.status-option-title {
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
}

.status-option-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.status-option-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
}

.status-option.selected .status-option-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.status-option.selected .status-option-radio::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
}

/* --- Date Check-In Prompt Banner --- */
.checkin-banner {
  margin: 0.75rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-light), var(--warm-light));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.checkin-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.checkin-banner-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.checkin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkin-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s ease;
}

.checkin-btn-yes {
  background: var(--accent);
  color: white;
}

.checkin-btn-yes:hover {
  background: #2d4437;
}

.checkin-btn-maybe {
  background: transparent;
  border-color: var(--warm);
  color: var(--warm);
}

.checkin-btn-maybe:hover {
  background: var(--warm-light);
}

.checkin-btn-dismiss {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  font-weight: 400;
}

.checkin-btn-dismiss:hover {
  background: var(--border);
  color: var(--ink);
}

/* --- Focus Request Banner (in chat) --- */
.focus-request-banner {
  margin: 0.75rem 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fce4ec, #fff3e0);
  border: 1px solid #f8bbd9;
  border-radius: 10px;
  text-align: center;
}

.focus-request-banner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.focus-request-banner-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* --- Bandwidth Question in Onboarding --- */
.bandwidth-question {
  margin-top: 1.25rem;
}

.bandwidth-option-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Focus Mode Match Card Overlay --- */
.match-focus-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid #f48fb1;
  background: transparent;
  color: #c2185b;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
  font-family: 'DM Sans', sans-serif;
}

.match-focus-btn:hover {
  background: #fce4ec;
}

/* --- Settings Account Status Section --- */
.settings-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.bandwidth-setting-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.bandwidth-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.15s ease;
}

.bandwidth-btn:hover {
  border-color: var(--warm);
  color: var(--ink);
}

.bandwidth-btn.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================================
   LINKED PROFILES — Group match cards, badges, filter rows
   ============================================================ */

/* Group match card variant */
.match-card-group {
  border: 1.5px solid #c8a87a;
  background: linear-gradient(135deg, #fdf9f4 0%, #fff8ed 100%);
  position: relative;
}

.match-card-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.group-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b5e3c;
  background: #f4e8d9;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* Group member chips */
.group-members-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.group-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f8f2eb;
  border: 1px solid #e0d3c4;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.group-member-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warm);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.group-member-age {
  color: var(--muted);
  font-size: 0.75rem;
}

/* Link / dating-together badges */
.match-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}

.link-badge-link {
  background: #e8f4fd;
  border-color: #90c9f0;
  color: #1a5f8b;
}

.link-badge-pending {
  background: #fdf3e0;
  border-color: #e8c56e;
  color: #7a5200;
}

.link-badge-dt {
  background: #e8f5e9;
  border-color: #81c784;
  color: #1b5e20;
}

/* Filter bar rows */
.matches-filter-bar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.filter-chip {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--warm);
  color: var(--ink);
}

.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

/* Group conversation item */
.conv-avatar-group {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4e8d9;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.conv-group-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b5e3c;
}

/* Message sender name (for group chats) */
.message-sender-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

/* Linked profiles settings nav entry */
.linked-settings-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

/* ===================================================
   BODIES & BOUNDARIES CARD
   =================================================== */

#bb-card-area {
  flex-shrink: 0;
}

.bb-card-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #f9f7f4;
}

.bb-card-waiting {
  background: #f5f3f0;
  opacity: 0.85;
}

.bb-card-invite {
  background: linear-gradient(135deg, #f2ede6 0%, #eaf0ea 100%);
  border-color: var(--warm);
}

.bb-card-active {
  background: linear-gradient(135deg, #eaf0ea 0%, #f0f5f0 100%);
  border-color: var(--accent);
}

.bb-card-declined {
  background: #f8f6f3;
  opacity: 0.75;
}

.bb-card-revealed {
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--white);
  border-color: var(--accent);
}

.bb-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bb-card-icon-lg {
  font-size: 2rem;
}

.bb-card-body {
  flex: 1;
  min-width: 0;
}

.bb-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.bb-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.bb-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Revealed layout */
.bb-revealed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.bb-revealed-body {
  padding: 0.75rem 1.25rem 0;
}

.bb-reveal-section {
  padding-bottom: 0.75rem;
}

.bb-reveal-who {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.bb-reveal-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0 0.75rem;
}

.bb-reveal-empty {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.bb-answer-item {
  margin-bottom: 0.75rem;
}

.bb-answer-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.bb-answer-text {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
  background: var(--accent-light);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  white-space: pre-line;
}

.bb-revealed-note {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Fill modal */
.bb-fill-modal .modal-card {
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bb-fill-card {
  max-width: 560px;
}

.bb-fill-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.bb-fill-header h3 {
  margin: 0.5rem 0 0.25rem;
}

.bb-fill-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.bb-questions-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bb-question-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bb-question-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.bb-question-prompt {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.bb-question-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
  resize: vertical;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s;
}

.bb-question-input:focus {
  outline: none;
  border-color: var(--accent);
}

.bb-fill-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bb-privacy-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.btn-text-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-text-link:hover {
  color: var(--ink);
}


/* =========================================
   Identity & Privacy Settings
   ========================================= */

.openness-option,
.disclosure-option,
.t4t-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}

.openness-option:hover,
.disclosure-option:hover,
.t4t-option:hover {
  border-color: var(--warm);
  background: #faf7f4;
}

.openness-option.selected,
.disclosure-option.selected,
.t4t-option.selected {
  border-color: var(--accent);
  background: #f8f0ee;
}

.openness-radio,
.disclosure-radio,
.t4t-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: border-color 0.15s;
}

.openness-option.selected .openness-radio,
.disclosure-option.selected .disclosure-radio,
.t4t-option.selected .t4t-radio {
  border-color: var(--accent);
}

.openness-option.selected .openness-radio::after,
.disclosure-option.selected .disclosure-radio::after,
.t4t-option.selected .t4t-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.setting-section {
  margin-bottom: 1rem;
}

/* --- Disclosure Profile Preview Card --- */
.disclosure-preview-card {
  margin-top: 0.875rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 0.875rem;
  background: var(--paper);
  transition: border-color 0.2s;
}

.disclosure-preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.disclosure-preview-profile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.disclosure-preview-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--warm-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warm);
  flex-shrink: 0;
}

.disclosure-preview-info {
  flex: 1;
  min-width: 0;
}

.disclosure-preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.disclosure-preview-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.disclosure-preview-bio {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.disclosure-preview-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  white-space: nowrap;
}

.disclosure-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  line-height: 1.4;
}

.disclosure-preview-note span:first-child {
  flex-shrink: 0;
  margin-top: 1px;
}
