/* ============================================================
   DATING APP — Unified Stylesheet
   Bootstrap 5.3 + Custom Overrides
   ============================================================ */

/* ---------- 1. CSS Custom Properties (Theme) ---------- */
:root {
  --app-primary: #6366f1;
  --app-primary-rgb: 99,102,241;
  --app-primary-hover: #4f46e5;
  --app-secondary: #ec4899;
  --app-danger: #ef4444;
  --app-secondary-hover: #db2777;
  --app-bg: #f1f5f9;
  --app-bg-card: #ffffff;
  --input-bg: #ffffff;
  --app-text: #1e293b;
  --app-text-muted: #64748b;
  --app-border: #e2e8f0;
  --app-shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --app-shadow: 0 4px 12px rgba(0,0,0,.08);
  --app-radius: .75rem;
  --app-radius-lg: 1rem;
  --header-height: 56px;
  --mobile-nav-height: 56px;
  --app-font: 'Inter', system-ui, -apple-system, sans-serif;
  /* Heading size tokens (override to adjust global typography) */
  --h1-size: 2.00rem;
  --h2-size: 1.50rem;
  --h3-size: 1.125rem;
  --h4-size: 0.95rem;
  --h5-size: 0.85rem;
}

[data-bs-theme="dark"] {
  --app-bg: #0f172a;
  --app-bg-card: #1e293b;
  --app-primary-rgb: 99,102,241;
  --app-danger: #f87171;
  --input-bg: #0f172a;
  --app-text: #e2e8f0;
  --app-text-muted: #94a3b8;
  --app-border: #334155;
  --app-shadow-sm: 0 1px 3px rgba(0,0,0,.2);
  --app-shadow: 0 4px 12px rgba(0,0,0,.3);
}

/* ---------- 2. Base Reset & Typography ---------- */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--app-font);
  background: var(--app-bg);
  color: var(--app-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

a { color: var(--app-primary); text-decoration: none; }
a:hover { color: var(--app-primary-hover); }

img { max-width: 100%; height: auto; }

/* Global box-sizing for all elements */
*, *::before, *::after { box-sizing: border-box; }

/* Reusable tiny utilities (avoid inline styles) */
.icon-flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.icon-flag-sm { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 34px; height: 34px; font-size: .9rem; }
.badge-xs { font-size: .65rem; }

/* ---------- 3. App Layout (single-column) ---------- */
.app-main {
  min-height: 100vh;
  padding: 0.5rem;
  margin: 0 auto;
  width: 100%;
}

/* ---------- Breadcrumb (simple white, light/dark) ---------- */
.breadcrumb {
background: #ffffff;
    align-items: center;
    padding: 0px 10px;
    margin: 0px;
}
.breadcrumb a {     font-size: 11px; }
.breadcrumb a:hover { opacity: 1; color: var(--app-primary); }
.breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin: 0 .4rem; color: var(--app-text-muted); }
.breadcrumb-item.active { color: var(--app-text); font-size: 11px;}

/* Single-line breadcrumb with ellipsis for long current item */
.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumb .breadcrumb-item {
  flex: 0 0 auto;
}
.breadcrumb .breadcrumb-item.active {
  /* allow active item to take remaining space and be ellipsized */
  flex: 1 1 auto;
  min-width: 0; /* allow flex child to shrink below content width */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-bs-theme="dark"] .breadcrumb {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  box-shadow: none;
}
[data-bs-theme="dark"] .breadcrumb a { color: rgba(255,255,255,0.9); opacity: .95; }
[data-bs-theme="dark"] .breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.18); }

/* Hide breadcrumb on homepage (set via body[data-home="1"]) */
body[data-home="1"] .breadcrumb { display: none !important; }

/* Topics strip / cards for timeline (compact, phone-like icons) */
.topics-strip { position: relative; }
topics-scroll { padding: 8px 4px; }
.topic-item { display: block;background: #fff;
    border-radius: 10px; }

/* Stacked variant: icon on top, title+count on single row below */
.topic-card--stacked {
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  min-width: 140px;
}
.topic-card--stacked .topic-media {
      margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(var(--app-primary-rgb),0.12), rgba(var(--app-primary-rgb),0.04));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 0 0 56px;
}
.topic-card--stacked .topic-media i { font-size: 22px; color: var(--app-primary); }
.topic-card--stacked .topic-body {width:100%;  align-items:center; }
.topic-card--stacked .topic-title { text-align:left; }
.topic-card--stacked .topic-count { text-align:right; }
.topic-media { position: relative; }
.topic-count-badge { position: absolute; top: -8px; left: 80%; transform: translateX(-50%); color: #ef4444; background: #fff; padding: 2px 6px; border-radius: 999px; font-weight: 700; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.topic-card--stacked .topic-body { text-align: center; }
@media (max-width: 767.98px) {
  .topic-card--stacked .topic-media { width:48px; height:48px; }
}

/* Frame system — centered content containers */
.frame-lg { max-width: 960px; margin: 0 auto; }
.frame-md { max-width: 720px; margin: 0 auto; }
.frame-sm { max-width: 560px; margin: 0 auto; }

@media (max-width: 991.98px) {
  .frame-lg, .frame-md, .frame-sm { max-width: 100%; }
}

/* ---------- Page header (shared) ---------- */
.page-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 36px 20px;
  border-radius: 12px;
  color: var(--app-text);
  background: linear-gradient(180deg, rgba(var(--app-primary-rgb), 0.06), transparent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-bottom: 3px solid transparent;
}
.page-header h1 { margin: 0 0 8px 0; font-size: var(--h1-size); font-weight: 700; }
/* Global heading sizes */
h1 { font-size: var(--h1-size); font-weight: 700; margin: 0 0 1rem; line-height: 1.12; }
h2 { font-size: var(--h2-size); font-weight: 700; margin: 0 0 1rem; line-height: 1.18; }
h3 { font-size: var(--h3-size); font-weight: 600; margin: 0 0 1rem; line-height: 1.22; }
h4 { font-size: var(--h4-size); font-weight: 600; margin: 0 0 1rem; line-height: 1.25; }
h5 { font-size: var(--h5-size); font-weight: 600; margin: 0 0 1rem; line-height: 1.28; }
.page-header p { margin: 0; color: var(--app-text-muted); }

/* Accent variants */
.page-header--accent-red { background: linear-gradient(90deg, rgba(231,76,60,0.08), rgba(231,76,60,0.03)); border-bottom-color: #e74c3c; }
.page-header--accent-blue { background: linear-gradient(90deg, rgba(52,152,219,0.08), rgba(52,152,219,0.03)); border-bottom-color: #3498db; }

/* Dark theme adjustments */
[data-bs-theme="dark"] .page-header {
  background: linear-gradient(180deg, rgba(99,102,241,0.06), rgba(255,255,255,0.01));
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  color: var(--app-text);
}
[data-bs-theme="dark"] .page-header--accent-red { background: linear-gradient(90deg, rgba(231,76,60,0.06), rgba(231,76,60,0.02)); border-bottom-color: rgba(231,76,60,0.7); }
[data-bs-theme="dark"] .page-header--accent-blue { background: linear-gradient(90deg, rgba(52,152,219,0.06), rgba(52,152,219,0.02)); border-bottom-color: rgba(52,152,219,0.7); }
[data-bs-theme="dark"] .page-header--primary { background: linear-gradient(90deg, rgba(var(--app-primary-rgb),0.08), rgba(var(--app-primary-rgb),0.02)); border-bottom-color: rgba(var(--app-primary-rgb),0.6); }

@media (max-width: 768px) {
  .page-header { padding: 24px 16px; }
  .page-header h1 { font-size: 1.6rem; }
}

/* Responsive heading scale-down on smaller viewports */
@media (max-width: 991.98px) {
  :root {
    --h1-size: 1.7rem;
    --h2-size: 1.3rem;
    --h3-size: 1.0rem;
    --h4-size: 0.9rem;
    --h5-size: 0.85rem;
  }
}

/* ---------- Content sections: adapt to light/dark themes ---------- */
.policy-section,
.terms-section,
.guide-section,
.form-section,
.faq-section,
.contact-card,
.office-info,
.feature-card,
.policy-container,
.terms-container,
.guide-container,
.contact-container {
  background: var(--app-bg-card) !important;
  color: var(--app-text) !important;
  border: 1px solid var(--app-border) !important;
  box-shadow: var(--app-shadow-sm) !important;
}

/* Ensure paragraphs, lists and muted text adapt */
.policy-section p, .policy-section li,
.terms-section p, .terms-section li,
.guide-section p, .guide-section li,
.form-section p, .form-section li,
.faq-section p, .faq-section li,
.contact-card p, .office-info p,
.feature-card p {
  color: var(--app-text) !important;
}
.text-muted, .small, .lead { color: var(--app-text-muted) !important; }

/* Links inside content */
.policy-section a, .terms-section a, .guide-section a, .contact-container a {
  color: var(--app-primary);
}
.policy-section a:hover, .terms-section a:hover, .guide-section a:hover, .contact-container a:hover { color: var(--app-primary-hover); }

/* Headings — keep accent where set, otherwise use primary */
.policy-section h2:not([style]) , .terms-section h2:not([style]) , .guide-section h2:not([style]) {
  color: var(--app-primary);
}

/* Dark-mode fine-tuning (variables already switch; add a little contrast) */
[data-bs-theme="dark"] .policy-section,
[data-bs-theme="dark"] .terms-section,
[data-bs-theme="dark"] .guide-section,
[data-bs-theme="dark"] .form-section,
[data-bs-theme="dark"] .faq-section,
[data-bs-theme="dark"] .contact-card,
[data-bs-theme="dark"] .office-info,
[data-bs-theme="dark"] .feature-card {
  box-shadow: 0 6px 20px rgba(0,0,0,0.45) !important;
}

@media (max-width: 768px) {
  .policy-container, .terms-container, .guide-container, .contact-container { padding: 20px; }
}

/* ---------- 4. Top Navbar ---------- */
.app-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--app-bg-card);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 1030;
  gap: .5rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--app-primary) !important;
  display: flex;
  align-items: center;
  gap: .375rem;
  white-space: nowrap;
}
.navbar-brand i { color: var(--app-secondary); }

.navbar-spacer { flex: 1; }

.navbar-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--app-text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .15s;
}
.navbar-icon:hover { background: var(--app-border); }

.navbar-icon .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--app-secondary);
  border-radius: 50%;
  border: 2px solid var(--app-bg-card);
}
.navbar-icon .badge-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: .65rem;
  font-weight: 600;
  background: var(--app-secondary);
  color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.navbar-icon .badge-count.d-none { display: none !important; }

.navbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--app-border);
  transition: border-color .15s;
}
.navbar-avatar:hover { border-color: var(--app-primary); }
.fw-semibold {font-size: 12px;}
/* Header inline navigation (replaces sidebar menu) */
.header-nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  margin-left: .75rem;
}
.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .375rem .625rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--app-text-muted);
  border-radius: .5rem;
  border: none;
  background: none;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, background .15s;
  cursor: pointer;
}
.header-nav-link:hover {
  color: var(--app-primary);
  background: rgba(var(--app-primary-rgb), .06);
}
.header-nav-link.active {
  color: var(--app-primary);
  font-weight: 600;
}
.header-nav-link i { font-size: 1rem; }

@media (max-width: 1099.98px) {
  .header-nav-link span { display: none; }
  .header-nav { gap: 0; }
}

/* ---------- 5. Header Dropdowns ---------- */
.header-dropdown { position: relative; }

.header-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  overflow: hidden;
  z-index: 1050;
}
.header-dropdown-menu.show { display: block; }

.dropdown-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--app-border);
}
.dropdown-header-custom h6 { margin: 0; font-size: .875rem; font-weight: 600; }
.dropdown-action {
  background: none;
  border: none;
  font-size: .75rem;
  color: var(--app-primary);
  cursor: pointer;
  padding: 0;
}

.dropdown-content {
  overflow-y: auto;
  max-height: 360px;
  scrollbar-width: thin;
}

/* Mobile close button for header dropdowns */
.dropdown-close-mobile {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  padding: .125rem .375rem;
  color: var(--app-text-muted);
  border-radius: .375rem;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.dropdown-close-mobile:focus { outline: none; box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), .12); }

.dropdown-close-mobile:hover {
  color: var(--app-primary);
  background: rgba(var(--app-primary-rgb), .06);
}

/* ----------  Support buttons (fixed bottom-right) ---------- */
.support-buttons {
  position: fixed;
  right: 18px;
  bottom: 108px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1080;
}
.support-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
  font-size: 1.25rem;
}
.support-btn:focus { outline: none; box-shadow: 0 0 0 4px rgba(var(--app-primary-rgb),0.12); }
.support-btn:hover { transform: translateY(-3px); }
.support-zalo { background: linear-gradient(180deg,#0070ff,#005ce6); }
.support-messenger { background: linear-gradient(180deg,#0084ff,#0066d6); }

@media (max-width: 480px) {
  .support-buttons { right: 12px; bottom: 102px; }
  .support-btn { width: 46px; height: 46px; font-size: 1.05rem; }
}

/* Make the image fill the circular button */
.support-btn { padding: 0; }
.support-btn-img, .support-btn img { width: 100%; height: 100%; display: block; border-radius: 999px; object-fit: cover; }



@media (max-width: 767.98px) {
  .dropdown-close-mobile { display: inline-flex; align-items: center; justify-content: center; }
  .dropdown-header-custom { padding-right: .5rem; }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .dropdown-close-mobile {
  color: var(--app-text);
  background: transparent;
}
[data-bs-theme="dark"] .dropdown-close-mobile:hover {
  color: var(--app-primary);
  background: rgba(var(--app-primary-rgb), .12);
}
[data-bs-theme="dark"] .dropdown-close-mobile:focus {
  box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb), .18);
}

.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1rem;
  color: var(--app-text);
  transition: background .1s;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-item-custom:hover { background: var(--app-bg); color: var(--app-text); }
.dropdown-item-custom.unread { background: rgba(99,102,241,.07); font-weight: 500; border-left: 3px solid var(--app-primary); }

/* Per-conversation unread badge */
.conv-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--app-danger, #ef4444);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

/* Typing indicator dots animation */
.typing-message { opacity: .7; }
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px !important;
  font-size: .82rem;
  color: var(--app-text-muted);
}
.typing-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--app-text-muted);
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.typing-text { font-style: italic; }

.dropdown-item-custom .thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropdown-item-custom .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-item-custom .thumb i { font-size: 1.2rem; color: var(--app-primary); }

/* Chat & Notifications shared panel styles */
.notif-panel {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: .5rem;
  box-shadow: var(--app-shadow-sm);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.notif-panel .dropdown-item-custom,
.notif-panel .chat-list .chat-row { padding: .75rem; border-bottom: 1px solid var(--app-border); }
.notif-panel .dropdown-item-custom.unread,
.notif-panel .chat-list .chat-row.unread { background: linear-gradient(90deg, rgba(var(--app-primary-rgb),0.06), transparent); }
.chat-panel .chat-row { display:flex; align-items:center; gap:1rem; }
.chat-panel .chat-avatar img { width:56px; height:56px; object-fit:cover; border-radius:50%; }
.chat-panel .chat-content h6 { margin-bottom:0; font-weight:600; }
.chat-panel .unread-badge { background: var(--app-danger); color: #fff; padding:.25rem .45rem; border-radius:999px; font-size:.75rem; }
.search-box-wrapper ,.filter-dropdown-wrapper{     display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .6rem;
    background: var(--input-bg, #fff); }
.search-box-wrapper .search-input { border:0; outline:none; width: 100%; max-width: 280px; }

/* Ensure dropdown item text adapts to theme */
.notif-panel .dropdown-item-content { color: var(--app-text); }
.notif-panel .dropdown-item-title { color: var(--app-text); }
.notif-panel .dropdown-item-message { color: var(--app-text-muted); }

/* Smooth transitions for icons and images */
.notif-panel img, .chat-panel img { transition: opacity .12s ease, transform .12s ease; }

/* Ensure hover states adapt */
.notif-panel .dropdown-item-custom:hover { background: rgba(var(--app-primary-rgb),0.03); }

.dropdown-item-content { flex: 1; min-width: 0; }
.dropdown-item-title { font-size: .8125rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-item-message { font-size: .75rem; color: var(--app-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropdown-item-time { font-size: .7rem; color: var(--app-text-muted); flex-shrink: 0; }

.notification-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--app-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-footer {
  text-align: center;
  padding: .5rem;
  border-top: 1px solid var(--app-border);
}
.dropdown-footer a { font-size: .8125rem; font-weight: 500; }

.dropdown-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--app-text-muted);
}

.mobile-header-menu {
  /* off-canvas panel from the left: slide in from left to right */
  position: fixed;
  top: calc(var(--header-height));
  left: 0;
  bottom: 0;
  right: auto;
  width: min(320px, 85%);
  background: var(--app-bg-card);
  border-right: 1px solid var(--app-border);
  transform: translateX(-100%);
  transition: transform .22s ease, visibility .22s;
  z-index: 100050; /* ensure above most UI overlays (progress bar, modals) */
  box-shadow: var(--app-shadow);
  overflow-y: auto;
}
.mobile-header-inner { display:flex; flex-direction:column; gap:0; padding:.5rem 0; }
.mobile-header-link { display:flex; align-items:center; gap:.75rem; padding:.75rem 1rem; color:var(--app-text); text-decoration:none }
.mobile-header-link i { font-size:1.05rem }
.mobile-header-link.active { background: rgba(var(--app-primary-rgb), .04); color:var(--app-primary); font-weight:600 }
.mobile-header-divider { height:1px; background:var(--app-border); margin: .25rem 0 }

/* close button inside off-canvas mobile menu */
.mobile-header-close { position: absolute; top: .45rem; right: .45rem; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; background: transparent; border: none; color: var(--app-text); z-index:100055 }
.mobile-header-close i { font-size:1.15rem }


/* when open, slide the off-canvas panel into view */
.mobile-header-open .mobile-header-menu { transform: translateX(0); }

/* small overlay to close menu when clicked outside (doesn't cover header) */
.mobile-header-overlay { position: fixed; inset: calc(var(--header-height)) 0 0 0; background: rgba(0,0,0,0.28); z-index:100040; display:none; pointer-events:none }
.mobile-header-open .mobile-header-overlay { display:block; pointer-events:auto }

@media (min-width: 768px) {
  /* Ensure mobile header UI is hidden on desktop even if ``mobile-header-open`` is toggled */
  .mobile-header-menu,
  .mobile-header-overlay,
  .mobile-header-open .mobile-header-menu,
  .mobile-header-open .mobile-header-overlay {
    display: none !important;
    pointer-events: none !important;
  }
}

.dropdown-divider { border-top: 1px solid var(--app-border); margin: .25rem 0; }

/* Profile dropdown */
.profile-header {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--app-border);
}
.profile-dropdown-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--app-text);
}
.profile-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-dropdown-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--app-text-muted);
}
.profile-name { font-size: .875rem; font-weight: 600; }
.profile-email { font-size: .75rem; color: var(--app-text-muted); }
.profile-role { font-size: .7rem; color: var(--app-text-muted); }
.profile-info { display: flex; flex-direction: column; }

/* Mobile dropdown positioning */
@media (max-width: 767.98px) {
  .header-dropdown-menu {
    position: fixed;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - var(--header-height)) !important;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .header-dropdown-menu.mobile-attached {
    position: fixed !important;
  }
  .profile-dropdown-menu { width: 100% !important; }
}

/* ---------- 7. Cards & Panels ---------- */
.card-clean {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

/* ---------- 8-9. User Card & Page Banner: see dating-card / dating-banner below ---------- */
.gender-icon.male { color: #3b82f6; }
.gender-icon.female { color: #ec4899; }

/* ---------- 10. Timeline / Feed ---------- */

/* Post card wrapper — supports both .post-card and .timeline-post */
.post-card,
.timeline-post {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  margin-bottom: .75rem;
  overflow: hidden;
  position: relative;
}

/* --- Moderation states for posts and comments --- */

/* Dimmed/loading state while AI is moderating */
.timeline-post.moderation-moderating .post-content,
.timeline-post.moderation-moderating .post-images-list,
.comment-item.moderation-moderating .comment-bubble {
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  filter: blur(1px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Loading overlay for moderating content */
.moderation-overlay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  margin: 0 1rem 0.5rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border-radius: 8px;
  border: 1px solid #ffc107;
  font-size: 0.85rem;
  color: #856404;
  animation: moderationPulse 2s infinite;
}

.moderation-overlay .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
  color: #856404;
}

@keyframes moderationPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Rejected/violation state - visible only to author */
.timeline-post.moderation-rejected .post-content,
.timeline-post.moderation-rejected .post-images-list,
.comment-item.moderation-rejected .comment-bubble {
  opacity: 0.5;
  border-left: 3px solid #dc3545;
  padding-left: 0.5rem;
}

.moderation-violation-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  margin: 0 1rem 0.5rem;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-radius: 8px;
  border: 1px solid #dc3545;
  font-size: 0.85rem;
  color: #721c24;
}

.moderation-violation-notice .violation-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.moderation-violation-notice .violation-text {
  flex: 1;
}

.moderation-violation-notice .violation-label {
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.moderation-violation-notice .violation-reason {
  font-size: 0.8rem;
  color: #943238;
}

.moderation-violation-notice .only-you-badge {
  font-size: 0.7rem;
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Comment-level moderation */
.comment-item.moderation-moderating {
  position: relative;
}

.comment-moderation-overlay {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  margin-top: 0.25rem;
  background: #fff3cd;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #856404;
  animation: moderationPulse 2s infinite;
}

.comment-moderation-overlay .spinner-border {
  width: 0.75rem;
  height: 0.75rem;
  border-width: 2px;
}

.comment-violation-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  margin-top: 0.25rem;
  background: #f8d7da;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #721c24;
}

/* Post header */
.post-header {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
}
.post-header .avatar,
.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-header .avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1rem;
}
.post-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-text-muted);
  flex-shrink: 0;
}
.post-user-info,
.post-meta { flex: 1; min-width: 0; }

.post-user-top {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
}
.post-user-name {
  font-weight: 600;
  font-size: .875rem;
  color: var(--app-text);
  text-decoration: none;
}
.post-user-name:hover { color: var(--app-primary); }
.post-author-age {
  font-size: .75rem;
  color: var(--app-text-muted);
}
.post-author { font-weight: 600; font-size: .875rem; }

.post-user-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
}
.post-time { font-size: .75rem; color: var(--app-text-muted); }
.post-topic-badge {
  font-size: .7rem;
  padding: .125rem .5rem;
  background: rgba(99,102,241,.1);
  color: var(--app-primary);
  border-radius: 10px;
  font-weight: 500;
  margin-left: .375rem;
}

/* Post menu (three dots) */
.post-menu {
  cursor: pointer;
  padding: .25rem .375rem;
  border-radius: var(--app-radius);
  color: var(--app-text-muted);
  font-size: 1.1rem;
}
.post-menu:hover { background: var(--app-bg); }

/* Post body / content */
.post-body { padding: 0 1rem .5rem; }
.post-content { padding: 0; }
.post-content-text {padding: 0 1rem .5rem;}
.post-content ul {padding-left: 1rem;}
.post-content ol {padding-left: 1rem;}
.post-content p { margin-bottom: 10px; font-size: 14px; }
.post-content li {    font-size: 14px; }
.post-text {
  font-size: .9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--app-text);
}
.post-content-more { display: none; }

/* Post images */
.post-images { margin: 0 -1px; }
.post-images img {
  width: 100%;
  cursor: pointer;
  transition: opacity .15s;
}
.post-images img:hover { opacity: .92; }
.post-images-grid {
  display: grid;
  gap: 2px;
}
.post-images-grid.grid-2 { grid-template-columns: 1fr 1fr; }
.post-images-grid.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.post-images-grid.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.post-images-grid img { height: 220px; object-fit: cover; }

/* Post images list (actual component structure) */
.post-images-list {
  display: grid;
  gap: 2px;
}
.post-images-list:has(.post-image-item:nth-child(2)) {
  grid-template-columns: 1fr 1fr;
}
.post-images-list:has(.post-image-item:nth-child(4)) {
  grid-template-columns: 1fr 1fr;
}
.post-image-item {
  position: relative;
  overflow: hidden;
}
.post-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  cursor: pointer;
  display: block;
  transition: opacity .15s;
}
.post-images-list:has(.post-image-item:nth-child(2)) .post-image {
  height: 260px;
}
.post-image:hover { opacity: .92; }
.post-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Post stats */
.post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .375rem 1rem;
  font-size: .8125rem;
  color: var(--app-text-muted);
}
.post-stats .likes-count {
  display: flex;
  align-items: center;
}
.reaction-icons {
  display: flex;
  align-items: center;
}
.reaction-avatar-link {
  margin-left: -4px;
  display: inline-block;
}
.reaction-avatar-link:first-child { margin-left: 0; }
.reaction-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-bg-card);
}
.reaction-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  font-size: .6rem;
  font-weight: 600;
  border: 2px solid var(--app-bg-card);
  text-decoration: none;
}
.likes-count-number {
  font-size: .8125rem;
  color: var(--app-text-muted);
}
.likes-count-number:hover { text-decoration: underline; }
.comments-count-text {
  font-size: .8125rem;
  color: var(--app-text-muted);
}

/* Post interaction buttons (actual component) */
.post-interaction-btns {
  display: flex;
  border-top: 1px solid var(--app-border);
}
.post-interaction-btns button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .5rem;
  background: none;
  border: none;
  font-size: .8125rem;
  color: var(--app-text-muted);
  cursor: pointer;
  border-radius: 0;
  transition: background .12s, color .12s;
}
.post-interaction-btns button:hover { background: var(--app-bg); color: var(--app-primary); }
.post-interaction-btns .like-btn.liked { color: var(--app-secondary); }
.post-interaction-btns .like-btn.liked i { color: var(--app-secondary); }
.post-interaction-btns .reaction-emoji { font-size: 1.1rem; }
.post-interaction-btns i { font-size: 1.05rem; }

/* Backward-compat: .post-actions / .post-action-btn */
.post-actions {
  display: flex;
  border-top: 1px solid var(--app-border);
  padding: .25rem;
}
.post-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .5rem;
  background: none;
  border: none;
  font-size: .8125rem;
  color: var(--app-text-muted);
  cursor: pointer;
  border-radius: var(--app-radius);
  transition: background .12s, color .12s;
}
.post-action-btn:hover { background: var(--app-bg); color: var(--app-primary); }
.post-action-btn.liked { color: var(--app-secondary); }
.post-action-btn i { font-size: 1.05rem; }

/* Comments section */
.comments-section {
  padding: .5rem 1rem .75rem;
  border-top: 1px solid var(--app-border);
}
.comment-input-wrapper {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .375rem 0;
  margin-bottom: .5rem;
}
/* make wrapper a positioning context for popup */
.comment-input-wrapper { position: relative; }
/* Ensure popup isn't clipped by parent overflow rules */
.comment-input-wrapper {
  overflow: visible !important;
}
.comment-input-wrapper .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: .25rem;
}

/* Facebook-like comment input styling */
.comment-input-box {
  background: var(--app-bg-card);
  border-radius: 999px;
  padding: .2rem;
  gap: .5rem;
  align-items: center;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
  border: 1px solid var(--app-border);
}

.comment-input-box .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: .28rem .4rem;
  min-height: 36px;
  max-height: 160px;
  resize: none;
  overflow: auto;
}

.comment-input-box .form-control:focus {
  outline: none;
  box-shadow: none;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.comment-actions .btn {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.comment-actions .btn.btn-light {
  background: transparent;
  border: 1px solid transparent;
  color: var(--app-text-muted);
}

.comment-actions .btn.btn-primary {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--app-primary), var(--app-primary-hover));
  border: none;
  color: #fff;
  box-shadow: 0 6px 12px rgba(var(--app-primary-rgb), 0.16);
}

.comment-image-preview {
  display: flex;
  align-items: center;
  gap: .5rem;
}

@media (max-width: 575.98px) {
  .comment-input-box { padding: .28rem .5rem; }
  .comment-actions .btn { width: 30px; height: 30px; }
  .comment-actions .btn.btn-primary { width: 34px; height: 34px; }
}

/* Popup style placed inside .comment-input-wrapper */
.comment-pending-popup {
  position: absolute;
  left: calc(30px + 0.5rem);
  bottom: calc(100% + 10px);
  width: calc(100% - (30px + 0.5rem));
  z-index: 99999; /* very high to avoid being covered */
  display: none;
}
.comment-pending-popup .pending-card {
  position: relative;
  padding: .6rem .85rem;
  border-radius: .9rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 12px 40px rgba(2,6,23,0.10);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  transition: transform .18s cubic-bezier(.2,.9,.3,1), opacity .18s ease;
  transform-origin: bottom left;
}
.comment-pending-popup::after {
  content: '';
  position: absolute;
  left: calc(30px + 28px);
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: rotate(45deg);
  z-index: -1;
  filter: drop-shadow(0 2px 6px rgba(2,6,23,0.04));
}

/* Close button */
.comment-pending-popup .pending-close {
  position: absolute;
  right: .45rem;
  top: .35rem;
  border: none;
  background: transparent;
  color: var(--app-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: .15rem .4rem;
  cursor: pointer;
}
.comment-pending-popup .pending-close:hover { color: var(--app-text); }

/* Icon accent */
.comment-pending-popup .pending-icon {
  min-width: 42px;
  min-height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(var(--app-primary-rgb),0.12), rgba(var(--app-primary-rgb),0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-primary);
  font-size: 1.15rem;
}

.comment-pending-popup.show .pending-card { transform: translateY(-6px); opacity: 1; }

[data-bs-theme="dark"] .comment-pending-popup .pending-card {
  background: rgba(8,10,15,0.6);
  border: 1px solid rgba(255,255,255,0.04);
}

@media (max-width: 575.98px) {
  .comment-pending-popup { left: 12px; width: calc(100% - 24px); }
  .comment-pending-popup::after { left: 36px; }
}
.comment-input-wrapper .avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: .25rem;
}
/* Pending moderation message styling — sits beneath the comment input and aligns with input area */
.comments-section > .comment-pending-msg {
  /* Ensure pending message always starts on its own line below the input */
  display: block !important;
  clear: both !important;
  box-sizing: border-box !important;
  margin-top: .5rem !important;
  margin-left: 0 !important;
  width: 100% !important;
  font-size: .92rem !important;
}

/* Stronger sibling rule with !important to override other layout rules */
.comment-input-wrapper + .comment-pending-msg {
  margin-left: calc(30px + 0.5rem) !important;
  width: calc(100% - (30px + 0.5rem)) !important;
  display: block !important;
}

.comment-pending-msg .pending-card {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .5rem .75rem;
  border-radius: .75rem;
  background: linear-gradient(180deg, rgba(var(--app-primary-rgb),0.03), transparent);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 18px rgba(16,24,40,0.04);
  border-left: 4px solid rgba(var(--app-primary-rgb),0.9);
}

.comment-pending-msg .pending-icon {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(var(--app-primary-rgb),0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-primary);
  font-size: 1.05rem;
}

.comment-pending-msg .pending-title {
  font-weight: 600;
  color: var(--app-text);
}

.comment-pending-msg .pending-subtext {
  margin-top: .15rem;
  color: var(--app-text-muted);
}

@keyframes fadeInUpMini {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.comment-pending-msg .pending-card { animation: fadeInUpMini .18s ease both; }

[data-bs-theme="dark"] .comment-pending-msg {
  background: none;
}
[data-bs-theme="dark"] .comment-pending-msg .pending-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: none;
}

/* Note: consolidated .comment-input-box rules exist earlier in this file.
   The input/textarea styles are covered by the `.comment-input-box .form-control` selectors.
   Avoid duplicating selectors here to prevent conflicts. */

.comment-image-preview {
  position: relative;
  margin-top: .375rem;
  display: inline-block;
}
.comment-image-preview img {
  max-width: 100px;
  max-height: 80px;
  border-radius: .375rem;
  object-fit: cover;
}
.comment-image-preview .remove-img {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  font-size: .7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Comment list (loaded dynamically) */
.comment-list .comment-item,
.comment-replies .comment-item {
  display: flex;
  gap: .5rem;
  padding: .375rem 0;
  font-size: .8125rem;
}
.comment-item .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-item .comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.comment-item .comment-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 600;
  flex-shrink: 0;
}
.comment-bubble {
  flex: 1;
  background: var(--app-bg);
  border-radius: var(--app-radius);
  padding: .375rem .625rem;
  min-width: 0;
}
.comment-bubble .comment-author {
  font-weight: 600;
  font-size: .8125rem;
  color: var(--app-text);
  text-decoration: none;
}
.comment-bubble .comment-author:hover { color: var(--app-primary); }
.comment-bubble .comment-text {
  font-size: .8125rem;
  word-break: break-word;
}
/* Truncation for long comment text with show-more button */
.comment-bubble .comment-text.truncatable {
  max-height: 3.6em; /* approx 3 lines */
  overflow: hidden;
  position: relative;
}
.comment-bubble .comment-text.truncatable.expanded {
  max-height: none;
}
.comment-show-more {
  background: none;
  border: none;
  color: var(--app-primary);
  padding: 0;
  margin-top: .25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .8125rem;
}
.comment-bubble .comment-image {
  max-width: 200px;
  max-height: 160px;
  border-radius: .375rem;
  margin-top: .25rem;
  cursor: pointer;
}
.comment-actions-row {
  display: flex;
  gap: .625rem;
  font-size: .7rem;
  color: var(--app-text-muted);
}
.comment-actions-row button {
  background: none;
  border: none;
  color: var(--app-text-muted);
  font-size: .7rem;
  cursor: pointer;
  padding: 0;
}
.comment-actions-row button:hover { color: var(--app-primary); }
.comment-time {
  font-size: .7rem;
  color: var(--app-text-muted);
}

/* Replies (nested) */
.comment-replies {
  margin-left: 2rem;
}
.reply-input-wrapper {
  display: flex;
  gap: .375rem;
  align-items: center;
  margin-left: 2rem;
  margin-top: .25rem;
}
.reply-input-wrapper input {
  flex: 1;
  border: 1px solid var(--app-border);
  border-radius: 20px;
  padding: .25rem .625rem;
  font-size: .75rem;
  background: var(--app-bg);
  color: var(--app-text);
  outline: none;
}
.reply-input-wrapper button {
  background: none;
  border: none;
  color: var(--app-primary);
  cursor: pointer;
  font-size: .875rem;
}

.load-more-comments-wrapper {
  text-align: center;
  padding: .375rem 0;
}
.btn-load-more-comments {
  background: none;
  border: none;
  color: var(--app-primary);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  padding: .25rem .5rem;
}
.btn-load-more-comments:hover { text-decoration: underline; }

/* Backward-compat old comment styles */
.post-comments { padding: .5rem 1rem .75rem; }
.post-comment {
  display: flex;
  gap: .5rem;
  padding: .375rem 0;
  font-size: .8125rem;
}
.post-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-comment-body { flex: 1; background: var(--app-bg); border-radius: var(--app-radius); padding: .375rem .625rem; }
.post-comment-author { font-weight: 600; font-size: .8125rem; }
.post-comment-text { font-size: .8125rem; }

/* Emoji grid (modal) */
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.emoji-item {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: .375rem;
  cursor: pointer;
}
.emoji-item:hover {
  background: var(--app-bg);
  transform: scale(1.15);
}

/* Topic strip (legacy .topic-strip / .topic-chip) */
.topic-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topic-strip::-webkit-scrollbar { display: none; }

.topic-chip {
  flex-shrink: 0;
  padding: .375rem .875rem;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  text-decoration: none;
}
.topic-chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
.topic-chip.active {
  background: var(--app-primary);
  color: #fff;
  border-color: var(--app-primary);
}

/* Create post */
.create-post-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.create-post-input {
  flex: 1;
  padding: .5rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  background: var(--app-bg);
  color: var(--app-text);
  font-size: .875rem;
  outline: none;
  cursor: pointer;
}
.create-post-input:focus { border-color: var(--app-primary); }

/* Create post box (feed.html full form) */
.create-post-box {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}
.create-post-box .create-post-input {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  border: none;
  padding: 0;
  background: transparent;
  cursor: default;
}
.create-post-box .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.create-post-box .avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--app-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
  flex-shrink: 0;
}
.post-input-area { flex: 1; min-width: 0; }
.post-input-area textarea {
  width: 100%;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: .5rem .75rem;
  font-size: .875rem;
  background: var(--app-bg);
  color: var(--app-text);
  resize: none;
  outline: none;
}
.post-input-area textarea:focus { border-color: var(--app-primary); }

#post-images-preview {
  display: none;
  margin-top: .5rem;
}
#post-images-preview.has-images { display: block; }
#preview-images-grid {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
}
#preview-images-grid img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: .375rem;
}

.post-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid var(--app-border);
}
.post-attachment-btns {
  display: flex;
  gap: .375rem;
}
.btn-post {
  background: var(--app-primary);
  color: #fff;
  border: none;
  padding: .375rem 1rem;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-post:hover { background: var(--app-primary-hover); }
.btn-post:disabled { opacity: .5; cursor: not-allowed; }

/* Emoji picker popup */
.emoji-picker-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  padding: .5rem;
  z-index: 20;
  max-height: 200px;
  overflow-y: auto;
  font-size: 1.25rem;
  line-height: 1.8;
  width: 280px;
}
.emoji-picker-popup.show { display: block; }

/* Topics strip (feed.html topics cards) */
.topics-strip {
  position: relative;
}
.topics-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topics-scroll::-webkit-scrollbar { display: none; }

.topics-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  box-shadow: var(--app-shadow-sm);
}
#topics-prev { left: -4px; }
#topics-next { right: -4px; }

.topic-card:hover { transform: translateY(-2px); box-shadow: var(--app-shadow-sm); }
.topic-media {
  height: 64px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.topic-body {
  padding: .375rem .5rem;
}
.topic-title {
  font-size: .7rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-count {
  font-size: .65rem;
  color: var(--app-text-muted);
}

/* Like label inside action button */
.like-label { margin-left: .25rem; }

/* Likers modal list */
.likers-list {
  display: flex;
  flex-direction: column;max-height: 400px;
    overflow-y: auto;
}
.likers-list .liker-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .375rem 0;
}
.likers-list .liker-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}



/* ========================================================================
   11. CHAT — Professional Messaging Interface (v2)
   ======================================================================== */

/* --- Wrapper & Container --- */
.chat-wrapper {
  position: relative;
  height: 100%;
}

.chat-container {
  display: flex;
  flex-direction: column;
  background: var(--app-bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  height: 100%;
}

/* --- Header --- */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--app-bg-card);
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
  z-index: 10;
  min-height: 60px;
}

.chat-header .chat-back {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--app-text-muted);
  font-size: 1.15rem;
  transition: all .15s;
}
.chat-header .chat-back:hover {
  background: rgba(var(--app-primary-rgb),.08);
  color: var(--app-primary);
}

.chat-header-avatar {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.chat-header-avatar img,
.chat-header-avatar .avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.chat-header-avatar .online-dot {
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--app-bg-card);
}

.chat-header-info {
  flex: 1; min-width: 0;
}
.chat-header-info h6 {
  margin: 0; font-size: .95rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-header-info h6 a { color: var(--app-text); }
.chat-header-info h6 a:hover { color: var(--app-primary); }
.chat-header-info small {
  display: block; font-size: .75rem; color: var(--app-text-muted);
}

.chat-header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 4px;
}
.chat-header-actions .btn { border-radius: 50%; padding: 6px 8px; }

/* --- Messages Area --- */
.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  background: var(--app-bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.1) transparent;
  -webkit-overflow-scrolling: touch;
}
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 3px; }

/* --- Message Bubble --- */
.message {
  display: flex;
  max-width: 78%;
  margin-bottom: 2px;
}
.message.mine { margin-left: auto; }
.message.theirs { margin-right: auto; }

.message-content {
  position: relative;
  padding: 9px 14px;
  border-radius: 18px;
  font-size: .9375rem;
  line-height: 1.45;
  word-break: break-word;
}
.message.mine .message-content {
  background: var(--app-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.message.theirs .message-content {
  background: var(--app-bg-card);
  color: var(--app-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
[data-bs-theme="dark"] .message.theirs .message-content {
  background: #1e293b;
  border: 1px solid var(--app-border);
}

.message-time {
  font-size: .68rem;
  color: var(--app-text-muted);
  margin-top: 2px;
  display: flex; align-items: center; gap: 3px;
}
.message.mine .message-time { justify-content: flex-end; }
.time-ago { font-size: inherit; color: inherit; }

/* Delete */
.msg-delete-btn {
  display: none;
  position: absolute; top: -8px; right: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #ef4444; color: #fff; border: none;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: .65rem;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.message-content:hover .msg-delete-btn { display: flex; }

/* Images */
.chat-image {
  max-width: 260px; border-radius: 12px;
  cursor: pointer; display: block;
}
.image-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
}
.image-grid .chat-image {
  max-width: 100%; aspect-ratio: 1; object-fit: cover;
}

/* Gifts */
.message-gift { text-align: center; padding: 10px; }
.gift-icon-display img {
  width: 80px; height: 80px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.gift-name-display { font-weight: 600; margin-top: 6px; }
.gift-coins { font-size: .8rem; color: var(--app-text-muted); margin-top: 2px; }
.gift-message-text { font-size: .8rem; font-style: italic; margin-top: 4px; opacity: .85; }
.gift-quantity { font-size: .75rem; color: var(--app-text-muted); font-weight: 600; }
.gift-icon-placeholder {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--app-bg); border-radius: 12px;
  font-size: 2rem; color: var(--app-text-muted);
}

/* --- Input Area --- */
.chat-input-wrapper {
  padding: 8px 12px;
  background: var(--app-bg-card);
  border-top: 1px solid var(--app-border);
  flex-shrink: 0;
}
[data-bs-theme="dark"] .chat-input-wrapper {
  background: var(--app-bg-card);
}

.chat-form-container {
  display: flex; align-items: flex-end; gap: 8px;
}
.left-controls-wrapper { display: flex; align-items: center; }
.left-controls { display: flex; gap: 2px; align-items: center; }

.control-btn {
  background: transparent; border: none;
  color: var(--app-primary);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; flex-shrink: 0;
}
.control-btn:hover { background: rgba(var(--app-primary-rgb),.08); }
.control-btn i { font-size: 20px; }

.message-textarea {
  flex: 1; border: 1px solid var(--app-border);
  background: var(--app-bg);
  padding: 10px 14px; border-radius: 22px;
  resize: none; min-height: 42px; max-height: 160px;
  font-size: .9375rem; line-height: 1.4;
  outline: none; color: var(--app-text);
  transition: border-color .15s, box-shadow .15s;
}
.message-textarea:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px rgba(var(--app-primary-rgb),.08);
}
.message-textarea::placeholder { color: var(--app-text-muted); }
[data-bs-theme="dark"] .message-textarea { background: #0f172a; }

.send-btn {
  background: var(--app-primary); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.send-btn:hover { background: var(--app-primary-hover); }
.send-btn:active { transform: scale(.92); }
.send-btn i { font-size: 17px; }

.chat-form-container.controls-hidden .left-controls { display: none !important; }

/* --- Chat List (Inbox) --- */
.chat-header-section {
  padding: 0 4px;
}
.chat-header-section h4 {
  font-size: 1.25rem; font-weight: 700; margin: 0 0 12px;
}

.chat-list { display: flex; flex-direction: column; gap: 2px; }

.chat-row {
  display: flex; align-items: center;
  border-radius: 12px;
  transition: background .15s;
}
.chat-row:hover { background: rgba(var(--app-primary-rgb),.04); }

.chat-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px; cursor: pointer;
  text-decoration: none; color: var(--app-text);
  flex: 1; min-width: 0;
}

.chat-avatar {
  position: relative;
  width: 52px; height: 52px; flex-shrink: 0;
}
.chat-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.chat-avatar .avatar-placeholder {
  width: 100%; height: 100%;
  border-radius: 50%; background: var(--app-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--app-text-muted);
}
.chat-avatar .online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px;
  background: #22c55e; border-radius: 50%;
  border: 2.5px solid var(--app-bg-card);
}

.chat-content {
  flex: 1; min-width: 0;
}
.chat-content h6 {
  margin: 0; font-size: .9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-content p {
  margin: 0; font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--app-text-muted);
}

.unread-badge {
  background: var(--app-primary);
  color: #fff; font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* --- VIP Lock Badge (chat list) --- */
.vip-lock-badge {
    width: 34px;
    border-radius: 10%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- VIP Blur effect (chat list & room) --- */
.chat-vip-blur .chat-content p,
.chat-vip-blur .message-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.chat-row.vip-locked { opacity: .8; }
.chat-row.vip-locked:hover { background: rgba(245, 158, 11, .06); }

/* --- VIP Lock Overlay (chat room) --- */
.vip-lock-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.vip-lock-overlay__card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--app-bg-card);
  border-radius: 20px; max-width: 340px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.vip-lock-overlay__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}
.vip-lock-overlay__title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem;
}
.vip-lock-overlay__desc {
  font-size: .88rem; color: var(--app-text-muted);
  margin-bottom: 1.25rem; line-height: 1.5;
}

/* --- VIP Locked Input Bar --- */
.vip-locked-input-bar {
  background: var(--app-bg-card);
  border-top: 1px solid var(--app-border);
}

/* --- chat-messages needs position:relative for overlay --- */
.chat-messages { position: relative; }

.chat-actions-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--app-text-muted); font-size: 1rem;
}
.chat-actions-btn:hover { background: var(--app-bg); }

/* --- Filter --- */
.search-filter-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-box-wrapper { flex: 1; position: relative; }
.search-box-wrapper .search-icon {
  position: absolute; left: 24px; top: 50%;
  transform: translateY(-50%); color: var(--app-text-muted);
  font-size: .9rem; pointer-events: none;
}
.search-box-wrapper .search-input {
  width: 100%; padding: 9px 14px 9px 40px;
  border: 1px solid var(--app-border); border-radius: 22px;
  font-size: .875rem; background: var(--app-bg);
  color: var(--app-text); outline: none;
  transition: border-color .15s;
}
.search-box-wrapper .search-input:focus {
  border-color: var(--app-primary);
}
.filter-dropdown-wrapper { position: relative; }
.filter-toggle-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--app-border); border-radius: 22px;
  background: var(--app-bg-card); color: var(--app-text);
  cursor: pointer; font-size: .8125rem;
  transition: border-color .15s;
}
.filter-toggle-btn:hover { border-color: var(--app-primary); }
.filter-dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 6px); right: 0; width: 220px;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: 12px; box-shadow: var(--app-shadow);
  z-index: 100; padding: 8px;
}
.filter-dropdown-menu.show { display: block; }
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  font-size: .82rem; color: var(--app-text);
  text-decoration: none; transition: background .15s;
}
.filter-option:hover { background: var(--app-bg); }
.filter-option.active {
  background: rgba(var(--app-primary-rgb),.08);
  color: var(--app-primary); font-weight: 600;
}

/* Emoji Grid — see timeline emoji-grid above; chat reuses same classes */
.emoji-item:hover { background: rgba(var(--app-primary-rgb),.08); }

/* Modals z-index */
.modal-backdrop.show { z-index: 1050 !important; }
#chatEmojiModal.modal,
#restrictedModal.modal,
#quickGiftModal.modal { z-index: 2100 !important; }

/* --- Restricted chat overlay --- */
.chat-restricted-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  flex: 1;
}
.chat-restricted-overlay .restricted-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(var(--app-primary-rgb),.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--app-primary);
  margin-bottom: 20px;
}
.chat-restricted-overlay h5 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 8px;
}
.chat-restricted-overlay p {
  font-size: .875rem; color: var(--app-text-muted);
  max-width: 320px; margin: 0 auto 20px;
}

/* ========================================================================
   RESPONSIVE: Mobile Chat
   ======================================================================== */
@media (max-width: 767.98px) {
  .chat-header {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    background: var(--app-bg-card);
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
  }

  .chat-input-wrapper {
    position: fixed !important;
    bottom: 0; left: 0; right: 0;
    z-index: 1100;
    background: var(--app-bg-card);
    box-shadow: 0 -1px 8px rgba(0,0,0,.06);
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .chat-messages {
    position: fixed !important;
    top: 60px;
    bottom: 66px;
    left: 0; right: 0;
    height: auto !important;
    padding: 12px 10px;
  }

  .chat-wrapper,
  .chat-container {
    height: 100vh; height: 100dvh;
    border-radius: 0;
  }

  .message { max-width: 85%; }
  .chat-image { max-width: 200px; }
}

/* ========================================================================
   RESPONSIVE: Desktop Chat
   ======================================================================== */
@media (min-width: 768px) {
  .chat-wrapper {
    max-width: 960px;
    margin: 16px auto;
  }

  .chat-container {
    height: calc(100vh - 120px);
    min-height: 500px;
    max-height: 860px;
  }

  .chat-messages { flex: 1 1 auto; }
}

/* ---------- 12. Profile ---------- */
.profile-hero {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  margin-bottom: 1rem;
}
.profile-photo-main {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--app-bg-card);
  box-shadow: var(--app-shadow);
  margin-bottom: .75rem;
}
.profile-name-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .125rem; }
.profile-subtitle { color: var(--app-text-muted); font-size: .9375rem; }

.profile-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .375rem;
  margin-bottom: 1rem;
}
.profile-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  cursor: pointer;
  transition: opacity .15s;
}
.profile-gallery img:hover { opacity: .85; }

.profile-info-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.profile-info-row {
  display: flex;
  justify-content: space-between;
  padding: .375rem 0;
  font-size: .875rem;
  border-bottom: 1px solid var(--app-border);
}
.profile-info-row:last-child { border-bottom: 0; }
.profile-info-label { color: var(--app-text-muted); }
.profile-info-value { font-weight: 500; }

/* Profile single-column view (view_profile / my_profile) */
.profile-single-column {
  max-width: 600px;
  margin: 0 auto;
}

/* Main photo display */
.main-photo-display {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--app-radius-lg);
  background: #000;
  margin-bottom: 1rem;
}
.main-photo-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-photo-display .photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
  z-index: 3;
}
.main-photo-display .photo-nav-btn:hover { background: rgba(0,0,0,.7); }
.main-photo-display .photo-nav-btn.prev { left: .75rem; }
.main-photo-display .photo-nav-btn.next { right: .75rem; }

.photo-counter {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  padding: .25rem .625rem;
  border-radius: 12px;
  z-index: 3;
}

/* Profile info overlay on main photo */
.profile-info-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1rem .75rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff;
  z-index: 2;
}
.profile-name-section h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  font-size: .8125rem;
  margin-top: .375rem;
  opacity: .95;
}
.profile-meta-row i { margin-right: .125rem; }
.online-status { color: #10b981; }
.online-status i { font-size: .5rem; vertical-align: middle; }

/* Info list (personal info) */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid var(--app-border);
  font-size: .875rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list li strong {
  color: var(--app-text-muted);
  font-weight: 500;
  flex-shrink: 0;
  margin-right: .75rem;
}
.info-list li span { text-align: right; }

/* Interests wrap */
.interests-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
}
.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .75rem;
  background: rgba(99,102,241,.08);
  color: var(--app-primary);
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
}

/* Like button */
.btn-like {
  background: linear-gradient(135deg, var(--app-secondary), #f472b6);
  color: #fff;
  border: none;
  padding: .5rem 1rem;
  border-radius: var(--app-radius);
  font-weight: 600;
  transition: opacity .15s, transform .15s;
}
.btn-like:hover { opacity: .9; color: #fff; transform: scale(1.02); }

/* Timeline section inside profile */
.timeline-section {
  margin-top: 1rem;
}

/* Infinite scroll indicators */
#loading-indicator {
  text-align: center;
  padding: 1.5rem;
  color: var(--app-text-muted);
  display: none;
}
#end-indicator {
  text-align: center;
  padding: 1rem;
  font-size: .875rem;
  color: var(--app-text-muted);
  display: none;
}


/* Primary photo section */
.primary-photo-section {
  text-align: center;
      background: #000;
}
.primary-photo-container {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  background: var(--app-bg);
}
.primary-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.primary-photo-badge {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--app-primary);
  color: #fff;
  font-size: .7rem;
  padding: .2rem .625rem;
  border-radius: 12px;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
}
.primary-photo-actions {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
  z-index: 3;
}
.primary-photo-container:hover .primary-photo-actions { opacity: 1; }

.photo-action-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s;
}
.photo-action-btn:hover { transform: scale(1.1); }
.photo-action-btn.change { background: rgba(255,255,255,.9); color: var(--app-primary); }
.photo-action-btn.delete { background: rgba(255,255,255,.9); color: #ef4444; }

.primary-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--app-text-muted);
  text-align: center;
  padding: 1rem;
}
.primary-photo-placeholder i { font-size: 3rem; margin-bottom: .5rem; opacity: .5; }
.primary-photo-placeholder h4 { font-size: .9rem; margin-bottom: .25rem; }
.primary-photo-placeholder p { font-size: .75rem; opacity: .7; margin: 0; }

/* Additional photos grid */
.additional-photos-section {
  margin-bottom: 1.5rem;
}
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .75rem;
}
.photo-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--app-radius);
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid var(--app-border);
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
}
.photo-slot.has-photo:hover .photo-slot-overlay { opacity: 1; }

.photo-slot-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: transform .15s;
}
.photo-slot-btn:hover { transform: scale(1.1); }
.photo-slot-btn.primary { background: rgba(255,255,255,.9); color: #f59e0b; }
.photo-slot-btn.delete { background: rgba(255,255,255,.9); color: #ef4444; }

.photo-slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--app-text-muted);
  font-size: .75rem;
  gap: .25rem;background: #fff;
}
.photo-slot-placeholder i { font-size: 1.25rem; }

/* Avatar options (gender / looking_for selectors) */
.avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}
.avatar-options.horizontal {
  flex-direction: row;
}

/* For profile/edit and onboarding: force equal 4-column layout when used as a horizontal group
   Use attribute selector so other avatar-options usages aren't affected. */
.avatar-options[data-target="gender"],
.avatar-options[data-target="looking_for"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(70px, 100%), 1fr));
  gap: .75rem;
}

/* Make each option stretch to fill its grid cell */
.avatar-options[data-target] .avatar-option {
  width: 100%;
  min-width: 0;
  justify-content: center;
}
.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  padding: .75rem .875rem;
  border-radius: var(--app-radius);
  border: 2px solid var(--app-border);
  background: var(--app-bg-card);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-width: 72px;
}
.avatar-option:hover { border-color: var(--app-primary); }
.avatar-option.active {
  border-color: var(--app-primary);
  background: rgba(99,102,241,.06);
}
.avatar-circle {
  font-size: 1.75rem;
  line-height: 1;

}

/* Minimal styles for radio-based avatar selectors (uses BS .visually-hidden) */
input[type="radio"].visually-hidden + label.avatar-option { display: inline-flex; }
input[type="radio"].visually-hidden:focus + label.avatar-option { outline: 2px solid rgba(13,110,253,0.25); }
input[type="radio"].visually-hidden:checked + label.avatar-option { border-color: var(--app-primary); background: rgba(99,102,241,.06); box-shadow: 0 0 0 4px rgba(13,110,253,0.12); }
.avatar-label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--app-text);
}

/* Interest tags (edit profile) */
.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .375rem .875rem;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.interest-tag:hover { border-color: var(--app-primary); }
.interest-tag.active {
  background: var(--app-primary);
  color: #fff;
  border-color: var(--app-primary);
}

/* ---------- 13. Discover / Swipe: see discover-* classes below ---------- */

/* ---------- 14. Payments / Pricing ---------- */
.pricing-hero {
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--app-radius-lg);
    background: #fff;
}

.coin-balance {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem 1rem;
  background: rgba(255,255,255,.2);
  border-radius: 20px;
  font-weight: 600;
  margin-top: .5rem;
}

.coin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  margin-bottom: .5rem;
  transition: border-color .15s;
}
.coin-card:hover { border-color: var(--app-primary); }
.coin-card.popular { border-color: var(--app-primary); box-shadow: 0 0 0 1px var(--app-primary); }
.coin-card-left { display: flex; align-items: center; gap: .625rem; }
.coin-icon-big { font-size: 2rem; }
.coin-info h4 { margin: 0; font-size: 1rem; font-weight: 600; }
.bonus-coins { color: #10b981; font-size: .75rem; font-weight: 600; }
.coin-price { font-weight: 700; font-size: 1rem; color: var(--app-primary); white-space: nowrap; }
.btn-buy-coins {
  padding: .375rem 1rem;
  border-radius: 20px;
  background: var(--app-primary);
  color: #fff;
  border: none;
  font-size: .8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-buy-coins:hover { background: var(--app-primary-hover); }
.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
/* Base VIP card styles (minimal base, page-specific refinements live under .pricing-page) */
.vip-card { border-radius: 12px; overflow: hidden; background: var(--app-bg-card); border: 1px solid var(--app-border); box-shadow: var(--app-shadow); }
.vip-card .vip-header { padding: 1.25rem; color: var(--app-text); display:flex; justify-content:space-between; align-items:center; }
.vip-card .vip-header h3 { margin:0; font-size:1.25rem; font-weight:700; }
.vip-card .vip-body { padding: 1.25rem; }
.vip-price { font-size:1.5rem; font-weight:700; color:var(--app-primary); }
.vip-features { margin:0; padding:0; list-style:none; }
.vip-features li { margin-bottom:0.5rem; color:var(--app-text); }
.vip-actions { display:flex; gap:0.5rem; margin-top:1rem; }
.vip-actions .btn { flex:1; }
.popular-badge { position: absolute; top: 12px; right:12px; }

/* Professional pricing page styles (light + dark) */
.pricing-page .pricing-hero { padding: 2rem 1.25rem; background: linear-gradient(180deg, rgba(var(--app-primary-rgb),0.06), rgba(0,0,0,0.01)); border-radius: 12px; margin-bottom: 1.25rem; }
.pricing-page .pricing-hero h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .25rem; }
.pricing-page .pricing-hero p { color: var(--app-text-muted); margin-bottom: 0.5rem; }
.pricing-page .vip-grid { gap: 1.25rem; }
.pricing-page .vip-card { transition: transform .18s ease, box-shadow .18s ease; }
.pricing-page .vip-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(20,30,60,0.12); }
.pricing-page .vip-card .vip-header { padding: 1.25rem 1.25rem; }
.pricing-page .vip-card .vip-body { padding: 1.25rem; }
.pricing-page .vip-price { font-size: 1.6rem; color: var(--app-primary); }
.pricing-page .vip-features li { color: var(--app-text); }
.pricing-page .vip-actions .btn { border-radius: 10px; padding: .6rem .75rem; }

.pricing-page .coin-packages { gap: 1rem; }
.pricing-page .coin-package { border-radius: .8rem; padding: .6rem .9rem; transition: transform .15s ease, box-shadow .15s ease; }
.pricing-page .coin-package:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(16,24,40,0.08); }

/* Dark theme overrides scoped to existing theme mechanism */
[data-bs-theme="dark"] .pricing-page .pricing-hero { background: linear-gradient(180deg, rgba(99,102,241,0.04), rgba(255,255,255,0.01)); }
[data-bs-theme="dark"] .pricing-page .vip-card { background: linear-gradient(180deg, #071018, #0b1116); border: 1px solid rgba(255,255,255,0.04); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
[data-bs-theme="dark"] .pricing-page .vip-card .vip-header { background: linear-gradient(90deg, rgba(var(--app-primary-rgb),0.12), rgba(0,0,0,0.04)); color: #e6eef8; }
[data-bs-theme="dark"] .pricing-page .vip-price { color: #cfe6ff; }
[data-bs-theme="dark"] .pricing-page .vip-features li { color: #c9ddff; }
[data-bs-theme="dark"] .pricing-page .coin-package { background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color: #e6eef8; border: 1px solid rgba(255,255,255,0.02); }
[data-bs-theme="dark"] #bankQrModal .modal-content { background: #071018; color: #e6eef8; }


.btn-upgrade {
  width: 100%;
  padding: .625rem;
  border: none;
  border-radius: var(--app-radius);
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-upgrade:hover { opacity: .9; }

/* Section title for pricing */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0 .5rem;
}

/* Gift shop */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}
.gift-item {
  text-align: center;
  padding: .75rem .5rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.gift-item:hover { border-color: var(--app-primary); transform: translateY(-2px); }
.gift-icon { margin-bottom: .375rem; }
.gift-name { font-size: .8125rem; font-weight: 500; margin-bottom: .25rem; }
.gift-price { font-size: .75rem; color: var(--app-primary); font-weight: 600; }

/* Coin history */
.balance-card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--app-radius-lg);
  background: linear-gradient(135deg, var(--app-primary), #818cf8);
  color: #fff;
  margin-bottom: 1.5rem;
}
.balance-amount { font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; }

.transaction-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--app-border);
}
.transaction-icon { font-size: 1.5rem; flex-shrink: 0; }
.transaction-info { flex: 1; min-width: 0; }
.transaction-type { font-weight: 600; font-size: .875rem; }
.transaction-desc { font-size: .8125rem; color: var(--app-text-muted); }
.transaction-time { font-size: .75rem; color: var(--app-text-muted); }
.transaction-amount {
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
}
.transaction-amount.positive { color: #10b981; }
.transaction-amount.negative { color: #ef4444; }

/* Gift cards */
.gift-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  margin-bottom: .5rem;
}
.gift-icon-compact { width: 60px; height: 60px; flex-shrink: 0; }
.gift-icon-compact img { width: 100%; height: 100%; border-radius: .5rem; object-fit: cover; }
.gift-details { flex: 1; min-width: 0; }
.gift-header strong { font-size: .9375rem; }
.gift-meta { font-size: .75rem; color: var(--app-text-muted); }
.gift-meta-item { display: inline-block; margin-right: .5rem; }
.gift-message { font-size: .8125rem; font-style: italic; margin-top: .25rem; color: var(--app-text-muted); }
.gift-coins { font-weight: 700; font-size: 1rem; flex-shrink: 0; color: var(--app-primary); }

/* Reward shop */
.category-filter { margin-bottom: 1rem; }
.category-btn {
  border-radius: 20px;
  font-size: .8125rem;
  padding: .375rem .875rem;
  margin: 0 .125rem .25rem;
}
.category-btn.active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.product-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--app-shadow); }
.product-image { width: 100%; height: 180px; object-fit: cover; }
.product-body { padding: 1rem; }
.product-category { font-size: .75rem; color: var(--app-text-muted); margin-bottom: .25rem; }
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; color: var(--app-text); }
.product-description { font-size: .8125rem; color: var(--app-text-muted); margin-bottom: .5rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-weight: 700; color: var(--app-primary); }
.stock-badge { font-size: .75rem; font-weight: 500; }
.stock-badge.in-stock { color: #10b981; }
.stock-badge.out-of-stock { color: #ef4444; }

/* Order cards */
.order-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  padding: 1rem;
  margin-bottom: .75rem;
}
.order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.order-number { font-weight: 600; }
.order-date { font-size: .8125rem; color: var(--app-text-muted); }
.status-badge { padding: .25rem .625rem; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #d1fae5; color: #065f46; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.order-items { margin-bottom: .75rem; }
.order-item { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .875rem; }
.contact-info { font-size: .8125rem; color: var(--app-text-muted); }
.contact-info p { margin-bottom: .25rem; }
.order-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--app-border); padding-top: .75rem; }
.total-amount { font-weight: 700; font-size: 1.125rem; color: var(--app-primary); }

/* ---------- 15. Auth Pages ---------- */
.auth-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}
.auth-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow);
}
.auth-illustration-panel {
  width: 400px;
  flex-shrink: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--app-primary), #818cf8);
  color: #fff;
}
.auth-illustration--pink {
  background: linear-gradient(135deg, var(--app-secondary), #f472b6);
}
.auth-illustration-panel h3 { font-size: 1.5rem; font-weight: 700; }
.auth-illustration-panel p { opacity: .9; }
.auth-illustration-graphic { margin-top: 1rem; }
.auth-illustration-graphic img { max-width: 200px; border-radius: .5rem; }

.auth-body-panel,
.auth-body {
  flex: 1;
  padding: 2rem;
}
.register-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow);
}
.register-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--app-border);
}
.register-body {
  padding: 1.25rem;
}

.btn-register {
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff;
  border: none;
  padding: .625rem 1.5rem;
  border-radius: var(--app-radius);
  font-weight: 600;
  transition: opacity .15s;
}
.btn-register:hover { opacity: .9; color: #fff; }

/* Auth form & fields */
.auth-form { width: 100%; }
.auth-illustration-text { opacity: .9; font-size: .875rem; }
.auth-header-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .25rem; }
.auth-header-subtitle { font-size: .875rem; color: var(--app-text-muted); margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.error-message { color: #dc3545; font-size: .8125rem; margin-top: .25rem; }
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: .875rem;
}
.toggle-password {
  position: absolute !important;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--app-text-muted);
  cursor: pointer;
  padding: .25rem;
}
.forgot-link { color: var(--app-primary); text-decoration: none; font-size: .875rem; }
.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  padding: .375rem 1rem;
  border-radius: var(--app-radius);
  font-size: .875rem;
  font-weight: 500;
}
.btn-login { border: 1px solid var(--app-border); color: var(--app-text); }
.btn-login:hover { background: var(--app-bg); }

.login-link a { color: var(--app-primary); font-weight: 500; }

/* ---------- 16. Notifications ---------- */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--app-radius);
  cursor: pointer;
  transition: background .1s;
}
.notification-item:hover { background: var(--app-bg); }
.notification-item.unread { background: rgba(99,102,241,.04); }
.notification-item .notif-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-item .notif-content { flex: 1; min-width: 0; }
.notification-item .notif-text { font-size: .875rem; }
.notification-item .notif-time { font-size: .75rem; color: var(--app-text-muted); }
.notification-item .unread-dot {
  width: 8px;
  height: 8px;
  background: var(--app-primary);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}

.notif-toast {
  position: fixed;
  bottom: calc(var(--mobile-nav-height) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9999;
  padding: .625rem 1.25rem;
  border-radius: var(--app-radius);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--app-shadow);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
}
.notif-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notif-toast-success i { color: #10b981; }
.notif-toast-error i { color: #ef4444; }

/* ---------- 17. Blog ---------- */
.blog-card-img { height: 200px; object-fit: cover; }
.blog-card-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-bg);
  color: var(--app-text-muted);
  font-size: 2rem;
}

.post-detail-image { margin-bottom: 1rem; }
.post-detail-image img {  border-radius: var(--app-radius); }

.post-content { font-size: 1rem; line-height: 1.8; }

/* Blog list helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  z-index: 2;
}
.blog-card .card-img-top { position: relative; }
.post-content img { border-radius: var(--app-radius); margin: .5rem 0; }

.related-post-img { width: 80px; height: 60px; object-fit: cover; border-radius: .375rem; flex-shrink: 0; }
.related-post-placeholder { width: 80px; height: 60px; border-radius: .375rem; background: var(--app-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.related-post-title { font-size: .875rem; font-weight: 600; color: var(--app-text); margin-bottom: .125rem; }

/* ---------- 18. Empty / Loading states ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--app-text-muted);
}
.empty-state i { font-size: 3.5rem; margin-bottom: .5rem; }
.empty-state h4, .empty-state h5 { color: var(--app-text); }

/* ---------- 19. Members Navigation ---------- */
.members-nav .btn-group .btn { font-size: .8125rem; }
.members-nav .btn-group .btn.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}


.members-nav .btn-group {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.members-nav .btn-group .btn {
  padding: 1rem;
  font-weight: 600;
  color: var(--app-text);
  background: #fff;
  border: 1px solid var(--app-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.members-nav .btn-group .btn:hover {
  filter: brightness(0.98);
}
.members-nav .btn-group .btn.active {
  background: linear-gradient(90deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 60%, #ffffff));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.members-nav .near-me { display: inline-flex; align-items: center; gap: .4rem; }

.members-nav form { margin: 0 0 0 auto; }
.members-nav #age-picker-btn { display: inline-flex; align-items: center; gap: .4rem; }

/* Small screens: compact buttons, keep horizontal scroll, move form controls into the flow */
@media (max-width: 576px) {
  .members-nav { padding: 0.4rem; }
  .members-nav .btn-group .btn { padding: 0.35rem 0.7rem; font-size: .75rem; }
  .members-nav form { margin-left: 0.5rem; }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .members-nav {
  background: var(--app-bg-card);
  border-color: rgba(255,255,255,0.04);
}
[data-bs-theme="dark"] .members-nav .btn-group .btn {
  color: var(--app-text);
  border-color: rgba(255,255,255,0.04);
  background: transparent;
}
[data-bs-theme="dark"] .members-nav .btn-group .btn.active {
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Accessibility: focus outline for keyboard users */
.members-nav .btn:focus { outline: 3px solid color-mix(in srgb, var(--app-primary) 20%, transparent); outline-offset: 2px; }

/* Like footer */
.like-footer {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-top: 0;
  border-radius: 0 0 var(--app-radius) var(--app-radius);
  margin-top: -4px;
}

/* Likes preview */
.likes-preview { position: relative; }
.blur-overlay { filter: blur(8px); pointer-events: none; }
.upgrade-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: var(--app-bg-card);
  padding: 2rem;
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow);
  z-index: 2;
  filter: none;
  pointer-events: all;
}

/* ========== DATING PAGES - Professional Redesign ========== */

/* -- Connection Tabs (Likes / Matches / My-Likes / Discover) -- */
.connection-tabs {
  display: flex;
  gap: .375rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 1.25rem;
}
.connection-tabs::-webkit-scrollbar { display: none; }
.connection-tabs__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
  transition: all .2s;
  position: relative;
}
.connection-tabs__item:hover {
  color: var(--app-primary);
  background: rgba(99,102,241,.06);
}
.connection-tabs__item--active {
  color: #818cf8;
}
.connection-tabs__item--active:hover { color: #fff; }
.connection-tabs__item i { font-size: 1rem; }
.connection-tabs__badge {
  background: var(--app-secondary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: .125rem .375rem;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}

/* -- Container -- */
.dating-page-container {
  max-width: 960px;
  margin: 0 auto;
}

/* -- Page Header -- */
.dating-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dating-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dating-page-header--matches { background: linear-gradient(135deg, #10b981 0%, #059669 50%, #34d399 100%); }
.dating-page-header--likes-received { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #f472b6 100%); }
.dating-page-header--my-likes { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #a78bfa 100%); }

.dating-page-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}
.dating-page-header__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dating-page-header__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.dating-page-header__desc {
  font-size: .8125rem;
  opacity: .85;
  margin: .125rem 0 0;
}
.dating-page-header__count {
  background: rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  padding: .375rem .875rem;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}

/* -- Card Grid -- */
.dating-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 768px) {
  .dating-card-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .dating-card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -- Card -- */
.dating-card {
  background: var(--app-bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s;
}
.dating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.dating-card:active { transform: translateY(-1px); }

/* Card Photo */
.dating-card__photo {
  position: relative;
  width: 100%;
  padding-top: 133%;
  overflow: hidden;
  background: var(--app-bg);
}
.dating-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.dating-card:hover .dating-card__photo img {
  transform: scale(1.05);
}
.dating-card__no-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #94a3b8;
  font-size: 3rem;
}

/* Online indicator */
.dating-card__online {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 0 rgba(34,197,94,.4);
  animation: dating-pulse 2s infinite;
  z-index: 5;
}
@keyframes dating-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Badges */
.dating-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  z-index: 5;
}
.dating-card__badge--unread {
  background: #ef4444;
  min-width: 28px;
  width: auto;
  border-radius: 14px;
  padding: 0 .375rem;
  font-size: .7rem;
}
.dating-card__badge--vip {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.dating-card__badge--match {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  box-shadow: 0 2px 8px rgba(236,72,153,.3);
}

/* Overlay */
.dating-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem .875rem .75rem;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  color: #fff;
}
.dating-card__name h3{
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;margin: 0;
}
.dating-card__meta {
  font-size: .75rem;
  opacity: .85;
  margin-top: .125rem;
}
.dating-card__interests {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .375rem;
}
.dating-card__interest {
  font-size: .625rem;
  padding: .125rem .4375rem;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

/* Card Footer */
.dating-card__footer {
  padding: .625rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px solid var(--app-border);
}
.dating-card__time {
  font-size: .7rem;
  color: var(--app-text-muted);
  display: flex;
  align-items: center;
  gap: .25rem;
}
.dating-card__time i { font-size: .625rem; }

/* Action Buttons */
.dating-card__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .5rem .75rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.dating-card__action-btn--chat {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.dating-card__action-btn--chat:hover {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.dating-card__action-btn--like {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
}
.dating-card__action-btn--like:hover {
  background: linear-gradient(135deg, #db2777, #e11d48);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236,72,153,.3);
}
.dating-card__action-btn--unlike {
  background: transparent;
  color: #ef4444;
  border: 1.5px solid #fca5a5;
}
.dating-card__action-btn--unlike:hover {
  background: #fef2f2;
  border-color: #ef4444;
}
.dating-card__action-btn--disabled {
  background: var(--app-bg);
  color: var(--app-text-muted);
  cursor: default;
  opacity: .7;
}

/* -- Loading & End indicators -- */
.dating-loading {
  text-align: center;
  padding: 1.5rem;
  color: var(--app-text-muted);
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.dating-end {
  text-align: center;
  padding: 1.5rem;
  color: var(--app-text-muted);
  font-size: .8125rem;
}
.dating-end i { color: #10b981; margin-right: .25rem; }

/* -- Empty State -- */
.dating-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--app-bg-card);
  border-radius: 16px;
  border: 1px solid var(--app-border);
}
.dating-empty__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fce7f3, #ffe4e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ec4899;
}
.dating-empty h5 {
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: .375rem;
}
.dating-empty p {
  color: var(--app-text-muted);
  font-size: .875rem;
  margin-bottom: 1.25rem;
}
.dating-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .625rem 1.5rem;
  background: linear-gradient(135deg, var(--app-primary), #818cf8);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.dating-empty__btn:hover { opacity: .9; color: #fff; transform: translateY(-1px); }

/* -- Upgrade Wall (non-premium likes) -- */
.dating-upgrade-wall {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 400px;
}
.dating-upgrade-wall__blurred {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: 1rem;
  filter: blur(12px);
  pointer-events: none;
  opacity: .6;
}
.dating-upgrade-wall__card {
  background: var(--app-bg);
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
}
.dating-upgrade-wall__avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto .5rem;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #94a3b8;
}
.dating-upgrade-wall__name {
  font-size: .875rem;
  color: var(--app-text-muted);
}
.dating-upgrade-wall__prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: var(--app-bg-card);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  z-index: 5;
  max-width: 360px;
  width: 90%;
}
.dating-upgrade-wall__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}
.dating-upgrade-wall__prompt h4 {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--app-text);
  margin-bottom: .375rem;
}
.dating-upgrade-wall__prompt p {
  color: var(--app-text-muted);
  font-size: .875rem;
  margin-bottom: 1rem;
}
.dating-upgrade-wall__btn {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .75rem 2rem;
  background: linear-gradient(135deg, #f59e0b, #eab308);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.dating-upgrade-wall__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
  color: #fff;
}

/* -- Dark mode adjustments -- */
[data-bs-theme="dark"] .dating-card {
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
[data-bs-theme="dark"] .dating-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
[data-bs-theme="dark"] .dating-card__no-photo {
  background: linear-gradient(135deg, #334155, #475569);
  color: #64748b;
}
[data-bs-theme="dark"] .dating-empty {
  border-color: rgba(255,255,255,.06);
}
[data-bs-theme="dark"] .dating-empty__icon {
  background: linear-gradient(135deg, rgba(236,72,153,.15), rgba(244,63,94,.15));
}
[data-bs-theme="dark"] .dating-card__action-btn--unlike {
  border-color: rgba(239,68,68,.3);
}
[data-bs-theme="dark"] .dating-card__action-btn--unlike:hover {
  background: rgba(239,68,68,.1);
}
[data-bs-theme="dark"] .dating-upgrade-wall__card {
  background: rgba(255,255,255,.05);
}
[data-bs-theme="dark"] .dating-upgrade-wall__prompt {
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

/* -- Mobile tweaks -- */
@media (max-width: 576px) {
  .dating-card-grid { gap: .5rem; }
  .dating-card { border-radius: 12px; }
  .dating-card__overlay { padding: 2rem .625rem .625rem; }
  .dating-card__name { font-size: .8125rem; }
  .dating-card__meta { font-size: .6875rem; }
  .dating-card__footer { padding: .5rem .625rem; }
  .dating-card__action-btn { padding: .375rem .625rem; font-size: .75rem; border-radius: 8px; }
  .dating-upgrade-wall__blurred { grid-template-columns: repeat(2, 1fr); }
}

/* ========== DATING BANNER (shared page header) ========== */
.dating-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--app-primary) 0%, #818cf8 100%);
}
.dating-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dating-banner__inner { display: flex; align-items: center; gap: 1rem; z-index: 1; }
.dating-banner__title { font-size: 1.375rem; font-weight: 700; margin: 0; line-height: 1.2; }
.dating-banner__desc { font-size: .8125rem; opacity: .85; margin: .125rem 0 0; }
.dating-banner__count {
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  padding: .375rem .875rem; border-radius: 20px;
  font-size: .875rem; font-weight: 700; flex-shrink: 0; z-index: 1;
}
/* Banner variants */
.dating-banner--members { background: linear-gradient(135deg, var(--app-primary) 0%, #818cf8 100%); }
.dating-banner--featured { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.dating-banner--male { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }
.dating-banner--female { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.dating-banner--lgbt { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.dating-banner--nearme { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.dating-banner--map { background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%); }

/* ========== MEMBERS TABS (navigation) ========== */
.members-tabs {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .375rem;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.members-tabs__scroll {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: .25rem;
  flex: 1;
}
.members-tabs__scroll::-webkit-scrollbar { display: none; }
.members-tabs__item {
  display: flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .875rem;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  border: none;
  background: transparent;
}
.members-tabs__item:hover {
  color: var(--app-primary);
  background: rgba(99,102,241,.06);
}
.members-tabs__item--active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-primary) 0%, #818cf8 100%);
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}
.members-tabs__item--active:hover { color: #fff; }
.members-tabs__item i { font-size: .875rem; }


/* ========== MEMBERS GRID (responsive override for member pages) ========== */
.dating-card-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px) {
  .dating-card-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .dating-card-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 992px) {
  .dating-card-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ========== DISCOVER PAGE ========== */
.discover-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .5rem;
  max-width: 600px;
  margin: 0 auto;
}
.discover-page .connection-tabs {
  width: 100%;
  margin-bottom: .75rem;
}
.discover-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Discover Card */
.discover-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  background: var(--app-bg-card);
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s;
}
.discover-card--like { transform: translateX(60px) rotate(6deg); opacity: .5; }
.discover-card--pass { transform: translateX(-60px) rotate(-6deg); opacity: .5; }

.discover-card__media { position: relative; }
.discover-card__media .carousel-inner { border-radius: 20px 20px 0 0; overflow: hidden; }
.discover-card__media .carousel-item img {
  width: 100%;
  height: clamp(520px, 60vw, 620px);
  object-fit: cover;
}
.discover-card__no-photo {
  width: 100%; height: 620px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #94a3b8; font-size: 5rem;
}

/* Photo dots */
.discover-card__dots {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 10;
}
.discover-card__dot {
  width: 28px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.4);
  transition: background .2s;
}
.discover-card__dot.active { background: #fff; }

/* Profile info overlay */
.discover-card__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
  color: #fff;
}
.discover-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.discover-card__name i { font-size: 1.125rem; margin-left: .25rem; }
.discover-card__age { font-weight: 400; }
.discover-card__verified { color: #60a5fa; margin-left: .375rem; font-size: 1rem; }
.discover-card__location {
  font-size: .875rem;
  opacity: .9;
  margin-top: .25rem;
  display: flex;
  align-items: center;
  gap: .375rem;
}
.discover-card__online {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  border: 1.5px solid #fff;
  flex-shrink: 0;
}
.discover-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: .625rem;
}
.discover-card__tag {
  padding: .25rem .625rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 500;
}

/* Profile button */
.discover-card__profile-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10;
}
.discover-card__profile-btn:hover { background: rgba(0,0,0,.5); }

/* Action buttons */
.discover-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.25rem 0;
}
.discover-actions__btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2.5px solid;
  background: var(--app-bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.discover-actions__btn:hover { transform: scale(1.12); }
.discover-actions__btn:active { transform: scale(.95); }
.discover-actions__btn--pass {
  border-color: #ef4444; color: #ef4444;
}
.discover-actions__btn--pass:hover { background: #ef4444; color: #fff; box-shadow: 0 6px 20px rgba(239,68,68,.3); }
.discover-actions__btn--like {
  border-color: #10b981; color: #10b981;
}
.discover-actions__btn--like:hover { background: #10b981; color: #fff; box-shadow: 0 6px 20px rgba(16,185,129,.3); }

/* Counter */
.discover-counter {
  text-align: center;
  padding: .5rem;
  font-size: .875rem;
  color: var(--app-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}
.discover-counter .bi-fire { color: #f97316; }
.discover-counter a {
  color: var(--app-primary);
  font-weight: 500;
  font-size: .8125rem;
  text-decoration: none;
}
.discover-counter a:hover { text-decoration: underline; }

/* Match Popup redesign */
.match-popup__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  font-size: 1.5rem; color: var(--app-text-muted);
  cursor: pointer;
}
.match-popup__hearts {
  display: flex; gap: .5rem; justify-content: center;
  font-size: 2rem; color: #ec4899;
  margin-bottom: .5rem;
  animation: match-bounce .6s ease;
}
@keyframes match-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.match-popup__title {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.match-popup__msg { color: var(--app-text-muted); font-size: .9375rem; }
.match-photos__heart {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem;
  box-shadow: 0 4px 12px rgba(236,72,153,.3);
}
.match-popup__actions {
  display: flex; gap: .75rem; justify-content: center;
  margin-top: 1.25rem;
}
.match-popup__btn {
  padding: .625rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.match-popup__btn--primary {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(236,72,153,.3);
}
.match-popup__btn--primary:hover { transform: translateY(-2px); color: #fff; }
.match-popup__btn--secondary {
  background: var(--app-bg);
  color: var(--app-text);
  border: 1px solid var(--app-border);
}
.match-popup__btn--secondary:hover { background: var(--app-bg-card); }

/* ========== LOCATION PROMPT ========== */
.location-prompt {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  background: var(--app-bg-card);
  border-radius: 20px;
  max-width: 480px;
  margin: 2rem auto;
}
.location-prompt__icon {
  width: 80px; height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
}
.location-prompt__title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.location-prompt__desc { color: var(--app-text-muted); font-size: .9375rem; margin-bottom: 1rem; }
.location-prompt__alert {
   align-items: flex-start; gap: .5rem;
  text-align: left; padding: .75rem 1rem;
  border-radius: 12px; font-size: .8125rem;
  margin-bottom: 1rem;
}
.location-prompt__alert i { flex-shrink: 0; margin-top: .125rem; }
.location-prompt__alert--info {
  background: rgba(59,130,246,.08);
  color: #2563eb;
  border: 1px solid rgba(59,130,246,.15);
}
.location-prompt__alert--info a { color: #1d4ed8; font-weight: 600; }
.location-prompt__alert--success {
  background: rgba(16,185,129,.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,.15);
}

/* ========== DATING CARD EXTRAS ========== */
.dating-card__distance {
      position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: .25rem .5rem;
    border-radius: 20px;
    background: #008000;
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    z-index: 5;
}
.dating-card__badge--verified {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}
.dating-card__action-btn--view {
  background: transparent;
  color: var(--app-primary);
  border: 1.5px solid var(--app-primary);
  flex-shrink: 0;
  width: auto;
  padding: .5rem .75rem;
}
.dating-card__action-btn--view:hover {
  background: var(--app-primary);
  color: #fff;
}

/* ========== DARK MODE ADDITIONS ========== */
[data-bs-theme="dark"] .dating-banner { box-shadow: 0 4px 16px rgba(0,0,0,.3); }
[data-bs-theme="dark"] .connection-tabs { background: var(--app-bg-card); border-color: rgba(255,255,255,.04); }
[data-bs-theme="dark"] .connection-tabs__item { color: rgba(255,255,255,.6); }
[data-bs-theme="dark"] .connection-tabs__item:hover { color: #a5b4fc; background: rgba(99,102,241,.1); }
[data-bs-theme="dark"] .members-tabs { background: var(--app-bg-card); border-color: rgba(255,255,255,.04); }
[data-bs-theme="dark"] .members-tabs__item { color: rgba(255,255,255,.6); }
[data-bs-theme="dark"] .members-tabs__item:hover { color: #a5b4fc; background: rgba(99,102,241,.1); }
[data-bs-theme="dark"] .discover-card { box-shadow: 0 8px 32px rgba(0,0,0,.3); }
[data-bs-theme="dark"] .discover-actions__btn { background: var(--app-bg-card); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
[data-bs-theme="dark"] .location-prompt { border-color: rgba(255,255,255,.06); }
[data-bs-theme="dark"] .location-prompt__alert--info { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.15); }
[data-bs-theme="dark"] .location-prompt__alert--success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.15); }

/* ========== MOBILE RESPONSIVE ========== */


/* ---------- 20. Mobile Bottom Navigation ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: var(--app-bg-card);
  border-top: 1px solid var(--app-border);
  z-index: 1000;
  padding: 0 .5rem;
}

.mobile-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .125rem;
  padding: .25rem .5rem;
  color: var(--app-text-muted);
  font-size: .65rem;
  text-decoration: none;
  position: relative;
  transition: color .12s;
}
.mobile-nav-item i { font-size: 1.2rem; }
.mobile-nav-item.active { color: var(--app-primary); }
.mobile-nav-item:hover { color: var(--app-primary); }
.mobile-nav-item .nav-badge {
  position: absolute;
  top: 0;
  right: .125rem;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: .6rem;
  font-weight: 600;
  background: var(--app-secondary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .mobile-nav { display: block; }
}

/* ─────────────────────────────────────────────
   21. Photo Modal  —  Dating App Style
   ───────────────────────────────────────────── */

/* ── Overlay ─────────────────────────────────── */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(10, 4, 8, 0.96);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  align-items: center;
  justify-content: center;
  animation: pm-fade-in 0.22s ease;
}
.photo-modal.show { display: flex; }

@keyframes pm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Close Button ────────────────────────────── */
.photo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fc0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.photo-modal-close:hover {
  background: #ff4e6a;
  border-color: #ff4e6a;
  transform: scale(1.1) rotate(90deg);
}

/* ── Inner Container ─────────────────────────── */
.photo-modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: min(480px, 92vw);
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: pm-pop-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pm-pop-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── Photo Wrapper ───────────────────────────── */
#photo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0e0508;
  cursor: grab;
}
#photo-wrapper:active { cursor: grabbing; }

/* Bottom gradient for info/thumb overlay */
#photo-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 4, 8, 0.55) 50%,
    rgba(10, 4, 8, 0.92) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* ── Main Image ──────────────────────────────── */
.photo-modal-inner img#photo-modal-img,
#photo-modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.18s ease;
  z-index: 2;
}

/* ── Nav Buttons ─────────────────────────────── */
.photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.photo-nav-btn:hover {
  background: #ff4e6a;
  border-color: #ff4e6a;
  transform: translateY(-50%) scale(1.1);
}
.photo-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.photo-nav-btn.prev { left: 12px; }
.photo-nav-btn.next { right: 12px; }

/* ── Thumbnail Strip — inside photo-wrapper ──── */
.photo-thumbs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  gap: 7px;
  padding: 10px 14px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  align-items: flex-end;
}
.photo-thumbs::-webkit-scrollbar { display: none; }

.photo-thumb {
  width: 46px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.45;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  transform: scale(1);
}
.photo-thumb:hover {
  opacity: 0.8;
  transform: scale(1.07);
}
.photo-thumb.active {
  opacity: 1;
  border-color: #ff4e6a;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 78, 106, 0.5);
}

/* ── Progress Dots (auto-injected by JS) ─────── */
#photo-modal-dots {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 20;
  pointer-events: none;
}
#photo-modal-dots > div {
  height: 3px;
  border-radius: 3px;
  flex: 1;
  max-width: 40px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.25s, transform 0.25s;
}
#photo-modal-dots > div.active {
  background: #ffffff;
  transform: scaleY(1.6);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
  .photo-modal {
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .photo-modal-inner {
    position: relative;
    max-width: 100vw;
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }
  #photo-wrapper {
    width: 100vw;
    height: 100dvh;
    aspect-ratio: unset;
  }
}

/* ---------- 22. Bank QR Modal ---------- */
.bank-qr-modal .modal-body { text-align: center; }
.bank-qr-img { max-width: 280px; border-radius: .5rem; margin-bottom: 1rem; }
.bank-detail { font-size: .875rem; margin-bottom: .375rem; }
.bank-detail strong { font-weight: 600; }

/* ---------- 23. Homepage ---------- */
.hero-section {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: var(--app-radius-lg);
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-section h1 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin-bottom: .5rem; }
.hero-section p { font-size: 1rem; opacity: .9; margin-bottom: 1rem; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.section-card1 { margin-bottom: 1.5rem; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.section-header .section-title { font-size: 1.125rem; font-weight: 600; margin: 0; color: var(--app-text); }
.section-link { font-size: .875rem; color: var(--app-primary); }

/* ---------- 24. Utilities / Misc ---------- */
.btn-block-small {
  display: inline-block;
  font-size: .75rem;
  padding: .25rem .5rem;
}

.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-bg);
  color: var(--app-text-muted);
  border-radius: 50%;
}

.header-moderation-notice {
  font-size: .6875rem;
  color: #f59e0b;
  white-space: nowrap;
  overflow: hidden;
  max-width: 300px;
}
.header-moderation-notice span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* VIP member highlight */
.vip-member { border: 1px solid #f59e0b; }
.vip-badge-inline { color: #f59e0b; font-weight: 600; }
.vip-icon { color: #f59e0b; }

/* Toast container */
#toast-container {
  position: fixed;
  top: calc(var(--header-height) + .75rem);
  right: 1rem;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 2rem));
  width: 100%;
}

/* Hover lift for cards */
.hover-lift { transition: transform .2s, box-shadow .2s; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: var(--app-shadow) !important; }

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--app-text-muted);
}
.no-results i { font-size: 3rem; margin-bottom: .5rem; }
.btn-search { border-radius: 20px; }

/* Site main container */
.site-main { padding: .5rem 0; }

/* ===== Profile edit photo styling — overrides for edit page ===== */
.primary-photo-section { display:block; margin-bottom:1rem; }
.profile-edit-container .primary-photo-container { max-width:360px; border-radius:12px; }
.profile-edit-container .primary-photo-container img#primary-photo-img { object-fit:cover; display:block; }
.profile-edit-container .primary-photo-actions { right:.5rem; top:.5rem; }
.profile-edit-container .photo-slot { border-radius:12px; border-style:dashed; min-height:120px; }
.profile-edit-container .photo-slot-overlay { inset:8px; justify-content:flex-end; align-items:flex-start; pointer-events:none; }
.profile-edit-container .photo-slot-btn { pointer-events:auto; }

/* show hover controls */
.photo-slot:hover .photo-slot-overlay { opacity:1 }
.photo-slot-overlay { opacity:0; transition:opacity .18s }

/* ensure hidden file inputs don't break layout */
input[type="file"] { display:none }


/* Info promo */
.info-promo {
  background: var(--app-bg-card);
  border-radius: var(--app-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--app-border);
}
.info-promo-title {
  font-weight: 600;
  color: var(--app-text);
  margin-bottom: .5rem;
}
.info-promo-list, .info-promo-list.rules-list {
  padding-left: 1.25rem;
  margin-bottom: .5rem;
  color: var(--app-text-muted);
  font-size: .875rem;
  line-height: 1.6;
}
.info-promo-list li { margin-bottom: .25rem; }

/* Match card */
.match-card {
  display: block;
  border-radius: var(--app-radius);
  overflow: hidden;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  transition: transform .2s, box-shadow .2s;
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--app-shadow); }

/* Coin package buttons (replaces previous grid cards) */
.coin-packages { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.coin-package {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .8rem;
  border-radius: .75rem;
  background: linear-gradient(90deg, rgba(var(--app-primary-rgb),0.10), rgba(var(--app-primary-rgb),0.04));
  border: 1px solid transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s, box-shadow .12s, background .12s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.coin-package .coin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  font-size: 1.05rem;
}
.coin-package .coin-amount {  font-size: 1rem; }
.coin-package .coin-price {  font-size: .875rem; opacity: .95; }
.coin-package:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); background: linear-gradient(90deg, rgba(var(--app-primary-rgb),0.14), rgba(var(--app-primary-rgb),0.06)); }
.coin-package.popular { background: linear-gradient(90deg, rgba(255,183,77,0.12), rgba(255,183,77,0.04)); border-color: rgba(255,183,77,0.12); color: #fff; }
.coin-package.disabled { opacity: .5; pointer-events: none; transform: none; box-shadow: none; }

/* compact variants */
.coin-package.small { padding: .35rem .55rem; gap: .45rem; border-radius: .6rem; }

/* dark theme tweaks */
[data-bs-theme="dark"] .coin-package { background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(99,102,241,0.04)); box-shadow: 0 4px 14px rgba(0,0,0,0.45); }
[data-bs-theme="dark"] .coin-package .coin-icon { background: rgba(255,255,255,0.06); }

/* Photo gallery */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .75rem;
}
.photo-item {
  border-radius: var(--app-radius);
  overflow: hidden;
  background: var(--app-bg);
  border: 1px solid var(--app-border);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .375rem;
  display: flex; gap: .25rem; justify-content: center;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .2s;
}
.photo-item:hover .photo-actions { opacity: 1; }
.add-photo-btn {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--app-border);
  border-radius: var(--app-radius);
  color: var(--app-text-muted);
  font-size: .875rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.add-photo-btn:hover { border-color: var(--app-primary); color: var(--app-primary); }
.primary-badge {
  position: absolute;
  top: .375rem; left: .375rem;
  font-size: .65rem;
}

/* Profile card */
.profile-card {
  background: var(--app-bg-card);
  border-radius: var(--app-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--app-border);
}
.profile-card h1 {    font-size: 1rem;
    line-height: 1.82;
    margin: 0 0 0.2rem; }
.profile-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Form card */
.form-card {
  border-radius: var(--app-radius);
  padding: 1.5rem;
  background: var(--app-bg-card);
}

/* Blog card */
.blog-card { border-radius: var(--app-radius); overflow: hidden; transition: transform .2s; }
.blog-card:hover { transform: translateY(-2px); }

/* Blog sidebar */
.blog-sidebar .card { border-radius: var(--app-radius); }
.widget-title {
  font-weight: 600;
  color: var(--app-text);
  font-size: .9375rem;
  position: relative;
  padding-bottom: .5rem;
}
.widget-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 2rem; height: 2px;
  background: var(--app-primary);
  border-radius: 1px;
}

.popular-post img { border-radius: .375rem; object-fit: cover; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag-cloud .badge { font-weight: 500; font-size: .8rem; }

/* Category card */
.category-card { border-radius: var(--app-radius); overflow: hidden; transition: transform .2s; }
.category-card:hover { transform: translateY(-2px); }
.category-card-img { height: 160px; object-fit: cover; }
.category-card-placeholder {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff; font-size: 2.5rem;
}
.category-icon {
  width: 48px; height: 48px; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.category-info { flex: 1; }

/* Social login */
.social-login { text-align: center; }
.social-login .divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0;
  color: var(--app-text-muted); font-size: .8125rem;
}
.social-login .divider::before, .social-login .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--app-border);
}

/* ---- Onboarding shared ---- */
.onboarding-page {
  max-width: 720px;
  margin: 0 auto;
  padding: .5rem;
}
.onboarding-card {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow-sm);
}
.onboarding-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--app-border);
}
.onboarding-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.onboarding-header p {
  font-size: .875rem;
  color: var(--app-text-muted);
  margin: 0;
}
.onboarding-body {
  padding: 1.25rem 1.5rem;
}

/* Onboarding photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.photo-upload-box {
  position: relative;
  aspect-ratio: 3/4;
  border: 2px dashed var(--app-border);
  border-radius: var(--app-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-bg);
  transition: border-color .15s, background .15s;
  cursor: pointer;
}
.photo-upload-box:hover { border-color: var(--app-primary); }
.photo-upload-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.photo-upload-box.has-image img { display: block; }
.photo-upload-box.has-image .upload-prompt { display: none; }
.photo-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2;
  background: var(--app-primary);
  color: #fff;
  padding: .125rem .5rem;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 600;
}
.upload-prompt {
  text-align: center;
  color: var(--app-text-muted);
  padding: .5rem;
}
.upload-prompt i { font-size: 1.75rem; display: block; margin-bottom: .25rem; }
.upload-prompt p { font-size: .8125rem; margin: .25rem 0 0; }
.upload-prompt small { font-size: .7rem; opacity: .7; }

.btn-continue {
  display: block;
  width: 100%;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--app-radius);
}
.btn-continue:disabled { opacity: .5; }

/* Info / warning boxes */
.info-box {
  background: var(--app-bg);
  border-left: 4px solid var(--app-primary);
  padding: .75rem 1rem;
  border-radius: 0 var(--app-radius) var(--app-radius) 0;
  margin-bottom: 1rem;
  font-size: .8125rem;
}

/* Bilingual toggle */
.bilingual-text { display: inline; color: var(--app-text-muted); font-style: italic; }
.bilingual-hidden { display: none; }
.lang-toggle {
  background: none;
  border: none;
  color: var(--app-text-muted);
  cursor: pointer;
  padding: 0 .25rem;
  font-size: .875rem;
}
.lang-toggle:hover { color: var(--app-primary); }

/* ---- Onboarding basic-info ---- */
.card-prof {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  box-shadow: var(--app-shadow-sm);
  margin: 1rem auto;
  padding: 0;
}
.card-prof .card-body { padding: 1.25rem 1.5rem; }

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.form-col {
  flex: 1;
  min-width: 200px;
}

.grid-interests {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.interest-chip {
  display: inline-flex;
  align-items: center;
  padding: .375rem .875rem;
  border-radius: 20px;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.interest-chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
.interest-chip.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}

.btn-save {
  display: block;
  width: 100%;
  padding: .75rem 1.5rem;
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff;
  border: none;
  border-radius: var(--app-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-save:hover { opacity: .9; }

/* Progress steps (onboarding) */
.progress-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; position: relative;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 1;
  flex: 1;
}
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600;
  background: var(--app-bg); border: 2px solid var(--app-border);
  color: var(--app-text-muted);
  transition: all .3s;
}
.progress-step.active .step-circle {
  background: var(--app-primary); border-color: var(--app-primary); color: #fff;
}
.progress-step.completed .step-circle {
  background: #22c55e; border-color: #22c55e; color: #fff;
}
.step-label {
  font-size: .75rem; color: var(--app-text-muted);
  margin-top: .375rem; white-space: nowrap;
}
.progress-step.active .step-label { color: var(--app-primary); font-weight: 600; }
.progress-line {
  flex: 1; height: 2px; background: var(--app-border);
  align-self: center; margin-top: -1rem;
}
.progress-line-active { background: var(--app-primary); }

/* Location prompt */
.enable-location-prompt {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--app-text-muted);
}
.enable-location-prompt .main-icon { font-size: 3rem; margin-bottom: .75rem; color: var(--app-primary); }

/* Text colors utility */
.text-purple { color: #8b5cf6 !important; }

/* Profile photo animation */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.main-photo-display img {
  transition: opacity .3s ease, transform .3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Upload overlay */
.upload-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 2147483647 !important;
}
.upload-modal {
  position: relative;
  background: var(--app-bg-card); color: var(--app-text);
  padding: 1.375rem 1.625rem; border-radius: var(--app-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: flex; gap: 1rem; align-items: center;
  min-width: min(320px, 90vw); max-width: 90%; max-height: 80vh;
  overflow: auto; text-align: left; margin: auto;
}
.upload-modal .spinner {
  width: 48px; height: 48px;
  border: 6px solid rgba(0,0,0,.08);
  border-top-color: var(--app-primary);
  border-radius: 50%;
  animation: upload_overlay_spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes upload_overlay_spin { to { transform: rotate(360deg); } }
.upload-modal-title { font-weight: 700; font-size: 1.05rem; }
.upload-modal-desc { opacity: .85; margin-top: .375rem; }

/* Chat list header */
.chat-header-section {
  padding: .75rem 0;
  margin-bottom: .5rem;
}
.chat-header-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

/* Notification list container */
.notification-list {
  display: flex;
  flex-direction: column;
}

/* Auth extras */
.register-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}
.btn-reset {
  display: block;
  width: 100%;
  padding: .625rem 1.5rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--app-primary), var(--app-secondary));
  color: #fff;
  border: none;
  border-radius: var(--app-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-reset:hover { opacity: .9; }
.back-link a {
  color: var(--app-text-muted);
  text-decoration: none;
  font-size: .875rem;
}
.back-link a:hover { color: var(--app-primary); }

/* Members Map */
.fullwidth-nav-item {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem .875rem;
  color: var(--app-text-muted);
  text-decoration: none;
  font-size: .8125rem;
  font-weight: 500;
  border-radius: 20px;
  transition: all .15s;
}
.fullwidth-nav-item:hover { color: var(--app-primary); background: rgba(99,102,241,.06); }
.fullwidth-nav-item.active { color: var(--app-primary); background: rgba(99,102,241,.1); font-weight: 600; }

.map-sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: 320px;
  background: var(--app-bg-card);
  border-right: 1px solid var(--app-border);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.map-sidebar.open { transform: translateX(0); }

.sidebar-header {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}
.sidebar-header h5 { margin: 0; font-size: 1rem; }
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: .5rem;
}

.sidebar-full {
  position: fixed;
  top: calc(var(--header-height) + .75rem);
  left: .75rem;
  z-index: 410;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--app-shadow-sm);
  transition: left .25s ease;
  font-size: .875rem;
  color: var(--app-text);
}
.map-sidebar.open ~ .sidebar-full,
.map-sidebar.open + .sidebar-full { left: 328px; }

.map-container {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  transition: left .25s ease;
}
.map-sidebar.open ~ .map-container { left: 320px; }

.locate-me-btn {
  position: fixed;
  bottom: 3rem;
  right: 1rem;
  z-index: 5000;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--app-primary);
  transition: transform .15s;
}
.locate-me-btn:hover { transform: scale(1.08); }

.map-loading {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 500;
  display: none; align-items: center; gap: .75rem;
  background: var(--app-bg-card);
  padding: .75rem 1.5rem;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
  font-size: .875rem;
  color: var(--app-text);
}
.map-loading.show { display: flex; }
.map-loading .spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--app-border);
  border-top-color: var(--app-primary);
  border-radius: 50%;
  animation: upload_overlay_spin .8s linear infinite;
}

.popular-regions {
  position: fixed;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  gap: .375rem;
  background: var(--app-bg-card);
  padding: .5rem .625rem;
  border-radius: 28px;
  box-shadow: var(--app-shadow);
  border: 1px solid var(--app-border);
  overflow-x: auto;
  max-width: 90vw;
}
.region-btn {
  flex-shrink: 0;
  padding: .25rem .75rem;
  border-radius: 16px;
  border: 1px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.region-btn:hover { border-color: var(--app-primary); color: var(--app-primary); }

.enable-location-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.enable-location-card {
  background: var(--app-bg-card);
  border-radius: var(--app-radius-lg);
  padding: 2rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.enable-location-card .main-icon { font-size: 3rem; color: var(--app-primary); margin-bottom: .75rem; }
.enable-location-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }

/* Sidebar member list */
.member-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .625rem;
  border-radius: var(--app-radius);
  text-decoration: none;
  color: var(--app-text);
  transition: background .1s;
  cursor: pointer;
}
.member-item:hover { background: var(--app-bg); }
.member-avatar-wrapper {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.member-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--app-border);
}
.member-avatar.gender-male   { border-color: #3b82f6; }
.member-avatar.gender-female  { border-color: #ec4899; }
.member-avatar.gender-gay     { border-color: #8b5cf6; }
.member-avatar.gender-les     { border-color: #e91e63; }
.member-avatar.gender-default { border-color: var(--app-border); }
.member-info { flex: 1; min-width: 0; }
.member-name {
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-details {
  font-size: .7rem;
  color: var(--app-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Custom map markers */
.custom-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #999;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.custom-marker img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
}
.custom-marker.marker-male   { border-color: #3b82f6; }
.custom-marker.marker-female  { border-color: #ec4899; }
.custom-marker.marker-gay     { border-color: #8b5cf6; }
.custom-marker.marker-les     { border-color: #e91e63; }
.custom-marker.marker-default { border-color: #999; }

/* Member detail modal */
.member-modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 3px solid var(--app-border);
}
.member-modal-info { text-align: center; }
.member-modal-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.member-modal-details {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.member-modal-detail-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
}
.member-modal-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .9rem;
  flex-shrink: 0;
  background: var(--app-primary);
}
.member-modal-detail-icon.icon-age    { background: linear-gradient(135deg,#f59e0b,#fbbf24); }
.member-modal-detail-icon.icon-gender { background: linear-gradient(135deg,#8b5cf6,#a78bfa); }
.member-modal-detail-icon.icon-location { background: linear-gradient(135deg,#10b981,#34d399); }
.member-modal-detail-text { text-align: left; }
.member-modal-detail-label {
  font-size: .7rem;
  color: var(--app-text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.member-modal-detail-value {
  font-size: .875rem;
  font-weight: 600;
}
.member-modal-actions {
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding: .75rem 1rem 1rem;
  border-top: 1px solid var(--app-border);
}

/* Ripple animation for user marker */
@keyframes ripple {
  0%   { transform: translate(-50%,-50%) scale(.5); opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(2); opacity: 0; }
}

@media (max-width: 767.98px) {
  .map-sidebar { width: 100%; }
  .map-sidebar.open ~ .map-container { left: 0; }
  .map-sidebar.open ~ .sidebar-full { left: auto; right: .75rem; }
  .popular-regions { bottom: calc(var(--mobile-nav-height) + .5rem); }

  /* Discover */
  .swipe-card .carousel-inner,
  .swipe-card .carousel-item { height: 400px; }

  /* Profile */
  .main-photo-display { aspect-ratio: 3/4.5; }
  .profile-info-overlay { padding: 1rem .75rem .5rem; }
  .profile-name-section h1 { font-size: 1.125rem; }

  .primary-photo-container { width: 160px; height: 160px; }

  /* Auth */
  .auth-illustration-panel { display: none; }
  .register-page { min-height: auto; padding: 1rem 0; }

  /* Onboarding */
  .onboarding-page { padding: .25rem; }
  .onboarding-header,
  .onboarding-body,
  .card-prof .card-body { padding: 1rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .form-row { flex-direction: column; gap: .75rem; }
  .form-col { min-width: 0; }
}

/* ---------- 25. Dark Mode Overrides ---------- */
/* NOTE: BS 5.3 data-bs-theme="dark" natively handles .card, .form-control,
   .form-select, .btn-outline-*, .modal-content, .dropdown-menu, .list-group-item,
   .table, .text-dark, .bg-light, .bg-white, .border, .shadow-sm, .page-link.
   Only custom component overrides are needed below. */

/* Dark mode: interest pills & tags */
[data-bs-theme="dark"] .interest-pill {
  background: rgba(99,102,241,.15);
}
[data-bs-theme="dark"] .avatar-option {
  background: var(--app-bg);
  border-color: var(--app-border);
}
[data-bs-theme="dark"] .avatar-option.active {
  background: rgba(99,102,241,.15);
  border-color: var(--app-primary);
}
[data-bs-theme="dark"] .interest-tag {
  background: var(--app-bg);
  border-color: var(--app-border);
}
[data-bs-theme="dark"] .interest-tag.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}
[data-bs-theme="dark"] .topic-card {
  background: var(--app-bg-card);
  border-color: var(--app-border);
}
[data-bs-theme="dark"] .region-btn {
  background: var(--app-bg);
  border-color: var(--app-border);
  color: var(--app-text);
}
[data-bs-theme="dark"] .interest-chip {
  background: var(--app-bg);
  border-color: var(--app-border);
  color: var(--app-text);
}
[data-bs-theme="dark"] .interest-chip.active {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}
[data-bs-theme="dark"] .photo-upload-box {
  background: var(--app-bg);
  border-color: var(--app-border);
}
[data-bs-theme="dark"] .onboarding-card,
[data-bs-theme="dark"] .card-prof {
  background: var(--app-bg-card);
  border-color: var(--app-border);
}
[data-bs-theme="dark"] .member-item:hover {
  background: var(--app-bg);
}
[data-bs-theme="dark"] .custom-marker {
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* ---------- 26. Print ---------- */
@media print {
  .app-navbar, .mobile-nav { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; }
}

/* Coin history page styles: lighter background and dark-mode support */
.coin-history-page {
  padding: 1rem 0;
}
.coin-history-page .balance-card,
.coin-history-page .transaction-list {
  background: var(--app-bg-card);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
  border-radius: var(--app-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.coin-history-page .balance-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--app-text);
}
.coin-history-page .transaction-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--app-border);
}
.coin-history-page .transaction-item:last-child { border-bottom: none; }
.coin-history-page .transaction-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--app-primary-rgb), 0.06);
  color: var(--app-primary);
  font-size: 1.25rem;
}
.coin-history-page .transaction-info { flex: 1; }
.coin-history-page .transaction-amount { text-align: right; min-width: 88px; font-weight: 600; }
.coin-history-page .transaction-amount.positive { color: #16a34a; }
.coin-history-page .transaction-amount.negative { color: #ef4444; }

/* Dark mode tweaks (uses same variables; reduce shadow/contrast) */
[data-bs-theme="dark"] .coin-history-page .balance-card,
[data-bs-theme="dark"] .coin-history-page .transaction-list {
  background: var(--app-bg-card);
  border-color: var(--app-border);
  box-shadow: none;
}
[data-bs-theme="dark"] .coin-history-page .transaction-icon {
  background: rgba(var(--app-primary-rgb), 0.12);
  color: var(--app-text);
}
[data-bs-theme="dark"] .coin-history-page .transaction-amount.positive { color: #34d399; }
[data-bs-theme="dark"] .coin-history-page .transaction-amount.negative { color: #f87171; }

/* ---------- Match popup (responsive overlay) ---------- */
/* Consolidated, non-duplicated rules for the match popup overlay */
.match-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1050;
}
.match-overlay.show { display: flex; }

.match-popup {
  position: relative;
  z-index: 1051;
  background: linear-gradient(135deg, rgba(236,72,153,.95), rgba(99,102,241,.95));
  color: var(--app-text, #fff);
  border-radius: 12px;
  max-width: 720px;
  width: clamp(300px, 90vw, 720px);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  text-align: center;
  display: none; /* hidden by default; shown when .show is added */
  flex-direction: column;
  gap: 12px;
}

.match-popup h1 { font-size: 1.25rem; margin: 0; display:flex; align-items:center; justify-content:center; gap:0.5rem; }
.match-popup p { margin: .5rem 0 1rem; color: var(--app-text); }

.match-photos { display:flex; gap:1rem; justify-content:center; align-items: center; margin-bottom:1rem; flex-wrap:wrap; }
.match-photos img { width:150px; height:150px; object-fit:cover; border-radius:8px; }

.match-popup .btn-close { position:absolute; top:8px; right:8px; background:transparent; border:0; font-size:1.25rem; color:var(--app-text-muted); }
.match-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* When popup is visible, add backdrop and ensure card is centered */
.match-popup.show,
.match-overlay.show .match-popup {
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-popup.show::before,
.match-overlay.show::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 1050;
}

.match-popup.show > div,
.match-overlay.show .match-popup > div {
  position: relative;
  z-index: 1051;
  margin: 1rem;
  max-width: 720px;
  width: 100%;
}

@media (max-width: 420px) {
  .match-photos img { width: 45%; max-width: 120px; }
  .match-actions { flex-direction: column; }
  .match-actions .btn { width: 100%; }
}

/* =====================================================
   TOP PROGRESS BAR & LOADING INDICATORS
   ===================================================== */

/* Top Progress Bar */
.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.top-progress-bar.active {
  opacity: 1;
}

.top-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--app-primary) 0%,
    var(--app-secondary) 50%,
    var(--app-primary) 100%);
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(var(--app-primary-rgb), 0.5),
              0 0 5px rgba(var(--app-secondary), 0.3);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.top-progress-bar-inner.complete {
  width: 100% !important;
  transition: width 0.4s ease-out;
}

/* Page loading overlay and spinner removed — using top progress bar only */

/* Dark theme adjustments */
[data-bs-theme="dark"] .top-progress-bar-inner {
  box-shadow: 0 0 15px rgba(var(--app-primary-rgb), 0.7),
              0 0 8px rgba(var(--app-secondary), 0.5);
}

/* Main content fade effect during loading */
/* main-content.loading behavior removed along with overlay/spinner */

[data-bs-theme="dark"]{
    --footer-text: #9fb0c8;
    --footer-accent: #66b2ff;
}

.site-footer{ color:var(--footer-text); padding:1rem 0; font-size:.85rem; }

.site-footer .footer-container{ border-top:1px solid #e9ecef; padding:1rem 0 }

.site-footer .footer-nav{ list-style:none; padding:0; margin:0 0 .5rem 0; display:flex; gap:1rem; justify-content:center; flex-wrap:wrap }
.site-footer .footer-nav a{ color:inherit; text-decoration:none; opacity:.95 }
.site-footer .footer-nav a:hover{ text-decoration:underline; color:var(--footer-accent); opacity:1 }

.site-footer .footer-social a{ color:inherit; margin-left:.5rem; display:inline-flex; align-items:center }
.site-footer .footer-social .bi{ font-size:1.05rem }

@media (max-width:576px){ .site-footer .footer-social{ display:inline-block; margin-top:.5rem } }

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   Ensures no horizontal scroll on phones (≤576px)
   ============================================================ */
@media (max-width: 576px) {
  /* Grid overrides — prevent 3+ columns from overflowing */
  .post-images-grid.grid-3,
  .post-images-grid.grid-4 { grid-template-columns: 1fr 1fr; }
  .post-images-grid img { height: 150px; }

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

  /* Chat images */
  .chat-image { max-width: 200px; }

  /* Avatar options — 2 columns on small phones */
  .avatar-options[data-target="gender"],
  .avatar-options[data-target="looking_for"] {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .avatar-option { min-width: 0; padding: .5rem; }

  /* Pricing & product cards — single column */
  .vip-grid { grid-template-columns: 1fr !important; }
  .products-list { grid-template-columns: 1fr !important; }

  /* Coin packages — tighter gap */
  .coin-packages { gap: .5rem; }
  .coin-package { padding: .375rem .5rem; font-size: .8rem; }

  /* Balance card */
  .balance-card { padding: 1.25rem; }

  /* Hero sections */
  .hero-section { padding: 1.5rem 1rem; }
  .hero-section p { font-size: .875rem; }

  /* Pricing hero */
  .pricing-page .pricing-hero { padding: 1.25rem 1rem; }

  /* Match popup photos */
  .match-photos img { width: 100px; height: 100px; }

  /* Discover page */
  .discover-card { border-radius: 14px; }
  .discover-card__media .carousel-item img { height: 520px; }
  .discover-card__info { padding: .625rem; }

  /* Upload modal */
  .upload-modal { padding: 1rem; flex-direction: column; text-align: center; }

  /* Toast container — full width on mobile */
  #toast-container { right: .5rem; left: .5rem; max-width: none; }

  /* Members tabs scrollable */
  .members-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .members-tabs__scroll { flex-shrink: 0; }

  /* Dating banner */
  .dating-banner { padding: .375rem; }
  .dating-banner__title { font-size: 1.1rem; }

  /* Table responsiveness */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Prevent any fixed-width elements from overflowing */
  .container, .container-fluid, .app-main, .site-main { max-width: 100vw; overflow-x: hidden; }

  /* Blog content images */
  .post-body img, .post-content img { max-width: 100%; height: auto; }

  /* Location prompt */
  .location-prompt { margin: 1rem auto; border-radius: 14px; }
  .location-prompt__icon { width: 60px; height: 60px; font-size: 1.75rem; }

  /* Search filters */
  .search-box-wrapper, .filter-dropdown-wrapper { flex-wrap: wrap; }

  /* Page headers */
  .page-header { padding: 16px 12px; }
  .page-header h1 { font-size: 1.3rem; }
}

/* Extra small phones (≤380px) */
@media (max-width: 380px) {
  .dating-card-grid { grid-template-columns: repeat(2, 1fr); gap: .375rem; }
  .dating-card { border-radius: 10px; }
  .dating-card__name { font-size: .75rem; }
  .coin-package { font-size: .7rem; padding: .25rem .375rem; }
  .avatar-option { padding: .375rem; font-size: .7rem; }
  .match-photos img { width: 80px; height: 80px; }
  .match-popup h1 { font-size: 1rem; }
}

/* ============================================================
   MEMBERS FILTER NAV — pill tabs (light + dark)
   ============================================================ */
.ml-filter-nav {
  position: relative;
  margin: 0 0 18px;
}
.ml-filter-nav__track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 4px;
  background: var(--app-bg-card);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.ml-filter-nav__track::-webkit-scrollbar { display: none; }

/* fade edges */
.ml-filter-nav::before,
.ml-filter-nav::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 2;
}
.ml-filter-nav::before { left: 0;  background: linear-gradient(to right,  var(--app-bg-card), transparent); }
.ml-filter-nav::after  { right: 0; background: linear-gradient(to left, var(--app-bg-card), transparent); }

/* pill */
.ml-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--app-border);
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  flex-shrink: 0;
  line-height: 1;
}
.ml-pill i { font-size: 14px; }
.ml-pill:hover {
  border-color: var(--app-primary);
  color: var(--app-primary);
  background: rgba(var(--app-primary-rgb), .08);
  text-decoration: none;
}
.ml-pill--active {
  background: linear-gradient(135deg, var(--app-primary), #818cf8);
  border-color: transparent;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(var(--app-primary-rgb), .30);
}
.ml-pill--active:hover { opacity: .92; }
button.ml-pill { outline: none; appearance: none; -webkit-appearance: none; }

/* ── Region modal (bottom-sheet on mobile) ── */
@media (max-width: 576px) {
  #ml-region-modal .modal-dialog {
    margin: 0;
    align-items: flex-end;
    min-height: 100%;
  }
  #ml-region-modal .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 88vh;
  }
}

/* region tab bar */
.rg-tab-bar { display: flex; gap: 8px; padding: 14px 16px 0; }
.rg-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 50px;
  background: var(--app-border);
  color: var(--app-text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .16s;
}
.rg-tab.active {
  background: linear-gradient(135deg, var(--app-primary), #818cf8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--app-primary-rgb), .25);
}

/* search box */
.rg-search { margin: 12px 16px 4px; position: relative; }
.rg-search input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--app-border);
  border-radius: 50px;
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: 13px;
  outline: none;
  transition: border .15s;
}
.rg-search input:focus { border-color: var(--app-primary); }
.rg-search i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--app-text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* city grid */
.rg-city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 8px;
  max-height: 52vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 480px) { .rg-city-grid { grid-template-columns: repeat(3, 1fr); } }
.rg-city-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--app-text);
  text-decoration: none;
  transition: background .13s, color .13s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rg-city-item i { color: var(--app-primary); font-size: 13px; flex-shrink: 0; }
.rg-city-item:hover { background: rgba(var(--app-primary-rgb), .08); color: var(--app-primary); text-decoration: none; }
.rg-city-item.hidden { display: none; }

/* dark mode region modal */
[data-bs-theme="dark"] .rg-search input { background: var(--app-bg); }
[data-bs-theme="dark"] .rg-tab { background: var(--app-border); color: var(--app-text-muted); }

/* ── Age chip grid ── */
.age-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px;
}
.age-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border: 1.5px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-bg-card);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .16s;
  text-align: center;
  line-height: 1.3;
}
.age-chip i { font-size: 18px; margin-bottom: 4px; color: var(--app-primary); }
.age-chip:hover,
.age-chip:focus {
  border-color: var(--app-primary);
  background: rgba(var(--app-primary-rgb), .08);
  color: var(--app-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--app-primary-rgb), .15);
}

/* ════════════════════════════════════════════════════
   LAZY LOAD — shimmer placeholders + image fade-in
   ════════════════════════════════════════════════════ */

@keyframes img-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* ── Member card photo shimmer + fade-in ── */
.dating-card__photo {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 600px 100%;
  animation: img-shimmer 1.5s infinite linear;
}
[data-bs-theme="dark"] .dating-card__photo {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 600px 100%;
}
/* images fade in on top of shimmer */
.dating-card__photo img {
  opacity: 0;
  transition: opacity .32s ease, transform .4s cubic-bezier(.4,0,.2,1);
}
.dating-card__photo img.img-loaded { opacity: 1; }
/* stop shimmer once image is visible */
.dating-card__photo:has(img.img-loaded) { animation: none; background: transparent; }

/* ── Avatar shimmer ── */
.avatar-wrapper:not(.avatar-loaded) {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 600px 100%;
  animation: img-shimmer 1.5s infinite linear;
}
[data-bs-theme="dark"] .avatar-wrapper:not(.avatar-loaded) {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 600px 100%;
}
.avatar-wrapper img { opacity: 0; transition: opacity .3s ease; }
.avatar-wrapper.avatar-loaded img { opacity: 1; }

/* ── Blog card image ── */
.blog-card-img { opacity: 0; transition: opacity .3s ease; }
.blog-card-img.img-loaded { opacity: 1; }

/* ── Generic notification / chat avatar shimmer ── */
img.img-fade         { opacity: 0; transition: opacity .25s ease; }
img.img-fade.img-loaded { opacity: 1; }

/* ── content-visibility: skip rendering of off-screen cards (big CRP win) ── */
.dating-card-grid .col-member {
  content-visibility: auto;
  contain-intrinsic-size: 0 310px;
}

/* ============================================================
   VERIFICATION BANNERS
   ============================================================ */
.verification-banners {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verification-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--app-bg-card);
  border: 1.5px solid var(--app-border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.verification-banner--email {
  border-left: 4px solid #f59e0b;
}
.verification-banner--id {
  border-left: 4px solid #3b82f6;
}
.verification-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.verification-banner--email .verification-banner__icon { color: #f59e0b; }
.verification-banner--id .verification-banner__icon { color: #3b82f6; }
.verification-banner__text {
  flex: 1;
  min-width: 0;
}
.verification-banner__text strong {
  display: block;
  font-size: .875rem;
  color: var(--app-text);
  line-height: 1.3;
}
.verification-banner__text span {
  font-size: .8rem;
  color: var(--app-text-muted);
  line-height: 1.4;
}
.verification-banner__btn {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 50px;
  padding: 6px 14px;
}
@media (max-width: 576px) {
  .verification-banners { padding: 0 8px; }
  .verification-banner { padding: 10px 12px; gap: 10px; }
  .verification-banner__icon { font-size: 1.25rem; }
  .verification-banner__text strong { font-size: .8125rem; }
  .verification-banner__text span { font-size: .75rem; }
  .verification-banner__btn { font-size: .75rem; padding: 5px 10px; }
}
