/* ============================================================
   Hustlers Crib — Global Overrides
   Applies to ALL pages: white background, minimal header,
   mobile bottom nav spacing
   ============================================================ */

/* Hide legacy floating chat sidebar widget */
.chat-sidebar,
body.n_activated .chat-sidebar,
body.n_live .chat-sidebar { display: none !important; }
@media (min-width: 1200px) {
  .chat-sidebar { display: none !important; }
}

/* Earnika brand logo refresh */
.main-header .logo img {
  max-height: 52px !important;
  max-width: 280px !important;
  width: auto !important;
}

.hc-hb-logo-img {
  height: 52px !important;
  max-height: 52px !important;
  max-width: 285px !important;
  width: auto !important;
}

.hc-hb-modern .hc-hb-logo-img {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 340px !important;
}

.hc-hb-modern.hc-hb-home .hc-hb-logo-img {
  height: 82px !important;
  max-height: 82px !important;
  max-width: 380px !important;
}

@media (max-width: 767px) {
  .main-header .logo img {
    max-height: 40px !important;
    max-width: 200px !important;
  }

  .hc-hb-logo-img,
  .hc-hb-modern .hc-hb-logo-img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 220px !important;
  }

  .hc-hb-modern.hc-hb-home .hc-hb-logo-img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 240px !important;
  }
}

@media (max-width: 430px) {
  .hc-hb-logo-img,
  .hc-hb-modern .hc-hb-logo-img,
  .hc-hb-modern.hc-hb-home .hc-hb-logo-img {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 190px !important;
  }
}

/* ── White background everywhere ── */
body,
body.night-mode {
  background: #ffffff !important;
  padding-top: 0 !important;
}

/* ── Main header: minimal & clean (matches cf-nav style) ── */
.main-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f0f0f0 !important;
  box-shadow: none !important;
}

/* Tighten header height */
.main-header .container,
.main-header .container-fluid { padding-top: 10px; padding-bottom: 10px; }

/* Clean logo */
.main-header .logo-wrapper { display: flex; align-items: center; }
.main-header .logo img { max-height: 36px; }

/* Search bar: pill shape, light fill */
.main-header .search-wrapper .form-control {
  border-radius: 20px !important;
  background: #f5f5f5 !important;
  border: 1.5px solid #ebebeb !important;
  height: 38px !important;
  font-size: 14px;
}
.main-header .search-wrapper .form-control:focus {
  border-color: #ffcc00 !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Nav icons: clean */
.main-header .navbar-wrapper ul li a,
.main-header .navbar-wrapper ul li button { color: #444 !important; }

/* ── Remove default sidebar background tint ── */
.sg-offcanvas-sidebar,
.sidebar-wrapper { background: transparent !important; }

/* Cards: white, soft border, no heavy shadow */
.card {
  background: #ffffff !important;
  border: 1px solid #ebebeb !important;
  box-shadow: none !important;
  border-radius: 12px !important;
}


/* ── Panels ── */
.panel, .side-panel { background: #ffffff !important; border: 1px solid #ebebeb !important; border-radius: 12px !important; }

/* ── Newsfeed ── */
.newsfeed-wrapper { background: transparent !important; }

/* ── Mobile: no bottom navigation ── */
@media (max-width: 767px) {
  body { padding-bottom: 0 !important; }
  .footer-bottom-bar { display: none !important; }
}

/* ================================================================
   HC MOBILE BOTTOM NAV
   ================================================================ */
.hc-bottom-nav {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--hc-mobile-nav-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 22px env(safe-area-inset-bottom, 0);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #ebe4d8;
  box-shadow: 0 -10px 32px rgba(34, 24, 9, 0.08);
  backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
  .hc-bottom-nav { display: none !important; }
}

.hc-bn-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  cursor: pointer;
  text-decoration: none;
  color: #8f8374;
  border-radius: 50%;
  background: transparent;
  transition: color .15s, background .15s, transform .15s;
  position: relative;
}
.hc-bn-item:hover,
.hc-bn-item.active {
  color: #171513;
  background: #f7f1e8;
}
.hc-bn-item svg { width: 23px; height: 23px; stroke-width: 1.9; }
.hc-bn-item.active svg { stroke-width: 2.3; }

.hc-bn-item-profile {
  overflow: visible;
}

.hc-bn-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e3d7c7;
  background: #fff;
}

.hc-bn-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #2d2419;
  background: #f0e6da;
}

/* Badge on nav icons */
.hc-bn-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 2px solid #fff;
}

/* Center CREATE button */
.hc-bn-create {
  flex: 1.2;
  position: relative;
  top: -10px;
}
.hc-bn-create-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: background .15s, transform .15s;
}
.hc-bn-create:hover .hc-bn-create-circle,
.hc-bn-create:active .hc-bn-create-circle {
  background: #333;
  transform: scale(1.06);
}
.hc-bn-create svg { width: 24px; height: 24px; stroke-width: 2.5; }
.hc-bn-create span { color: #1a1a1a; font-size: 10px; font-weight: 600; }

/* Create dropdown panel */
.hc-bn-create-panel {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  padding: 16px;
  width: 280px;
  display: none;
  z-index: 1000;
  animation: hcBnIn .15s ease;
}
.hc-bn-create-panel.open { display: block; }
@keyframes hcBnIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hc-bn-create-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hc-bn-create-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  background: #f8f8f8;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background .12s;
}
.hc-bn-create-item:hover { background: #f0eeeb; color: #1a1a1a; }
.hc-bn-create-item svg { width: 22px; height: 22px; color: #1a1a1a; }

.hc-bn-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
}
.hc-bn-overlay.open { display: block; }

/* ================================================================
   HC UNIFIED HEADER BAR
   ================================================================ */
.hc-hb {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  height: 60px;
  display: flex;
  align-items: center;
}

.hc-hb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

/* ── Logo ── */
.hc-hb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.hc-hb-logo-img {
  height: 36px !important;
  max-height: 36px !important;
  width: auto !important;
  max-width: 180px !important;
  display: block !important;
  object-fit: contain;
}
@media (max-width: 767px) {
  .hc-hb-logo-img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 130px !important;
  }
}
.hc-hb-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -.3px;
  white-space: nowrap;
}

/* ── Left side ── */
.hc-hb-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* ── Communities button ── */
.hc-hb-comm { position: relative; }

.hc-hb-comm-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.hc-hb-comm-btn:hover { background: #f5f5f5; color: #1a1a1a; }
.hc-hb-comm-btn[aria-expanded="true"] { background: #f0f0f0; color: #1a1a1a; }
.hc-hb-comm-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hc-hb-comm-chev {
  width: 14px !important;
  height: 14px !important;
  transition: transform .2s;
}
.hc-hb-comm-btn[aria-expanded="true"] .hc-hb-comm-chev { transform: rotate(180deg); }
/* "Communities" text — desktop only (≥768px) */
.hc-hb-comm-label { display: none !important; }
@media (min-width: 768px) { .hc-hb-comm-label { display: inline !important; } }

/* ── Communities panel ── */
.hc-hb-comm-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  max-width: calc(100vw - 24px); /* never overflow on small screens */
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 201;
  overflow: hidden;
  animation: hcHbPanelIn .15s ease;
}
.hc-hb-comm-panel.open { display: flex; flex-direction: column; }
@keyframes hcHbPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search row */
.hc-hb-comm-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #f0f0f0;
}
.hc-hb-comm-search-wrap svg { width: 16px; height: 16px; color: #888; flex-shrink: 0; }
.hc-hb-comm-search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #1a1a1a;
  background: transparent;
}
.hc-hb-comm-search::placeholder { color: #aaa; }

/* Community list */
.hc-hb-comm-list {
  overflow-y: auto;
  max-height: 220px;
  padding: 6px 0;
}

/* Loading dots */
.hc-hb-comm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 20px;
}
.hc-hb-comm-loading span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ccc;
  animation: hcHbDot .9s infinite ease-in-out;
}
.hc-hb-comm-loading span:nth-child(2) { animation-delay: .15s; }
.hc-hb-comm-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes hcHbDot {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Community item */
.hc-hb-comm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 500;
  transition: background .1s;
  cursor: pointer;
}
.hc-hb-comm-item:hover { background: #f7f7f7; color: #1a1a1a; }
.hc-hb-ci-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.hc-hb-ci-initial {
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.hc-hb-ci-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer links */
.hc-hb-comm-foot {
  border-top: 1px solid #f0f0f0;
  padding: 6px 0;
}
.hc-hb-comm-foot-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  transition: background .1s;
  border: none;
  background: transparent;
  width: 100%;
}
.hc-hb-comm-foot-link:hover { background: #f7f7f7; color: #1a1a1a; }
.hc-hb-comm-foot-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Overlay */
.hc-hb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
}
.hc-hb-overlay.open { display: block; }

/* ── Right icons ── */
.hc-hb-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Desktop-only elements */
.hc-hb-desktop-only { display: flex !important; }
@media (max-width: 767px) {
  .hc-hb-desktop-only { display: none !important; }
  .hc-hb-panel-wrap.hc-hb-desktop-only { display: flex !important; }
  .hc-hb-divider.hc-hb-desktop-only { display: none !important; }
}

/* Vertical divider between icons and profile */
.hc-hb-divider {
  display: flex;
  width: 1px;
  height: 22px;
  background: #e0e0e0;
  margin: 0 8px;
  flex-shrink: 0;
}

.hc-hb-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: #555;
  text-decoration: none;
  transition: background .13s, color .13s;
  border: none;
  cursor: pointer;
}
.hc-hb-icon-btn:hover,
.hc-hb-icon-btn.active { background: #f5f5f5; color: #1a1a1a; }

.hc-hb-panel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hc-hp-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  width: 340px;
  max-width: min(340px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
  z-index: 280;
  overflow: hidden;
  animation: hcHbPanelIn .16s ease;
}
.hc-hp-panel.open {
  display: flex;
  flex-direction: column;
}
.hc-hp-panel-messages {
  right: -52px;
}

.hc-hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.hc-hp-title {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
}

.hc-hp-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hc-hp-link {
  border: none;
  background: transparent;
  color: #4f6ef7;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}
.hc-hp-link:hover {
  color: #2f53f0;
}
.hc-hp-link.is-disabled,
.hc-hp-link:disabled {
  color: #b3b3b3;
  cursor: default;
}

.hc-hp-filter {
  position: relative;
}

.hc-hp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.hc-hp-filter-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 112px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  padding: 6px;
}
.hc-hp-filter-menu.open {
  display: block;
}
.hc-hp-filter-menu button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #1f2937;
  cursor: pointer;
}
.hc-hp-filter-menu button:hover {
  background: #f6f7fb;
}

.hc-hp-search-row {
  padding: 10px 14px 0;
}

.hc-hp-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f4f5;
  border: 1px solid #efefef;
  border-radius: 10px;
  padding: 10px 12px;
}
.hc-hp-search svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.hc-hp-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #111827;
}
.hc-hp-search input::placeholder {
  color: #9ca3af;
}

.hc-hp-body {
  min-height: 210px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0 0;
}
.hc-hp-panel-messages .hc-hp-body {
  min-height: 300px;
}

.hc-hp-loading,
.hc-hp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

.hc-hp-section-label {
  padding: 6px 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.hc-hp-list {
  display: flex;
  flex-direction: column;
}

.hc-hp-item,
.hc-hp-item-button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-top: 1px solid #f3f4f6;
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.hc-hp-item:hover,
.hc-hp-item-button:hover {
  background: #fafafa;
}

.hc-hp-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.hc-hp-avatar-stack {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 38px;
}
.hc-hp-avatar-stack .hc-hp-avatar {
  position: absolute;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 2px solid #fff;
}
.hc-hp-avatar-back {
  left: 0;
  bottom: 0;
}
.hc-hp-avatar-front {
  right: 0;
  top: 0;
}

.hc-hp-item-copy {
  min-width: 0;
  flex: 1;
}

.hc-hp-item-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hc-hp-item-title {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-hp-item-time {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.hc-hp-item-text {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hc-hp-item-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 999px;
  background: #3f6df6;
  opacity: 0;
  margin-top: 14px;
}
.hc-hp-item.is-unread .hc-hp-item-dot {
  opacity: 1;
}

.hc-hp-foot {
  border-top: 1px solid #f0f0f0;
  padding: 10px 14px;
}

.hc-hp-foot-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}
.hc-hp-foot-link:hover {
  color: #111827;
  text-decoration: underline;
}

/* Badge */
.hc-hb-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: #e53e3e;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
}

/* Profile dropdown */
.hc-hb-profile-li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* ── Profile Dropdown (hc-pd) ── */
.hc-pd { position: relative; flex-shrink: 0; }

/* Trigger button */
.hc-pd-btn {
  position: relative;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 50% !important;
  border: 2px solid transparent !important;
  background: #1a1a1a !important; /* brand-consistent dark fallback */
  padding: 0 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  transition: border-color .15s, box-shadow .15s;
}
.hc-pd-btn:hover { box-shadow: 0 0 0 3px rgba(0,0,0,.1) !important; }
.hc-pd-btn[aria-expanded="true"] { border-color: #999 !important; }

/* Profile photo inside button */
.hc-pd-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Initials fallback (shown when photo errors) */
.hc-pd-initials {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff; /* white text on dark button */
  letter-spacing: .5px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ── Panel ── */
.hc-pd-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(20, 18, 16, .14);
  z-index: 300;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 90px);
  -webkit-overflow-scrolling: touch;
  padding: 8px;
  animation: hcPdIn .15s ease;
}
/* Use Fraunces across the entire profile dropdown */
.hc-pd-panel,
.hc-pd-panel * {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
}
.hc-pd-panel.open { display: block; }
@keyframes hcPdIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Identity header — avatar + name + email */
.hc-pd-ident {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 14px;
}
.hc-pd-ident-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffcc00;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hc-pd-ident-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hc-pd-ident-avatar-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.hc-pd-ident-text { min-width: 0; }
.hc-pd-ident-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hc-pd-ident-email {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Divider */
.hc-pd-sep {
  height: 1px;
  background: #f0f0f0;
  margin: 6px 8px;
}
/* Full-bleed divider under the identity header */
.hc-pd-sep-ident {
  margin: 0 -8px 8px;
}

/* Menu item — inset row with rounded hover pill */
.hc-pd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.hc-pd-item:hover,
.hc-pd-item.active { background: #f3f3f2; color: #1a1a1a; }
.hc-pd-item svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  color: #555;
}
.hc-pd-item:hover svg,
.hc-pd-item.active svg { color: #1a1a1a; }

/* Create Community — gold accent */
.hc-pd-gold { color: #ffc000 !important; font-weight: 600 !important; }
.hc-pd-gold svg { color: #ffc000 !important; }
.hc-pd-gold:hover { background: #fbf3e3; color: #c07e10 !important; }
.hc-pd-gold:hover svg { color: #c07e10 !important; }

/* Log out — red */
.hc-pd-logout {
  color: #e02f2f !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.hc-pd-logout svg { color: #e02f2f !important; }
.hc-pd-logout:hover { background: #fff7f7 !important; color: #bf2626 !important; }
.hc-pd-logout:hover svg { color: #bf2626 !important; }

/* Overlay to close on outside click */
.hc-pd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 299;
}
.hc-pd-overlay.open { display: block; }

/* My Communities section in profile dropdown */
.hc-pd-comm-sep {
  margin: 10px 0 0 !important;
  background: #eeeeee !important;
}
.hc-pd-section-label {
  padding: 11px 11px 7px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #a9a9a9 !important;
  display: block !important;
  line-height: 1.2 !important;
  font-family: inherit !important;
}
.hc-pd-comm-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  margin: 0 0 6px !important;
  padding: 8px 12px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background .12s ease !important;
  background: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  width: 100% !important;
}
.hc-pd-comm-item:last-of-type { margin-bottom: 0 !important; }
.hc-pd-comm-item:hover {
  background: #fafafa !important;
}
.hc-pd-comm-img {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  border: 0 !important;
  display: block !important;
  flex-shrink: 0 !important;
  background: #819aa6 !important;
}
.hc-pd-comm-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.hc-pd-comm-name {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #181818 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.1 !important;
  display: block !important;
  font-family: inherit !important;
}
.hc-pd-comm-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: #9b4a00 !important;
  background: linear-gradient(90deg, #ffe89d 0%, #ffc36b 48%, #f49a32 100%) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 2px 6px !important;
  width: fit-content !important;
  line-height: 1.15 !important;
}
.hc-pd-comm-badge svg {
  color: #b55a00 !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  flex-shrink: 0 !important;
}
.hc-pd-comm-arrow {
  color: #c8c8c8 !important;
  flex-shrink: 0 !important;
  transition: color .1s !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
}
.hc-pd-comm-item:hover .hc-pd-comm-arrow { color: #999 !important; }

/* Guest buttons */
.hc-hb-ghost-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  text-decoration: none;
  transition: background .13s;
}
.hc-hb-ghost-btn:hover { background: #f5f5f5; color: #1a1a1a; }
.hc-hb-gold-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #1a1a1a;
  color: #fff;
  text-decoration: none;
  transition: background .13s;
}
.hc-hb-gold-btn:hover { background: #333; }

/* Community Stars */
.cf-page-stars {
  background: #f8f4ee;
}
.gs-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 54px 18px 72px;
  color: #11182d;
}
.gs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}
.gs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid #efe0c2;
  background: linear-gradient(180deg, #fff8e9 0%, #fbefd8 100%);
  color: #d99c31;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gs-head h1,
.gs-hero h2,
.gs-empty h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #061229;
  letter-spacing: 0;
}
.gs-head h1 {
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
}
.gs-head p,
.gs-hero-copy p,
.gs-empty p {
  margin: 8px 0 0;
  color: #6f7588;
  font-size: 15px;
  font-weight: 600;
}
.gs-week {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #ddd4c5;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #747986;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(24, 18, 9, .05);
}
.gs-week i { color: #e5aa41; }
.gs-hero {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  min-height: 208px;
  padding: 34px 46px;
  margin-bottom: 44px;
  overflow: hidden;
  border: 1px solid #ddd4c5;
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 22%, rgba(247, 198, 84, .28) 0, rgba(247, 198, 84, 0) 24%),
    linear-gradient(105deg, #fff 0%, #fffdf8 58%, #fff4d8 100%);
  box-shadow: 0 16px 34px rgba(24, 18, 9, .11);
}
.gs-hero-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: linear-gradient(135deg, #efc04d 0%, #806eb3 100%);
  box-shadow: 0 18px 32px rgba(214, 160, 41, .32);
}
.gs-hero-avatar img,
.gs-small-avatar img,
.gs-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.gs-hero-avatar span {
  position: absolute;
  right: -2px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd966 0%, #e8a51e 100%);
  color: #10111a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 8px 18px rgba(196, 138, 19, .28);
}
.gs-hero-copy h2 {
  font-size: 36px;
  line-height: 1.05;
}
.gs-points-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 11px 18px;
  border: 1px solid #e6ded1;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 18px rgba(24, 18, 9, .05);
}
.gs-points-pill i,
.gs-points-pill em,
.gs-score em,
.gs-row-score em { color: #e0a23a; }
.gs-points-pill strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1;
  color: #0c162d;
}
.gs-points-pill span {
  color: #6f7588;
  font-weight: 800;
}
.gs-points-pill em,
.gs-score em,
.gs-row-score em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}
.gs-podium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.gs-podium-card,
.gs-row {
  text-decoration: none !important;
  color: inherit !important;
}
.gs-podium-card {
  display: grid;
  grid-template-columns: 48px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  padding: 22px 24px;
  border: 1px solid #ddd4c5;
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 12px 24px rgba(24, 18, 9, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gs-podium-card:hover,
.gs-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(24, 18, 9, .11);
}
.gs-rank-bubble {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff3dc;
  border: 1px solid #f0dfbf;
  color: #e6a83c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 900;
}
.gs-small-avatar,
.gs-row-avatar {
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, #766db3 0%, #f4c348 100%);
}
.gs-small-avatar {
  width: 52px;
  height: 52px;
}
.gs-podium-info strong,
.gs-row-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0b152b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.1;
}
.gs-podium-info em,
.gs-row-copy small,
.gs-row-copy em {
  display: block;
  margin-top: 3px;
  color: #636a7a;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
.gs-score,
.gs-row-score {
  text-align: right;
  min-width: 68px;
}
.gs-score strong,
.gs-row-score strong {
  display: block;
  color: #071329;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.1;
}
.gs-rising-label {
  margin: 0 0 12px;
  color: #6e7483;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.gs-list {
  overflow: hidden;
  border: 1px solid #ddd4c5;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 28px rgba(24, 18, 9, .08);
}
.gs-row {
  display: grid;
  grid-template-columns: 36px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 16px 24px;
  border-bottom: 1px solid #ebe4d8;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.gs-row:last-child { border-bottom: 0; }
.gs-row:hover { background: #fffdf8; }
.gs-row-rank {
  color: #6d7484;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.gs-row-avatar {
  width: 46px;
  height: 46px;
}
.gs-row-copy strong { font-size: 18px; }
.gs-row-copy em {
  display: inline;
  margin-left: 5px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 12px;
}
.gs-empty {
  padding: 44px 28px;
  border: 1px solid #ddd4c5;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  text-align: center;
  box-shadow: 0 14px 28px rgba(24, 18, 9, .08);
}
.gs-empty h2 { font-size: 28px; }

@media (max-width: 820px) {
  .gs-wrap { padding: 32px 14px 52px; }
  .gs-head { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .gs-head h1 { font-size: 30px; }
  .gs-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 26px 22px;
    min-height: 0;
  }
  .gs-hero-copy h2 { font-size: 30px; }
  .gs-podium { grid-template-columns: 1fr; }
  .gs-podium-card,
  .gs-row {
    grid-template-columns: 40px 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .gs-score,
  .gs-row-score {
    grid-column: 3;
    text-align: left;
  }
  .gs-rank-bubble { width: 40px; height: 40px; font-size: 17px; }
  .gs-small-avatar,
  .gs-row-avatar { width: 42px; height: 42px; }
  .gs-points-pill { flex-wrap: wrap; border-radius: 18px; }
}

/* Auth page CTA buttons */
.fr_welcome_btn.btn.btn-primary,
.fr_welcome_btn.btn-primary,
.fr_welcome_btn {
  background: #d6b16d !important;
  border-color: #d6b16d !important;
  color: #111111 !important;
  box-shadow: none !important;
}

.fr_welcome_btn.btn.btn-primary:hover,
.fr_welcome_btn.btn-primary:hover,
.fr_welcome_btn:hover,
.fr_welcome_btn.btn.btn-primary:focus,
.fr_welcome_btn.btn-primary:focus,
.fr_welcome_btn:focus {
  background: #c9a25b !important;
  border-color: #c9a25b !important;
  color: #111111 !important;
  box-shadow: none !important;
}

/* ── Suppress orphaned Sngine header / ads top bar ── */
.main-header { display: none !important; }
.hc-hb + .main-header { display: none !important; }

/* Modern logged-in header */
.hc-hb-modern {
  height: 61px;
  background: #fbf7f1;
  border-bottom: 1px solid #eee7dc;
  box-shadow: none;
}
.hc-hb-modern .hc-hb-inner {
  max-width: 1320px;
  /* Search removed → 2-col layout: logo left, actions pushed to far right */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
}
.hc-hb-modern .hc-hb-left {
  justify-content: flex-start;
  flex: initial;
}
.hc-hb-modern .hc-hb-logo-img {
  height: 64px !important;
  max-height: 84px !important;
  max-width: 186px !important;
}
.hc-hb-modern.hc-hb-home {
  height: 92px;
}
.hc-hb-modern.hc-hb-home .hc-hb-logo-img {
  height: 78px !important;
  max-height: 78px !important;
  max-width: 225px !important;
}
.hc-hb-modern .hc-hb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hc-hb-modern .hc-hb-discover-search {
  width: 100%;
  height: 43px;
  border: 1px solid #d8cabb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(48, 35, 19, .04);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
}
.hc-hb-modern .hc-hb-discover-search svg {
  flex: 0 0 auto;
  color: #81786d;
}
.hc-hb-modern .hc-hb-discover-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #2d2b28;
}
.hc-hb-modern .hc-hb-discover-search input::placeholder {
  color: #8f877c;
}
.hc-hb-modern .hc-hb-right {
  justify-content: flex-end;
  gap: 6px;
}
.hc-hb-modern .hc-hb-discover-create {
  margin-right: 14px;
}
.hc-hb-modern .hc-hb-divider {
  margin: 0 10px;
}
.hc-hb-modern .hc-pd {
  margin-left: 2px;
}
.hc-hb-modern .hc-hb-discover-create {
  height: 38px;
  padding: 0 20px;
  border-radius: 0;
  background: #efb52f;
  color: #17130f;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.hc-hb-modern .hc-hb-discover-create:hover {
  background: #e2aa2a;
  color: #17130f;
}
.hc-hb-modern .hc-hb-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #1f2328;
  background: transparent;
}
.hc-hb-modern .hc-hb-icon-btn:hover,
.hc-hb-modern .hc-hb-icon-btn.active {
  background: transparent;
  color: #111;
}
.hc-hb-modern .hc-hb-icon-btn svg {
  width: 26px;
  height: 26px;
}
.hc-hb-modern .hc-hb-badge {
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  background: #e8ad2d;
  color: #111;
  border-color: #fbf7f1;
}
.hc-hb-modern .hc-hb-divider {
  height: 24px;
  margin: 0 4px;
  background: #e2d8ca;
}
.hc-hb-modern .hc-pd-btn {
  width: 39px !important;
  height: 39px !important;
  min-width: 39px !important;
  max-width: 39px !important;
  border: 2px solid #151515 !important;
  background: #fff !important;
}

/* ── Remove top gap from main-wrapper ── */
.main-wrapper { padding-top: 0 !important; margin-top: 0 !important; }

@media (min-width: 1200px) {
  .main-wrapper,
  .top-bar,
  .main-header {
    padding-right: 0 !important;
  }
}

/* Ensure ads include doesn't add blank space above header */
.ads-master-header:empty,
[class*="ads-header"]:empty { display: none !important; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .hc-hb-inner { padding: 0 12px; }
}
@media (max-width: 480px) {
  .hc-hb-comm-panel { width: calc(100vw - 24px); left: 0; }
  .hc-hp-panel,
  .hc-hp-panel-messages { right: -8px; }
}

/* Mobile header: keep chat and notifications in the top bar */
@media (max-width: 767px) {
  .hc-hb {
    height: 52px;
  }
  .hc-hb-inner {
    padding: 0 14px;
    gap: 8px;
  }
  .hc-hb-left {
    flex: 1 1 auto;
    gap: 18px;
  }
  .hc-hb-logo-img {
    height: 174px !important;
    max-height: 194px !important;
    max-width: 118px !important;
  }
  .hc-hb-comm-btn {
    width: 42px;
    min-width: 42px;
    height: 36px;
    padding: 0;
    justify-content: center;
    gap: 2px;
  }
  .hc-hb-comm-btn svg:first-child {
    width: 18px;
    height: 18px;
  }
  .hc-hb-comm-chev {
    width: 12px !important;
    height: 12px !important;
  }
  .hc-hb-right {
    gap: 8px;
  }
  .hc-hb-panel-wrap[data-panel-name="messages"] {
    order: 1;
  }
  .hc-hb-panel-wrap[data-panel-name="notifications"] {
    order: 2;
  }
  .hc-pd {
    order: 3;
  }
  .hc-hb-icon-btn {
    width: 32px;
    height: 32px;
    color: #5f554b;
  }
  .hc-hb-icon-btn svg {
    width: 22px;
    height: 22px;
  }
  .hc-hb-badge {
    top: -2px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    border: 2px solid #fff;
    font-size: 8px;
    background: #ef4444;
  }
  .hc-pd-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    border: 2px solid #111 !important;
    background: #fff !important;
  }
  .hc-hp-panel,
  .hc-hp-panel-messages {
    position: fixed;
    top: 58px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 74px);
  }
  .hc-hp-body {
    max-height: calc(100vh - 190px);
  }
}

/* Discover / "Find Your People" landing (body.hc-groups-discover): force the
   chat, notifications, and Create Community controls back into the mobile top
   bar. The page-specific landing CSS strips them on mobile; these scoped rules
   restore them only on this page. */
@media (max-width: 767px) {
  body.hc-groups-discover .hc-hb-panel-wrap[data-panel-name="messages"],
  body.hc-groups-discover .hc-hb-panel-wrap[data-panel-name="notifications"] {
    display: flex !important;
  }
  body.hc-groups-discover .hc-hb-discover-create {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
  /* Icon-only create button on mobile (hide the text label). */
  body.hc-groups-discover .hc-hb-discover-create span {
    display: none;
  }
  /* Order: create, chat, bell, then profile avatar. */
  body.hc-groups-discover .hc-hb-discover-create { order: 0; }
  body.hc-groups-discover .hc-hb-panel-wrap[data-panel-name="messages"] { order: 1; }
  body.hc-groups-discover .hc-hb-panel-wrap[data-panel-name="notifications"] { order: 2; }
  body.hc-groups-discover .hc-pd { order: 3; }
  body.hc-groups-discover .hc-hb-right {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .hc-hb-modern .hc-hb-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 14px;
  }
  .hc-hb-modern .hc-hb-left {
    justify-content: flex-start;
  }
  .hc-hb-modern .hc-hb-logo-img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 150px !important;
  }
  .hc-hb-modern.hc-hb-home {
    height: 76px;
  }
  .hc-hb-modern.hc-hb-home .hc-hb-logo-img {
    height: clamp(54px, 9vw, 68px) !important;
    max-height: 68px !important;
    max-width: min(32vw, 205px) !important;
  }
  .hc-hb-modern .hc-hb-discover-search {
    height: 38px;
  }
  .hc-hb-modern .hc-hb-discover-create {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    justify-content: center;
  }
  .hc-hb-modern .hc-hb-discover-create span {
    display: none;
  }
}

@media (max-width: 640px) {
  .hc-hb-modern .hc-hb-inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }
  .hc-hb-modern .hc-hb-center {
    display: none;
  }
  .hc-hb-modern .hc-hb-right {
    gap: 8px;
  }
}
:root {
  --hc-font-sans: "Plus Jakarta Sans", "Tajawal", "Segoe UI", sans-serif;
  --hc-font-size-base: 16px;
  --hc-font-size-sm: 0.875rem;
  --hc-font-weight-regular: 400;
  --hc-font-weight-medium: 500;
  --hc-font-weight-semibold: 600;
  --hc-font-weight-bold: 700;
  --hc-font-weight-extrabold: 800;
  --hc-line-height-body: 1.5;
  --hc-line-height-tight: 1.2;
  --hc-mobile-nav-height: 68px;
  --hc-mobile-nav-safe: calc(var(--hc-mobile-nav-height) + env(safe-area-inset-bottom, 0px));
}

html {
  font-size: var(--hc-font-size-base);
}

body,
button,
input,
select,
textarea {
  font-family: var(--hc-font-sans) !important;
  font-weight: var(--hc-font-weight-regular);
}

body {
  line-height: var(--hc-line-height-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hc-font-sans);
  line-height: var(--hc-line-height-tight);
}

small,
.small {
  font-size: var(--hc-font-size-sm);
}

code,
kbd,
pre,
samp {
  font-family: Consolas, "Courier New", monospace !important;
}

/* ── Disable Noty live popup notifications ── */
[id^="noty_"],
.noty_layout,
.noty_bar,
.noty_container { display: none !important; }

/* ================================================================
   Single-photo posts: cropped feed preview, original opens in lightbox
   ================================================================ */
.pg_1x > a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2500 / 1080 !important;
  padding-bottom: 0 !important;
  background-image: none !important;
  background-color: transparent !important;
  overflow: hidden !important;
}
.pg_1x > a > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
/* Dropdown chevron always visible in post header */
.post-meta .dropdown-toggle::after { display: none !important; }
.post-meta .dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
}

/* ================================================================
   PUBLISHER — horizontal attachment toolbar + full-width Post button
   ================================================================ */

/* Container */
.publisher-tools-tabs {
  margin: 0 12px !important;
  padding: 8px 0 !important;
  border-top: 1px solid #f0f0f0 !important;
  border-bottom: none !important;
}

/* Row → single horizontal flex strip, scrollable */
.publisher-tools-tabs .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.publisher-tools-tabs .row::-webkit-scrollbar { display: none !important; }

/* Each li: auto width, no Bootstrap column sizing */
.publisher-tools-tabs .row > li {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

/* Button chip — mobile base */
.publisher-tools-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 11px !important;
  border-radius: 20px !important;
  background: #f5f5f5 !important;
  border: 1px solid #ebebeb !important;
  color: #555 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  margin-bottom: 0 !important;
  white-space: nowrap !important;
  cursor: pointer;
}
body.night-mode .publisher-tools-tab {
  background: var(--card-dark-hover) !important;
  border-color: var(--card-dark-divider) !important;
  color: var(--body-color-dark) !important;
}
.publisher-tools-tab:hover {
  background: #eeeeee !important;
  color: #222 !important;
}

/* Shrink icons */
.publisher-tools-tab svg.main-icon,
.publisher-tools-tab img.main-icon {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  margin-right: 0 !important;
  flex-shrink: 0;
}

/* Active state */
.publisher-tools-tab.active,
.publisher-tools-tab.activated {
  background: #e8eeff !important;
  border-color: #c5d0ff !important;
  color: var(--link-color) !important;
}

/* Desktop: 14px */
@media (min-width: 768px) {
  .publisher-tools-tab { font-size: 14px !important; }
}

/* ── Post button: full-width, own row below attachment chips ── */
.publisher-footer {
  padding: 10px 12px 14px !important;
  text-align: left !important;
}
.publisher-footer-options {
  margin-bottom: 14px !important;
}

/* Stack privacy + Post button in a column, both full-width */
.publisher-footer-buttons {
  display: block !important;   /* block so each child stacks naturally */
}
.publisher-footer-buttons > * {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
}
/* Privacy dropdown: keep it inline so it doesn't stretch oddly */
.publisher-footer-buttons .btn-group.js_publisher-privacy {
  display: inline-flex !important;
  width: auto !important;
  margin-bottom: 8px !important;
}
/* d-grid wrapper: full block */
.publisher-footer-buttons .d-grid {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}
/* Post button itself: full-width, prominent */
.publisher-footer-buttons .btn.js_publisher-btn,
.publisher-footer-buttons .btn.js_publisher {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 20px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}
/* Always show "Post" text on all screen sizes */
.publisher-footer-buttons .js_publisher-btn > i.fa-paper-plane { display: none !important; }
.publisher-footer-buttons .js_publisher-btn > span,
.publisher-footer-buttons .js_publisher > span { display: inline !important; margin-left: 0 !important; }

/* =====================================================================
   Messages popup (.mp-*)
   Header chat icon → list view → in-place conversation view
   ===================================================================== */

/* container — overrides the generic .hc-hp-panel-messages sizing */
.hc-hp-panel.mp-panel {
  width: 560px;
  max-width: calc(100vw - 24px);
  height: 660px;
  max-height: calc(100vh - 96px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #efe6d3;
  box-shadow: 0 24px 60px rgba(31, 24, 13, 0.22);
  padding: 0;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.hc-hp-panel.mp-panel.open { display: flex; flex-direction: column; padding: 0; }

.mp-view {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* ── List view head ── */
.mp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
  background: linear-gradient(180deg, #fefefe 0%, #fbf8f5 100%);
  border-bottom: 1px solid #ebe1cc;
}
.mp-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  color: #15161b;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.mp-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #8a8273;
}
.mp-close {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: #5a5448;
  cursor: pointer;
  flex-shrink: 0;
}
.mp-close:hover { background: rgba(0,0,0,0.06); color: #15161b; }

/* search */
.mp-search-wrap { padding: 14px 16px 10px; background: #ffffff; }
.mp-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  background: #f9f6f0;
  border: none;
  border-radius: 999px;
}
.mp-search svg { color: #b2a99a; flex-shrink: 0; }
.mp-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #15161b;
  font-family: inherit;
}
.mp-search input::placeholder { color: #b2a99a; }

/* chat list — flush full-width to match mockup (edge-to-edge dividers) */
.mp-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
  margin: 0;
  border-radius: 0;
  border: none;
}
.mp-list::-webkit-scrollbar { width: 8px; }
.mp-list::-webkit-scrollbar-thumb { background: #e6dcc7; border-radius: 4px; }

.mp-list .hc-hp-section-label { display: none; }
.mp-list .hc-hp-list { display: flex; flex-direction: column; }

/* row */
.mp-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: none;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid #ebe1cc;
  font-family: inherit;
}
.mp-row:last-child { border-bottom: 0; }
.mp-row:hover { background: #faf5ec; }
.mp-avatar-wrap { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.mp-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #b9a3e8 0%, #e9b97f 100%);
}
.mp-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b9b3a4;
  border: 2px solid #fff;
}
.mp-status-dot.is-online { background: #1eaa53; }
.mp-row-copy { min-width: 0; }
.mp-row-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-row-preview {
  margin-top: 3px;
  font-size: 13px;
  color: #6c6354;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-row.is-unread .mp-row-name,
.mp-row.is-unread .mp-row-preview { color: #15161b; }
.mp-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mp-row-time { font-size: 11px; color: #b2a99a; }
.mp-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #efb52f;
  color: #15161b;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
}
.mp-empty {
  padding: 40px 24px;
  text-align: center;
  color: #b2a99a;
  font-size: 13px;
}

/* ── Conversation view ── */
.mp-view-conv { background: #faf5ec; }
.mp-conv-head {
  display: grid;
  grid-template-columns: 28px 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #f3eada;
  border-bottom: 1px solid #ebe1cc;
  flex-shrink: 0;
}
.mp-back {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #15161b;
  border-radius: 50%;
  cursor: pointer;
}
.mp-back:hover { background: rgba(0,0,0,0.06); }
.mp-conv-avatar-wrap { position: relative; width: 44px; height: 44px; }
.mp-conv-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block;
  background: linear-gradient(135deg, #b9a3e8 0%, #e9b97f 100%);
}
.mp-conv-head .mp-status-dot { right: -1px; bottom: -1px; }
.mp-conv-name {
  font-size: 14px;
  font-weight: 800;
  color: #15161b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-conv-sub {
  font-size: 11px;
  color: #8a8273;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* messages */
.mp-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mp-msgs::-webkit-scrollbar { width: 8px; }
.mp-msgs::-webkit-scrollbar-thumb { background: #e6dcc7; border-radius: 4px; }
.mp-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  gap: 4px;
}
.mp-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mp-msg.mp-msg-in { align-self: flex-start; }
.mp-msg.mp-msg-out { align-self: flex-end; align-items: flex-end; }
.mp-msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #b9a3e8 0%, #e9b97f 100%);
  flex-shrink: 0;
}
.mp-msg-bubble {
  padding: 12px 16px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
  color: #111827;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ece2cc;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgba(31, 24, 13, 0.04);
}
.mp-msg.mp-msg-out .mp-msg-bubble {
  background: linear-gradient(135deg, #f6c45a 0%, #d99a20 100%);
  color: #15161b;
  border-color: transparent;
  border-bottom-right-radius: 6px;
}
.mp-msg.mp-msg-in .mp-msg-bubble {
  border-bottom-left-radius: 6px;
}
.mp-msg-img {
  max-width: 240px;
  max-height: 260px;
  border-radius: 14px;
  display: block;
  cursor: zoom-in;
}
.mp-msg-time {
  font-size: 11px;
  color: #a89e8c;
  padding: 0 4px;
}
.mp-msg.mp-msg-in .mp-msg-time { padding-left: 42px; }
.mp-msg.mp-msg-out .mp-msg-time { text-align: right; padding-right: 4px; }

/* dots button beside writer's own message — hidden until hover */
.mp-msg.mp-msg-out .mp-msg-row { position: relative; }
.mp-msg-menu-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #ece2cc;
  background: #fff;
  border-radius: 50%;
  color: #5a5448;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  box-shadow: 0 1px 2px rgba(31, 24, 13, 0.06);
}
.mp-msg.mp-msg-out:hover .mp-msg-menu-btn,
.mp-msg-menu-btn:focus,
.mp-msg-menu-btn.is-active { opacity: 1; visibility: visible; }
.mp-msg-menu-btn:hover { background: #faf5ec; color: #15161b; }

/* floating Edit/Delete popover */
.mp-msg-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 132px;
  background: #fff;
  border: 1px solid #ece2cc;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(31, 24, 13, 0.18);
  padding: 6px;
  display: none;
  z-index: 100000;
}
.mp-msg-menu.is-open { display: block; }
.mp-msg-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #15161b;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.mp-msg-menu-item:hover { background: #faf5ec; }
.mp-msg-menu-item-danger { color: #d24a4a; }
.mp-msg-menu-item-danger:hover { background: #fdecec; }

/* the messages box must be the positioning context for the menu */
.mp-msgs { position: relative; }

/* inline edit mode — replaces the bubble with an editable textarea + actions */
.mp-msg-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-msg-edit-field {
  padding: 10px 14px;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.45;
  color: #111827;
  background: #fff;
  border: 1.5px solid #d99a20;
  border-radius: 20px;
  outline: none;
  resize: none;
  min-width: 180px;
  max-width: 320px;
  box-shadow: 0 1px 2px rgba(31, 24, 13, 0.04);
  font-family: inherit;
}
.mp-msg-edit-field { font-family: "Fraunces", Georgia, "Times New Roman", serif; }
.mp-msg-edit-actions { display: inline-flex; align-items: center; gap: 6px; }
.mp-msg-edit-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ece2cc;
  background: #fff;
  border-radius: 50%;
  color: #5a5448;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(31, 24, 13, 0.06);
}
.mp-msg-edit-btn:hover { background: #faf5ec; color: #15161b; }
.mp-msg-edit-btn.mp-msg-edit-save {
  background: linear-gradient(135deg, #f6c45a 0%, #d99a20 100%);
  color: #15161b;
  border-color: transparent;
}
.mp-msg-edit-btn.mp-msg-edit-save:hover { filter: brightness(1.05); }

/* "edited" tag */
.mp-msg-edited {
  margin-left: 4px;
  font-size: 11px;
  color: #a89e8c;
}
.mp-msg-edited::before { content: "·"; margin-right: 4px; }

/* attachment preview above composer */
.mp-attach-preview {
  margin: 0 16px 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ece2cc;
  border-radius: 14px;
  position: relative;
  display: inline-flex;
}
.mp-attach-preview img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 10px;
  display: block;
}
.mp-attach-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #15161b;
  color: #fff;
  border: 2px solid #faf5ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* composer */
.mp-composer {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 12px 14px 16px;
  background: #faf5ec;
  border-top: 1px solid #ebe1cc;
  flex-shrink: 0;
}
.mp-icon-btn {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: #5a5448;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mp-icon-btn:hover { background: rgba(0,0,0,0.05); color: #15161b; }
.mp-icon-btn.is-active { background: rgba(239,181,47,0.18); color: #d99a20; }

.mp-input {
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #ece2cc;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  color: #15161b;
  outline: none;
  min-width: 0;
}
.mp-input::placeholder { color: #b2a99a; }
.mp-input:focus { border-color: #efb52f; }

.mp-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f6c45a 0%, #d99a20 100%);
  color: #15161b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mp-send:hover { filter: brightness(0.95); }
.mp-send:disabled { opacity: 0.55; cursor: not-allowed; }

.mp-send svg { transform: translate(1px, 0); }

/* emoji picker */
.mp-emoji {
  display: none;
  margin: 0 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ece2cc;
  border-radius: 14px;
  max-height: 180px;
  overflow-y: auto;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.mp-emoji.is-open { display: grid; }
.mp-emoji button {
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}
.mp-emoji button:hover { background: rgba(239,181,47,0.18); }

/* sending state */
.mp-msg.is-pending .mp-msg-bubble { opacity: 0.7; }

/* On mobile, the chat popup goes fullscreen — edge to edge, top to bottom */
@media (max-width: 767px) {
  .hc-hp-panel.mp-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 9999 !important;
  }
  /* list view tweaks for fullscreen */
  .hc-hp-panel.mp-panel .mp-list {
    margin: 0 10px 12px;
  }
  /* conversation view — give the message area a bit more breathing room */
  .hc-hp-panel.mp-panel .mp-msgs {
    padding: 16px 14px 12px;
  }
  /* respect iOS safe areas at the bottom of the composer */
  .hc-hp-panel.mp-panel .mp-composer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  /* respect iOS safe areas at the top of the head */
  .hc-hp-panel.mp-panel .mp-head,
  .hc-hp-panel.mp-panel .mp-conv-head {
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
  }
  /* notifications panel also goes full-screen on mobile (inherits .mp-panel) */
  .hc-hp-panel.mp-panel.hc-np-panel .np-list { margin: 0; }
}

/* ── Notifications panel (mirrors the chat .mp-panel shell) ───────────── */
.hc-hp-panel.mp-panel.hc-np-panel{width:480px;height:auto;max-height:calc(100vh - 96px)}
.hc-np-panel .np-head{flex:0 0 auto}
/* show ~7 notification cards, then scroll (each row ≈ 78px) */
.hc-np-panel .np-list{max-height:546px}
.hc-np-panel .np-toolbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;border-bottom:1px solid #f0eadf;flex-wrap:wrap}
.hc-np-panel .np-tabs{display:inline-flex;align-items:center;gap:6px;background:#f5f1ea;border-radius:999px;padding:3px}
.hc-np-panel .np-tab{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#6b6357;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:13px;font-weight:700;line-height:1;padding:7px 14px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s}
.hc-np-panel .np-tab.is-active{background:#ffcc00;color:#1b150a}
.hc-np-panel .np-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:rgba(0,0,0,.12);color:inherit;font-size:11px;font-weight:800}
.hc-np-panel .np-tab.is-active .np-tab-count{background:rgba(27,21,10,.18)}
.hc-np-panel .np-toolbar-actions{display:inline-flex;align-items:center;gap:14px}
.hc-np-panel .np-action{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;color:#1f8f5a;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:13px;font-weight:700;cursor:pointer;padding:0;transition:opacity .15s,color .15s}
.hc-np-panel .np-action:hover{opacity:.78}
.hc-np-panel #hcHbNotificationsClearBtn{color:#9a4f2c}
.hc-np-panel .np-action.is-disabled,.hc-np-panel .np-action:disabled{opacity:.4;cursor:default}
.hc-np-panel .np-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:6px 0}
.hc-np-panel .np-rows{display:block}
.hc-np-panel .np-row{position:relative;display:flex;align-items:stretch;border-bottom:1px solid #f3efe7}
.hc-np-panel .np-row:last-child{border-bottom:0}
.hc-np-panel .np-row.is-unread{background:#fffaf0}
.hc-np-panel .np-row-link{flex:1 1 auto;min-width:0;display:flex;align-items:flex-start;gap:13px;padding:14px 40px 14px 18px;text-decoration:none}
.hc-np-panel .np-row .hc-hp-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.hc-np-panel .np-row .hc-hp-item-copy{min-width:0;flex:1}
.hc-np-panel .np-row .hc-hp-item-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.hc-np-panel .np-row .hc-hp-item-title{color:#101827;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:15px;font-weight:800;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-np-panel .np-row .hc-hp-item-time{flex:0 0 auto;color:#9a9088;font-size:12px;font-weight:600}
.hc-np-panel .np-row .hc-hp-item-text{margin-top:3px;color:#5a6072;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:13.5px;line-height:1.45}
.hc-np-panel .np-row .hc-hp-item-dot{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:7px;height:7px;border-radius:50%;background:#ffcc00}
.hc-np-panel .np-row-dismiss{position:absolute;right:10px;top:12px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:#9a9088;cursor:pointer;opacity:0;transition:opacity .15s,background .15s,color .15s}
.hc-np-panel .np-row:hover .np-row-dismiss{opacity:1}
.hc-np-panel .np-row-dismiss:hover{background:#f0e8da;color:#101827}
.hc-np-panel .hc-hp-empty,.hc-np-panel .hc-hp-loading{padding:40px 22px;text-align:center;color:#9a9088;font-size:14px;font-family:"Plus Jakarta Sans",Arial,sans-serif}
/* empty state (no notifications / no unread) */
.hc-np-panel .np-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:54px 24px;min-height:240px}
.hc-np-panel .np-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;border-radius:18px;background:#f1ece2;color:#8a8175;margin-bottom:16px}
.hc-np-panel .np-empty-title{color:#101827;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:17px;font-weight:800;margin-bottom:5px}
.hc-np-panel .np-empty-text{color:#9a9088;font-family:"Plus Jakarta Sans",Arial,sans-serif;font-size:14px;font-weight:500}

/* =====================================================================
   ROOT ACCENT: purple/indigo (#5e72e4) + Bootstrap blue (#0d6efd)  →  GOLD
   Brand gold: solid #ffcc00 / gradient #ffcc00 → #ffcc00.
   Loaded after style.min.css + bootstrap.min.css so these win the cascade.
   ===================================================================== */
:root,
.night-mode {
  --bs-primary: #ffcc00;
  --bs-primary-rgb: 219, 163, 64;
  --bs-link-color: #ffc000;
  --bs-link-hover-color: #c0882a;
  --link-color: #ffc000;
}

/* Solid primary buttons (e.g. the modal "Leave chat" / "Continue" button) */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background: #ffcc00 !important;
  border-color: #dca41e !important;
  color: #1b150a !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #eeb52f 0%, #cf8d14 100%) !important;
  border-color: #c9890f !important;
  color: #1b150a !important;
  box-shadow: 0 0 0 .2rem rgba(219, 163, 64, .35) !important;
}

/* Outline primary */
.btn-outline-primary {
  color: #b9810f !important;
  border-color: #dca41e !important;
  background: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show > .btn-outline-primary.dropdown-toggle {
  color: #1b150a !important;
  border-color: #dca41e !important;
  background: #ffcc00 !important;
}

/* Primary backgrounds / gradients */
.bg-primary,
.bg-gradient-primary,
.bg-gradient-blue {
  background: #ffcc00 !important;
  color: #1b150a !important;
}

/* Primary text + links */
.text-primary { color: #b9810f !important; }
a.text-primary:hover { color: #97690c !important; }

/* Primary alerts / badges */
.alert-primary {
  color: #5a3d05 !important;
  border-color: #f0d59a !important;
  background-color: #fdf3da !important;
}
.badge-primary,
.badge.bg-primary {
  background: #ffcc00 !important;
  color: #1b150a !important;
}

/* Form controls: switches, checkboxes, radios checked-state → gold */
.form-check-input:checked,
.custom-control-input:checked ~ .custom-control-label::before,
.form-switch .form-check-input:checked {
  background-color: #ffcc00 !important;
  border-color: #ffcc00 !important;
}
.form-check-input:focus,
.form-control:focus,
.form-select:focus {
  border-color: #e6b657 !important;
  box-shadow: 0 0 0 .2rem rgba(219, 163, 64, .25) !important;
}

/* Pagination / nav-pills active */
.page-item.active .page-link,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: #ffcc00 !important;
  border-color: #dca41e !important;
  color: #1b150a !important;
}
.page-link { color: #b9810f !important; }

/* The periwinkle confirm-modal primary button (Sngine #modal-confirm) */
#modal-confirm .btn-primary,
.js_modal-confirm .btn-primary,
.modal .btn-primary {
  background: #ffcc00 !important;
  border-color: #dca41e !important;
  color: #1b150a !important;
}

/* Earnika brand logo refresh */
.main-header .logo img {
  max-height: 52px !important;
  max-width: 280px !important;
  width: auto !important;
}

.hc-hb-logo-img {
  height: 52px !important;
  max-height: 52px !important;
  max-width: 285px !important;
  width: auto !important;
}

.hc-hb-modern .hc-hb-logo-img {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 340px !important;
}

.hc-hb-modern.hc-hb-home .hc-hb-logo-img {
  height: 82px !important;
  max-height: 82px !important;
  max-width: 380px !important;
}

@media (max-width: 767px) {
  .main-header .logo img {
    max-height: 40px !important;
    max-width: 200px !important;
  }

  .hc-hb-logo-img,
  .hc-hb-modern .hc-hb-logo-img {
    height: 42px !important;
    max-height: 42px !important;
    max-width: 220px !important;
  }

  .hc-hb-modern.hc-hb-home .hc-hb-logo-img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 240px !important;
  }
}

@media (max-width: 430px) {
  .hc-hb-logo-img,
  .hc-hb-modern .hc-hb-logo-img,
  .hc-hb-modern.hc-hb-home .hc-hb-logo-img {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 190px !important;
  }
}
