/* =========================================================
   संबंध | Marathi Matrimony — Shared Stylesheet
   ========================================================= */

:root {
  --maroon-900: #5c0f24;
  --maroon-800: #7a1330;
  --maroon-700: #8f1638;
  --maroon-600: #a91b47;
  --maroon-100: #fbe7ec;
  --gold-600: #c98a1f;
  --gold-500: #e0a63b;
  --gold-100: #fdf1dd;
  --cream-100: #f5f5f7;
  --cream-200: #fdf3e4;
  --cream-300: #f9ead4;
  --ink-900: #1e2733;
  --ink-800: #293848;
  --ink-700: #34495e;
  --ink-600: #4f6274;
  --ink-500: #768493;
  --ink-300: #a3aeb8;
  --line: #e4e4e4;
  --green: #1f9d55;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 6px 24px rgba(92, 15, 36, 0.08);
  --shadow-pop: 0 14px 40px rgba(92, 15, 36, 0.16);
}

* {
  box-sizing: border-box;
}

/* Constant desktop content width — 80rem (1280px at the default 16px
   root), same on every laptop/monitor size from the lg breakpoint up.
   Deliberately does NOT keep growing on wider screens (no more escalating
   1280px->1520px) — client asked for pages to stay visually "constant"
   regardless of desktop/laptop size. rem (not px) throughout so browser
   zoom / user font-size settings scale the whole layout together instead
   of the container size and text size drifting apart. Mobile/tablet
   (below the lg breakpoint) are untouched — this block only exists at
   min-width: 62rem. */

@media (min-width: 62rem) {
  .container {
    max-width: 80rem;
  }
  /* Header content mirrors .container's max-width exactly, so the header
     lines up with the page content below it instead of stretching
     edge-to-edge — mobile/tablet untouched (still full width, container-fluid,
     exactly as before). */
  .mm-header-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Search page's center+right split now matches Profile Detail/Activity
     pixel-for-pixel: Bootstrap's col-lg-9/col-lg-3 are PROPORTIONAL
     (75%/25% of whatever width is available), while the other pages use
     a FIXED 18.75rem right column — that mismatch was the actual cause
     of the left/right sidebar and center width looking different from
     page to page. Overriding the two column widths here makes every
     dash-shell/mm-pd-page layout compute to the exact same numbers.
     Mobile/tablet (below 62rem) still use Bootstrap's normal col-lg-9/
     col-lg-3 stacking behavior, untouched. */
  .mm-search-main-col {
    flex: 1 1 0;
    max-width: none;
    width: auto;
  }
  .mm-search-right-col {
    flex: 0 0 15.625rem;
    max-width: 15.625rem;
    width: 15.625rem;
  }
}

/* Google Translate widget: keep translation working, hide every bit of
   Google's own UI (top banner, tooltips, highlight) since the custom
   dropdown in the header is what visitors actually interact with.
   iframe-tag-qualified selectors + !important are needed because
   Google's script re-applies its own inline styles after load. */
html body {
  top: 0px !important;
  position: static !important;
}
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight,
.skiptranslate > iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
}
#google_translate_element {
  display: none !important;
}
.mm-lang-dropdown .dropdown-menu {
  min-width: 180px;
}

.mm-typeahead-wrap {
  position: relative;
}
.mm-typeahead-dropdown {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  max-height: 240px;
  overflow-y: auto;
  z-index: 2000;
}
.mm-typeahead-dropdown.show {
  display: block;
}
.mm-typeahead-item {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink-900);
}
.mm-typeahead-item:hover,
.mm-typeahead-item.active {
  background: var(--maroon-100);
  color: var(--maroon-800);
}

/* Footer accordion — collapsed-by-default sections on mobile (Jeevansathi-
   style, avoids one extremely long footer), always expanded on desktop. */
.mm-footer-col-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-footer-toggle-ic {
  display: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.mm-footer-col.open .mm-footer-toggle-ic {
  transform: rotate(45deg);
}
@media (max-width: 991.98px) {
  .back-to-top {
    display: none !important;
  }
  .mm-footer-toggle-ic {
    display: inline-block;
  }
  .mm-footer-col-body {
    display: none;
  }
  .mm-footer-col.open .mm-footer-col-body {
    display: block;
  }
  .mm-footer-col-toggle {
    padding: 0.6rem 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

body {
  font-family: "Lexend", "Noto Sans Devanagari", sans-serif;
  background: var(--cream-100);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.font-display {
  font-family: "Noto Sans Devanagari", "Lexend", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
}

a {
  text-decoration: none;
  color: inherit;
}

.text-maroon {
  color: var(--maroon-700) !important;
}
.bg-maroon {
  background: var(--maroon-700) !important;
}
.text-muted-soft {
  color: var(--ink-500);
}

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--maroon-800);
  border: 1px solid var(--maroon-800);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  transition: 0.2s ease;
}
.btn-brand:hover {
  background: var(--maroon-900);
  border-color: var(--maroon-900);
  color: #fff;
}
.btn-outline-brand {
  background: #fff;
  border: 1.5px solid var(--maroon-700);
  color: var(--maroon-700);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.65rem 1.4rem;
  transition: 0.2s ease;
}
.btn-outline-brand:hover {
  background: var(--maroon-100);
  color: var(--maroon-800);
}
/* Toggle button groups (e.g. "I am: Groom / Bride") use Bootstrap's
   hidden-radio .btn-check pattern with our custom .btn-outline-brand —
   Bootstrap only ships :checked styling for its own .btn-outline-* classes,
   so without this rule the selected option looked identical to the
   unselected one. */
.btn-check:checked + .btn-outline-brand,
.btn-check:active + .btn-outline-brand {
  background: var(--maroon-700);
  color: #fff;
  border-color: var(--maroon-700);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
}
.btn-gold:hover {
  color: #fff;
  filter: brightness(0.97);
}
.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold-500);
  color: var(--gold-600);
  font-weight: 600;
  border-radius: 10px;
}
.btn-outline-gold:hover {
  background: var(--gold-100, #fdf1dd);
  color: var(--gold-600);
}
.btn-outline-gold:disabled {
  opacity: 0.6;
}
.mm-pd-horoscope-cta {
  margin-top: 0.9rem;
  background: linear-gradient(135deg, #2b1a10, #1a1108);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.mm-pd-horoscope-cta strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}
.mm-pd-horoscope-cta .btn {
  width: 100%;
}
.btn-sm-pill {
  border-radius: 30px;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}

/* ---------- Navbar ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-logo .heart-icon {
  width: 42px;
  height: 42px;
  background: var(--maroon-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-700);
  font-size: 1.3rem;
}
.brand-logo .brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
@media (min-width: 992px) {
  .brand-logo .brand-logo-img {
    height: 44px;
  }
}
.brand-logo .brand-text h1 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--maroon-800);
  line-height: 1.1;
}
.brand-logo .brand-text small {
  font-size: 0.65rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}
.main-nav .nav-link {
  font-weight: 500;
  color: var(--ink-700);
  padding: 0.5rem 0.9rem !important;
  border-radius: 8px;
  font-size: 0.95rem;
}
.main-nav .nav-link.active {
  font-weight: 700;
}
.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink-700);
  border: 1px solid var(--line);
}
.header-icon-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--maroon-700);
  color: #fff;
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.user-chip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-500);
}
.user-chip .u-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
}
.user-chip .u-hi {
  font-size: 0.72rem;
  color: var(--ink-500);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 1.5rem;
  background-color: var(--cream-100);
  background-image: var(--mm-hero-bg-desktop);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  min-height: 560px;
}
.hero-section .container {
  position: relative;
}
.hero-content {
  max-width: 620px;
}
.hero-heading {
  font-size: 2.6rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero-heading .accent {
  color: var(--maroon-700);
}
.hero-subtext {
  color: var(--ink-700);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 1.6rem;
}
.hero-trust-row {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 78px;
  text-align: center;
}
.hero-trust-ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--maroon-100);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.hero-trust-item span:last-child {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.25;
}
.hero-cta-row {
  margin-bottom: 0.5rem;
}
.hero-cta-note {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin: 0;
}
.hero-trust-card {
  position: absolute;
  top: 2rem;
  right: 0;
  z-index: 2;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  width: 250px;
  box-shadow: var(--shadow-pop);
}
.hero-trust-card-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-100, #fdf0d5);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}
.hero-trust-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.9rem;
}
.hero-trust-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-trust-card ul li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.6rem;
}
.hero-trust-card ul li:last-child {
  margin-bottom: 0;
}
.hero-trust-card ul li i {
  color: var(--maroon-700);
}
@media (max-width: 991.98px) {
  .hero-section {
    background-image: var(--mm-hero-bg-mobile);
    background-position: top center;
    padding: 0 0 1.5rem;
    min-height: 0;
  }
  .hero-section::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 75.4%;
  }
  .hero-content {
    max-width: none;
    padding: 0 0.5rem;
  }
  /* Less text over the photo on mobile — the heading/description/CTA
     note take up room the photo should have instead; the trust icons
     + Register button are enough context here. */
  .hero-heading,
  .hero-subtext,
  .hero-cta-note {
    display: none;
  }
  .hero-trust-row {
    gap: 0.7rem;
  }
  .hero-trust-item {
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem 0.4rem 0.4rem;
    box-shadow: var(--shadow-card);
    flex: 1 1 0;
  }
  .hero-cta-row {
    margin-bottom: 2.5rem;
  }
  .quick-search-card {
    margin-top: -1.5rem;
  }
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  text-align: center;
}
.locked-overlay .lock-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.locked-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

/* ---------- Quick search bar ---------- */
.quick-search-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 3;
  border: 1px solid var(--line);
}
.quick-search-card label {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.quick-search-card .form-select,
.quick-search-card .form-control {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: var(--cream-200);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-top: 1.6rem;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.stat-item .ic {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #fff;
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink-900);
}
.stat-item span {
  font-size: 0.75rem;
  color: var(--ink-500);
}

/* ---------- Section heading ---------- */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title h2 {
  font-size: 1.7rem;
}
.section-title .divider {
  width: 60px;
  height: 3px;
  background: var(--maroon-700);
  margin: 0.5rem auto 0;
  border-radius: 3px;
  position: relative;
}
.section-title .divider::after {
  content: "♥";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--maroon-700);
  font-size: 0.8rem;
  background: var(--cream-100);
  padding: 0 4px;
}

/* ---------- How it works ---------- */
.step-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  height: 100%;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.8rem;
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--maroon-100);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.7rem;
  font-size: 1.3rem;
}
.step-arrow {
  color: var(--ink-300);
  font-size: 1.3rem;
}

/* ---------- Profile cards ---------- */
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
}
.profile-card .photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, #e2c08d, #8f1638);
}
.profile-card .photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: #fff;
}
.badge-new {
  background: var(--green);
}
.badge-premium {
  background: var(--gold-600);
}
.match-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--maroon-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}
.profile-card .lock-mini {
  position: absolute;
  inset: 0;
  background: rgba(36, 20, 23, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
}
.profile-card .lock-mini .lock-circle-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card .lock-mini span {
  font-size: 0.78rem;
  font-weight: 600;
}
/* Applied to the <img> itself when mm_can_view_photos() is false — photo
   stays visible (encourages sign-up) but blurred, combined with the dark
   lock-mini overlay above for a clear "protected content" affordance. */
.blurred-photo {
  filter: blur(7px) brightness(0.9);
  transform: scale(
    1.08
  ); /* hides the soft blur edge from showing the container boundary */
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.profile-card .p-body {
  padding: 0.9rem 1rem 1rem;
}
.profile-card .p-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.profile-card .p-meta {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-card .p-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.profile-card .p-actions .btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.45rem 0.5rem;
}
.verified-tick {
  color: #1f9d55;
  font-size: 0.85rem;
}

/* ---------- Redesigned profile card additions ---------- */
.photo-count-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1f9d55;
  margin-bottom: 0.25rem;
}
.online-indicator .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d55;
  flex-shrink: 0;
}
.profile-card .p-managed-by {
  font-size: 0.7rem;
  color: var(--ink-500);
  font-style: italic;
  margin-top: 0.3rem;
}
.p-action-row {
  display: flex;
  border-top: 1px solid var(--line);
  margin: 0.8rem -1rem -1rem;
}
.p-action-row button,
.p-action-row a {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.2rem;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--ink-500);
  border-right: 1px solid var(--line);
  text-decoration: none;
}
.p-action-row button:last-child,
.p-action-row a:last-child {
  border-right: none;
}
.p-action-row i {
  font-size: 1.05rem;
}
.p-action-row [data-mm-interest-action] {
  color: var(--maroon-700);
}
.p-action-row [data-mm-favorite-toggle].active-favorite {
  color: var(--gold-600);
}
.p-action-row [data-mm-ignore-toggle] {
  color: var(--ink-500);
}
.p-action-row [data-mm-ignore-toggle]:hover {
  color: #c0392b;
}
.p-action-row .p-chat-link {
  color: #1c78b4;
}
.profile-card.mm-card-ignored {
  opacity: 0.4;
}

/* ========== Feed-style profile card (search/matches) ==========
   Full-bleed tall photo, text overlaid directly on the photo with a
   gradient for readability, circular icon buttons below — matches the
   reference mobile app design 1:1 rather than the old grid-tile card. */
.mm-feed-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}
.mm-feed-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e2c08d, #8f1638);
}
.mm-feed-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #31505f 67.52%, #022636 101.04%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.mm-photo-placeholder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55) 80%);
  pointer-events: none;
}
.mm-photo-placeholder-svg {
  width: 55%;
  height: auto;
  max-height: 70%;
}
.mm-feed-badges-top {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 2;
}
.mm-feed-badge {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.mm-feed-badge-gold {
  background: var(--gold-600);
}
.mm-feed-plan-badge {
  background: #8f1638b0;
  border: 1px solid #9d2345;
  padding: 3px 15px;
}
.mm-feed-plan-badge-above-name {
  display: inline-flex;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}
.mm-feed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 4rem 1rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
  color: #fff;
}
.mm-feed-overlay h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.mm-feed-overlay h3 i {
  font-size: 0.9rem;
  color: #6fd68f;
  vertical-align: middle;
}
.mm-feed-overlay p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  margin: 0 0 0.15rem;
}
.mm-feed-overlay .online-indicator {
  color: #6fd68f;
  margin-bottom: 0.4rem;
}
.mm-feed-overlay .online-indicator .dot {
  background: #6fd68f;
}
.mm-feed-managed-by {
  display: block;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
}
/* Action buttons overlaid on the photo itself (right-side vertical
   stack, Instagram-Reels style) instead of a separate footer strip
   below — keeps the whole card (photo + info + actions) compact enough
   to fit within a single mobile screen. */
.mm-feed-actions-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 3;
}
.mm-feed-action-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 46px;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.mm-feed-action-overlay i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(2px);
  transition: transform 0.15s ease;
}
.mm-feed-action-overlay:active i {
  transform: scale(0.9);
}
.mm-feed-action-super i {
  background: var(--gold-600);
}
.mm-feed-action-primary:active i,
.mm-feed-action-primary:hover i {
  transform: none;
}
.mm-feed-action-overlay span {
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.mm-feed-action-primary i {
  background: #8f1638a6;
}
.mm-feed-action-overlay.active-favorite i {
  background: var(--gold-600);
  animation: mmFavoritePop 0.3s ease;
}
@keyframes mmFavoritePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.mm-feed-action-overlay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mm-feed-actions-overlay-guest {
  text-decoration: none;
}
@media (min-width: 576px) {
  /* Above phone width, cap the feed at a comfortable reading column
     instead of stretching full browser width. */
  .mm-feed-list {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 767.98px) {
  /* True app-shell layout on feed pages: header, search bar, filter
     pills, and bottom nav are all fixed in place — ONLY the card list
     scrolls, filling whatever space is left via flexbox (not a guessed
     pixel calc, which broke every time any of the fixed chrome changed
     height even slightly). `dvh` (dynamic viewport height) is used
     instead of `vh` because mobile Safari/Chrome's address bar makes
     `100vh` taller than the actually-visible area before the user
     scrolls, which was cutting off the fixed bottom nav. */
  body.mm-feed-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }
  body.mm-feed-page .site-header {
    position: relative;
    top: 0;
  }
  body.mm-feed-page .dash-shell {
    height: calc(100vh - 56px - 64px);
    height: calc(100dvh - 56px - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  body.mm-feed-page .dash-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  body.mm-feed-page .mm-guest-search-shell {
    height: calc(100vh - 56px - 64px);
    height: calc(100dvh - 56px - 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
  }
  body.mm-feed-page .mm-guest-search-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  body.mm-feed-page .mm-sticky-search-bar {
    position: static;
    flex-shrink: 0;
  }
  body.mm-feed-page .row {
    flex: 1;
    min-height: 0;
    margin: 0;
  }
  body.mm-feed-page .row > .col-lg-9 {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0;
  }
  .mm-feed-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .mm-feed-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
    border-radius: 0;
    margin-bottom: 0;
  }
  .mm-feed-photo {
    height: 100%;
    aspect-ratio: unset;
  }
  /* Bottom nav: dvh-safe fixed position so it's never partially hidden
     behind a mobile browser's address bar. */
  .mm-bottom-nav {
    position: fixed;
    bottom: 0;
  }
}

.mm-sticky-search-bar {
  position: sticky;
  top: 56px;
  z-index: 900;
  background: #fff;
  padding: 0.5rem 1.1rem;
  margin-bottom: 11px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.mm-sticky-search-bar-simple {
  padding-top: 0;
}
@media (min-width: 62rem) {
  .mm-sticky-search-bar {
    top: 5rem;
  }
}
.mm-search-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.6rem 1.1rem;
  box-shadow: var(--shadow-card);
}
.mm-search-pill i {
  color: var(--ink-500);
}
.mm-search-pill input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.92rem;
  background: transparent;
}
.mm-search-pill-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mm-search-pill-btn span {
  flex: 1;
  font-size: 0.88rem;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-filter-pill-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.mm-filter-pill-row::-webkit-scrollbar {
  display: none;
}
.mm-filter-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.mm-filter-pill.active,
.mm-filter-pill:hover {
  border-color: var(--maroon-700);
  color: var(--maroon-700);
  background: var(--maroon-100);
}
.mm-filter-pill-primary {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
  color: #fff;
}
.mm-filter-pill-primary:hover {
  background: var(--maroon-800);
  color: #fff;
}

/* small avatar circle for "vau/var" mini cards on home */
.mini-profile {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.6rem 0.8rem;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.mini-profile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.mini-profile .avatar-wrap {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #e2c08d, #8f1638);
  margin-bottom: 0.6rem;
}
.mini-profile .avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-profile .avatar-wrap .lock-mini .lock-circle-sm {
  width: 34px;
  height: 34px;
}
.mini-profile h6 {
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
  font-weight: 700;
}
.mini-profile p {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin: 0;
}

/* ---------- City / community chips ---------- */
.city-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #c98a4a, #5c0f24);
}
.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.city-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
}
.community-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}
.community-chip .ic {
  color: var(--maroon-700);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-500);
}
.testimonial-card .quote-mark {
  color: var(--maroon-700);
  font-size: 1.3rem;
}
.testimonial-card small {
  color: var(--ink-500);
}
@media (max-width: 767.98px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .testimonial-card img {
    display: none;
  }
}

/* ---------- Pricing ---------- */
.price-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card > .btn {
  margin-top: auto;
}
.price-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-pop);
}
.price-card .ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-600);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.price-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.price-card .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--maroon-800);
}
.price-card .price span {
  font-size: 0.85rem;
  color: var(--ink-500);
  font-weight: 500;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.price-card ul li {
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  display: flex;
  gap: 0.5rem;
  color: var(--ink-700);
}
.price-card ul li i {
  color: var(--green);
}

/* ---------- App download strip ---------- */
.app-strip {
  background: linear-gradient(120deg, var(--maroon-800), var(--maroon-900));
  border-radius: var(--radius-md);
  color: #fff;
  padding: 1.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.app-strip h5 {
  color: #fff;
  margin-bottom: 0.2rem;
}
.app-strip p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}
.store-badge {
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.qr-box {
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.8rem;
}
.faq-item .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 0;
  margin-top: 3rem;
}
.site-footer h6 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer ul li {
  margin-bottom: 0.6rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding: 1.1rem 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}
.social-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
  z-index: 999;
}
.mm-mobile-menu-fab {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(92, 15, 36, 0.35);
  z-index: 1030;
}
.mm-mobile-menu-fab:active {
  background: var(--maroon-900);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  padding: 2.5rem 0;
}
.auth-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  position: relative;
  background: linear-gradient(160deg, #e2c08d, #5c0f24);
}
.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-visual .overlay-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(36, 15, 20, 0.75), transparent 70%);
  color: #fff;
}
.auth-visual-branded {
  background: linear-gradient(
    155deg,
    var(--maroon-800) 0%,
    var(--maroon-900) 55%,
    #3a0a18 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}
.auth-visual-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.08) 0,
      transparent 12%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.06) 0,
      transparent 14%
    ),
    radial-gradient(
      circle at 75% 85%,
      rgba(255, 255, 255, 0.07) 0,
      transparent 16%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(224, 166, 59, 0.15) 0,
      transparent 18%
    );
}
.auth-visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 420px;
}
.auth-visual-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.5rem;
  color: var(--gold-500);
  margin-bottom: 1.2rem;
}
.auth-visual-content h3 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}
.auth-visual-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}
.auth-visual-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.auth-visual-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.7rem;
}
.auth-visual-features li i {
  color: var(--gold-500);
  font-size: 1.1rem;
}
.auth-visual-content blockquote {
  border-left: 3px solid var(--gold-500);
  padding-left: 1rem;
  margin: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}
.auth-visual-content blockquote span {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}
.auth-card label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.3rem;
}
.auth-card .form-control,
.auth-card .form-select,
.form-control,
.form-select {
  border-radius: 9px;
  padding: 0.5rem 0.85rem;
}
.form-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--maroon-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
}
.form-section-title {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.6rem 0 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-child {
  margin-top: 0;
}
.trust-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.trust-row .t-item {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-700);
}
.trust-row .t-item i {
  color: var(--maroon-700);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- Dashboard layout ---------- */
.dash-shell {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  align-items: flex-start;
}
.dash-sidebar {
  width: 15.625rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}
@media (min-width: 62rem) {
  .dash-sidebar {
    position: sticky;
    top: 6.40rem;
    max-height: calc(100vh - 5.75rem);
    overflow-y: auto;
  }
}
.dash-sidebar .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--ink-700);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.dash-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  color: var(--ink-500);
}
.dash-sidebar .nav-link.active {
  font-weight: 700;
}
.dash-sidebar .badge-num {
  background: var(--maroon-100);
  color: var(--maroon-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}
.dash-main {
  flex: 1;
  min-width: 0;
}
@media (min-width: 62rem) {
  .dash-main {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
  }
  body.mm-feed-page .dash-main {
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}
.dash-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0.3rem 1rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.dash-sidebar-profile img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dash-sidebar-profile strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-900);
}
.dash-sidebar-profile a {
  font-size: 0.8rem;
  color: var(--maroon-700);
  font-weight: 600;
  text-decoration: none;
}
.dash-sidebar-nav .nav-link i:last-child {
  color: var(--ink-300);
  font-size: 0.78rem;
  width: auto;
}
.dash-sidebar-upgrade {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  background: var(--cream-200);
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 600;
  font-size: 0.88rem;
}
.dash-sidebar-upgrade-badge {
  background: var(--green, #1f9d55);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}
.dash-sidebar-upgrade .bi-chevron-right {
  margin-left: auto;
  color: var(--ink-300);
}

/* Right sidebar — Upgrade Promo (matches Jeevansathi's design) */
.dash-upgrade-promo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem;
}
@media (min-width: 62rem) {
  .dash-upgrade-promo {
    position: sticky;
    top: 6.40rem;
  }
}
.dash-upgrade-promo h6 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  color: var(--ink-900);
}
.dash-upgrade-promo h6 span {
  color: #d63638;
}
.dash-upgrade-promo ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.dash-upgrade-promo ul li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.9rem;
}
.dash-upgrade-ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dash-upgrade-offer {
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-900);
  margin-bottom: 0.8rem;
}

/* Bootstrap's .offcanvas-lg resets position to static at the lg breakpoint
   (so it behaves as a normal in-flow column instead of a drawer) — this
   restores our sticky column behavior on top of that reset. Below `lg`,
   Bootstrap's own offcanvas styles (fixed, slide-in, overlay) apply
   untouched, which is what gives the sidebar a working mobile menu. */
@media (min-width: 992px) {
  .dash-sidebar.offcanvas-lg {
    position: sticky !important;
    top: 88px;
  }
}
.dash-promo-card {
  background: linear-gradient(140deg, var(--gold-100), var(--cream-200));
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-top: 1.2rem;
  font-size: 0.8rem;
}

.mm-drawer-toggle {
  font-size: 1.4rem;
  color: var(--ink-900);
  padding: 0.25rem 0.5rem;
}

.mm-nav-drawer {
  width: 320px;
}
@media (min-width: 992px) {
  /* Flip the drawer to slide in from the right on desktop — mobile
     (below 992px) keeps opening from the left, unchanged. The hidden
     state pushes it off-screen to the right; the shown state must be
     explicitly reset back to translateX(0) here too, since the
     !important on the hidden-state transform would otherwise also
     override Bootstrap's own .show/.showing reset and keep the drawer
     permanently off-screen (looked like "only the backdrop appears"). */
  #mmNavDrawer.mm-nav-drawer {
    left: auto !important;
    right: 0 !important;
    border-right: none !important;
    border-left: 1px solid var(--line);
    transform: translateX(100%) !important;
  }
  #mmNavDrawer.mm-nav-drawer.show,
  #mmNavDrawer.mm-nav-drawer.showing {
    transform: translateX(0) !important;
  }
}
.mm-nav-drawer .offcanvas-header {
  padding-bottom: 0;
}
.mm-nav-drawer-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1.2rem 1rem;
}
.mm-nav-drawer-profile img,
.mm-nav-drawer-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--maroon-700);
  flex-shrink: 0;
}
.mm-nav-drawer-profile strong {
  font-size: 1.02rem;
}
.mm-nav-drawer-links {
  border-top: 1px solid var(--line);
  margin-top: 0.6rem;
  padding: 0.6rem 0.8rem 1rem;
  overflow-y: auto;
}
.mm-nav-drawer-links .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-900);
  font-weight: 500;
}
.mm-nav-drawer-links .nav-link i {
  width: 20px;
  text-align: center;
  color: var(--ink-900);
  margin-right: 0.4rem;
}
.mm-nav-drawer-links .nav-link.active {
  background: var(--maroon-100);
  color: var(--maroon-800);
}
.mm-nav-drawer-promo {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--maroon-700);
  margin: 0.5rem 0 0;
}
.mm-nav-drawer-hr {
  border-color: var(--line);
  margin: 1rem 0 0;
  opacity: 1;
}
.mm-nav-drawer-links .nav-link .bi-chevron-right {
  color: var(--ink-300);
  font-size: 0.8rem;
  margin-right: 0;
}
.mm-nav-drawer-link-inert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--ink-500);
  font-weight: 500;
  opacity: 0.6;
  cursor: default;
}
.mm-nav-drawer-link-inert i:first-child {
  width: 20px;
  text-align: center;
  color: var(--ink-500);
  margin-right: 0.4rem;
}

.welcome-banner {
  background: linear-gradient(120deg, var(--cream-300), var(--cream-200));
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.welcome-banner img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-500);
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: inherit;
}
.kpi-card .kpi-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.kpi-card strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
}
.kpi-card span {
  font-size: 0.75rem;
  color: var(--ink-500);
}

.side-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.side-panel h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
}
.activity-row:last-child {
  border-bottom: none;
}
.activity-row i {
  color: var(--green);
  margin-top: 0.15rem;
}
.benefit-btn {
  background: var(--cream-200);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
  height: 100%;
}
.benefit-btn i {
  color: var(--maroon-700);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* ---------- Search / Filters ---------- */
.mm-looking-for-offcanvas {
  width: 100%;
  max-width: 480px;
  margin-top: 0 !important;
}
.mm-looking-for-offcanvas .offcanvas-body {
  padding-top: calc(0.6rem + env(safe-area-inset-top, 0px));
}
.mm-fs-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1.3rem;
  line-height: 1.25;
}
.mm-fs-form {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mm-fs-screen {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.6rem 1rem 1rem;
}
.mm-fs-screen.active {
  display: flex;
}
.mm-fs-card {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}
.mm-fs-screen[data-fs-screen="main"] {
  padding: 0;
}
.mm-fs-sticky-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: inherit;
}
.mm-fs-sticky-bar .mm-fs-back {
  margin-bottom: 0;
}
.mm-fs-sticky-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.mm-fs-sticky-bar.mm-fs-sticky-bar-visible {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mm-fs-sticky-bar.mm-fs-sticky-bar-visible .mm-fs-sticky-title {
  opacity: 1;
  transform: translateY(0);
}
.mm-fs-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1rem 1rem;
}
.mm-fs-tabs-row {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
}
.mm-fs-tabs-row::-webkit-scrollbar {
  display: none;
}
.mm-fs-tab-pill {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
}
.mm-fs-tab-pill.active {
  border-color: var(--maroon-700);
  background: var(--maroon-100);
  color: var(--maroon-800);
}
.mm-fs-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-bottom: 1rem;
}
.mm-fs-acc-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mm-fs-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 1.1rem 1.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-900);
}
.mm-fs-acc-head i {
  color: var(--ink-400, #b8a8ac);
}
.mm-fs-acc-body {
  padding: 0 1.2rem 0.6rem;
}
.mm-fs-acc-body .mm-fs-row:last-child {
  border-bottom: none;
}
.mm-fs-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cream-100);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 0.4rem 0 1.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
}
.mm-fs-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mm-fs-row i:first-child {
  font-size: 1.1rem;
  color: var(--ink-500);
  width: 22px;
  text-align: center;
}
.mm-fs-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mm-fs-row-text strong {
  font-size: 0.9rem;
}
.mm-fs-row-text span {
  font-size: 0.8rem;
  color: var(--maroon-700);
}
.mm-fs-row > i:last-child {
  color: var(--ink-400, #b8a8ac);
}
.mm-fs-sub-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
  position: relative;
  min-height: 28px;
}
.mm-fs-sub-header .mm-fs-back {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.mm-fs-sub-header .mm-fs-eyebrow {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  margin-bottom: 0;
  pointer-events: none;
}
.mm-fs-back {
  border: none;
  background: transparent;
  font-size: 1.3rem;
  padding: 0.2rem 0.3rem;
  margin-bottom: 1rem;
  color: var(--ink-700);
  align-self: flex-start;
  display: inline-flex;
  flex-shrink: 0;
}
.mm-fs-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-align: center;
  margin-bottom: 0.6rem;
}
.mm-fs-screen h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.mm-fs-sub {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}
.mm-fs-sub strong {
  color: var(--ink-900);
  font-size: 1rem;
}
.mm-fs-small-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 0.4rem;
  display: block;
}
.mm-fs-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.mm-fs-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mm-fs-pill-group-heading {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--maroon-700);
  margin: 0.9rem 0 0.1rem;
}
.mm-fs-pill-group-heading:first-child {
  margin-top: 0;
}
.mm-fs-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.mm-fs-pill.selected {
  border-color: var(--maroon-700);
  background: var(--maroon-100);
  color: var(--maroon-800);
}

/* Dual-range slider (two overlapping thumbs on one track) */
.mm-fs-slider {
  position: relative;
  height: 40px;
  margin: 0 10px 1.5rem;
}
.mm-fs-slider-track {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
}
.mm-fs-slider-range {
  position: absolute;
  height: 100%;
  background: var(--maroon-700);
  border-radius: 4px;
}
.mm-fs-slider-handle {
  position: absolute;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--maroon-700);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transform: translateX(-50%);
  touch-action: none;
}
.mm-fs-bottom-bar {
  flex-shrink: 0;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mm-fs-search-btn {
  width: 100%;
  border: none;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 99px;
  font-size: 0.95rem;
}
.mm-fs-okay {
  width: 100%;
  border: none;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem;
  border-radius: 99px;
  font-size: 0.95rem;
  margin-top: auto;
  flex-shrink: 0;
}

.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  margin-bottom: 1.3rem;
}
@media (min-width: 992px) {
  .mm-matches-filter {
    position: sticky;
    top: 88px;
    align-self: flex-start;
  }
  .mm-search-filter.offcanvas-lg {
    position: sticky !important;
    top: 88px;
  }
}
.filter-card label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 0.25rem;
}
.result-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.quick-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-700);
}
.quick-link-list a:last-child {
  border-bottom: none;
}
/* ---------- Profile detail ---------- */
.detail-photo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.detail-photo-card .photo-box {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e2c08d, #8f1638);
}
.detail-photo-card .photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.info-table {
  width: 100%;
  font-size: 0.88rem;
}
.info-table td {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-700);
}
.info-table td:first-child {
  color: var(--ink-500);
  width: 45%;
}
.tab-pillnav {
  max-width: 100%;
}
.tab-pillnav .nav-link {
  border-radius: 8px 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
  border: none;
  padding: 0.7rem 1rem;
  white-space: nowrap;
}
.tab-pillnav .nav-link.active {
  color: var(--maroon-700);
  border-bottom: 2px solid var(--maroon-700);
  background: transparent;
}
@media (max-width: 767.98px) {
  .tab-pillnav .nav-link {
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-200);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  margin: 0.2rem;
}
.family-info-card,
.highlight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}

/* ---------- Chat ---------- */
.chat-shell {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  height: 78vh;
}
.chat-list {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.chat-list-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.chat-list-item.active,
.chat-list-item:hover {
  background: var(--cream-200);
}
.chat-list-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-window-head {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.chat-window-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-body {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  background: var(--cream-100);
}
.msg-bubble {
  max-width: 65%;
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  font-size: 0.87rem;
  margin-bottom: 0.8rem;
}
.msg-in {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-out {
  background: var(--maroon-700);
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 0.25rem;
  display: block;
}
.chat-input-row {
  padding: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.6rem;
}
.chat-input-row .form-control {
  border-radius: 24px;
}

/* ---------- Utility ---------- */
.rounded-xl {
  border-radius: var(--radius-lg) !important;
}
.shadow-soft {
  box-shadow: var(--shadow-card) !important;
}
.bg-cream {
  background: var(--cream-200) !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 70px;
  }
  body.mm-chat-page {
    padding-bottom: 0;
  }
  .hero-heading {
    font-size: 1.9rem;
  }
  .dash-shell {
    flex-direction: column;
    padding-bottom: 90px;
  }
  /* .dash-sidebar's mobile positioning is now fully handled by Bootstrap's
     .offcanvas-lg classes (see templates/parts/dashboard-sidebar.php) —
     do NOT set width/position here, it fights with the offcanvas system
     and was previously causing a large blank space + broken drawer. */
  .chat-shell {
    flex-direction: column;
    height: calc(100vh - 150px);
    height: calc(100dvh - 150px);
    min-height: 420px;
    position: relative;
    overflow: hidden;
  }
  .chat-list {
    width: 100%;
    height: 100%;
    max-height: none;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .chat-window {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .chat-input-row {
    flex-shrink: 0;
  }
  /* WhatsApp-style single-screen-at-a-time chat on mobile: only the list
     shows by default; opening a conversation (JS adds
     .mm-chat-conversation-open to #mm-chat-app) swaps to a full-height
     conversation view, and the back button reverses it. Desktop ignores
     this entirely — both panels always show side by side there. */
  #mm-chat-app .chat-window {
    display: none;
  }
  #mm-chat-app.mm-chat-conversation-open .chat-list {
    display: none;
  }
  #mm-chat-app.mm-chat-conversation-open .chat-window {
    display: flex;
  }
  .chat-back-btn {
    padding: 0.2rem 0.35rem;
    font-size: 1.05rem;
    color: var(--ink-700);
    flex-shrink: 0;
    border: none;
    background: transparent;
  }
  .app-strip {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  body.mm-chat-page .site-footer,
  body.mm-chat-page .back-to-top,
  body.mm-chat-page .mm-bottom-nav,
  body.mm-chat-page .site-header {
    display: none;
  }
  body.mm-chat-page {
    padding-bottom: 0;
  }
  /* Chat list page: keep the bottom-nav, hide just the top site-header. */
  body.mm-chat-list-page .site-header {
    display: none;
  }
  /* Conversation overlay open (JS adds .mm-pes-open): go fully immersive,
     same as mm-chat-page, so the overlay isn't fighting a visible
     header/bottom-nav underneath it. */
  body.mm-chat-list-page.mm-pes-open .site-header,
  body.mm-chat-list-page.mm-pes-open .mm-bottom-nav,
  body.mm-chat-list-page.mm-pes-open .site-footer {
    display: none;
  }
  body.mm-chat-list-page.mm-pes-open {
    padding-bottom: 0;
  }
  .mm-qc-shell {
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
  }
  .mm-qc-shell .mm-chat-messages {
    max-height: calc(100vh - 230px);
    max-height: calc(100dvh - 230px);
  }
}

/* Restore sticky positioning on desktop for the sidebars — Bootstrap's
   .offcanvas-lg / .offcanvas-xl reset position to static (with
   !important) at their breakpoint so they display inline instead of as
   a drawer; these rules put sticky back on top of that reset. */
@media (min-width: 992px) {
  .dash-sidebar.offcanvas-lg {
    position: sticky !important;
    top: 88px;
  }
}
@media (min-width: 992px) {
  .mm-search-filter.offcanvas-lg {
    position: sticky !important;
    top: 88px;
  }
  .mm-matches-filter {
    position: sticky;
    top: 88px;
    align-self: flex-start;
  }
}

/* ---------- Mobile bottom app-navigation bar ---------- */
.mm-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(36, 15, 20, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-radius: 20px 20px 0px 0px;
}
.mm-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 15px 2px 6px;
  color: var(--ink-500);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
}
.mm-bottom-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
}
.mm-bottom-nav-item.active {
  color: var(--maroon-700);
}
.mm-bottom-nav-item.mm-bottom-nav-cta {
  color: var(--maroon-700);
}
.mm-bottom-nav-brand-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(0.4);
}
.mm-bottom-nav-item-brand.active .mm-bottom-nav-brand-icon {
  opacity: 1;
  filter: none;
}
.mm-bottom-nav-icon-wrap {
  position: relative;
  display: inline-flex;
}
.mm-bottom-nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--maroon-700);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

@media (max-width: 767.98px) {
  .hero-heading {
    font-size: 1.6rem;
  }
  .quick-search-card {
    padding: 1rem;
  }
  .stat-strip {
    padding: 1rem;
  }
  .stat-item strong {
    font-size: 0.9rem;
  }
  /* How It Works / Membership Plans become a swipeable horizontal
     carousel on mobile instead of stacking full-width — much less
     scrolling to see everything, and matches the reference app's feel. */
  .row.mm-mobile-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: flex-start !important;
    padding-bottom: 0.5rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .row.mm-mobile-scroll::-webkit-scrollbar {
    display: none;
  }
  .row.mm-mobile-scroll > .col,
  .row.mm-mobile-scroll > [class*="col-"] {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: start;
  }
  .auth-visual {
    display: none;
  }
  /* More breathing room for form fields on small screens — the default
     container gutter (24px) plus the card's own 2rem padding was
     squeezing inputs down to a noticeably narrow, cramped width. */
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .auth-card {
    padding: 1.1rem;
  }
  .dash-shell {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ---------- Quick Chat (send interest + first message) ---------- */
.mm-qc-shell {
  max-width: 600px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.mm-chat-actions-row-center {
  justify-content: center;
}
.mm-qc-send-interest,
.mm-qc-interest-sent {
  flex: 0 0 auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.mm-qc-interest-sent {
  color: #1f9d55;
  border-color: #cdeedb;
  text-decoration: none;
}
.mm-qc-footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem;
  flex-shrink: 0;
}
.mm-qc-note {
  font-size: 0.72rem;
  color: var(--ink-500);
  text-align: center;
  margin-bottom: 0.6rem;
}

/* ================= Profile Detail Page ================= */
.mm-pd-shell {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  padding-bottom: 90px;
}
.mm-pd-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent);
}
.mm-pd-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
}
.mm-pd-nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.mm-pd-nav-prev {
  left: -18px;
  border-radius: 0 50% 50% 0;
  padding-right: 4px;
}
.mm-pd-nav-next {
  right: -18px;
  border-radius: 50% 0 0 50%;
  padding-left: 4px;
}
.mm-pd-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #31505f 67.52%, #022636 101.04%);
}
.mm-pd-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 992px) {
  /* Desktop: show the whole photo (object-fit:contain, nothing cropped)
     inside a wider 5:3 frame, with a blurred copy of the same image
     filling in behind it so there's no letterboxing/empty bars —
     applies wherever profile-detail-body.php is used (Profile Detail,
     Activity Detail, Interests, etc, since they all share this
     partial). Mobile keeps the original cropped full-bleed look,
     completely unchanged. */
  .mm-pd-photo {
    aspect-ratio: 5/3;
    overflow: hidden;
  }
  .mm-pd-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--mm-pd-bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(1.5rem) brightness(0.7);
    transform: scale(1.15); /* avoid blurred edges showing the frame boundary */
  }
  .mm-pd-photo img {
    position: relative;
    z-index: 1;
    object-fit: contain;
  }
  .mm-pd-photo .mm-pd-headline,
  .mm-pd-photo .lock-mini {
    z-index: 2;
  }
}
.mm-pd-icon-btn-count {
  width: auto;
  padding: 0 0.7rem;
  border-radius: 20px;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.mm-pd-headline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #fff;
}
.mm-pd-headline h1 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  color: #fff;
}
.mm-pd-headline-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.4rem;
}
.mm-pd-headline-meta span {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.mm-pd-managed-by {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.mm-pd-tabs {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}
.mm-pd-tabs::-webkit-scrollbar {
  display: none;
}
.mm-pd-tabs a {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
}
.mm-pd-tabs a.active {
  color: var(--ink-700);
  border-bottom-color: var(--maroon-700);
}
.mm-pd-tabs.mm-pd-tabs-stuck {
  box-shadow: var(--shadow-card);
}
.mm-pd-body {
  background: var(--cream-100);
  padding: 1rem 1rem 0.5rem;
}
.mm-pd-section {
  scroll-margin-top: 70px;
  margin-bottom: 1.4rem;
}
.mm-pd-section-title {
  font-weight: 500;
  font-size: 1.40rem;
  margin-bottom: 0.7rem;
}
.mm-pd-about-box {
  background: var(--cream-100);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-top: 0.8rem;
  overflow: hidden;
}
.mm-pd-about-box-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--maroon-700);
  margin: 0 0 0.35rem;
}
.mm-pd-about-box-text {
  font-size: 0.86rem;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.mm-pd-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow-card);
}
.mm-pd-about-text {
  font-size: 0.88rem;
  color: var(--ink-700);
  font-style: italic;
  margin: 0 0 0.3rem;
  padding: 0.2rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-pd-about-text.mm-pd-expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.mm-pd-view-more {
  border: none;
  background: transparent;
  color: var(--ink-700);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 0 1rem;
  display: block;
}
.mm-pd-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
}
.mm-pd-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mm-pd-info-list li:last-child {
  border-bottom: none;
}
.mm-pd-info-list i {
  color: var(--ink-500);
  width: 35px;
  text-align: center;
  background: #f6f7fa;
  border-radius: 100%;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-pd-lifestyle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mm-pd-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cream-200);
  border-radius: 20px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-pd-row-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  padding: 0.4rem 0;
}
.mm-pd-row-item i {
  font-size: 1rem;
  color: var(--ink-500);
  width: 35px;
  height: 35px;
  background: #f6f7fa;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mm-pd-row-item strong {
  display: block;
}
.mm-pd-row-item span {
  font-size: 0.78rem;
  color: var(--ink-500);
}
.mm-pd-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mm-pd-photo-grid-cell {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
}
.mm-pd-photo-grid-collage .mm-pd-photo-grid-cell-hidden {
  display: none;
}
.mm-pd-photo-grid-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  display: block;
}
.mm-pd-photo-grid-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
}
.mm-pd-family-tree {
  position: relative;
}
.mm-pd-family-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem 0;
  position: relative;
}
.mm-pd-family-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink-500);
  margin-top: 5px;
  flex-shrink: 0;
}
.mm-pd-family-row:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: -10px;
  width: 1px;
  background: var(--line);
}
.mm-pd-family-row strong {
  display: block;
  font-size: 0.85rem;
}
.mm-pd-family-row span {
  font-size: 0.8rem;
  color: var(--ink-500);
}

.mm-pd-action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0));
  z-index: 20;
  display: flex;
  background: rgba(20, 15, 18, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.7rem 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.mm-pd-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border: none;
  background: transparent;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 0.2rem;
}
.mm-pd-action i {
  font-size: 1.1rem;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-pd-action:nth-child(2) i {
  background: #6b5b95;
}
.mm-pd-action:nth-child(3) i {
  background: rgba(255, 255, 255, 0.15);
}
.mm-pd-action:last-child i {
  background: #1c78b4;
}
.mm-pd-action-super i {
  background: var(--gold-600) !important;
}
.mm-pd-action.active-favorite i {
  background: var(--gold-600);
}
.mm-pd-action.active-favorite {
  color: var(--gold-500);
}
.mm-pd-action.disabled {
  opacity: 0.5;
}

.mm-pd-more-sheet .offcanvas-body {
  padding: 0.6rem 0;
}
@media (min-width: 992px) {
  /* On desktop these read better as a small centered modal than a
     full-width bottom sheet — mobile is untouched (this block only
     exists at min-width:992px). Bootstrap's offcanvas-bottom still
     drives the show/hide + backdrop; only the sheet's own box is
     repositioned/resized here. */
  .mm-pd-more-sheet,
  .mm-mp-masked-sheet,
  .mm-mp-privacy-sheet,
  .mm-city-picker-sheet {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 26rem;
    max-width: calc(100vw - 2rem);
    height: auto !important;
    max-height: 85vh;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
  }
  .mm-city-picker-sheet .offcanvas-body {
    max-height: 85vh;
  }
}
.mm-pd-sheet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--ink-900);
}
.mm-pd-sheet-item i:first-child {
  font-size: 1.2rem;
  color: var(--ink-500);
  margin-top: 0.15rem;
}
.mm-pd-sheet-item strong {
  display: block;
  font-size: 0.92rem;
}
.mm-pd-sheet-item span {
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.4;
}

.mm-pd-lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  display: none;
  flex-direction: column;
}
.mm-pd-lightbox.show {
  display: flex;
}
.mm-pd-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.mm-pd-lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.mm-pd-lightbox-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mm-pd-lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem;
  overflow-x: auto;
  flex-shrink: 0;
}
.mm-pd-lightbox-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.5;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.mm-pd-lightbox-thumb.active {
  opacity: 1;
  border-color: var(--maroon-700);
}

.mm-activity-detail-header {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.85rem;
}
.mm-activity-detail-count {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 0.78rem;
}
.mm-activity-detail-back {
  color: var(--ink-900);
  font-size: 1.2rem;
  text-decoration: none;
}
.mm-activity-detail-tabs {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 1.4rem;
  padding: 0 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mm-activity-detail-tabs a {
  padding: 0.7rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.mm-activity-detail-tabs a.active {
  color: var(--maroon-700);
  border-bottom-color: var(--maroon-700);
}

.mm-pd-action-bar-2col .mm-pd-action-reject i {
  background: rgba(255, 255, 255, 0.15);
}
.mm-pd-action-bar-2col .mm-pd-action-accept i {
  background: #1f9d55;
}
.mm-pd-action-bar-1col {
  justify-content: center;
}
.mm-pd-action-bar-1col .mm-pd-action {
  flex: 0 0 auto;
  padding: 0 1.5rem;
}

@keyframes mm-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.mm-spin {
  display: inline-block;
  animation: mm-spin 0.7s linear infinite;
}

/* ================= Activity Page ================= */
.mm-activity-page {
  min-width: 0;
}
.mm-activity-tiles {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem;
  margin-bottom: 1.6rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 61.9375rem) {
  .mm-activity-tiles {
    max-width: calc(100vw - 1.7rem);
  }
}
.mm-activity-tiles::-webkit-scrollbar {
  display: none;
}
.mm-activity-tile {
  flex: 0 0 130px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1rem 0.9rem;
  text-decoration: none;
  color: var(--ink-900);
}
.mm-activity-tile i {
  font-size: 1.1rem;
  color: var(--ink-500);
}
.mm-activity-tile strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.4rem 0 0.15rem;
}
.mm-activity-tile span {
  font-size: 0.75rem;
  color: var(--ink-500);
  line-height: 1.3;
  display: block;
}
.mm-activity-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.mm-activity-section-head h5 {
  font-weight: 800;
  margin-bottom: 0.15rem;
}
.mm-activity-count {
  color: var(--ink-500);
  font-weight: 500;
  font-size: 0.85rem;
}
.mm-activity-section-head p {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin: 0;
}
.mm-activity-view-all {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-700);
  flex-shrink: 0;
}
.mm-activity-scroll-row {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 61.9375rem) {
  .mm-activity-scroll-row {
    max-width: calc(100vw - 1.7rem);
  }
}
.mm-activity-scroll-row::-webkit-scrollbar {
  display: none;
}
.mm-mini-card {
  flex: 0 0 120px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1rem 0.7rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink-900);
}
.mm-mini-card-avatar {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream-200);
}
.mm-mini-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mm-mini-card-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-700);
  font-size: 1.4rem;
}
.mm-mini-card strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}
.mm-mini-card span {
  font-size: 0.72rem;
  color: var(--ink-500);
}
.mm-activity-scroll-row-portrait {
  align-items: stretch;
}
.mm-mini-card-portrait {
  flex: 0 0 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-900);
}
.mm-mini-card-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
.mm-mini-card-portrait .mm-photo-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-mini-card-portrait-body {
  padding: 0.7rem 0.8rem;
}
.mm-mini-card-portrait-body strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.mm-mini-card-portrait-body span {
  font-size: 0.72rem;
  color: var(--ink-500);
}

/* ================= My Profile (edit-profile.php redesign) ================= */
.mm-mp-shell {
  max-width: 600px;
  margin: 0 auto;
  background: var(--cream-100);
  position: relative;
  padding-bottom: 2.5rem;
}
.mm-mp-summary-body {
  padding: 1rem 1rem 0.5rem;
}
.mm-mp-badge-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(90deg, var(--gold-100), var(--cream-200));
  border: 1px solid var(--gold-500);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--ink-900);
}
.mm-mp-badge-banner .mm-mp-badge-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.mm-mp-badge-banner strong {
  display: block;
  font-size: 0.86rem;
}
.mm-mp-badge-banner span {
  font-size: 0.78rem;
  color: var(--ink-500);
}
.mm-mp-completion-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.mm-mp-completion-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--maroon-700);
  background: #fff;
}
.mm-mp-completion-card strong {
  display: block;
  font-size: 0.86rem;
}
.mm-mp-completion-card a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon-700);
  text-decoration: none;
}
.mm-mp-prompts-card {
  background: linear-gradient(135deg, #fff, var(--maroon-100));
  border-radius: 16px;
  padding: 1.1rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
}
.mm-mp-prompts-new {
  display: inline-block;
  background: var(--maroon-700);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.mm-mp-prompts-card h6 {
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.mm-mp-prompts-card p {
  font-size: 0.82rem;
  color: var(--ink-500);
  margin-bottom: 0.9rem;
}
.mm-mp-prompts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: var(--maroon-700);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.mm-mp-section {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-card);
}
.mm-mp-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.mm-mp-section-head h6 {
  font-weight: 800;
  margin: 0 0 0.15rem;
}
.mm-mp-section-head p {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin: 0;
}
.mm-mp-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream-100);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  text-decoration: none;
}
.mm-mp-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm-mp-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.mm-mp-info-list li:last-child {
  border-bottom: none;
}
.mm-mp-info-list i {
  color: var(--ink-500);
  width: 35px;
  height: 35px;
  text-align: center;
  flex-shrink: 0;
  background: #f6f7fa;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-mp-info-list .mm-mp-add {
  margin-left: auto;
  color: var(--maroon-700);
  font-weight: 700;
  font-size: 0.8rem;
}
.mm-mp-about-text {
  font-size: 0.88rem;
  color: var(--ink-700);
  margin: 0;
}
.mm-mp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.mm-mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream-200);
  border-radius: 20px;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-mp-vibe-cta strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}
.mm-mp-habit-btn {
  border: 1px dashed var(--line);
  background: var(--cream-100);
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
  text-align: center;
  flex: 1;
}
.mm-mp-habit-row {
  display: flex;
  gap: 0.6rem;
}

/* ---- Photo header (reuses .mm-pd-photo/.mm-pd-topbar/.mm-pd-headline) ---- */
.mm-mp-photo-wrap {
  position: relative;
}

/* ================= Profile Edit Screens (full-screen drilldowns) ================= */
.mm-pes-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mm-pes-screen.active {
  display: flex;
}
.mm-pes-topbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mm-pes-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--cream-100);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mm-pes-topbar-title {
  flex: 1;
  text-align: center;
  margin-right: 36px;
}
.mm-pes-topbar-title h5 {
  font-weight: 800;
  margin: 0;
  font-size: 1.05rem;
}
.mm-pes-topbar-title span {
  font-size: 0.76rem;
  color: var(--ink-500);
}
.mm-pes-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.2rem 1.1rem 1rem;
}
.mm-pes-field {
  margin-bottom: 1.3rem;
}
.mm-pes-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 0.35rem;
}
.mm-pes-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: transparent;
  border-radius: 0;
}
.mm-pes-input:focus {
  outline: none;
  border-bottom-color: var(--maroon-700);
}
textarea.mm-pes-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  resize: vertical;
}
.mm-pes-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 0.95rem;
}
.mm-pes-locked i {
  color: var(--ink-300);
}
.mm-pes-hint {
  font-size: 0.78rem;
  color: var(--ink-500);
  margin: 0.4rem 0 0;
  line-height: 1.5;
}
.mm-pes-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-700);
  margin-top: 0.4rem;
}
.mm-pes-check-sub {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin: 0.1rem 0 0 1.6rem;
}
.mm-pes-row {
  display: flex;
  gap: 0.8rem;
}
.mm-pes-row .mm-pes-field {
  flex: 1;
}
.mm-pes-footer {
  flex-shrink: 0;
  padding: 0.9rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line);
  background: #fff;
}
.mm-pes-footer .btn-brand {
  width: 100%;
  border-radius: 30px;
  padding: 0.8rem;
  font-size: 0.98rem;
}
@media (max-width: 991.98px) {
  body.mm-pes-open {
    overflow: hidden;
  }
}

@media (min-width: 992px) {
  /* .mm-pes-screen becomes a normal, in-flow block instead of a
     fixed/absolute overlay on desktop — this is what actually fixes
     everything at once: the old position:fixed;left:50% centered
     against the VIEWPORT (wrong once a sidebar shifts the true center),
     and switching to position:absolute still needed a correctly
     positioned DIRECT parent, which .mm-chat-shell/.mm-mp-shell/etc
     didn't have, so it skipped past them to .mm-pd-page-main and lost
     its real height context (the "content collapses to a sliver, huge
     empty space below" bug). Removing the special positioning
     entirely sidesteps all of that: the screen just flows normally
     inside whichever shell wraps it, sized by its own content, and the
     page scrolls the ordinary way — same fix for Chat, Edit Profile,
     Account Settings, and Help & Support at once. */
  .mm-pes-screen {
    position: static;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-radius: inherit;
    overflow-y: visible;
  }

  /* Chat conversation specifically needs its own internal scroll region
     (header + input stay put, only the message list scrolls) — this
     requires an explicit height so .mm-chat-messages's flex:1 +
     overflow-y:auto has something concrete to size against. Other
     .mm-pes-screen pages intentionally don't get this; they scroll
     with the page instead using their natural content height. */
  #mmChatConversationScreen.mm-pes-screen.active {
    height: calc(100vh - 9.40rem);
    max-height: calc(100vh - 9.40rem);
  }
}

.mm-mp-badge-banner {
  border: 1px solid var(--gold-500);
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mm-mp-badge-highlight {
  color: var(--maroon-700);
}
.mm-mp-completion-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: none;
}
.mm-mp-completion-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon-700);
}
.mm-mp-interest-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.mm-mp-interest-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-900);
}
.mm-mp-chip-filled {
  background: var(--maroon-100);
  color: var(--maroon-800);
  font-weight: 700;
}

/* ---- Photos summary collage ---- */
.mm-mp-photo-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  cursor: pointer;
}
.mm-mp-photo-collage-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}
.mm-mp-photo-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-mp-photo-collage-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ---- Quick facts horizontal scroll strip ---- */
.mm-mp-quickfacts-scroll {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 1rem;
  margin-bottom: 0.3rem;
  scrollbar-width: none;
}
.mm-mp-quickfacts-scroll::-webkit-scrollbar {
  display: none;
}
.mm-mp-quickfacts-card {
  flex: 0 0 auto;
  width: 132px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0.9rem 0.8rem;
}
.mm-mp-quickfacts-card i {
  font-size: 1.3rem;
  color: var(--ink-500);
  display: block;
  margin-bottom: 0.5rem;
}
.mm-mp-quickfacts-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
  line-height: 1.25;
  display: block;
}

/* ---- Ready to Connect (own-profile preview) ---- */
.mm-mp-r2c-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.mm-mp-r2c-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ---- Masked contact upgrade sheet ---- */
.mm-mp-masked-sheet .offcanvas-body {
  padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0));
  position: relative;
}
.mm-mp-masked-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
}
.mm-mp-masked-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}

/* ---- Gold Badge upsell screen ---- */
.mm-mp-badge-screen-photo {
  position: relative;
  height: 42vh;
  min-height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.mm-mp-badge-screen-photo img,
.mm-mp-badge-screen-photo .mm-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.mm-mp-badge-screen-photo .mm-pd-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.mm-mp-badge-screen-photo .mm-pd-headline {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
}
.mm-mp-badge-sheet {
  position: relative;
  background: linear-gradient(180deg, var(--cream-200), #fff 30%);
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
  flex: 1;
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mm-mp-badge-framed-photo {
  position: relative;
  width: 130px;
  height: 150px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-card);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.mm-mp-badge-framed-photo img,
.mm-mp-badge-framed-photo .mm-photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mm-mp-badge-check {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.mm-mp-badge-heading {
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.mm-mp-badge-gold {
  color: var(--gold-600, #b7860b);
}
.mm-mp-badge-desc {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin-bottom: 1.5rem;
  max-width: 320px;
}
.mm-mp-badge-fine-print {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin: 0.8rem 0 0;
}

/* ---- Complete your profile checklist screen ---- */
.mm-mp-checklist-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 1.2rem;
}
.mm-mp-completion-ring-lg {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-mp-ring-inner-lg {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--maroon-700);
}
.mm-mp-checklist-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
}
.mm-mp-checklist-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.mm-mp-checklist-badge {
  background: var(--green-100, #d6f2e3);
  color: var(--green-700, #1c8a52);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}
.mm-mp-checklist-fields {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin: 0;
}
.mm-mp-checklist-add {
  color: var(--maroon-700);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  flex-shrink: 0;
}
.mm-mp-checklist-add-disabled {
  opacity: 0.4;
}

/* ---- Interests picker (Add interests screen) ---- */
.mm-mp-interest-cat {
  margin-bottom: 1.6rem;
}
.mm-mp-interest-cat h6 {
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.mm-mp-interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mm-mp-interest-hidden {
  display: none;
}
.mm-mp-interest-cat.mm-mp-expanded .mm-mp-interest-hidden {
  display: inline-flex;
}
.mm-mp-interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 30px;
  padding: 0.5rem 0.9rem 0.5rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
}
.mm-mp-interest-chip input {
  display: none;
}
.mm-mp-interest-chip.selected {
  border-color: var(--maroon-700);
  background: var(--maroon-100);
  color: var(--maroon-800);
}
.mm-mp-chip-disabled:not(.selected) {
  opacity: 0.4;
  pointer-events: none;
}
.mm-mp-interest-emoji {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.mm-mp-show-more {
  border: none;
  background: transparent;
  color: var(--ink-900);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0.6rem 0 0;
}

/* ---- Assets toggle chips (checkbox-backed, reuse .mm-fs-pill look) ---- */
.mm-mp-check-pill {
  cursor: pointer;
}

/* ---- Album Privacy bottom sheet ---- */
.mm-mp-privacy-sheet .offcanvas-body {
  padding: 1.2rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0));
}
.mm-mp-privacy-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mm-mp-privacy-option:last-child {
  border-bottom: none;
}
.mm-mp-privacy-option input {
  display: none;
}
.mm-mp-privacy-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  margin-top: 0.15rem;
  position: relative;
}
.mm-mp-privacy-option input:checked + .mm-mp-privacy-radio {
  border-color: var(--maroon-700);
}
.mm-mp-privacy-option input:checked + .mm-mp-privacy-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--maroon-700);
}
.mm-mp-privacy-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mm-mp-privacy-text strong {
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mm-mp-privacy-text span {
  font-size: 0.78rem;
  color: var(--ink-500);
}
.mm-mp-privacy-tag {
  background: var(--green);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

/* ================= Chat (redesigned /chat/ — My Conversations) ================= */
.mm-chat-shell {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
}
.mm-chat-list-screen {
  padding: 1rem 1rem 5.5rem;
  background: #fff;
}
@media (min-width: 992px) {
  body.mm-pes-open .mm-chat-list-screen {
    display: none;
  }
}
.mm-chat-list-head h4 {
  font-weight: 800;
  margin-bottom: 1rem;
}
.mm-chat-tabs {
  display: flex;
  gap: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.2rem;
}
.mm-chat-tab {
  border: none;
  background: transparent;
  padding: 0 0 0.7rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
}
.mm-chat-tab.active {
  color: var(--maroon-700);
  font-weight: 800;
  border-bottom-color: var(--maroon-700);
}
.mm-chat-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 0.8rem 1rem;
  margin: 0.9rem 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-chat-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.mm-chat-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.mm-chat-switch-slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 30px;
  transition: 0.2s;
  cursor: pointer;
}
.mm-chat-switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.mm-chat-switch input:checked + .mm-chat-switch-slider {
  background: var(--maroon-700);
}
.mm-chat-switch input:checked + .mm-chat-switch-slider::before {
  transform: translateX(18px);
}
.mm-chat-thread-list {
  margin-top: 0.6rem;
}
.mm-chat-list-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mm-chat-list-item img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mm-chat-list-item-body {
  flex: 1;
  min-width: 0;
}
.mm-chat-list-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.mm-chat-list-item-row strong {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-900);
}
.mm-chat-list-item-time {
  font-size: 0.74rem;
  color: var(--ink-500);
  flex-shrink: 0;
}
.mm-chat-list-item-body p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mm-chat-unread-dot {
  background: var(--maroon-700);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mm-chat-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.mm-chat-empty i {
  font-size: 2rem;
}
.mm-chat-empty p {
  color: var(--ink-500);
  font-size: 0.86rem;
  margin: 0.7rem auto 0;
  max-width: 260px;
}

/* ---- Conversation overlay ---- */
.mm-chat-conv-topbar {
  gap: 0.7rem;
}
.mm-chat-conv-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.mm-chat-conv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mm-chat-conv-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
}
.mm-chat-conv-info span {
  font-size: 0.76rem;
  color: var(--maroon-700);
  font-weight: 600;
}
.mm-chat-actions-row {
  display: flex;
  gap: 0.7rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mm-chat-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 30px;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-chat-action-whatsapp {
  color: #25d366;
  border-color: #cdeedb;
}
.mm-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.1rem;
  background: #fff;
}
.mm-chat-date-sep {
  text-align: center;
  margin: 1rem 0;
}
.mm-chat-date-sep span {
  background: var(--cream-100);
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.mm-chat-bubble {
  max-width: 78%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
}
.mm-chat-bubble-in {
  background: var(--cream-100);
  color: var(--ink-900);
  border-bottom-left-radius: 4px;
  margin-right: auto;
}
.mm-chat-bubble-out {
  background: var(--maroon-100);
  color: var(--ink-900);
  border-bottom-right-radius: 4px;
  margin-left: auto;
  font-weight: 600;
}
.mm-chat-bubble-error {
  outline: 1px solid #dc3545;
}
.mm-chat-bubble-time {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-500);
  margin-top: 0.3rem;
  text-align: right;
}
.mm-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem calc(0.8rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line);
  background: #fff;
  flex-shrink: 0;
}
.mm-chat-input {
  flex: 1;
  border: none;
  background: var(--cream-100);
  border-radius: 30px;
  padding: 0.7rem 1.1rem;
  font-size: 0.88rem;
}
.mm-chat-input:focus {
  outline: none;
}
.mm-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--maroon-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mm-chat-send-btn:disabled {
  opacity: 0.5;
}

/* ---- Upgrade sheet icon color variants (View Contact / WhatsApp) ---- */
.mm-mp-masked-icon-purple {
  background: #f1e9fb;
  color: #7c3aed;
}
.mm-mp-masked-icon-green {
  background: #e3f9ec;
  color: #25d366;
}

/* ================= Search by Profile ID ================= */
.mm-sbi-shell {
  max-width: 600px;
  margin: 0 auto;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}
.mm-sbi-form {
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.mm-sbi-submit {
  border-radius: 30px;
  padding: 0.85rem;
  margin-top: 2.5rem;
}
.mm-sbi-error {
  color: #dc3545;
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

/* ================= Account & Settings ================= */
.mm-acct-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 1.2rem 0 0.5rem;
}
.mm-acct-group-label:first-child {
  margin-top: 0;
}
.mm-acct-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mm-acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}
.mm-acct-row:last-child {
  border-bottom: none;
}
.mm-acct-row i {
  color: var(--ink-300);
}
.mm-acct-advanced {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.mm-acct-advanced h6 {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.mm-acct-locked-block {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.1rem;
  margin-top: 1rem;
}
.mm-acct-locked-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.mm-acct-locked-head strong {
  font-size: 0.92rem;
}
.mm-acct-locked-head i {
  color: var(--ink-300);
}
.mm-acct-pill-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.mm-acct-locked-note {
  font-size: 0.76rem;
  color: var(--ink-500);
  font-style: italic;
  margin: 0.8rem 0 0;
}
.mm-acct-eye {
  border: none;
  background: transparent;
  color: var(--ink-500);
  flex-shrink: 0;
  padding: 0 0.2rem;
}
.mm-acct-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-700);
}
.mm-acct-toggle-row:last-child {
  border-bottom: none;
}
.mm-acct-danger {
  border: 1px solid #f5c2c7;
}

/* ================= Help & Support ================= */
.mm-help-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  border: none;
  background: transparent;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.mm-help-row:last-child {
  border-bottom: none;
}
.mm-help-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
  margin-bottom: 0.2rem;
}
.mm-help-row span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.4;
}
.mm-help-row i {
  color: var(--ink-300);
  flex-shrink: 0;
}
.mm-faq-item {
  border: none;
  border-bottom: 1px solid var(--line);
}
.mm-faq-item .accordion-button {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
  padding: 1rem 0.2rem;
  background: transparent;
  box-shadow: none;
}
.mm-faq-item .accordion-button:not(.collapsed) {
  color: var(--maroon-700);
  background: transparent;
  box-shadow: none;
}
.mm-faq-item .accordion-button:focus {
  box-shadow: none;
}
.mm-faq-item .accordion-body {
  font-size: 0.85rem;
  color: var(--ink-500);
  padding: 0 0.2rem 1rem;
  line-height: 1.55;
}

/* ================= Refine Matches (mobile Filters bottom sheet) ================= */
.mm-refine-sheet {
  --bs-offcanvas-height: 85vh;
  height: 85vh !important;
  height: 85dvh !important;
  border-radius: 20px 20px 0 0;
}
@media (min-width: 992px) {
  .mm-refine-sheet {
    max-width: 600px;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .mm-refine-sheet.showing,
  .mm-refine-sheet.show {
    transform: translateX(-50%) !important;
  }
}
.mm-refine-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.mm-refine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 1rem;
  flex-shrink: 0;
}
.mm-refine-head h5 {
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.mm-refine-reset {
  color: var(--maroon-700);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
}
.mm-refine-body {
  flex: 1;
  min-height: 0;
  display: flex;
}
.mm-refine-left {
  width: 42%;
  flex-shrink: 0;
  background: var(--cream-100);
  overflow-y: auto;
}
.mm-refine-cat {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.9rem 1rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-700);
  border-left: 3px solid transparent;
}
.mm-refine-cat.active {
  background: #fff;
  color: var(--maroon-700);
  font-weight: 700;
  border-left-color: var(--maroon-700);
}
.mm-refine-right {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 0.6rem 1.1rem 1rem;
}
.mm-refine-panel {
  display: none;
}
.mm-refine-panel.active {
  display: block;
}
.mm-refine-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  font-size: 0.86rem;
  color: var(--ink-900);
  cursor: pointer;
}
.mm-refine-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mm-refine-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  background: #fff;
}
.mm-refine-checkbox i {
  font-size: 0.85rem;
}
.mm-refine-option input:checked + .mm-refine-checkbox {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
  color: #fff;
}
.mm-refine-text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.mm-refine-footer {
  flex-shrink: 0;
  padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line);
  text-align: center;
}
.mm-refine-show-btn {
  display: inline-block;
  min-width: 60%;
  border: none;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border-radius: 99px;
  font-size: 0.95rem;
}

/* ================= Notifications ("What's New?") ================= */
.mm-notif-shell {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
}
.mm-notif-body {
  padding: 1rem 1.1rem 2rem;
}
.mm-notif-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-500);
  margin-bottom: 0.7rem;
}
.mm-notif-card {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 14px;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.mm-notif-card-white {
  background: #fff;
  border: 1px solid var(--line);
}
.mm-notif-card-pink {
  background: var(--maroon-100);
}
.mm-notif-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.mm-notif-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-200);
  color: var(--maroon-700);
  font-size: 1.1rem;
}
.mm-notif-content {
  flex: 1;
  min-width: 0;
}
.mm-notif-message {
  font-size: 0.88rem;
  color: var(--ink-900);
  margin: 0 0 0.1rem;
  line-height: 1.4;
}
.mm-notif-cta {
  display: inline-block;
  margin-top: 0.5rem;
  border: 1px solid var(--maroon-700);
  color: var(--maroon-700);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
}
.mm-notif-time {
  font-size: 0.72rem;
  color: var(--ink-500);
  flex-shrink: 0;
  white-space: nowrap;
}
.mm-notif-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.mm-notif-empty i {
  font-size: 2.3rem;
}

.offcanvas-backdrop {
  margin-top: 0px;
}

/* ================= Typography refinements (client-provided tweaks) ================= */
.mm-filter-pill {
  font-weight: 400;
}
.mm-nav-drawer-links .nav-link {
  font-weight: 400;
  padding: 0.80rem 0.6rem;
}
.mm-nav-drawer-links .nav-link .bi-chevron-right {
  color: var(--ink-500);
}
.mm-pd-row-item strong {
  font-weight: 500;
}
.mm-pd-about-box-title {
  font-weight: 600;
  color: var(--ink-700);
}
.mm-fs-acc-head {
  font-size: 1.15rem;
  font-weight: 500;
}
.mm-fs-acc-head i {
  color: var(--ink-500);
}
.mm-fs-row-text strong {
  font-size: 1rem;
  font-weight: 500;
}
.mm-fs-row-text span {
  font-size: 0.9rem;
  color: var(--ink-700);
}
.mm-fs-row > i:last-child {
  color: var(--ink-500);
}
h1, h2, h3, h4, h5, .font-display {
  color: var(--ink-700);
}
.mm-chat-list-head h4 {
  font-weight: 700;
}
.mm-chat-tab.active {
  font-weight: 600;
}
.mm-chat-list-item-row strong {
  font-weight: 600;
  color: var(--ink-700);
  text-transform: capitalize;
}
.mm-chat-conv-info strong {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-600);
  text-transform: capitalize;
}
.mm-chat-conv-info span {
  font-size: 0.76rem;
  color: var(--ink-500);
  font-weight: 400;
}
.mm-chat-bubble-out {
  color: var(--ink-800);
  font-weight: 400;
}

/* ================= Homepage "New Members" cards ================= */
.mm-home-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}
.mm-home-card .mm-photo-placeholder {
  width: 100%;
  height: 100%;
}
.mm-home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-home-card-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  background: var(--gold-600);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.mm-home-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.9rem 0.9rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
  color: #fff;
}
.mm-home-card-overlay h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.mm-home-card-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.76rem;
  margin: 0 0 0.6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-home-card-cta {
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem;
  border-radius: 20px;
}

/* ================= City/Village picker (multi-select bottom sheet) ================= */
.mm-city-picker-input {
  cursor: pointer;
  background: #fff;
}
@media (max-width: 991.98px) {
  .mm-city-picker-sheet {
    --bs-offcanvas-height: 70vh;
    height: 70vh !important;
    height: 70dvh !important;
    border-radius: 20px 20px 0 0;
  }
}
.mm-city-picker-sheet .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  padding: 1.3rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0));
}
.mm-city-picker-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  border: none;
  background: transparent;
  color: var(--ink-500);
  font-size: 1.1rem;
}
.mm-city-picker-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.mm-city-picker-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  flex-shrink: 0;
}
.mm-city-picker-search:focus {
  outline: none;
  border-color: var(--maroon-700);
}
.mm-city-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  flex-shrink: 0;
}
.mm-city-picker-chips:empty {
  margin: 0;
}
.mm-city-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--maroon-100);
  color: var(--maroon-800);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
  border-radius: 20px;
}
.mm-city-picker-chip i {
  cursor: pointer;
  font-size: 0.85rem;
}
.mm-city-picker-results {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 1.1rem;
}
.mm-city-picker-hint {
  font-size: 0.8rem;
  color: var(--ink-500);
  line-height: 1.5;
}
.mm-city-picker-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 1rem 0 0.5rem;
}
.mm-city-picker-group-label:first-child {
  margin-top: 0;
}
.mm-city-picker-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  cursor: pointer;
}
.mm-city-picker-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.mm-city-picker-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  background: #fff;
}
.mm-city-picker-checkbox input:checked + .mm-city-picker-box {
  background: var(--maroon-700);
  border-color: var(--maroon-700);
  color: #fff;
}
.mm-city-picker-radio .mm-city-picker-box {
  border-radius: 50%;
}
.mm-city-picker-radio .mm-city-picker-box i {
  font-size: 9px;
}
.mm-city-picker-checkbox span:last-child {
  font-size: 0.9rem;
  color: var(--ink-900);
}
.mm-city-picker-count {
  color: var(--ink-500);
  font-weight: 500;
}
.mm-city-picker-okay {
  width: 100%;
  border-radius: 30px;
  padding: 0.85rem;
  margin-top: 1rem;
  flex-shrink: 0;
}

/* ================= Desktop search/matches list card (Jeevansathi-style) ================= */
@media (min-width: 62rem) {
  .mm-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }
  .mm-search-list-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .mm-slc-top {
    display: flex;
  }
  .mm-slc-photo {
    position: relative;
    width: 190px;
    flex-shrink: 0;
    display: block;
  }
  .mm-slc-photo img,
  .mm-slc-photo .mm-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mm-slc-photo-count {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
  }
  .mm-slc-plan-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--maroon-700);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    z-index: 2;
  }
  .mm-slc-body {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
  }
  .mm-slc-top-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
  }
  .mm-slc-status {
    font-size: 0.8rem;
    color: var(--ink-500);
    font-weight: 600;
  }
  .mm-slc-badge-pro {
    background: #d63638;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
  }
  .mm-slc-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink-900);
    text-decoration: none;
    margin-bottom: 0.4rem;
  }
  .mm-slc-name i {
    font-size: 0.85rem;
    vertical-align: middle;
    color: var(--gold-600);
  }
  .mm-slc-body p {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
    color: var(--ink-700);
  }
  .mm-slc-body p i {
    color: var(--ink-400, var(--ink-500));
    width: 16px;
  }
  .mm-slc-actions {
    display: flex;
    gap: 1.6rem;
    padding: 0.9rem 1.3rem;
    background: rgb(255 241 244);
    margin: 0.9rem -1.3rem -1.1rem;
    margin-top: auto;
  }
  .mm-slc-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--maroon-600);
    text-decoration: none;
  }
  .mm-slc-action:disabled {
    opacity: 0.5;
  }
  .mm-slc-action-primary {
    color: var(--maroon-700);
  }
  .mm-slc-action-super {
    color: var(--gold-600);
  }
  .mm-slc-action.active-favorite {
    color: var(--gold-600);
  }
}

/* ================= Profile Detail page — desktop sidebar wrap ================= */
/* Mobile: zero rules here on purpose — .mm-pd-page just wraps .mm-pd-shell
   with no effect, so the existing full-bleed immersive layout is untouched. */
@media (min-width: 62rem) {
  .mm-pd-page {
    display: flex;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    align-items: flex-start;
  }
  .mm-pd-page-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
  }
  .mm-pd-page-main .mm-pd-shell {
    max-width: none;
    margin: 0;
    border-radius: var(--radius-md);
  }
  .mm-pd-page-right {
    width: 15.625rem;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 6.40rem;
    max-height: calc(100vh - 5.75rem);
    overflow-y: auto;
  }
  .mm-pd-page-main-plain {
    display: block;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ================= Reusable Skeleton Loading System ================= */
/* Base shimmer building blocks — every skeleton on the site (search
   cards, profile detail, chat, notifications, etc) composes from these
   few classes instead of each page defining its own loading CSS.
   Shimmer is a moving gradient sweep, not a fast pulse — calm/professional,
   not distracting. Works on light or dark surfaces via the two color
   variables below, which components can override locally if needed. */
:root {
  --mm-skel-base: #ecebe9;
  --mm-skel-shine: #f8f7f6;
}
.mm-skel {
  position: relative;
  overflow: hidden;
  background: var(--mm-skel-base);
  border-radius: 6px;
}
.mm-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--mm-skel-shine), transparent);
  animation: mmSkelShimmer 1.8s ease-in-out infinite;
}
@keyframes mmSkelShimmer {
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-skel::after { animation: none; }
}

/* Shape helpers */
.mm-skel-text { height: 0.9em; border-radius: 4px; }
.mm-skel-text.w-25 { width: 25%; }
.mm-skel-text.w-40 { width: 40%; }
.mm-skel-text.w-50 { width: 50%; }
.mm-skel-text.w-60 { width: 60%; }
.mm-skel-text.w-75 { width: 75%; }
.mm-skel-text.w-100 { width: 100%; }
.mm-skel-circle { border-radius: 50%; flex-shrink: 0; }
.mm-skel-block { border-radius: var(--radius-md); }

/* Fade-out transition so real content never "pops" in with a jump —
   toggle .mm-skel-hide via JS once the real content is ready, then
   remove the skeleton node after the transition finishes. */
.mm-skel-wrap {
  transition: opacity 0.25s ease;
}
.mm-skel-wrap.mm-skel-hide {
  opacity: 0;
}

/* ---- Profile card skeleton (mobile Reels-style) ---- */
.mm-skel-feed-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mm-skel-base);
}
.mm-skel-feed-card .mm-skel-feed-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
}
.mm-skel-feed-card .mm-skel-text {
  background: rgba(255, 255, 255, 0.35);
}

/* ---- Profile card skeleton (desktop list-style) ---- */
.mm-skel-list-card {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mm-skel-list-card .mm-skel-list-photo {
  width: 190px;
  aspect-ratio: 3/4;
  flex-shrink: 0;
}
.mm-skel-list-card .mm-skel-list-body {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.3rem;
}
.mm-skel-list-card .mm-skel-text + .mm-skel-text {
  margin-top: 0.6rem;
}

/* ---- Generic content-block skeleton (profile detail sections, chat
        bubbles, notification rows, settings rows — compose with utility
        classes: d-flex, gap-*, mb-*, etc, already used site-wide) ---- */
.mm-skel-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.mm-skel-avatar-sm { width: 42px; height: 42px; }
.mm-skel-avatar-md { width: 56px; height: 56px; }
.mm-skel-avatar-lg { width: 96px; height: 96px; }

/* ---- Inline button loading state (spinner inside the button itself,
        not a page-level takeover) — add data-mm-loading="1" via JS. ---- */
[data-mm-loading="1"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
[data-mm-loading="1"]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mmBtnSpin 0.6s linear infinite;
}
.btn-outline-brand[data-mm-loading="1"]::after,
.btn-light[data-mm-loading="1"]::after {
  border-color: rgba(169, 27, 71, 0.3);
  border-top-color: var(--maroon-700);
}
@keyframes mmBtnSpin {
  to { transform: rotate(360deg); }
}

/* ---- Infinite-scroll "loading more" indicator (small, centered,
        not a full-page takeover) ---- */
.mm-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 0;
  color: var(--ink-500);
  font-size: 0.85rem;
}
.mm-scroll-loader .mm-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--line);
  border-top-color: var(--maroon-700);
  border-radius: 50%;
  animation: mmBtnSpin 0.7s linear infinite;
}

/* ================= Reusable Image Skeleton Loader ================= */
/* Any <img> the site marks with data-mm-img-skel gets a shimmering
   placeholder background until it finishes loading, then fades in — no
   HTML restructuring needed (no wrapper div required), and no layout
   shift since the image's own width/height/aspect-ratio from its
   normal CSS is untouched; this only adds a background + a moving
   gradient + opacity transition. assets/js/img-skeleton.js toggles the
   "mm-img-loaded" class once the image is actually ready. */
img[data-mm-img-skel] {
  background-color: var(--mm-skel-base);
  background-image: linear-gradient(90deg, transparent, var(--mm-skel-shine), transparent);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: -60% 0;
  animation: mmImgSkelShimmer 1.8s ease-in-out infinite;
}
img[data-mm-img-skel].mm-img-loaded {
  background: none;
  animation: none;
}
@keyframes mmImgSkelShimmer {
  0% { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}
@media (prefers-reduced-motion: reduce) {
  img[data-mm-img-skel] { animation: none; }
}

/* ================= Free trial expired modal ================= */
.mm-trial-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  padding: 1rem;
}
.mm-trial-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.mm-trial-modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem 1.6rem;
  width: 22rem;
  max-width: 100%;
  text-align: center;
  box-shadow: var(--shadow-pop);
}
.mm-trial-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-500);
}
.mm-trial-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-100, #fdf1dd);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}
.mm-trial-modal h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mm-trial-modal p {
  font-size: 0.9rem;
  color: var(--ink-600);
  margin-bottom: 1.3rem;
}

/* ================= Guna Milan compatibility results ================= */
.mm-guna-result {
  margin-top: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.mm-guna-error {
  color: var(--ink-700);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.mm-guna-total {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.mm-guna-total-ring {
  --pct: 0%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--gold-600) var(--pct), var(--line) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.mm-guna-total-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: #fff;
  border-radius: 50%;
}
.mm-guna-total-ring strong,
.mm-guna-total-ring span {
  position: relative;
  z-index: 1;
}
.mm-guna-total-ring strong {
  font-size: 1.15rem;
  color: var(--ink-900);
}
.mm-guna-total-ring span {
  font-size: 0.65rem;
  color: var(--ink-500);
  margin-left: 0.1rem;
}
.mm-guna-total > div:last-child strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-900);
}
.mm-guna-dosha-note {
  font-size: 0.78rem;
  color: #b45309;
  margin: 0.3rem 0 0;
}
.mm-guna-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
}
.mm-guna-row-label {
  color: var(--ink-700);
  font-weight: 600;
}
.mm-guna-row-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--line);
  display: block;
  overflow: hidden;
}
.mm-guna-row-bar span {
  display: block;
  height: 100%;
  background: var(--gold-500);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.mm-guna-row-score {
  text-align: right;
  color: var(--ink-500);
  font-weight: 600;
}
.mm-guna-disclaimer {
  font-size: 0.72rem;
  color: var(--ink-500);
  margin: 0.8rem 0 0;
  line-height: 1.5;
}

/* ================= Guna Milan — magic reveal ================= */
@property --pct {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
.mm-guna-total-ring {
  transition: --pct 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Loading state — small orbiting-stars shimmer instead of a bare spinner. */
.mm-guna-loading {
  text-align: center;
  padding: 1.6rem 1rem;
}
.mm-guna-loading-orbit {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  border: 2px dashed var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 1.2rem;
  animation: mmGunaSpin 2.2s linear infinite;
}
@keyframes mmGunaSpin {
  to { transform: rotate(360deg); }
}
.mm-guna-loading p {
  font-size: 0.85rem;
  color: var(--ink-500);
  margin: 0;
}

/* Celebratory banner for an 18+ (Average or better) match. */
.mm-guna-celebrate {
  text-align: center;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  animation: mmGunaCelebrateIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes mmGunaCelebrateIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* Overlapping circular profile photos above the score. */
.mm-guna-photos {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.mm-guna-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mm-guna-photo-1 {
  margin-right: -16px;
  z-index: 1;
  animation: mmGunaPhotoInLeft 0.5s ease;
}
.mm-guna-photo-2 {
  animation: mmGunaPhotoInRight 0.5s ease;
}
@keyframes mmGunaPhotoInLeft {
  0% { opacity: 0; transform: translateX(12px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes mmGunaPhotoInRight {
  0% { opacity: 0; transform: translateX(-12px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mm-guna-loading-orbit,
  .mm-guna-celebrate,
  .mm-guna-photo-1,
  .mm-guna-photo-2,
  .mm-guna-total-ring {
    animation: none;
    transition: none;
  }
}

/* ================= AI Chat Widget (floating) ================= */
.mm-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1199;
  background: rgba(20, 10, 15, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.mm-ai-backdrop.show {
  opacity: 1;
  visibility: visible;
}
.mm-ai-toggle {
  position: fixed;
  right: 5.3rem;
  bottom: 1.3rem;
  z-index: 1200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  color: #fff;
  border: none;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mm-ai-toggle:hover {
  transform: scale(1.06);
}
.mm-ai-toggle.hide {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
@media (max-width: 991.98px) {
  .mm-ai-toggle {
    bottom: 5.2rem; /* clears the mobile bottom nav bar */
  }
}

.mm-ai-panel {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 1201;
  width: 22rem;
  max-width: calc(100vw - 2rem);
  height: 32rem;
  max-height: calc(100vh - 2.6rem);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mm-ai-panel.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
@media (max-width: 991.98px) {
  .mm-ai-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 50vh;
    height: 50dvh;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
}
.mm-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-900));
  color: #fff;
}
.mm-ai-panel-head-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.mm-ai-panel-head-title i {
  font-size: 1.2rem;
}
.mm-ai-panel-head-title strong {
  display: block;
  font-size: 0.9rem;
}
.mm-ai-panel-head-title span {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}
.mm-ai-panel-head button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mm-ai-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--cream-100);
}
.mm-ai-msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.mm-ai-msg-bot {
  background: #fff;
  color: var(--ink-900);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  box-shadow: var(--shadow-card);
}
.mm-ai-msg-user {
  background: var(--maroon-700);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.mm-ai-msg-thinking {
  color: var(--ink-400, var(--ink-500));
  font-style: italic;
}
.mm-ai-msg-link {
  display: inline-block;
  margin-top: 0.3rem;
  color: var(--maroon-700);
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: underline;
}
.mm-ai-panel-input {
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mm-ai-input-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
}
.mm-ai-panel-input textarea {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.8rem 2.8rem 0.8rem 1.1rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.4;
}
.mm-ai-panel-input textarea:focus {
  border-color: var(--maroon-500, var(--maroon-700));
}
.mm-ai-input-action {
  position: absolute;
  right: 0.35rem;
  bottom: 0.3rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon-700);
  color: #fff;
}
#mmAiChatMic.listening {
  background: #d63638;
  color: #fff;
  animation: mmAiMicPulse 1s ease-in-out infinite;
}
@keyframes mmAiMicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(214, 54, 56, 0); }
}

/* ================= Active search filter chips ================= */
.mm-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.mm-active-filter-chip {
  background: var(--maroon-100);
  color: var(--maroon-700);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
}
.mm-active-filter-clear {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-500);
  text-decoration: underline;
  margin-left: 0.3rem;
}

/* ================= Membership Page (Upgrade flow) ================= */
.mm-mship-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.mm-mship-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-100);
  color: var(--ink-900);
  flex-shrink: 0;
}
.mm-mship-header h4 {
  flex: 1;
  font-weight: 800;
}
.mm-mship-help-link {
  border: none;
  background: none;
  color: var(--maroon-700);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mm-mship-current-plan {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--gold-100, #fdf1dd);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}
.mm-mship-current-plan i {
  font-size: 1.4rem;
  color: var(--gold-600);
  flex-shrink: 0;
}
.mm-mship-current-plan strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-900);
}
.mm-mship-current-plan span {
  font-size: 0.78rem;
  color: var(--ink-600);
}
.mm-mship-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  margin-bottom: 0.4rem;
  position: sticky;
  top: 56px;
  z-index: 900;
  background: #fff;
}
@media (min-width: 62rem) {
  .mm-mship-tabs {
    top: 5rem;
  }
}
.mm-mship-tabs::-webkit-scrollbar {
  display: none;
}
.mm-mship-tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-700);
  white-space: nowrap;
}
.mm-mship-tab.active {
  border-color: var(--maroon-700);
  color: var(--maroon-700);
  background: var(--maroon-100);
}
.mm-mship-trust-strip {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--cream-100);
  border-radius: var(--radius-md);
  padding: 1rem 0.8rem;
  margin-bottom: 1.2rem;
}
.mm-mship-trust-strip > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}
.mm-mship-trust-strip i {
  font-size: 1.3rem;
  color: var(--maroon-700);
}
.mm-mship-trust-strip span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-mship-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 1.4rem 0 0.9rem;
}
.mm-mship-divider span {
  padding: 0 0.8rem;
}
.mm-mship-divider::before,
.mm-mship-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.mm-mship-plan-card {
  cursor: pointer;
}
.mm-mship-radio.checked {
  background: var(--maroon-700);
}
.mm-mship-radio.checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.mm-mship-plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  background: #fff;
}
.mm-mship-plan-card.suggested {
  border-color: var(--maroon-700);
  border-width: 2px;
  box-shadow: var(--shadow-card);
}
.mm-mship-suggested-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream-200);
  color: var(--ink-800);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}
.mm-mship-suggested-badge i {
  color: var(--gold-600);
  font-size: 0.7rem;
}
.mm-mship-plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-mship-plan-card-top h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--maroon-800);
  margin: 0;
}
.mm-mship-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--maroon-700);
  flex-shrink: 0;
  position: relative;
}
.mm-mship-plan-price {
  margin: 0.6rem 0 1rem;
  font-size: 0.9rem;
}
.mm-mship-plan-price strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-900);
}
.mm-mship-plan-price s {
  color: var(--ink-500);
  font-size: 0.95rem;
  margin: 0 0.3rem;
}
.mm-mship-plan-price span {
  color: var(--ink-600);
}
.mm-mship-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.mm-mship-plan-features li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.87rem;
  color: var(--ink-700);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.mm-mship-plan-features li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--ink-300);
  font-size: 0.7rem;
}
.mm-mship-plan-features li strong {
  color: var(--ink-900);
}
.mm-mship-assisted-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.mm-mship-assisted-row:last-of-type {
  border-bottom: none;
}
.mm-mship-assisted-row i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--maroon-100);
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mm-mship-assisted-row strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-900);
}
.mm-mship-assisted-row span {
  font-size: 0.78rem;
  color: var(--ink-600);
}
.mm-mship-fixed-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -6px 20px rgba(36, 15, 20, 0.08);
}
@media (min-width: 62rem) {
  .mm-mship-fixed-bar {
    left: 0rem;
    right: 0;
    max-width: 46rem;
    margin: 0 auto;
  }
}
.mm-mship-help-modal {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.mm-mship-help-modal .btn-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}
.mm-mship-help-footer {
  background: var(--cream-100);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: var(--ink-700);
  margin-top: 0.5rem;
}
.mm-mship-help-footer a {
  display: block;
  color: var(--maroon-700);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* ================= Current Plan promo (sidebar, replaces upgrade-promo for Premium members) ================= */
.dash-current-plan-promo {
  background: #fff;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem;
  text-align: center;
}
@media (min-width: 62rem) {
  .dash-current-plan-promo {
    position: sticky;
    top: 6.40rem;
  }
}
.dash-current-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
}
.dash-current-plan-badge i {
  color: var(--gold-500);
}
.dash-current-plan-expiry {
  font-size: 0.78rem;
  color: var(--ink-600);
  margin-bottom: 0.4rem;
}
.dash-current-plan-quota {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 0.9rem;
}

/* ================= Mobile current-plan card (Edit Profile page) ================= */
.mm-mp-current-plan-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
}
.mm-mp-current-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  flex-shrink: 0;
}
.mm-mp-current-plan-badge i {
  color: var(--gold-500);
}
.mm-mp-current-plan-quota {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
}
.mm-mp-current-plan-card a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--maroon-700);
  flex-shrink: 0;
}

/* ================= Nav-drawer current-plan status ================= */
.mm-nav-drawer-plan {
  margin: 0 0.9rem 0.9rem;
  background: var(--cream-100);
  border: 1px solid var(--gold-500);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  text-align: center;
}
.mm-nav-drawer-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--maroon-700);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.35rem;
}
.mm-nav-drawer-plan-badge i {
  color: var(--gold-500);
}
.mm-nav-drawer-plan span:not(.mm-nav-drawer-plan-badge) {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-600);
  margin-bottom: 0.3rem;
}
.mm-nav-drawer-plan a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--maroon-700);
}

/* ================= Mobile search-feed card polish (client-tested) ================= */
@media (max-width: 767.98px) {
  .mm-feed-card {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100%;
    border-radius: 20px;
    margin: 14px;
    margin-bottom: 20px !important;
  }
  /* Extra breathing room so the last card doesn't stick to the fixed bottom nav. */
  #mmFeedList {
    padding-bottom: 0.3rem;
  }
}

/* Premium-member cards get a maroon gradient border, both mobile and desktop. */
.mm-feed-card.mm-has-plan-badge {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--maroon-700), var(--gold-500)) border-box;
}
.mm-search-list-card.mm-has-plan-badge {
  border: 2px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--maroon-700), var(--gold-500)) border-box;
}

/* ================= App-style page header (About, Contact, etc.) — replaces breadcrumb nav ================= */
.mm-app-page-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.mm-app-page-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-100);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.mm-app-page-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink-900);
}
@media (min-width: 62rem) {
  .mm-app-page-title {
    font-size: 1.6rem;
  }
}

/* Hero photo card — was completely unstyled, causing the image to
   stretch/distort (especially on mobile, where the source image's
   aspect ratio didn't match the available width at all). */
.hero-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 61.9375rem) {
  .hero-photo-card {
    aspect-ratio: 16/10;
  }
}

/* ================= Blog/Success Stories — mobile sticky search ================= */
.mm-blog-mobile-search {
  position: sticky;
  top: 56px;
  z-index: 900;
  background: #fff;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

/* ================= Blog/Success Story detail — responsive title, content, and featured image ================= */
.mm-single-title {
  font-size: 1.35rem;
  line-height: 1.3;
}
@media (min-width: 62rem) {
  .mm-single-title {
    font-size: 2rem;
  }
}
.mm-single-content {
  font-size: 0.95rem;
  line-height: 1.75;
}
@media (min-width: 62rem) {
  .mm-single-content {
    font-size: 1.05rem;
    line-height: 1.8;
  }
}
.mm-single-featured-img {
  aspect-ratio: 16/10;
}
.mm-single-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= Saved search pills + Save button ================= */
.mm-fs-tab-pill-saved {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.3;
}
.mm-fs-tab-pill-saved span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-500);
}
.mm-fs-save-search-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px dashed var(--maroon-700);
  background: #fff;
  color: var(--maroon-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ================= Chat image messages ================= */
.mm-chat-bubble-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}

/* ================= Chat image lightbox ================= */
.mm-chat-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.mm-chat-lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
}
