/* ==========================================================================
   SIRKELHUB SOCIAL COMMERCE STYLESHEET (Threads Web Architecture)
   Adapted from iamnotshifu/threads for SirkelHub
   ========================================================================== */

:root {
  /* Metallic Platinum & Monochrome Light Theme */
  --mesh-bg-page: #eaedf2;
  --mesh-bg-card: #ffffff;
  --mesh-bg-card-metallic: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  --mesh-bg-hover: rgba(148, 163, 184, 0.14);
  --mesh-border: rgba(148, 163, 184, 0.38);
  --mesh-text-main: #0a0d14;
  --mesh-text-muted: #576479;
  --mesh-primary: #1e293b;
  --mesh-accent-blue: #0284c7;
  --mesh-verified-green: #10b981;

  /* Modern Flat Solid Button & Pill Tokens (Clean, Sharp & Fast) */
  --mesh-metallic-steel: #f1f5f9;
  --mesh-metallic-chrome: #ffffff;
  --mesh-metallic-titanium: #0f172a;
  --mesh-metallic-btn: #0071e3;
  --mesh-metallic-btn-hover: #0077ed;
  --mesh-metallic-btn-text: #ffffff;
  --mesh-metallic-btn-border: transparent;
  --mesh-metallic-btn-shadow: none;

  --mesh-metallic-pill: #f1f5f9;
  --mesh-metallic-pill-hover: #e2e8f0;
  --mesh-metallic-pill-border: var(--mesh-border);
  --mesh-metallic-pill-shadow: none;
  --mesh-metallic-card-shadow: none;
}

html[data-theme="dark"] {
  /* Flat Solid Dark Theme Tokens */
  --mesh-bg-page: #0b0d12;
  --mesh-bg-card: #131722;
  --mesh-bg-card-metallic: #14171f;
  --mesh-bg-hover: rgba(255, 255, 255, 0.08);
  --mesh-border: rgba(255, 255, 255, 0.14);
  --mesh-text-main: #f8fafc;
  --mesh-text-muted: #94a3b8;
  --mesh-primary: #e2e8f0;
  --mesh-accent-blue: #38bdf8;
  --mesh-verified-green: #34d399;

  /* Dark Flat Solid Tokens */
  --mesh-metallic-steel: #1e293b;
  --mesh-metallic-chrome: #14171f;
  --mesh-metallic-titanium: #334155;
  --mesh-metallic-btn: #0071e3;
  --mesh-metallic-btn-hover: #1d8cf8;
  --mesh-metallic-btn-text: #ffffff;
  --mesh-metallic-btn-border: transparent;
  --mesh-metallic-btn-shadow: none;

  --mesh-metallic-pill: #1e293b;
  --mesh-metallic-pill-hover: #334155;
  --mesh-metallic-pill-border: rgba(255, 255, 255, 0.14);
  --mesh-metallic-pill-shadow: none;
  --mesh-metallic-card-shadow: none;
}

/* Base Wrapper */
.mesh-page-wrapper {
  background-color: var(--mesh-bg-page);
  min-height: 100vh;
  color: var(--mesh-text-main);
  display: flex;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Mobile Top Header */
.mesh-mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--mesh-bg-card-metallic);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mesh-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  z-index: 2500;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
}

.mesh-mobile-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mesh-mobile-act-btn {
  background: var(--mesh-metallic-pill);
  border: 1px solid var(--mesh-border);
  box-shadow: none;
  padding: 6px 9px;
  color: var(--mesh-text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.12s ease;
}
.mesh-mobile-act-btn:hover {
  background: var(--mesh-metallic-pill-hover);
}

@media (max-width: 768px) {
  .mesh-mobile-topbar {
    display: flex;
  }
  .mesh-page-wrapper {
    padding-top: 56px;
    padding-bottom: 70px;
  }
}

.mesh-mobile-burger-btn {
  background: var(--mesh-metallic-pill);
  border: 1px solid var(--mesh-border);
  box-shadow: none;
  padding: 6px 9px;
  color: var(--mesh-text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.12s ease;
}
.mesh-mobile-burger-btn:hover {
  background: var(--mesh-metallic-pill-hover);
}

.mesh-mobile-logo {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--mesh-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sirkelhub-text-logo {
  height: 20px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

html[data-theme="dark"] .sirkelhub-text-logo {
  filter: brightness(0) invert(1);
}

/* Left Sidebar (Desktop & Tablet) - FULL SCREEN THREADS SIDEBAR */
.mesh-sidebar {
  width: 76px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  border-right: 1px solid var(--mesh-border);
  background: var(--mesh-bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.4rem;
  box-sizing: border-box;
  z-index: 85000 !important; /* PALING ATAS DARI KONTEN PAGE, TETAP DI BAWAH NAV SHOPPING */
  flex-shrink: 0;
  overflow: visible !important;
  transition: top 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When Shop Mode Navbar is Open at Top: Sidebar stays cleanly under the nav */
body.mesh-shop-nav-open .mesh-sidebar {
  top: 85px !important;
  height: calc(100vh - 85px) !important;
  height: calc(100dvh - 85px) !important;
  z-index: 85000 !important;
}

@media (max-width: 768px) {
  .mesh-sidebar {
    position: fixed;
    top: 56px !important;
    left: 0;
    bottom: 0;
    width: 260px;
    height: calc(100vh - 56px) !important;
    height: calc(100dvh - 56px) !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s ease, height 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    align-items: flex-start;
    padding: 1rem;
    z-index: 2400;
    overflow-y: auto;
  }
  .mesh-sidebar.is-open {
    transform: translateX(0);
  }

  body.mesh-shop-nav-open .mesh-sidebar {
    top: calc(56px + 52px) !important;
    height: calc(100vh - 108px) !important;
    height: calc(100dvh - 108px) !important;
  }
}

/* Sidebar Drawer Backdrop on Mobile */
.mesh-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2300;
}
.mesh-sidebar-backdrop.is-open {
  display: block;
}

/* Top Section in Sidebar */
.mesh-sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}
@media (max-width: 768px) {
  .mesh-sidebar-top {
    align-items: flex-start;
    flex: none;
  }
}

.mesh-logo-link {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0 !important;
}
.mesh-logo-link:hover {
  transform: scale(1.08);
}
.sirkelhub-logo-img,
.mesh-brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Middle Navigation Items */
.mesh-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
  padding: 0.2rem 0;
}
.mesh-nav-list::-webkit-scrollbar {
  display: none;
}
@media (min-width: 769px) {
  .mesh-sidebar-top,
  .mesh-nav-list,
  .mesh-sidebar-bottom {
    overflow: visible !important;
  }
}
@media (max-width: 768px) {
  .mesh-nav-list {
    align-items: flex-start;
    overflow-y: visible;
    flex: none;
  }
}

.mesh-nav-item {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mesh-text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mesh-nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
}

.mesh-nav-item:hover {
  color: var(--mesh-text-main);
  background: var(--mesh-bg-hover);
}
.mesh-nav-item.active {
  color: var(--mesh-text-main);
  background: var(--mesh-metallic-steel);
  border: 1px solid var(--mesh-metallic-pill-border);
  box-shadow: var(--mesh-metallic-pill-shadow);
}
.mesh-nav-item.active svg {
  stroke-width: 2.6;
}

.mesh-nav-label {
  display: none;
}
@media (max-width: 768px) {
  .mesh-nav-label {
    display: inline;
  }
}

/* Bottom Section (Quick Actions & Burger Menu / More) */
.mesh-sidebar-bottom {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
  border-top: 1px solid var(--mesh-border);
  box-sizing: border-box;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mesh-sidebar-bottom {
    justify-content: flex-start;
    padding-top: 0.75rem;
    align-items: stretch;
  }
}

.mesh-sidebar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mesh-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mesh-sidebar-icon-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
}
.mesh-sidebar-icon-btn:hover {
  color: var(--mesh-text-main);
  background: var(--mesh-bg-hover);
}

.mesh-burger-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mesh-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .mesh-burger-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
  }
}
.mesh-burger-btn:hover, .mesh-burger-btn.active {
  color: var(--mesh-text-main);
  background: var(--mesh-bg-hover);
}

/* Dropup Popover Menu (Melayang aman di sebelah kanan luar sidebar) */
.mesh-dropup-menu {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 78px;
  width: 250px;
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  padding: 8px;
  z-index: 2500;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-sizing: border-box;
  animation: fadeInDropup 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInDropup {
  from { opacity: 0; transform: translateX(-8px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
.mesh-dropup-menu.is-open {
  display: flex;
}

@media (max-width: 768px) {
  .mesh-dropup-menu {
    position: fixed;
    bottom: 64px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
}

.mesh-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mesh-text-main);
  text-decoration: none;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease;
}
.mesh-menu-item:hover {
  background: var(--mesh-bg-hover);
}
.mesh-menu-item svg {
  color: var(--mesh-text-muted);
}

/* Central Content Feed & Right Sidebar Area (3-Column Threads Layout) */
.mesh-content-area {
  flex: 1;
  margin-left: 76px;
  width: calc(100% - 76px);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.5rem 1.5rem 6rem 1.5rem;
}

.mesh-central-feed {
  width: 100%;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RIGHT SIDEBAR (Trending Topics, Verified Products & Community)
   -------------------------------------------------------------------------- */
.mesh-right-sidebar {
  width: 320px;
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-shrink: 0;
}

@media (max-width: 1120px) {
  .mesh-right-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .mesh-content-area {
    margin-left: 0;
    width: 100%;
    padding: 0 0 5rem 0 !important;
    gap: 0;
  }
  .mesh-central-feed {
    max-width: 100%;
    width: 100%;
    border-left: none !important;
    border-right: none !important;
  }
}

/* Right Sidebar Widget Cards */
.mesh-widget-card {
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mesh-widget-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mesh-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mesh-border);
  padding-bottom: 8px;
}
.mesh-widget-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mesh-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mesh-widget-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(9, 31, 146, 0.1);
  color: #091F92;
}

/* Trending Topic Item */
.mesh-trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mesh-trend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mesh-trend-item:hover {
  background: var(--mesh-bg-hover);
}
.mesh-trend-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mesh-trend-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mesh-text-main);
}
.mesh-trend-count {
  font-size: 0.7rem;
  color: var(--mesh-text-muted);
}
.mesh-trend-arrow {
  color: var(--mesh-text-muted);
  font-size: 0.75rem;
}

/* Verified Products Recommendation List */
.mesh-prod-rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mesh-prod-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.mesh-prod-rec-item:hover {
  background: var(--mesh-bg-hover);
}
.mesh-prod-rec-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  flex-shrink: 0;
}
.mesh-prod-rec-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mesh-prod-rec-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mesh-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mesh-prod-rec-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0071e3;
}
.mesh-prod-rec-action {
  flex-shrink: 0;
}
.mesh-rec-btn {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 9999px;
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}
.mesh-rec-btn:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: translateY(-1px);
}

/* Reseller CTA Card */
.mesh-reseller-banner {
  background: var(--mesh-bg-card-metallic);
  border: 1px solid var(--mesh-border);
  box-shadow: var(--mesh-metallic-card-shadow);
  border-radius: 16px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mesh-reseller-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mesh-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mesh-reseller-desc {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--mesh-text-muted);
}
.mesh-reseller-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.18s ease;
}
.mesh-reseller-btn:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: translateY(-1px);
}

/* Mini Footer Links */
.mesh-mini-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
  font-size: 0.72rem;
  color: var(--mesh-text-muted);
}
.mesh-mini-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mesh-mini-footer-links a {
  color: var(--mesh-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.mesh-mini-footer-links a:hover {
  color: var(--mesh-text-main);
}

/* --------------------------------------------------------------------------
   MESH SEARCH OVERLAY MODAL
   -------------------------------------------------------------------------- */
.mesh-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 4.5rem;
}
.mesh-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mesh-search-box {
  position: relative;
  z-index: 1210;
  width: 100%;
  max-width: 580px;
  margin: 0 1rem;
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  padding: 1.25rem;
  animation: slideDownSearch 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mesh-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mesh-bg-input);
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--mesh-text-muted);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mesh-search-input-row:focus-within {
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
  color: #0071e3;
}
.mesh-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--mesh-text-main);
  font-size: 0.95rem;
  font-family: inherit;
}
.mesh-search-input::placeholder {
  color: var(--mesh-text-muted);
}
.mesh-search-close-btn {
  background: none;
  border: none;
  color: var(--mesh-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.mesh-search-close-btn:hover {
  background: var(--mesh-bg-hover);
  color: var(--mesh-text-main);
}
.mesh-search-suggestions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.mesh-search-sug-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mesh-text-muted);
}
.mesh-tag-pill {
  padding: 4px 10px;
  font-size: 0.76rem;
  border-radius: 9999px;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
  color: var(--mesh-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}
.mesh-tag-pill:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.mesh-central-feed {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Hero Header */
.mesh-hero-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0 1rem 0;
}

.mesh-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(9, 31, 146, 0.08);
  color: var(--mesh-primary);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
}
html[data-theme="dark"] .mesh-brand-pill {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}
.mesh-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.mesh-page-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.mesh-page-subtitle {
  font-size: 0.92rem;
  color: var(--mesh-text-muted);
  line-height: 1.5;
  margin: 0;
}

.mesh-buyer-rule-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  margin-top: 6px;
  text-align: left;
}
html[data-theme="dark"] .mesh-buyer-rule-banner {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Inline Composer Card */
.mesh-composer-card {
  background: var(--mesh-bg-card-metallic);
  border: 1px solid var(--mesh-border);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--mesh-metallic-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}
.mesh-composer-card:focus-within {
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: var(--mesh-metallic-card-shadow), 0 6px 22px rgba(0, 0, 0, 0.1);
}

.mesh-composer-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.mesh-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mesh-metallic-titanium);
  border: 1px solid var(--mesh-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.mesh-composer-textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
  line-height: 1.55;
  min-height: 48px;
}
.mesh-composer-textarea::placeholder {
  color: var(--mesh-text-muted);
}

.mesh-composer-extra {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--mesh-border);
  flex-wrap: wrap;
}
.mesh-extra-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.mesh-star-picker {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 2px;
  cursor: pointer;
}
.mesh-product-select {
  width: 100%;
  height: 34px;
  font-size: 0.8rem;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--mesh-border);
  background: var(--mesh-bg-card);
  color: inherit;
}

.mesh-composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

/* Clean Flat Solid Tool Pill */
.mesh-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mesh-metallic-pill);
  border: 1px solid var(--mesh-border);
  box-shadow: none;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mesh-text-main);
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.mesh-tool-pill:hover {
  background: var(--mesh-metallic-pill-hover);
  border-color: var(--mesh-border);
}
.mesh-tool-pill:active {
  opacity: 0.88;
}

/* Composer Add Dropdown & Options */
.mesh-add-wrap {
  position: relative;
  display: inline-flex;
}

.mesh-composer-add-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--mesh-bg-card, #ffffff);
  border: 1px solid var(--mesh-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html[data-theme="dark"] .mesh-composer-add-dropdown {
  background: #14171f;
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.mesh-add-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--mesh-text-main, #0f172a);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}

.mesh-add-menu-item:hover {
  background: var(--mesh-bg-hover, rgba(148, 163, 184, 0.12));
  color: #0071e3;
}

/* Selected Product & Rating Attached Pills (View tampil bila sudah dipilih) */
.mesh-composer-selected-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 0;
  margin-top: 4px;
}

.mesh-attached-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.25);
  color: #0071e3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.mesh-attached-pill.is-rating {
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.3);
  color: #d97706;
}

html[data-theme="dark"] .mesh-attached-pill {
  background: rgba(0, 113, 227, 0.18);
  border-color: rgba(0, 113, 227, 0.4);
  color: #60a5fa;
}

html[data-theme="dark"] .mesh-attached-pill.is-rating {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.mesh-pill-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 50%;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.mesh-pill-remove-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

/* Hashtag Autocomplete Popover (# Triggered) */
.mesh-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--mesh-bg-card, #ffffff);
  border: 1px solid var(--mesh-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 6px;
  margin-top: 4px;
}

html[data-theme="dark"] .mesh-autocomplete-dropdown {
  background: #14171f;
  border-color: #334155;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.mesh-autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--mesh-text-main, #0f172a);
  transition: background 0.12s ease;
}

.mesh-autocomplete-item:hover,
.mesh-autocomplete-item.is-selected {
  background: var(--mesh-bg-hover, rgba(148, 163, 184, 0.12));
  color: #0071e3;
}

.mesh-auto-tag-hash {
  font-weight: 800;
  color: #0071e3;
  margin-right: 2px;
}

.mesh-auto-tag-name {
  font-weight: 700;
  flex: 1;
}

.mesh-auto-tag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* Purchased Pick Item in Modal */
.mesh-purchased-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--mesh-border, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  background: var(--mesh-bg-card, #ffffff);
  transition: all 0.15s ease;
}

.mesh-purchased-pick-item:hover {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.04);
}

/* Modern Solid Primary CTA Button */
.mesh-primary-btn {
  background: #0071e3;
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: none;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.12s ease, opacity 0.12s ease;
  position: relative;
}
.mesh-primary-btn:hover {
  background: #0077ed;
  opacity: 0.96;
}
.mesh-primary-btn:active {
  opacity: 0.88;
}
.mesh-primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Filter Nav Pills */
.mesh-filters-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mesh-filter-pill {
  background: var(--mesh-metallic-pill);
  border: 1px solid var(--mesh-metallic-pill-border);
  box-shadow: var(--mesh-metallic-pill-shadow);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mesh-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.mesh-filter-pill:hover {
  color: var(--mesh-text-main);
  background: var(--mesh-metallic-pill-hover);
  transform: translateY(-1px);
}
.mesh-filter-pill.active {
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border-color: var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
}

/* Feed Stream */
.mesh-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Post Card */
.mesh-post-card {
  background: var(--mesh-bg-card-metallic);
  border: 1px solid var(--mesh-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--mesh-metallic-card-shadow);
  display: flex;
  flex-direction: column;
}

.mesh-post-main {
  display: flex;
  gap: 14px;
  position: relative;
}

.mesh-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
  position: relative;
}

.mesh-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.84rem;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.mesh-avatar.is-seller {
  background: linear-gradient(135deg, #091F92, #1e40af);
}

.mesh-connector-line {
  width: 2px;
  background: var(--mesh-border);
  flex: 1;
  margin-top: 6px;
  margin-bottom: -10px;
  border-radius: 2px;
}

.mesh-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mesh-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mesh-author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mesh-text-main);
}
.mesh-badge-verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mesh-verified-green);
}
.mesh-badge-seller {
  font-size: 0.68rem;
  font-weight: 800;
  background: linear-gradient(135deg, #091F92, #1e40af);
  color: #ffffff;
  padding: 1px 7px;
  border-radius: 10px;
}
.mesh-time-text {
  font-size: 0.75rem;
  color: var(--mesh-text-muted);
  margin-left: auto;
}

.mesh-stars-row {
  color: #f59e0b;
  font-size: 0.84rem;
  letter-spacing: 1px;
}
.mesh-bubble-text {
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: break-word;
  color: var(--mesh-text-main);
  margin-top: 2px;
}

/* Attached Product Snippet */
.mesh-product-snippet {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 8px;
}
.mesh-snippet-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffffff;
  flex-shrink: 0;
}
.mesh-snippet-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mesh-snippet-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mesh-text-main);
}
.mesh-snippet-sub {
  font-size: 0.72rem;
  color: var(--mesh-text-muted);
}
.mesh-snippet-btn {
  background: var(--mesh-primary);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.mesh-snippet-btn:hover {
  opacity: 0.88;
}

/* Actions Bar */
.mesh-actions-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}
.mesh-action-btn {
  background: transparent;
  border: none;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mesh-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.mesh-action-btn:hover {
  color: var(--mesh-text-main);
  transform: scale(1.05);
}
.mesh-action-btn.is-liked {
  color: #e11d48;
}
.mesh-action-btn.is-liked svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Inline Reply */
.mesh-inline-reply-box {
  display: none;
  flex-direction: column;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
}
.mesh-inline-reply-box.is-open {
  display: flex;
}
.mesh-reply-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: inherit;
  resize: vertical;
}

/* Nested Replies */
.mesh-replies-wrap {
  margin-left: 20px;
  padding-left: 18px;
  border-left: 2px solid var(--mesh-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.mesh-reply-row {
  display: flex;
  gap: 10px;
}
.mesh-reply-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #475569, #334155);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}
.mesh-reply-avatar.is-seller {
  background: linear-gradient(135deg, #091F92, #1e40af);
}
.mesh-reply-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Modal Overlay */
.mesh-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mesh-modal-overlay.is-active {
  display: flex;
}
.mesh-modal-box {
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.mesh-modal-icon {
  font-size: 2.2rem;
}
.mesh-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.mesh-modal-desc {
  font-size: 0.88rem;
  color: var(--mesh-text-muted);
  line-height: 1.5;
  margin: 0;
}
.mesh-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}
.mesh-btn-cancel {
  background: transparent;
  border: 1px solid var(--mesh-border);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mesh-text-muted);
  cursor: pointer;
}

/* Loading & Empty States */
.mesh-loading-state, .mesh-empty-feed {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mesh-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mesh-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--mesh-border);
  border-top-color: var(--mesh-primary);
  border-radius: 50%;
  animation: meshSpin 0.7s linear infinite;
}
@keyframes meshSpin {
  to { transform: rotate(360deg); }
}
.mesh-empty-icon {
  font-size: 2.5rem;
}

/* ========================================================
   MESH IN-PAGE POPUPS & SLIDE-OVER SHEET PANELS
   ======================================================== */
.mesh-sheet-box {
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: meshSheetFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes meshSheetFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.mesh-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--mesh-border);
  background: var(--mesh-bg-hover);
}

.mesh-sheet-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesh-sheet-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--mesh-text-main);
}

.mesh-sheet-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mesh-sheet-link-full {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0071e3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 113, 227, 0.08);
  transition: all 0.2s;
}

.mesh-sheet-link-full:hover {
  background: rgba(0, 113, 227, 0.16);
  text-decoration: none;
}

.mesh-sheet-close-btn {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--mesh-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}

.mesh-sheet-close-btn:hover {
  background: var(--mesh-border);
  color: var(--mesh-text-main);
}

.mesh-sheet-body {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mesh-sheet-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--mesh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--mesh-bg-hover);
}

/* Rating Picker Modal Styles */
.mesh-rating-dialog {
  max-width: 360px;
  text-align: center;
  padding: 1.8rem 1.5rem;
  border-radius: 20px;
}

.mesh-stars-select-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1.2rem 0 0.8rem 0;
}

.mesh-star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #cbd5e1;
  transition: transform 0.15s, color 0.15s;
}

.mesh-star-btn.is-active,
.mesh-star-btn:hover {
  color: #f59e0b;
  transform: scale(1.18);
}

.mesh-rating-desc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f59e0b;
  min-height: 20px;
  margin-bottom: 1.2rem;
}

/* Tabs inside Profile Modal */
.mesh-sheet-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--mesh-border);
  padding: 0 1.4rem;
  background: var(--mesh-bg-hover);
}

.mesh-sheet-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mesh-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mesh-sheet-tab.is-active {
  color: var(--mesh-primary);
  border-bottom-color: var(--mesh-primary);
}

/* Profile Details & Form */
.mesh-profile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
}

.mesh-profile-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #60a5fa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
}

.mesh-profile-meta {
  flex: 1;
}

.mesh-profile-title-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mesh-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mesh-profile-handle {
  font-size: 0.8rem;
  color: var(--mesh-text-muted);
}

.mesh-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.mesh-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mesh-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mesh-form-input, .mesh-form-textarea {
  width: 100%;
  background: var(--mesh-bg-input);
  border: 1px solid var(--mesh-border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: var(--mesh-text-main);
  box-sizing: border-box;
}

.mesh-form-input:focus, .mesh-form-textarea:focus {
  outline: none;
  border-color: var(--mesh-primary);
}

/* My Posts List in Profile Modal */
.mesh-my-post-card {
  padding: 12px;
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  background: var(--mesh-bg-hover);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mesh-my-post-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mesh-my-post-date {
  font-size: 0.75rem;
  color: var(--mesh-text-muted);
}

.mesh-btn-delete-post {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mesh-btn-delete-post:hover {
  background: #ef4444;
  color: #fff;
}

/* Mesh In-App Cart (NO WA REDIRECT) */
.mesh-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--mesh-border);
  background: var(--mesh-bg-hover);
  gap: 10px;
}

.mesh-cart-item-info {
  flex: 1;
}

.mesh-cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mesh-text-main);
}

.mesh-cart-item-price {
  font-size: 0.8rem;
  color: #0071e3;
  font-weight: 700;
}

.mesh-cart-item-del {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

/* Notification Item */
.mesh-notif-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--mesh-border);
  background: var(--mesh-bg-hover);
}

.mesh-notif-row.is-unread {
  border-left: 3px solid #0071e3;
  background: rgba(0, 113, 227, 0.05);
}

.mesh-notif-body {
  flex: 1;
  font-size: 0.84rem;
  color: var(--mesh-text-main);
  line-height: 1.4;
}

.mesh-notif-time {
  font-size: 0.72rem;
  color: var(--mesh-text-muted);
  margin-top: 2px;
}

/* Sidebar Badges */
.mesh-nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 14px;
  text-align: center;
  line-height: 1.3;
}

/* Quick Shop Modal Items */
.mesh-shop-card {
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mesh-shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.mesh-shop-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mesh-bg-hover);
}
.mesh-shop-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mesh-shop-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mesh-text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mesh-shop-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0071e3;
  margin-top: 4px;
}
.mesh-shop-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.mesh-shop-btn-cart {
  flex: 1;
  background: var(--mesh-metallic-pill);
  border: 1px solid var(--mesh-metallic-pill-border);
  box-shadow: var(--mesh-metallic-pill-shadow);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--mesh-text-main);
  cursor: pointer;
  transition: all 0.18s ease;
}
.mesh-shop-btn-cart:hover {
  background: var(--mesh-metallic-pill-hover);
  transform: translateY(-1px);
}
.mesh-shop-btn-buy {
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.mesh-shop-btn-buy:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: translateY(-1px);
}

/* ========================================================
   SLIDE-DOWN SHOP MODE NAVBAR IN MESH (NON-OVERLAPPING & AUTO HIDE)
   ======================================================== */
.mesh-shop-navbar-wrap {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2200;
  overflow: hidden;
  max-height: 85px;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  background: var(--mesh-bg-card);
}

.mesh-shop-navbar-wrap .main-header {
  position: relative !important;
  top: 0 !important;
}

@media (min-width: 769px) {
  .mesh-shop-navbar-wrap {
    padding-left: 76px;
  }
}

.mesh-shop-navbar-wrap.is-hidden {
  max-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  border: none !important;
  box-shadow: none !important;
}

.mesh-shop-navbar-wrap:not(.is-hidden) {
  max-height: 90px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--mesh-border);
}

.mesh-page-wrapper {
  transition: padding-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.mesh-shop-nav-open .mesh-content-area {
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  body.mesh-shop-nav-open .mesh-mobile-topbar {
    top: 52px;
    transition: top 0.3s ease;
  }
}

/* ========================================================
   COLORED VERIFICATION CHECKMARK BADGES, ID PILL & STORE TAG
   ======================================================== */
.mesh-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Centang Abu: Verified Gmail */
.mesh-check-badge.is-grey {
  background: linear-gradient(135deg, #64748b, #475569);
}

/* Centang Hijau: Verified Identitas (App Privy) */
.mesh-check-badge.is-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Centang Biru: Full Verified + Trusted Toko */
.mesh-check-badge.is-blue {
  background: linear-gradient(135deg, #0071e3, #1d4ed8);
}

/* Centang Merah: Verified Investor VIP */
.mesh-check-badge.is-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

/* Unique User ID Pill ("semua pakai id ya") */
.mesh-uid-pill {
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
  color: var(--mesh-text-muted);
}

/* Tag Toko Button on Profile & Feed */
.mesh-store-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.mesh-store-tag-btn:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: translateY(-1px);
  opacity: 0.95;
}

.mesh-store-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.25);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.mesh-store-tag-pill:hover {
  background: #0071e3;
  color: #ffffff;
}

/* Live Chat In-Page Popup Bubbles */
.mesh-chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: meshFadeIn 0.15s ease;
}

.mesh-chat-msg-row.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.mesh-chat-msg-row.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.mesh-chat-bubble {
  padding: 10px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.mesh-chat-msg-row.outgoing .mesh-chat-bubble {
  background: #0071e3;
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}

.mesh-chat-msg-row.incoming .mesh-chat-bubble {
  background: var(--mesh-bg-hover);
  color: var(--mesh-text-main);
  border: 1px solid var(--mesh-border);
  border-radius: 16px 16px 16px 4px;
}

.mesh-chat-msg-time {
  font-size: 0.68rem;
  color: var(--mesh-text-muted);
  margin-top: 3px;
  padding: 0 4px;
}

/* ========================================================
   FULLWIDTH SHARP-DIVIDER CENTRAL FEED & ZERO-LAG UI
   ======================================================== */
.mesh-content-area {
  padding-top: 0 !important;
  align-items: flex-start;
}

.mesh-central-feed {
  max-width: 640px;
  width: 100%;
  gap: 0 !important;
  border-left: 1px solid var(--mesh-border);
  border-right: 1px solid var(--mesh-border);
  min-height: 100vh;
  background: var(--mesh-bg-main);
}

.mesh-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.mesh-composer-card {
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--mesh-border) !important;
  box-shadow: none !important;
  padding: 14px 16px !important;
  background: var(--mesh-bg-main) !important;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease;
}

.mesh-composer-card.is-active,
.mesh-composer-card:focus-within {
  background: var(--mesh-bg-main) !important;
}

.mesh-composer-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.mesh-composer-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.mesh-composer-input-wrap {
  position: relative;
  width: 100%;
}

.mesh-composer-textarea {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--mesh-text-main);
  line-height: 1.5;
  min-height: 52px;
  padding: 4px 0;
  display: block;
}

.mesh-composer-textarea::placeholder {
  color: var(--mesh-text-muted);
}

.mesh-composer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin-top: 4px;
}

.mesh-composer-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesh-post-card {
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--mesh-border) !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
  background: var(--mesh-bg-main) !important;
  transition: background 0.1s ease;
}

.mesh-post-card:hover {
  background: rgba(148, 163, 184, 0.03) !important;
}

.mesh-post-card.is-highlighted-post {
  background: rgba(0, 113, 227, 0.05) !important;
  border-left: 3px solid #0071e3 !important;
}

/* Top Sticky Tabs: For You & Following */
.mesh-top-tabs-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  background: var(--mesh-bg-main);
  border-bottom: 1px solid var(--mesh-border);
}

.mesh-top-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 13px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--mesh-text-muted);
  cursor: pointer;
  position: relative;
  text-align: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.mesh-top-tab:hover {
  background: var(--mesh-bg-hover);
  color: var(--mesh-text-main);
}

.mesh-top-tab.active {
  color: var(--mesh-text-main);
}

.mesh-top-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  right: 25%;
  height: 3px;
  border-radius: 99px;
  background: var(--mesh-text-main);
}

/* Explore Category Tabs: Explore | Trending | News | Sport | Entertainment */
.mesh-explore-tabs-bar {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--mesh-border);
  background: var(--mesh-bg-main);
  scrollbar-width: none;
}

.mesh-explore-tabs-bar::-webkit-scrollbar {
  display: none;
}

.mesh-explore-tab {
  flex: 1;
  min-width: fit-content;
  background: none;
  border: none;
  padding: 11px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--mesh-text-muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.mesh-explore-tab.active {
  color: #0071e3;
}

.mesh-explore-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2.5px;
  background: #0071e3;
  border-radius: 99px;
}

/* Post Header & Clickable Author Links + 3-Dots Menu */
.mesh-post-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.mesh-author-cluster {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.mesh-author-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.25;
}

.mesh-author-name-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.mesh-author-name-link:hover .mesh-author-name {
  text-decoration: underline;
}

.mesh-author-handle-row {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.mesh-handle-text {
  font-size: 0.78rem;
  color: var(--mesh-text-muted);
  font-weight: 500;
  text-decoration: none;
  word-break: break-all;
}

.mesh-handle-text:hover {
  text-decoration: underline;
  color: var(--mesh-text-main);
}

.mesh-dot-sep {
  color: var(--mesh-text-muted);
  font-size: 0.75rem;
}

.mesh-more-wrap {
  position: relative;
  flex-shrink: 0;
}

.mesh-more-dots-btn {
  background: none;
  border: none;
  color: var(--mesh-text-muted);
  padding: 4px 6px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.mesh-more-dots-btn:hover {
  background: var(--mesh-bg-hover);
  color: var(--mesh-text-main);
}

.mesh-post-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 80;
  min-width: 210px;
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 6px;
  flex-direction: column;
  gap: 2px;
}

.mesh-post-more-menu.is-open {
  display: flex;
}

.mesh-more-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mesh-text-main);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mesh-more-item:hover {
  background: var(--mesh-bg-hover);
}

.mesh-more-item.is-danger {
  color: #ef4444;
}

/* Action Bar Compact Spacing & Active States */
.mesh-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 460px;
  margin-top: 8px;
  padding-top: 2px;
}

.mesh-action-btn.is-active-repost {
  color: #10b981 !important;
}

.mesh-action-btn.is-active-bookmark {
  color: #0071e3 !important;
}

/* Who to Follow Rows (Right Sidebar & Fullwidth Explore) */
.mesh-follow-list {
  display: flex;
  flex-direction: column;
}

.mesh-follow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--mesh-border);
}

.mesh-follow-row:last-child {
  border-bottom: none;
}

.mesh-follow-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mesh-bg-hover);
  border: 1px solid var(--mesh-border);
  color: var(--mesh-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.mesh-follow-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mesh-follow-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.mesh-follow-name-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--mesh-text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.mesh-follow-name-link:hover {
  text-decoration: underline;
}

.mesh-follow-handle {
  font-size: 0.72rem;
  color: var(--mesh-text-muted);
  line-height: 1.2;
}

.mesh-follow-btn {
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.mesh-follow-btn:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: translateY(-1px);
}

.mesh-follow-btn.is-following {
  background: var(--mesh-metallic-pill);
  color: var(--mesh-text-main);
  border: 1px solid var(--mesh-metallic-pill-border);
  box-shadow: var(--mesh-metallic-pill-shadow);
}

/* ========================================================
   LEFT SIDEBAR HOVER TOOLTIP POPUP (ELEVATED, CRISP & NEVER CLIPPED)
   ======================================================== */
@media (min-width: 769px) {
  .mesh-sidebar {
    overflow: visible !important;
    z-index: 85000 !important;
  }

  .mesh-sidebar-top,
  .mesh-nav-list,
  .mesh-sidebar-bottom,
  .mesh-nav-item {
    overflow: visible !important;
  }

  .mesh-sidebar [data-tooltip] {
    position: relative !important;
  }

  .mesh-sidebar [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 22px) !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(-6px) !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.3px !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    z-index: 999999 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
  }

  .mesh-sidebar [data-tooltip]::before {
    content: "" !important;
    position: absolute !important;
    left: calc(100% + 14px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: 5px solid transparent !important;
    border-right-color: #0f172a !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 999999 !important;
  }

  html[data-theme="dark"] .mesh-sidebar [data-tooltip]::after {
    background: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6) !important;
  }
  html[data-theme="dark"] .mesh-sidebar [data-tooltip]::before {
    border-right-color: #1e293b !important;
  }

  .mesh-sidebar [data-tooltip]:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
  }
  .mesh-sidebar [data-tooltip]:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ========================================================
   MOBILE (HP) MODE BOTTOM NAVIGATION BAR & RESPONSIVE LAYOUT
   ======================================================== */
.mesh-mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mesh-central-feed {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none !important;
    border-right: none !important;
    padding-bottom: 70px;
    margin: 0 !important;
  }

  .mesh-post-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--mesh-border) !important;
    box-shadow: none !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .mesh-post-main {
    gap: 10px !important;
  }

  .mesh-avatar-col {
    width: 34px !important;
  }

  .mesh-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
  }

  .mesh-reply-avatar {
    width: 26px !important;
    height: 26px !important;
  }

  .mesh-top-tabs-bar {
    top: 56px;
  }

  .mesh-mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--mesh-bg-card);
    border-top: 1px solid var(--mesh-border);
    z-index: 1500;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
  }

  .mesh-mob-nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--mesh-text-muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    height: 100%;
  }

  .mesh-mob-nav-btn.active {
    color: var(--mesh-text-main);
  }

  #chatContactsPane {
    width: 115px !important;
  }
}

/* ========================================================
   PROFILE COVER / BANNER IMAGE (SAMPUL PROFIL)
   ======================================================== */
.mesh-profile-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #334155 100%);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--mesh-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesh-profile-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mesh-profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
  z-index: 1;
}

.mesh-banner-edit-btn,
.mesh-profile-banner-edit-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  background: var(--mesh-metallic-btn) !important;
  color: var(--mesh-metallic-btn-text) !important;
  border: 1px solid var(--mesh-metallic-btn-border) !important;
  box-shadow: var(--mesh-metallic-btn-shadow), 0 4px 18px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 99px;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mesh-banner-edit-btn:hover,
.mesh-profile-banner-edit-btn:hover {
  background: var(--mesh-metallic-btn-hover) !important;
  transform: translate(-50%, -50%) scale(1.06) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 24px rgba(0, 0, 0, 0.55) !important;
  filter: brightness(1.12);
}

/* ========================================================
   FLOATING "+" BUTTON (BOTTOM-LEFT) & POPUP MENU (ADD POST, GROUP, TAG)
   ======================================================== */
.mesh-fab-wrap {
  position: fixed;
  left: 92px;
  bottom: 24px;
  z-index: 2600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 768px) {
  .mesh-fab-wrap {
    left: 16px;
    bottom: 72px;
  }
}

.mesh-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mesh-metallic-btn);
  color: var(--mesh-metallic-btn-text);
  border: 1px solid var(--mesh-metallic-btn-border);
  box-shadow: var(--mesh-metallic-btn-shadow), 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.mesh-fab-btn:hover {
  background: var(--mesh-metallic-btn-hover);
  transform: scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.mesh-fab-btn.is-open svg {
  transform: rotate(45deg);
}

.mesh-fab-btn svg {
  transition: transform 0.2s ease;
}

.mesh-fab-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--mesh-bg-card);
  border: 1px solid var(--mesh-border);
  border-radius: 16px;
  padding: 8px;
  min-width: 225px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  animation: fadeInDropup 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.mesh-fab-menu.is-open {
  display: flex;
}

.mesh-fab-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--mesh-text-main);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mesh-fab-menu-item:hover {
  background: var(--mesh-bg-hover);
}

.mesh-fab-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   NATIVE TOAST & DIALOG NOTIFICATION SYSTEM (PENGGANTI ALERT BROWSER)
   ======================================================== */
.mesh-native-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.mesh-native-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--mesh-bg-card);
  color: var(--mesh-text-main);
  border: 1px solid var(--mesh-border);
  border-left: 4px solid #0071e3;
  border-radius: 14px;
  padding: 12px 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  animation: meshToastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.mesh-native-toast.is-success {
  border-left-color: #10b981;
}

.mesh-native-toast.is-error {
  border-left-color: #ef4444;
}

@keyframes meshToastSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========================================================
   EXPLORE PRODUCT SEARCH CARDS & GROUP CARDS
   ======================================================== */
.mesh-explore-prod-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--mesh-border);
  background: var(--mesh-bg-main);
  transition: background 0.12s ease;
}

.mesh-explore-prod-row:hover {
  background: var(--mesh-bg-hover);
}

.mesh-group-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  text-decoration: none;
}

.mesh-hashtag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
  text-decoration: none;
}





