/* ================================================================
   GulshanSync — Ultra Modern Design System v2.0
   Light theme only | App-like mobile experience
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  /* Primary — Fresh emerald green */
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #d1fae5;
  --primary-bg: #ecfdf5;
  --primary-grad: linear-gradient(135deg, #10b981, #059669);
  --primary-grad-hover: linear-gradient(135deg, #059669, #047857);

  /* Accent colors for categories */
  --accent-campaign: #8b5cf6;
  --accent-policy: #3b82f6;
  --accent-community: #14b8a6;
  --accent-event: #f97316;
  --accent-general: #6b7280;

  /* Backgrounds — soft, layered */
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-blur: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --text-inv: #ffffff;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #10b981;

  /* Shadows — soft, layered */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-primary: 0 4px 16px rgba(16,185,129,0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --navbar-h: 56px;
  --bottomnav-h: 60px;
  --max-width: 1128px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.2s var(--ease);
}

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

body {
  font-family: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Bengali text optimization */
:lang(bn), [lang="bn"] {
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
}

@media (min-width:992px) { body { padding-top: var(--navbar-h); } }
@media (max-width:991px) { body { padding-top: var(--navbar-h); padding-bottom: var(--bottomnav-h); } }

/* Smooth scrolling */
html { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }

/* ================================================================
   TOP NAV — Frosted Glass (App-like)
   ================================================================ */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.top-nav .inner {
  max-width: var(--max-width); width: 100%; margin: 0 auto;
  padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  height: 100%;
}
.brand {
  font-weight: 800; font-size: 1.25rem;
  background: var(--primary-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px; white-space: nowrap;
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
}
.search-box {
  flex: 1; max-width: 320px; position: relative;
}
.search-box input {
  width: 100%; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 12px 0 36px;
  font-size: 14px; background: var(--bg-secondary);
  font-family: inherit; outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
.search-box .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 14px; pointer-events: none;
}
.nav-icons { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); color: var(--text-2); font-size: 18px;
  position: relative; transition: var(--transition);
  border: none; background: none; cursor: pointer;
  text-decoration: none;
}
.nav-icon:hover, .nav-icon.active {
  color: var(--primary);
  background: var(--primary-bg);
}
.nav-icon.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--primary); border-radius: 2px;
}
.nav-icon .badge-dot {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; background: #ef4444;
  border-radius: 50%; border: 2px solid var(--bg-card);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border);
}
.nav-avatar:hover { border-color: var(--primary); }
.nav-divider { width: 1px; height: 24px; background: var(--border); margin: 0 4px; }

/* Mobile search bar */
.mobile-search-bar {
  display: none;
  padding: 8px 12px;
  background: var(--bg-glass-blur);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}
.mobile-search-bar.show { display: block; }
.mobile-search-bar .input-icon { width: 100%; }
.mobile-search-bar input {
  width: 100%; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 12px 0 36px;
  font-size: 15px; background: var(--bg-card);
  font-family: inherit; outline: none;
}
.mobile-search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

@media (min-width:992px) { .mobile-search-bar { display: none !important; } }

/* ================================================================
   BOTTOM NAV — App-like (Mobile)
   ================================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--bottomnav-h);
  background: var(--bg-glass-blur);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: none; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width:991px) { .bottom-nav { display: flex; } }

.bnav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; font-size: 10px; font-weight: 600; color: var(--text-3);
  padding: 6px 12px; border: none; background: none; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  border-radius: var(--radius);
  position: relative;
}
.bnav-item i { font-size: 22px; transition: var(--ease-spring); }
.bnav-item.active { color: var(--primary); }
.bnav-item.active i { transform: scale(1.15) translateY(-2px); }
.bnav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--primary); border-radius: 0 0 4px 4px;
}
.bnav-post {
  background: var(--primary-grad) !important;
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 11px;
  box-shadow: var(--shadow-primary);
}
.bnav-post i { font-size: 18px; }
.bnav-post:active { transform: scale(0.95); }

/* ================================================================
   LAYOUT
   ================================================================ */
.layout {
  max-width: var(--max-width); margin: 0 auto;
  padding: 20px 16px 0;
  display: grid; gap: 20px;
}
@media (min-width:992px) {
  .layout-3 { grid-template-columns: 240px 1fr 300px; }
  .layout-2 { grid-template-columns: 1fr 300px; }
  .layout-1 { grid-template-columns: 1fr; max-width: 680px; margin-left: auto; margin-right: auto; }
  .sidebar-left { display: block !important; grid-column: 1; }
  .sidebar-right { display: block !important; grid-column: 3; }
  .layout-3 > main, .layout-3 > #mainContent { grid-column: 2; }
}
@media (max-width:991px) {
  .layout { padding: 12px 12px 0; gap: 12px; }
  .layout-3, .layout-2 { grid-template-columns: 1fr; }
  .layout main, .layout #mainContent { min-width: 0 !important; max-width: 100%; overflow: hidden; }
  .sidebar-left, .sidebar-right { display: none; }
}

/* layout-left-only: left sidebar + main (no right sidebar) — used by all-users and all-candidates */
@media (min-width:992px) {
  .layout-left-only { grid-template-columns: 240px 1fr; max-width: var(--max-width); margin: 0 auto; padding: 20px 16px 0; display: grid; gap: 20px; }
  .layout-left-only > main, .layout-left-only > #mainContent { min-width: 0; max-width: none; }
}
@media (max-width:991px) {
  .layout-left-only { grid-template-columns: 1fr !important; padding: 12px 12px 0; gap: 12px; display: grid; max-width: 100%; margin: 0; }
  .layout-left-only > main, .layout-left-only > #mainContent { min-width: 0 !important; max-width: 100%; overflow: hidden; }
  .layout-left-only .sidebar-left { display: none; }
}

/* ================================================================
   CARDS — Glassmorphism + Soft Shadows
   ================================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-sm);
}

/* ================================================================
   POST CARDS — Modern with Category Accents
   ================================================================ */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
  animation: fadeInUp 0.3s var(--ease) both;
  position: relative;
  overflow: visible;
}
.post-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--accent-general);
  opacity: 0; transition: var(--transition);
}
.post-card[data-category="campaign"]::before { background: var(--accent-campaign); opacity: 1; }
.post-card[data-category="policy"]::before { background: var(--accent-policy); opacity: 1; }
.post-card[data-category="community"]::before { background: var(--accent-community); opacity: 1; }
.post-card[data-category="event"]::before { background: var(--accent-event); opacity: 1; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.post-head img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border-light);
}
.post-head .meta { flex: 1; }
.post-head .meta h6 {
  font-size: 14px; font-weight: 700; color: var(--text-1); margin: 0;
}
.post-head .meta span {
  font-size: 12px; color: var(--text-3);
}
.post-head .meta a { text-decoration: none; color: inherit; }
.post-content {
  font-size: 14px; color: var(--text-1); line-height: 1.6;
  margin-bottom: 8px; word-break: break-word;
}
.post-actions {
  display: flex; gap: 6px; padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.post-actions button, .post-actions a {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--text-3);
  padding: 6px 10px; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: var(--transition);
  text-decoration: none;
}
.post-actions button:hover, .post-actions a:hover {
  background: var(--bg-secondary); color: var(--primary);
}
.post-actions button:active { transform: scale(0.95); }
.post-actions button i { font-size: 16px; transition: var(--ease-spring); }
.like-btn.liked i { color: #ef4444; animation: heartPop 0.4s var(--ease-spring); }
@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.more-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: none; background: none; cursor: pointer;
  color: var(--text-3); font-size: 16px; transition: var(--transition);
}
.more-btn:hover { background: var(--bg-secondary); color: var(--text-1); }

/* ================================================================
   SHARED POST BLOCK
   ================================================================ */
.shared-post-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-top: 8px;
  background: var(--bg-secondary);
  position: relative;
}
.shared-post-block::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--primary); border-radius: 3px 0 0 3px; opacity: 0.3;
}

/* ================================================================
   BUTTONS — Gradient + Glow
   ================================================================ */
.btn-primary-gs, .btn-primary-gs * {
  background: var(--primary-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
  box-shadow: var(--shadow-primary);
  font-family: inherit;
}
.btn-primary-gs:hover {
  background: var(--primary-grad-hover);
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
  transform: translateY(-1px);
}
.btn-primary-gs:active { transform: scale(0.97); }
.btn-primary-gs:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline-gs, .btn-outline-gs * {
  background: var(--bg-card);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
  font-family: inherit;
}
.btn-outline-gs:hover {
  background: var(--primary-bg);
  border-color: var(--primary-hover);
}
.btn-outline-gs:active { transform: scale(0.97); }
.btn-outline-gs:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-sm-gs { padding: 6px 14px !important; font-size: 13px !important; border-radius: var(--radius-sm) !important; }
.btn-lg-gs { padding: 14px 28px !important; font-size: 16px !important; border-radius: var(--radius) !important; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-ghost:hover { background: var(--bg-secondary); border-color: var(--text-3); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

/* ================================================================
   FORM INPUTS — Modern Rounded
   ================================================================ */
.form-input, input.form-input, select.form-input, textarea.form-input {
  width: 100%; height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--bg-card);
  outline: none;
  transition: var(--transition);
}
.form-input:focus, input.form-input:focus, select.form-input:focus, textarea.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}
textarea.form-input { height: auto; min-height: 80px; resize: vertical; line-height: 1.5; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: 16px; pointer-events: none; }
.input-icon input { padding-left: 38px !important; }

/* ================================================================
   COMPOSER
   ================================================================ */
.composer {
  display: flex; align-items: center; gap: 10px; padding: 12px;
}
.composer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.composer a {
  flex: 1; padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px; color: var(--text-3);
  text-decoration: none;
  transition: var(--transition);
}
.composer a:hover { background: var(--bg-hover); border-color: var(--border); }
.composer-actions {
  display: flex; gap: 4px; padding: 8px 0;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}
.composer-actions a, .composer-actions button {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-sm); transition: var(--transition);
  text-decoration: none; font-family: inherit;
}
.composer-actions a:hover, .composer-actions button:hover { background: var(--bg-secondary); }

/* ================================================================
   SIDEBAR
   ================================================================ */
.profile-banner {
  height: 60px;
  background: var(--primary-grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.sidebar-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--bg-card); position: absolute; top: -32px;
  left: 16px; background: var(--bg-secondary);
}
.profile-info { padding: 28px 16px 12px; }
.profile-info h6 { font-size: 15px; font-weight: 700; }
.profile-info p { font-size: 12px; color: var(--text-3); }
.profile-stats {
  display: flex; justify-content: space-around; padding: 10px 0;
  border-top: 1px solid var(--border-light);
}
.profile-stats span { font-size: 12px; color: var(--text-3); text-align: center; }
.profile-stats strong { display: block; font-size: 16px; font-weight: 700; color: var(--text-1); }
.sidebar-nav { padding: 8px 0; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: var(--transition);
}
.sidebar-nav a:hover { background: var(--bg-secondary); color: var(--primary); }
.sidebar-nav a i { width: 20px; text-align: center; color: var(--text-3); font-size: 16px; }
.sidebar-nav a:hover i { color: var(--primary); }

/* ================================================================
   SUGGEST / TREND ITEMS
   ================================================================ */
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  transition: var(--transition); border-radius: var(--radius-sm);
}
.suggest-item:hover { background: var(--bg-secondary); }
.suggest-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.suggest-item .info { flex: 1; min-width: 0; }
.suggest-item .info h6 { font-size: 13px; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .info p { font-size: 11px; color: var(--text-3); margin: 0; }

.trend-item {
  display: block; padding: 10px 12px; text-decoration: none;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.trend-item:hover { background: var(--bg-secondary); }
.trend-item .tag { font-size: 14px; font-weight: 600; color: var(--text-1); }
.trend-item .count { font-size: 12px; color: var(--text-3); }

/* ================================================================
   PERSON CARD
   ================================================================ */
.person-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--bg-card);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); transition: var(--transition);
  animation: fadeInUp 0.3s var(--ease) both;
}
.person-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border); }
.person-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); }
.person-card .info { flex: 1; min-width: 0; }
.person-card .info h6 { font-size: 14px; font-weight: 700; margin: 0; }
.person-card .info p { font-size: 12px; color: var(--text-3); margin: 0; }
.person-card .actions { flex-shrink: 0; }

/* ================================================================
   PROFILE PAGE
   ================================================================ */
.profile-page-banner {
  height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative; overflow: hidden;
}
.profile-page-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}
.profile-page-header {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 56px 24px 20px;
  margin-bottom: 16px;
}
.profile-page-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid var(--bg-card); position: absolute; top: -48px;
  left: 24px; background: var(--bg-secondary); object-fit: cover;
}
.profile-page-name { font-size: 22px; font-weight: 800; margin: 0; }
.profile-page-bio { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.profile-page-meta { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.profile-page-meta i { margin-right: 2px; }
.profile-page-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ================================================================
   TABS — Modern Pills
   ================================================================ */
.tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  padding-bottom: 0; margin-bottom: 16px;
}
.tab-item {
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  color: var(--text-3); border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: inherit; white-space: nowrap;
}
.tab-item:hover { color: var(--text-1); background: var(--bg-secondary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ================================================================
   DROPDOWN MENU
   ================================================================ */
.dropdown-menu {
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px; min-width: 200px;
  font-size: 14px; background: var(--bg-card);
}
.dropdown-item {
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-1); cursor: pointer; transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item i { color: var(--text-3); width: 18px; text-align: center; }

/* ================================================================
   BADGES
   ================================================================ */
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-full); }
.party-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--bg-secondary); color: var(--text-2);
}
.verified { color: var(--primary); font-size: 16px; }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f9ff 50%, #f8fafc 100%);
}
.auth-card {
  max-width: 440px; width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
}
.auth-card .logo {
  font-weight: 800; font-size: 1.5rem; text-align: center;
  background: var(--primary-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card .subtitle { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.auth-card .divider {
  text-align: center; margin: 20px 0; font-size: 12px; color: var(--text-3);
  position: relative;
}
.auth-card .divider::before, .auth-card .divider::after {
  content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border);
}
.auth-card .divider::before { left: 0; }
.auth-card .divider::after { right: 0; }

/* ================================================================
   SKELETON LOADER
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-light) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  padding: 16px; margin-bottom: 12px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-line { height: 12px; margin: 6px 0; border-radius: var(--radius-sm); }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.long { width: 100%; }

/* ================================================================
   NOTIFICATIONS — Modern List with Icons
   ================================================================ */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border-light);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: linear-gradient(90deg, rgba(22,163,74,0.04) 0%, transparent 100%); }
.notif-item.unread:hover { background: rgba(22,163,74,0.08); }
.notif-item img {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
}
.notif-item .notif-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); color: var(--primary); font-size: 18px;
}
.notif-item .body { flex: 1; min-width: 0; }
.notif-item .body > div:first-child {
  font-size: 14px; line-height: 1.4; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis;
}
.notif-item .body strong { font-weight: 600; }
.notif-item .time {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
}
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  flex-shrink: 0; margin-top: 18px;
}
.load-more-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); color: var(--primary);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s; text-align: center; margin-top: 8px;
}
.load-more-btn:hover { background: var(--primary-bg); border-color: var(--primary); }
.load-more-btn:disabled { opacity: 0.5; cursor: default; }

/* ================================================================
   FILTER CARD (modern)
   ================================================================ */
.filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px; margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

/* ================================================================
   SEARCHABLE SELECT
   ================================================================ */
.gs-searchable { position: relative; width: 100%; }
.gs-searchable-display {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); cursor: pointer; font-size: 15px;
  color: var(--text-1); transition: var(--transition);
}
.gs-searchable-display:hover { border-color: var(--primary); }
.gs-searchable-display .text-muted { color: var(--text-3); }
.gs-searchable-display i { font-size: 12px; color: var(--text-3); transition: transform .2s var(--ease); }
.gs-searchable-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  z-index: 9999; max-height: 280px; overflow: hidden;
  flex-direction: column;
}
.gs-searchable-dropdown input {
  width: 100%; height: 40px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; font-family: inherit;
}
.gs-searchable-dropdown input:focus { border-color: var(--primary); }

/* ================================================================
   AVATAR UPLOADER
   ================================================================ */
.gs-avatar-uploader { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gs-avatar-dropzone {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  border: 3px dashed var(--border);
  background: var(--bg-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: var(--transition);
}
.gs-avatar-dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.gs-avatar-dropzone img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gs-avatar-remove {
  position: absolute; top: -6px; right: -6px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #ef4444; color: #fff; border: 2px solid #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; z-index: 2; transition: var(--ease-spring);
}
.gs-avatar-remove:hover { transform: scale(1.15); }

/* ================================================================
   BANNER SWATCH
   ================================================================ */
.gs-banner-swatch {
  position: relative; aspect-ratio: 2/1;
  border-radius: var(--radius); cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
}
.gs-banner-swatch:hover { transform: scale(1.04); box-shadow: var(--shadow); }

/* ================================================================
   COMMENT + REPLY
   ================================================================ */
.comment-item { display: flex; gap: 8px; margin-bottom: 16px; }
.comment-item > img { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.comment-actions { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.comment-actions .btn-link {
  font-size: 13px; padding: 2px 8px; color: var(--text-3);
  border: none; background: none; cursor: pointer; text-decoration: none;
}
.comment-actions .btn-link:hover { color: var(--primary); background: var(--primary-bg); border-radius: var(--radius-sm); }
.reply-item {
  display: flex; gap: 6px; margin-top: 8px;
  padding: 6px 0 6px 10px; border-left: 2px solid var(--border);
}
.reply-item > img { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.reply-form {
  display: flex; gap: 8px; margin-top: 8px;
  padding-left: 10px; border-left: 2px solid var(--border);
}
.reply-form textarea {
  flex: 1; font-size: 13px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px; resize: vertical; outline: none;
  font-family: inherit;
}
.reply-form textarea:focus { border-color: var(--primary); }

/* Fix Bootstrap btn-link underline */
.btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { text-decoration: none !important; }

/* ================================================================
   MODALS — Modern
   ================================================================ */
.modal-content {
  border: none; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-header { border-bottom: 1px solid var(--border-light); padding: 18px 24px; }
.modal-body { padding: 18px 24px; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 12px 24px 18px; gap: 8px; }
.modal-title { font-weight: 700; font-size: 18px; }
.modal-dialog { margin: 12px; }
@media (min-width: 576px) { .modal-dialog { margin: 30px auto; } }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px;
  border: 1px solid transparent;
}
.alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container { z-index: 9999; }
.toast { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ================================================================
   UTILITIES
   ================================================================ */
.mt-12 { margin-top: 12px; }
.text-muted { color: var(--text-3) !important; }
.text-danger { color: #dc2626 !important; }
.text-success { color: #059669 !important; }
.text-primary { color: var(--primary) !important; }
.w-100 { width: 100%; }
.d-block { display: block; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.small { font-size: 13px; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.rounded-circle { border-radius: 50%; }
.text-center { text-align: center; }
.text-decoration-none { text-decoration: none; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.link { color: var(--primary); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ================================================================
   MOBILE OPTIMIZATIONS — App-like feel
   ================================================================ */
@media (max-width: 575px) {
  .top-nav .inner { padding: 0 8px; gap: 4px; }
  .brand { font-size: 1.1rem; }
  .brand-mobile .brand-mark {
    width: 32px; height: 32px;
    background: var(--primary-grad);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
  }
  .nav-icon { width: 38px; height: 38px; font-size: 19px; }
  .nav-avatar { width: 28px; height: 28px; }
  .layout { padding: 10px 10px 0; gap: 10px; }
  .card { border-radius: var(--radius); }
  .post-card { padding: 12px; border-radius: var(--radius); }
  .post-head img { width: 36px; height: 36px; }
  .post-head .meta h6 { font-size: 13px; }
  .post-content { font-size: 14px; }
  .post-actions button, .post-actions a { font-size: 12px; padding: 5px 8px; }
  .form-input, select.form-input, input.form-input, textarea.form-input {
    min-height: 48px; font-size: 16px; /* iOS no-zoom */
  }
  .btn-primary-gs, .btn-outline-gs { min-height: 48px; }
  .profile-page-banner { height: 140px; }
  .profile-page-avatar { width: 80px; height: 80px; top: -40px; }
  .profile-page-name { font-size: 18px; }
  .profile-page-actions button, .profile-page-actions a {
    width: 100%; margin-bottom: 6px; text-align: center;
  }
  .profile-page-actions { display: block; }
  .person-card { padding: 10px; }
  .person-card img { width: 44px; height: 44px; }
  .suggest-item { padding: 8px; }
  .suggest-item img { width: 36px; height: 36px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-item { flex-shrink: 0; padding: 8px 14px; white-space: nowrap; }
  .filter-card { padding: 10px; }
  .auth-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .modal-dialog { margin: 8px; }
  .modal-content { border-radius: var(--radius-lg); }
  .modal-body { padding: 14px 18px; }
  .modal-footer { padding: 10px 18px 16px; }
  .modal-footer .btn { flex: 1; min-height: 44px; }
  .dropdown-menu { min-width: 200px; }
  .dropdown-item { padding: 12px 14px; min-height: 44px; }
  #editProfileBannerPicker { grid-template-columns: repeat(2, 1fr) !important; }
  .gs-avatar-dropzone { width: 140px; height: 140px; }
  .gs-banner-swatch { width: 56px !important; height: 40px !important; }
  .bnav-item { padding: 6px 10px; }
  .bnav-item i { font-size: 20px; }
}

/* prevent horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Post link + images */
.post-card .post-content a { color: inherit; }
.post-card .post-content a:hover { color: var(--primary); }
.post-card img { max-width: 100%; height: auto; }

/* Long names */
.profile-page-name, .post-head .meta h6, .person-card .info h6, .suggest-item .info h6 {
  word-break: break-word; overflow-wrap: anywhere;
}

/* Empty state */
.empty-state { padding: 48px 24px; text-align: center; color: var(--text-3); }
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 12px; color: var(--border); }
.empty-state p { font-size: 15px; }

/* ================================================================
   ROUND 4 — Mobile Bottom Sheets + Final Polish
   ================================================================ */

/* Mobile: modals slide up from bottom (bottom sheet style) */
@media (max-width: 575px) {
  /* Only apply flex layout WHEN the modal is actually shown.
     Bootstrap adds .show class to .modal when displayed; otherwise it's display:none.
     The previous !important rule was forcing display:flex always — freezing the page. */
  .modal.show {
    display: flex !important;
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-dialog {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-spring) !important;
  }
  .modal.show .modal-dialog {
    transform: translateY(0);
  }
  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 8px auto 0;
  }
  .modal-backdrop { background: rgba(0,0,0,0.4); }
  .modal-header { padding-top: 12px !important; }

  /* Ensure body can't scroll behind modal on iOS */
  .modal-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
  /* When modal closes, restore body scrolling */
  body { position: static !important; }
}

/* Smooth page load animation */
main, #mainContent {
  animation: pageFadeIn 0.3s var(--ease);
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern scrollbar (Firefox) */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }

/* Pull-to-refresh hint (visual only) */
.layout::before {
  content: '';
  display: block;
  height: 0;
  transition: height 0.2s;
}

/* Card hover lift effect (all cards) */
.card {
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* Focus visible (accessibility) */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: var(--primary-bg);
  color: var(--primary-hover);
}

/* Link hover transition */
a { transition: color 0.15s var(--ease); }

/* ================================================================
   MISSING STYLES — Fix for incomplete CSS rewrite
   ================================================================ */

/* Card header + body (used in right sidebar + various cards) */
.card-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-light);
}
.card-body { padding: 16px; }

/* Alert subtle variants (used in badges) */
.alert-success-subtle { background: #ecfdf5; color: #059669; }
.alert-warning-subtle { background: #fffbeb; color: #92400e; }
.alert-danger-subtle { background: #fef2f2; color: #991b1b; }
.alert-secondary-subtle { background: #f8fafc; color: #475569; }

/* Form check (checkboxes/radios) */
.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-check-input {
  width: 18px; height: 18px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
.form-check-label { font-size: 14px; color: var(--text-2); cursor: pointer; }

/* Comment form */
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form textarea {
  flex: 1; font-family: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; resize: vertical; outline: none;
}
.comment-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

/* Photo upload area (create-post page) */
.photo-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-3);
}
.photo-area:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
}
.photo-area i { font-size: 2rem; display: block; margin-bottom: 6px; }

/* Image uploader (post image upload — used in create-post) */
.gs-uploader {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-3);
}
.gs-uploader:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.gs-uploader i { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.gs-uploader-input { display: none; }

.gs-preview {
  position: relative;
  margin-top: 12px;
}
.gs-preview-img {
  width: 100%;
  border-radius: var(--radius);
  max-height: 300px;
  object-fit: cover;
}
.gs-preview-remove {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.6); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: var(--ease-spring);
}
.gs-preview-remove:hover { transform: scale(1.1); background: rgba(220,38,38,0.8); }

/* Badge variants (Bootstrap-compatible) */
.badge.bg-success-subtle { background: #ecfdf5 !important; color: #059669 !important; }
.badge.bg-warning-subtle { background: #fffbeb !important; color: #92400e !important; }
.badge.bg-danger-subtle { background: #fef2f2 !important; color: #991b1b !important; }
.badge.bg-secondary-subtle { background: #f8fafc !important; color: #475569 !important; }
.badge.bg-light { background: var(--bg-secondary) !important; color: var(--text-2) !important; }
.badge.bg-dark { background: var(--text-1) !important; color: #fff !important; }
.badge.bg-primary { background: var(--primary) !important; color: #fff !important; }

/* Bootstrap utility classes used in blade templates */
.d-none { display: none !important; }
@media (min-width: 992px) {
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
  .d-none.d-lg-block { display: block !important; }
}
.text-dark { color: var(--text-1) !important; }
.text-white { color: #fff !important; }
.text-bg-success { background: var(--primary) !important; color: #fff !important; }
.text-bg-danger { background: #dc2626 !important; color: #fff !important; }
.text-bg-warning { background: #f59e0b !important; color: #fff !important; }
.border { border: 1px solid var(--border) !important; }
.border-success-subtle { border-color: #a7f3d0 !important; }
.border-warning-subtle { border-color: #fde68a !important; }
.border-danger-subtle { border-color: #fecaca !important; }
.border-secondary-subtle { border-color: #e2e8f0 !important; }
.bi-flag-fill { color: var(--accent-campaign); }
.text-end { text-align: right; }
.me-2 { margin-right: 8px; }
.mt-1 { margin-top: 4px; }
.me-1 { margin-right: 4px; }
.ms-2 { margin-left: 8px; }
.d-inline-block { display: inline-block; }
.btn-secondary {
  background: var(--bg-secondary); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-secondary:hover { background: var(--border); }
.btn-danger {
  background: #dc2626; color: #fff; border: none;
  border-radius: var(--radius); padding: 10px 20px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px !important; font-size: 13px !important; }
.btn-outline-secondary {
  background: var(--bg-card); color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn-outline-secondary:hover { background: var(--bg-secondary); }
.btn-outline-danger {
  background: var(--bg-card); color: #dc2626;
  border: 1px solid #fecaca; border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.btn-outline-danger:hover { background: #fef2f2; }
.btn-link {
  background: none; border: none; color: var(--text-3);
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.spinner-border {
  display: inline-block; width: 1rem; height: 1rem;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spinner 0.75s linear infinite;
}
.spinner-border-sm { width: 0.875rem; height: 0.875rem; border-width: 1.5px; }
@keyframes spinner { to { transform: rotate(360deg); } }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; display: block; }


/* ================================================================
   DROPDOWN FIX: ensure post-card dropdowns are never clipped
   ================================================================ */
.post-card { z-index: 1; }
.post-card .dropdown { position: relative; z-index: 10; }
.post-card .dropdown-menu {
  z-index: 9999;
  position: absolute;
}
/* When dropdown would go off-screen bottom, flip it upward */
.post-card .dropdown-menu[data-bs-popper] {
  margin-top: 0;
}
