/* ── Design tokens ─────────────────────────────────────────── */
:root {
  /* Indigo palette extracted from Blurr logo */
  --indigo:        #2D1F7A;   /* primary — dark indigo, replaces --navy   */
  --indigo-dark:   #1E1356;   /* darker variant, replaces --navy-dark      */
  --indigo-light:  #4A3A9E;   /* lighter variant, replaces --navy-light    */
  --purple:        #6B5BC4;   /* accent, replaces --blue                   */
  --purple-light:  #C5BFED;   /* replaces --blue-light                     */
  --purple-pale:   #EEEAF8;   /* hover/tint backgrounds, replaces --blue-pale */
  --bg:            #F2F0FB;   /* page background — light lavender           */
  --white:         #ffffff;
  --text:          #2D1F7A;
  --muted:         #7B72A8;
  --border:        #D4D0EE;
  --error:         #c0392b;
  --nav-h:         64px;
  --radius:        8px;
  --radius-lg:     12px;

  /* Legacy aliases so nothing breaks if any file still uses old names */
  --navy:          var(--indigo);
  --navy-dark:     var(--indigo-dark);
  --navy-light:    var(--indigo-light);
  --blue:          var(--purple);
  --blue-light:    var(--purple-light);
  --blue-pale:     var(--purple-pale);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
.duo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(45, 31, 122, 0.07);
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  color: var(--indigo);
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.nav-user:hover { background: var(--purple-pale); }

.nav-username {
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-user.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(45, 31, 122, 0.13);
  min-width: 148px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.nav-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-dropdown a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 400;
  color: var(--indigo);
  text-decoration: none;
  transition: background 0.1s;
}
.nav-dropdown a:hover {
  background: var(--purple-pale);
  font-weight: 700;
}

.nav-messages {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-messages:hover {
  color: var(--indigo);
  background: var(--purple-pale);
}

.nav-msg-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-msg-badge {
  position: absolute;
  top: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #f97316;
  border: 2px solid var(--white);
  display: block;
}
.nav-msg-badge.hidden { display: none; }

/* ── Page shell ─────────────────────────────────────────────── */
.page-content {
  padding-top: calc(var(--nav-h) + 40px);
  max-width: 640px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 56px;
}

/* ── Login page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 80px;
  color: var(--indigo);
  line-height: 1;
  margin-bottom: 10px;
}

.login-tagline {
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 44px;
  letter-spacing: 0.2px;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--indigo);
  color: var(--white);
  padding: 14px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.1s;
}
.google-btn:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}
.google-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Registration pages ─────────────────────────────────────── */
.reg-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.reg-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 34px;
  color: var(--indigo);
  text-decoration: none;
  line-height: 1;
}

.register-container {
  padding-top: calc(var(--nav-h) + 40px);
  max-width: 500px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 56px;
}

.step-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.step-bar { display: flex; gap: 6px; margin-bottom: 32px; }
.step-dot { height: 3px; flex: 1; border-radius: 2px; background: var(--border); }
.step-dot.active { background: var(--indigo); }

/* ── Form elements ──────────────────────────────────────────── */
label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 18px 0 6px;
}

input[type="text"],
input[type="date"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  color: var(--indigo);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
input[type="text"]:focus,
input[type="date"]:focus { border-color: var(--indigo); }

.primary-btn {
  display: inline-block;
  background: var(--indigo);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.15s, transform 0.1s;
}
.primary-btn:hover:not(:disabled) {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}
.primary-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  display: inline-block;
  background: var(--white);
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  padding: 12px 28px;
  font-size: 15px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
}
.secondary-btn:hover:not(:disabled) { background: var(--purple-pale); }
.secondary-btn:disabled {
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.error-msg {
  color: var(--error);
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

/* ── Terms ──────────────────────────────────────────────────── */
.terms-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--indigo);
}
.terms-box ul { margin: 10px 0 0 20px; padding: 0; }
.terms-box li { margin-bottom: 6px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  margin-bottom: 4px;
}
input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--indigo);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Photo grid ─────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.photo-item { position: relative; }
.photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  display: block;
}
.delete-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.delete-btn:hover { opacity: 0.85; }

/* ── Home page ──────────────────────────────────────────────── */
.home-welcome { font-size: 26px; font-weight: 300; color: var(--indigo); margin-bottom: 6px; }
.home-welcome strong { font-weight: 700; }
.home-sub { font-size: 15px; color: var(--muted); margin-bottom: 40px; font-weight: 300; }

.placeholder-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}
.placeholder-card h2 { font-size: 17px; font-weight: 700; color: var(--indigo); margin-bottom: 8px; }
.placeholder-card p  { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.6; }

/* ── Profile page ───────────────────────────────────────────── */
.profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 20px;
  overflow: visible;
}
.profile-top { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
  margin-bottom: 28px; 
  overflow: visible;
}
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover; flex-shrink: 0;
}
.profile-avatar-placeholder {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--purple-pale);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--indigo); font-weight: 700;
  font-family: 'Lato', sans-serif; flex-shrink: 0;
}
.profile-name { font-size: 20px; font-weight: 700; color: var(--indigo); margin-bottom: 3px; }
.profile-email { font-size: 14px; color: var(--muted); }
.profile-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 20px; }
.profile-field { margin-bottom: 16px; }
.field-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px;
}
.field-value { font-size: 15px; color: var(--indigo); }
.profile-photos-header {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .duo-nav, .reg-header { padding: 0 16px; }
  .page-content, .register-container { padding-left: 16px; padding-right: 16px; }
  .login-logo { font-size: 60px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-card { padding: 24px 20px; }
}

/* ── Profile extended sections ──────────────────────────────── */
.section-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px;
}
.profile-textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px; font-family: 'Lato', sans-serif;
  color: var(--indigo); background: var(--white);
  resize: vertical; outline: none;
  transition: border-color 0.15s; line-height: 1.6;
}
.profile-textarea:focus { border-color: var(--indigo); }
.char-count { font-size: 11px; color: var(--muted); text-align: right; margin-top: 4px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pill {
  padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-family: 'Lato', sans-serif; font-weight: 400;
  color: var(--indigo); background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}
.pill:hover { border-color: var(--indigo); background: var(--purple-pale); }
.pill.selected { background: var(--indigo); border-color: var(--indigo); color: var(--white); font-weight: 700; }

.value-group { margin-bottom: 24px; }
.value-label { font-size: 13px; font-weight: 700; color: var(--indigo); margin-bottom: 10px; }

.qa-item { margin-bottom: 28px; }
.qa-question { font-size: 14px; font-weight: 700; color: var(--indigo); margin-bottom: 8px; line-height: 1.5; }
.qa-question span { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }

.save-bar {
  position: sticky; bottom: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 0; margin-top: 32px;
  display: flex; align-items: center; gap: 16px;
}
.save-status { font-size: 13px; color: var(--muted); }
.save-status.success { color: #2e7d32; }
.save-status.error   { color: var(--error); }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); z-index: 2000;
  align-items: center; justify-content: center; cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(70vw, 900px); max-height: 85vh;
  object-fit: contain; border-radius: 8px; cursor: default;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(0,0,0,0.5); border: none; color: white;
  font-size: 28px; line-height: 1; cursor: pointer;
  padding: 6px 12px; border-radius: 6px;
  transition: opacity 0.15s; z-index: 2001;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-prev, .lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border: none; color: white;
  font-size: 52px; line-height: 1; cursor: pointer;
  padding: 8px 18px; border-radius: 6px;
  transition: opacity 0.15s; z-index: 2001; user-select: none;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 0.7; }
@media (max-width: 768px) {
  .lightbox img { max-width: 90vw; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ── View profile compat tiers ──────────────────────────────── */
.compat-badge { font-size: 28px; font-weight: 700; line-height: 1; margin-top: 6px; }
.compat-badge.tier1 { color: #4ade80; }
.compat-badge.tier2 { color: #16a34a; }
.compat-badge.tier3 { color: #86efac; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.compat-badge.tier4 { color: #6ee7b7; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.compat-badge.tier5 { color: #ca8a04; }
.compat-badge.tier6 { color: #dc2626; }
.compat-badge.none  { font-size: 13px; font-weight: 400; color: var(--muted); }
.compat-label { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ── Message button on view profile ────────────────────────── */
.msg-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 20px;
  background: var(--indigo);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.msg-profile-btn:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}
.msg-profile-btn svg { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════
   MESSAGES PAGE
   ════════════════════════════════════════════════════════════════ */

.messages-shell {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.messages-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.conv-sidebar {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.conv-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}

.conv-sidebar-header h2 { font-size: 17px; font-weight: 700; color: var(--indigo); margin: 0; }

.conv-list { flex: 1; overflow-y: auto; overflow-x: hidden; }

.conv-sidebar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
  color: var(--border);
  height: 100%;
}
.conv-sidebar-empty p { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.5; }

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  cursor: pointer;
  border-bottom: none; /* 1px solid var(--border);*/
  transition: background 0.1s;
}
.conv-item:hover  { background: var(--purple-pale); }
.conv-item.active { background: var(--purple-pale); border-left: 3px solid var(--indigo); padding-left: 17px; }

.conv-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple-pale);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: var(--indigo);
  flex-shrink: 0; position: relative;
}

.conv-unread-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--indigo); border-radius: 9px;
  font-size: 10px; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; box-sizing: border-box;
  border: 2px solid var(--white);
}

.conv-info { flex: 1; min-width: 0; }
.conv-name {
  font-size: 14px; font-weight: 700; color: var(--indigo); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-preview {
  font-size: 13px; color: var(--muted); font-weight: 300;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conv-preview.unread { color: var(--indigo); font-weight: 700; }

/* ── Thread panel ────────────────────────────────────────────── */
.msg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}

.thread-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--border);
}
.thread-placeholder p { font-size: 15px; font-weight: 300; color: var(--muted); margin: 0; }

.thread-active {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.msg-thread-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.btn-back {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  color: var(--indigo);
  flex-shrink: 0;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.btn-back:hover { background: var(--purple-pale); }

.thread-header-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple-pale);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--indigo);
  flex-shrink: 0; overflow: hidden;
}
.thread-header-avatar--photo { background: var(--border); }

.thread-header-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.thread-name {
  font-size: 15px; font-weight: 700; color: var(--indigo);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thread-uname { font-size: 12px; color: var(--muted); margin-top: 1px; }

.msg-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.msg-date-sep {
  align-self: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin: 12px 0 8px;
  background: var(--bg);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.msg-empty-thread {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--border);
  padding: 60px 0;
  flex: 1;
}
.msg-empty-thread p { font-size: 14px; font-weight: 300; color: var(--muted); }

.msg-bubble-wrap {
  display: flex; flex-direction: column;
  max-width: 65%; margin-bottom: 2px;
}
.msg-bubble-wrap.mine   { align-self: flex-end;  align-items: flex-end; }
.msg-bubble-wrap.theirs { align-self: flex-start; align-items: flex-start; }

.msg-bubble {
  padding: 10px 15px; border-radius: 20px;
  font-size: 14px; line-height: 1.55;
  word-break: break-word; white-space: pre-wrap;
}
.msg-bubble.mine {
  background: var(--indigo); color: var(--white); border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: var(--white); color: var(--indigo);
  border: 1.5px solid var(--border); border-bottom-left-radius: 4px;
}

.msg-time { font-size: 11px; color: var(--muted); margin-top: 4px; padding: 0 4px; }

.msg-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.msg-input {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 11px 18px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--indigo);
  background: var(--bg);
  resize: none;
  outline: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.5;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  border-radius: 22px;
}
.msg-input:focus {
  border-color: var(--indigo);
  background: var(--white);
}
.msg-input::placeholder { color: var(--muted); }

.msg-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
  -webkit-appearance: none;
}
.msg-send-btn:hover:not(:disabled) {
  background: var(--indigo-dark);
  transform: scale(1.06);
}
.msg-send-btn:disabled {
  background: var(--indigo-light);
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* ── Mobile breakpoint ───────────────────────────────────────── */
@media (max-width: 640px) {
  .conv-sidebar {
    width: 100%; min-width: 0;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2; border-right: none;
  }
  .conv-sidebar.hidden-mob { display: none; }

  .msg-thread {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
  }

  .messages-layout { position: relative; height: 100%; }

  .btn-back { display: flex; }

  .msg-bubble-wrap { max-width: 82%; }
}

/* ════════════════════════════════════════════════════════════════
   DISCOVERY PAGE — cards, filter pane, animations
   ════════════════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────────────────── */
.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.discover-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo);
}

.discover-refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--indigo);
  cursor: pointer;
  transition: background 0.15s, transform 0.2s, border-color 0.15s;
}
.discover-refresh-btn:hover {
  background: var(--purple-pale);
  border-color: var(--indigo);
}
.discover-refresh-btn.spinning svg {
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Bottom refresh button ───────────────────────────────────── */
.discover-bottom-refresh {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── Discovery grid ──────────────────────────────────────────── */
.discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── Profile cards ───────────────────────────────────────────── */
.profile-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.profile-card-link:hover {
  box-shadow: 0 6px 24px rgba(45, 31, 122, 0.12);
  transform: translateY(-2px);
}

.card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--purple-pale);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: var(--indigo);
  font-family: 'Lato', sans-serif;
  opacity: 0.2;
}
.card-blur-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.88);
  color: var(--indigo);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.card-body { padding: 12px 14px 14px; }

.card-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.card-name { font-size: 15px; font-weight: 700; color: var(--indigo); }
.card-age  { font-size: 12px; color: var(--muted); font-weight: 400; }

.card-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.card-score.tier1 { color: #4ade80; }
.card-score.tier2 { color: #16a34a; }
.card-score.tier3 { color: #86efac; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.card-score.tier4 { color: #6ee7b7; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.card-score.tier5 { color: #ca8a04; }
.card-score.tier6 { color: #dc2626; }
.card-score.none  { color: var(--muted); font-size: 12px; font-weight: 400; }

.card-one-liner {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  font-weight: 300;
  margin-top: 5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card animations ─────────────────────────────────────────── */
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

.card-enter {
  opacity: 0;
  animation: cardEnter 0.3s ease forwards;
}
.card-exit {
  animation: cardExit 0.2s ease forwards;
}

/* ── Loading spinner ─────────────────────────────────────────── */
.discover-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.discover-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Empty state ─────────────────────────────────────────────── */
.discovery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.discovery-empty h2 {
  font-size: 18px; font-weight: 700;
  color: var(--indigo); margin-bottom: 8px;
}
.discovery-empty p { font-size: 14px; font-weight: 300; }

/* ── Nav filter button ───────────────────────────────────────── */
.nav-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-filter-btn:hover,
.nav-filter-btn.active {
  color: var(--indigo);
  background: var(--purple-pale);
}

/* ── Filter pane ─────────────────────────────────────────────── */
.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(45, 31, 122, 0.18);
}
.filter-backdrop.open { display: block; }

.filter-pane {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 901;
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 8px 32px rgba(45, 31, 122, 0.12);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
}
.filter-pane.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.filter-pane-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px 24px;
}

.filter-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.filter-pane-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--indigo);
}
.filter-reset-btn {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  padding: 0;
  transition: color 0.15s;
}
.filter-reset-btn:hover { color: var(--indigo); }

.filter-sections { display: flex; flex-direction: column; gap: 18px; }

/*.filter-section {}*/
.filter-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.filter-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--indigo);
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.filter-pill:hover { border-color: var(--indigo); background: var(--purple-pale); }
.filter-pill.selected {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--white);
  font-weight: 700;
}

.filter-pane-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.filter-pane-footer .primary-btn,
.filter-pane-footer .secondary-btn {
  margin-top: 0;
  padding: 10px 24px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .discovery-grid { grid-template-columns: 1fr; }
  .filter-pane-inner { padding: 16px 16px 20px; }
}

/* ── Photo drag-to-reorder ──────────────────────────────────── */
.photo-draggable {
  position: relative;
  cursor: grab;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}
.photo-draggable:active { cursor: grabbing; }
 
.photo-dragging {
  opacity: 0.4;
  transform: scale(0.97);
}
 
.photo-drag-over {
  box-shadow: 0 0 0 3px var(--indigo);
  border-radius: var(--radius);
  transform: scale(1.02);
}
 
.photo-drag-handle {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(255,255,255,0.88);
  border-radius: 4px;
  padding: 3px 4px;
  color: var(--indigo);
  display: flex;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.photo-draggable:hover .photo-drag-handle { opacity: 1; }
 
.photo-primary-badge {
  position: absolute;
  bottom: 32px;  /* sits above the Remove button */
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}

/* ── Card pin button ─────────────────────────────────────────── */
.card-pin-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  border-radius: 6px;
  padding: 4px 5px;
  cursor: pointer;
  color: rgba(45, 31, 122, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.card-pin-btn:hover {
  background: rgba(255, 255, 255, 0.70);
  color: rgba(45, 31, 122, 0.70);
}

.card-pin-btn.pinned {
  background: rgba(255, 255, 255, 0.92);
  color: var(--indigo);
}

.card-pin-btn.pinned .pin-strike {
  display: none;
}

/* ── Sidebar conversation avatar photo variant ───────────────── */
.conv-avatar--photo {
  overflow: hidden;
  font-size: 0;        /* hides any fallback text if img fails */
}

.conv-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Sidebar tabs ────────────────────────────────────────────── */

.conv-tab {
  flex: 1;
  position: relative;
  padding: 16px 12px;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
 
.conv-tab:hover { color: var(--indigo); }
 
.conv-tab.active {
  color: var(--indigo);
  border-bottom-color: var(--indigo);
}
 
.conv-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
 
.conv-tab-badge.hidden { display: none; }
 
/* ── Request tile score ──────────────────────────────────────── */
.conv-name-row-req {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
 
.conv-req-score {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
 
.conv-req-score.tier1 { color: #4ade80; }
.conv-req-score.tier2 { color: #16a34a; }
.conv-req-score.tier3 { color: #86efac; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.conv-req-score.tier4 { color: #6ee7b7; text-shadow: 0 0 1px rgba(0,0,0,0.15); }
.conv-req-score.tier5 { color: #ca8a04; }
.conv-req-score.tier6 { color: #dc2626; }
.conv-req-score.none  { color: var(--muted); font-size: 11px; font-weight: 400; }
 
/* ═══════════════════════════════════════════════════════════════════════════
   BLOCKING / REPORTING — append to styles.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Flag button (view profile page) ─────────────────────────────────────── */
.flag-btn-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.flag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.flag-btn:hover {
  border-color: #e3242b;
  color: #e3242b;
  background: #fff5f5;
}

.flag-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  padding: 4px 0;
  display: none;
  z-index: 100;
}
.flag-dropdown.open { display: block; }

.flag-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.12s;
}
.flag-dropdown-item:hover { background: var(--blue-pale); }
.flag-dropdown-item--danger { color: #e3242b; }
.flag-dropdown-item--danger:hover { background: #fff5f5; }

/* ── Three-dot ellipsis (messages thread header) ─────────────────────────── */
.thread-ellipsis-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.thread-ellipsis-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}
.thread-ellipsis-btn:hover {
  background: var(--blue-pale);
  color: var(--navy);
}

.thread-ellipsis-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 188px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  padding: 4px 0;
  display: none;
  z-index: 100;
}
.thread-ellipsis-dropdown.open { display: block; }

.ellipsis-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.12s;
}
.ellipsis-item:hover { background: var(--blue-pale); }
.ellipsis-item--danger { color: #e3242b; }
.ellipsis-item--danger:hover { background: #fff5f5; }

/* ── Block / Report modals (injected by blocking.js) ─────────────────────── */
.blk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 40, 0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.blk-overlay.open { display: flex; }

.blk-modal {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 28px 22px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
}

.blk-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.blk-modal-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 20px;
}

.blk-textarea {
  width: 100%;
  min-height: 110px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--navy);
  padding: 10px 12px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
  background: var(--white);
}
.blk-textarea:focus { border-color: var(--navy); }

.blk-char-row {
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  margin-bottom: 18px;
  font-weight: 300;
}

.blk-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.blk-btn {
  padding: 9px 20px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}
.blk-btn:hover { transform: translateY(-1px); }
.blk-btn:active { transform: translateY(0); }

.blk-btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.blk-btn-ghost:hover { background: var(--blue-pale); }

.blk-btn-danger {
  background: #e3242b;
  color: var(--white);
}
.blk-btn-danger:hover { background: #c41e24; }

.blk-btn-primary {
  background: var(--navy);
  color: var(--white);
}
.blk-btn-primary:hover { background: var(--navy-dark); }
/* ═══════════════════════════════════════════════════════════════════
   CARD REPLY FEATURE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Long-press hold pulse on personality cards ─────────────────── */
@keyframes pqHoldPulse {
  0%   { box-shadow: 0 14px 44px rgba(45,31,122,0.38), 0 4px 14px rgba(45,31,122,0.22), inset 0 1px 0 rgba(255,255,255,0.18); }
  50%  { box-shadow: 0 20px 56px rgba(45,31,122,0.58), 0 6px 18px rgba(45,31,122,0.36), 0 0 0 6px rgba(99,91,255,0.42), inset 0 1px 0 rgba(255,255,255,0.24); }
  100% { box-shadow: 0 14px 44px rgba(45,31,122,0.38), 0 4px 14px rgba(45,31,122,0.22), inset 0 1px 0 rgba(255,255,255,0.18); }
}

.pq-card-front.pq-holding {
  animation: pqHoldPulse 0.5s ease-in-out forwards !important;
  cursor: grabbing;
}

.pq-card-front.pq-raised {
  transform: translateY(-18px) !important;
}

/* ── Card reply popup (appears on long-press) ────────────────────── */
@keyframes pqPopupIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pq-reply-popup {
  position: absolute;
  z-index: 50;
  left: 50%;
  top: calc(100% - 8px);
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy);
  border: none;
  border-radius: 999px;
  padding: 11px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  animation: pqPopupIn 0.18s cubic-bezier(0.2, 0, 0.38, 1) both;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.pq-reply-popup::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 36%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 11px solid #fff;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.10));
}

.pq-reply-popup:hover {
  background: #f0f0f8;
}

/* ── Card quote block above message input ────────────────────────── */
.msg-card-quote-wrap {
  padding: 10px 16px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.msg-card-quote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-pale);
  border-left: 3px solid var(--indigo);
  border-radius: 8px;
  padding: 10px 12px;
}

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

.msg-card-quote-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--indigo);
  margin-bottom: 4px;
}

.msg-card-quote-q {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-card-quote-a {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-card-quote-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  margin-top: -1px;
  transition: color 0.12s;
  -webkit-appearance: none;
}

.msg-card-quote-dismiss:hover {
  color: var(--navy);
}

/* ── In-chat card reply bubble rendering ─────────────────────────── */
.msg-card-reply-block {
  background: rgba(255, 255, 255, 0.15);
  border-left: 2.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 7px 10px;
  margin-bottom: 7px;
}

.msg-card-reply-block.theirs {
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--indigo);
}

.msg-card-reply-q {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  line-height: 1.4;
}

.msg-card-reply-q.theirs {
  color: var(--indigo);
}

.msg-card-reply-a {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.msg-card-reply-a.theirs {
  color: var(--navy);
}

.msg-card-reply-text {
  margin-top: 2px;
}