/* ── CONTEXTUAL MODALS ───────────────────────── */
.ctx-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all .18s;
  margin-right: 6px;
  margin-bottom: 6px;
}
.ctx-btn:hover { border-color: var(--navy); color: var(--navy); background: #EFECE5; }

.ctx-btns-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ctx-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(12,26,46,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.ctx-overlay.open { opacity: 1; pointer-events: all; }

.ctx-modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%; max-width: 640px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(12,26,46,.25);
  transform: translateY(10px);
  transition: transform .2s;
  overflow: hidden;
}
.ctx-overlay.open .ctx-modal { transform: translateY(0); }

.ctx-modal-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ctx-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--navy); flex: 1;
}
.ctx-modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: none;
  font-size: 16px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.ctx-modal-close:hover { background: var(--border); color: var(--text); }

.ctx-modal-body {
  overflow-y: auto; flex: 1;
  padding: 18px 20px;
  font-size: 14px; line-height: 1.65; color: var(--text);
  font-weight: 300;
}
.ctx-modal-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 600;
  color: var(--navy); margin: 18px 0 8px;
}
.ctx-modal-body h3:first-child { margin-top: 0; }
.ctx-modal-body p { margin-bottom: 10px; }
.ctx-modal-body ul { padding-left: 18px; margin-bottom: 10px; }
.ctx-modal-body li { margin-bottom: 4px; }
.ctx-modal-body .empty-note {
  color: var(--muted); font-style: italic; font-size: 13px;
  padding: 20px 0; text-align: center;
}

.ctx-copy-btn {
  display: block; width: 100%;
  padding: 10px; margin-top: 12px;
  background: var(--navy); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background .18s;
}
.ctx-copy-btn:hover { background: var(--navy-mid); }

/* ── PROFILE TOGGLES ─────────────────────────── */
.profile-toggles {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface); cursor: pointer;
  font-family: 'Jost', sans-serif; font-size: 12px;
  font-weight: 500; color: var(--muted);
  transition: all .18s; user-select: none;
}
.profile-toggle.active {
  background: var(--navy); border-color: var(--navy);
  color: #fff;
}
.profile-toggle-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .18s;
  flex-shrink: 0;
}
.profile-toggle.active .profile-toggle-dot { background: var(--gold); }

.profile-section {
  border: 1px solid var(--gold);
  border-radius: var(--r);
  margin-bottom: 14px;
  overflow: hidden;
  background: #FFFDF8;
}
.profile-section-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--gold-lt);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7A4F00;
  cursor: pointer; user-select: none;
}
.profile-section-hdr:hover { background: #EDD9A3; }
.profile-section-body { padding: 12px 16px; font-size: 13px; font-weight: 300; line-height: 1.6; color: var(--text); }
