/* ==========================================================================
   SNGINE MODERN SOCIAL NETWORK DESIGN SYSTEM (2026/2027)
   Theme: Neutral Dark (#0b1220) with Single Royal Blue Accent (#3b82f6)
   Inspired by Instagram & Facebook Usability & Proportion
   ========================================================================== */

:root {
  /* Core Surface Palette */
  --ms-bg-base: #0b1220;
  --ms-bg-surface: #111a2e;
  --ms-bg-surface-elevated: #162238;
  --ms-bg-surface-hover: #1c2a45;
  --ms-bg-surface-active: #213150;
  
  /* Borders & Dividers */
  --ms-border: rgba(255, 255, 255, 0.08);
  --ms-border-subtle: rgba(255, 255, 255, 0.05);
  --ms-border-focus: #3b82f6;

  /* Primary Accent (Single Blue) */
  --ms-primary: #3b82f6;
  --ms-primary-hover: #2563eb;
  --ms-primary-subtle: rgba(59, 130, 246, 0.12);
  --ms-primary-text: #ffffff;

  /* Neutrals & Typography */
  --ms-text-primary: #f8fafc;
  --ms-text-secondary: #94a3b8;
  --ms-text-muted: #64748b;
  --ms-link: #60a5fa;

  /* Status Colors */
  --ms-danger: #ef4444;
  --ms-success: #10b981;
  --ms-warning: #f59e0b;

  /* Geometry & Radius */
  --ms-radius-xs: 4px;
  --ms-radius-sm: 8px;
  --ms-radius-md: 12px;
  --ms-radius-lg: 16px;
  --ms-radius-pill: 9999px;

  /* Layout Constraints */
  --ms-header-h: 52px;
  --ms-bottom-nav-h: 52px;
  --ms-feed-max-w: 620px;

  /* Typography */
  --ms-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ms-transition-fast: 180ms ease;
}

/* ==========================================================================
   GLOBAL RESET & DARK BASE
   ========================================================================== */
html, body {
  margin: 0 !important;
  background-color: var(--ms-bg-base) !important;
  color: var(--ms-text-primary) !important;
  font-family: var(--ms-font-family) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
body.night-mode,
body:not(.night-mode),
body.visitor,
body.n_chat,
body.index-body {
  margin: 0 !important;
  padding-top: var(--ms-header-h) !important;
}

body.n_live,
body.n_activated {
  margin: 0 !important;
  padding-top: calc(var(--ms-header-h) + 42px) !important;
}

/* Remove any unwanted wrapper top space */
.main-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

a {
  color: var(--ms-link);
  text-decoration: none;
  transition: color var(--ms-transition-fast);
}
a:hover {
  color: var(--ms-primary-hover);
}

/* Remove default harsh borders and heavy shadows */
.card, .panel, .box {
  background-color: var(--ms-bg-surface) !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: var(--ms-radius-md) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Form inputs & controls */
.form-control, .input-group-text {
  background-color: var(--ms-bg-surface-elevated) !important;
  border: 1px solid var(--ms-border) !important;
  color: var(--ms-text-primary) !important;
  border-radius: var(--ms-radius-sm) !important;
  font-size: 13.5px !important;
}
.form-control:focus {
  border-color: var(--ms-primary) !important;
  box-shadow: 0 0 0 2px var(--ms-primary-subtle) !important;
  color: #fff !important;
}
.form-control::placeholder {
  color: var(--ms-text-muted) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--ms-primary) !important;
  border-color: var(--ms-primary) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: var(--ms-radius-sm) !important;
  transition: all var(--ms-transition-fast) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ms-primary-hover) !important;
  border-color: var(--ms-primary-hover) !important;
  box-shadow: 0 2px 8px var(--ms-primary-subtle) !important;
}
.btn-primary:active {
  transform: scale(0.98);
}

/* ==========================================================================
   COMPACT MODERN FIXED HEADER (DESKTOP & MOBILE)
   ========================================================================== */
.main-header,
body .main-header,
body.night-mode .main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  background: rgba(11, 18, 32, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
  z-index: 1040 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

body.n_live .main-header,
body.n_activated .main-header {
  top: 42px !important;
}

/* Header inner layout container */
.main-header .header-inner,
.main-header > .container,
.main-header > .container-fluid {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 52px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   LEFT COLUMN: BRAND LOGO & MOBILE MENU TOGGLE
   ========================================================================== */
.main-header .header-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  height: 100% !important;
}

/* Reset mobile menu icon: NEVER absolute, always in normal flex flow */
.main-header .menu-icon,
.main-header .header-left .menu-icon,
body.night-mode .main-header .menu-icon {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  flex-shrink: 0 !important;
  transition: all 180ms ease !important;
  text-decoration: none !important;
}

.main-header .menu-icon:hover,
.main-header .menu-icon:active {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.main-header .menu-icon svg,
.main-header .menu-icon .header-icon {
  width: 18px !important;
  height: 18px !important;
  fill: #94a3b8 !important;
}
.main-header .menu-icon:hover svg,
.main-header .menu-icon:hover .header-icon {
  fill: #ffffff !important;
}

@media (min-width: 768px) {
  .main-header .menu-icon,
  .main-header .header-left .menu-icon,
  body .main-header .menu-icon,
  body.night-mode .main-header .menu-icon,
  body.night-mode .main-header .header-left .menu-icon {
    display: none !important;
  }
}

/* Modern Brand Logo */
.main-header .logo,
.main-header .header-left .logo,
.brand-logo-modern {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  line-height: 1 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  user-select: none !important;
}
.brand-logo-modern:hover {
  opacity: 0.95 !important;
  text-decoration: none !important;
}

.brand-logo-modern .brand-emblem-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: rgba(59, 130, 246, 0.14) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  flex-shrink: 0 !important;
  transition: all 180ms ease !important;
}
.brand-logo-modern:hover .brand-emblem-badge {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  transform: scale(1.04);
}
.brand-logo-modern .brand-emblem-badge svg {
  width: 20px !important;
  height: 20px !important;
}

.brand-logo-modern .brand-text {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  color: #f8fafc !important;
  font-family: var(--ms-font-family) !important;
  white-space: nowrap !important;
}

.brand-logo-modern .brand-accent {
  color: var(--ms-primary) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   CENTER COLUMN: SEARCH INPUT (DESKTOP)
   ========================================================================== */
.main-header .header-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  max-width: 440px !important;
  margin: 0 20px !important;
  height: 100% !important;
}

.main-header .search-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header .search-wrapper form {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.main-header .search-wrapper .form-control,
body.night-mode .main-header .search-wrapper .form-control {
  width: 100% !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 16px 0 38px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  font-size: 13.5px !important;
  color: #f8fafc !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 180ms ease !important;
}

.main-header .search-wrapper .form-control:focus,
body.night-mode .main-header .search-wrapper .form-control:focus {
  background: rgba(17, 26, 46, 0.95) !important;
  border-color: var(--ms-primary) !important;
  box-shadow: 0 0 0 3px var(--ms-primary-subtle) !important;
  color: #ffffff !important;
}

.main-header .search-wrapper .form-control::placeholder,
body.night-mode .main-header .search-wrapper .form-control::placeholder {
  color: #64748b !important;
  font-size: 13.5px !important;
}

/* Position search magnifying icon on the LEFT */
.main-header .search-wrapper .search-input-icon {
  position: absolute !important;
  left: 12px !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  color: #64748b !important;
  z-index: 2 !important;
}

.main-header .search-wrapper .search-input-icon svg,
.main-header .search-wrapper .search-input-icon .header-icon {
  width: 16px !important;
  height: 16px !important;
  fill: #64748b !important;
}

/* ==========================================================================
   RIGHT COLUMN: ACTIONS, DROPDOWNS & USER PROFILE
   ========================================================================== */
.main-header .header-right {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
  height: 100% !important;
}

.main-header .navbar-wrapper,
.main-header .header-right .navbar-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header .navbar-wrapper > ul,
.main-header .header-right .navbar-wrapper > ul {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  list-style: none !important;
}

/* Override legacy Sngine .navbar-wrapper > ul > li rules */
.main-header .navbar-wrapper > ul > li,
.main-header .header-right .navbar-wrapper > ul > li,
body.night-mode .navbar-wrapper > ul > li {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

/* Responsive visibility for header items */
@media (max-width: 1399.98px) {
  .main-header .navbar-wrapper > ul > li.d-none.d-xxl-block,
  body.night-mode .main-header .navbar-wrapper > ul > li.d-none.d-xxl-block {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .main-header .navbar-wrapper > ul > li.d-none.d-md-block,
  body.night-mode .main-header .navbar-wrapper > ul > li.d-none.d-md-block {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .main-header .navbar-wrapper > ul > li.d-none.d-md-block,
  body.night-mode .main-header .navbar-wrapper > ul > li.d-none.d-md-block {
    display: inline-flex !important;
  }
}

@media (min-width: 1400px) {
  .main-header .navbar-wrapper > ul > li.d-none.d-xxl-block,
  body.night-mode .main-header .navbar-wrapper > ul > li.d-none.d-xxl-block {
    display: inline-flex !important;
  }
}

/* Override legacy Sngine .navbar-wrapper > ul > li > a rules */
.main-header .navbar-wrapper > ul > li > a:not(.btn-header-signin),
.main-header .header-right .navbar-wrapper > ul > li > a:not(.btn-header-signin),
body .navbar-wrapper > ul > li > a:not(.btn-header-signin),
body.night-mode .navbar-wrapper > ul > li > a:not(.btn-header-signin) {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  transition: all 180ms ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.main-header .navbar-wrapper > ul > li > a:not(.btn-header-signin):hover,
.main-header .navbar-wrapper > ul > li.show > a:not(.btn-header-signin),
.main-header .navbar-wrapper > ul > li.open > a:not(.btn-header-signin),
body.night-mode .navbar-wrapper > ul > li > a:not(.btn-header-signin):hover,
body.night-mode .navbar-wrapper > ul > li.dropdown.show > a:not(.btn-header-signin) {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.main-header .navbar-wrapper > ul > li > a .header-icon,
.main-header .navbar-wrapper > ul > li > a svg,
body.night-mode .navbar-wrapper > ul > li > a .header-icon {
  width: 19px !important;
  height: 19px !important;
  fill: #94a3b8 !important;
  transition: fill 180ms ease !important;
}

.main-header .navbar-wrapper > ul > li > a:hover .header-icon,
.main-header .navbar-wrapper > ul > li > a:hover svg,
.main-header .navbar-wrapper > ul > li.show > a .header-icon,
.main-header .navbar-wrapper > ul > li.show > a svg {
  fill: #ffffff !important;
}

/* User Avatar dropdown button */
.main-header .navbar-wrapper > ul > li > a.user-menu,
.main-header .user-menu,
body.night-mode .main-header .user-menu {
  width: auto !important;
  min-width: auto !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  cursor: pointer !important;
}

.main-header .navbar-wrapper > ul > li > a.user-menu:hover,
.main-header .navbar-wrapper > ul > li.show > a.user-menu {
  background: transparent !important;
  border: none !important;
}

.main-header .user-menu .title {
  display: none !important;
}

.main-header .user-menu::after {
  content: none !important;
  display: none !important;
}

.main-header .user-menu img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  transition: all 180ms ease !important;
}

.main-header .user-menu:hover img,
.main-header .user-menu.show img {
  border-color: var(--ms-primary) !important;
  transform: scale(1.05);
}

/* Badge Counters on icons */
.main-header .counter,
.main-header .badge {
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 4px !important;
  line-height: 16px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: #ef4444 !important;
  color: #fff !important;
  border: 2px solid #0b1220 !important;
  box-sizing: content-box !important;
}

/* Visitor Auth Buttons */
.main-header .navbar-wrapper > ul > li.header-auth-group,
.main-header .header-right .navbar-wrapper > ul > li.header-auth-group,
body .navbar-wrapper > ul > li.header-auth-group,
body.night-mode .navbar-wrapper > ul > li.header-auth-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

body .main-header .btn-header-signin,
body.night-mode .main-header .btn-header-signin,
.main-header .btn-header-signin,
a.btn-header-signin {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: fit-content !important;
  height: 36px !important;
  line-height: 34px !important;
  padding: 0 16px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

body .main-header .btn-header-signin:hover,
body.night-mode .main-header .btn-header-signin:hover,
.main-header .btn-header-signin:hover,
a.btn-header-signin:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border-color: rgba(191, 219, 254, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
}

body .main-header .btn-header-signin:active,
body.night-mode .main-header .btn-header-signin:active,
.main-header .btn-header-signin:active,
a.btn-header-signin:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.3) !important;
}

body .main-header .btn-header-signin i,
a.btn-header-signin i {
  font-size: 13px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body .main-header .btn-header-signin span,
a.btn-header-signin span {
  color: #ffffff !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.main-header .btn-header-signup {
  display: none !important;
}

.main-header .header-more-btn,
body .header-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 180ms ease !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.main-header .header-more-btn:hover,
body .header-more-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (<= 767px and <= 480px)
   ========================================================================== */
@media (max-width: 767.98px) {
  .main-header .header-inner,
  .main-header > .container,
  .main-header > .container-fluid {
    padding: 0 12px !important;
  }
  .main-header .header-left {
    gap: 8px !important;
  }
  .brand-logo-modern .brand-text {
    font-size: 15.5px !important;
  }
  .brand-logo-modern .brand-emblem-badge {
    width: 28px !important;
    height: 28px !important;
  }
  .brand-logo-modern .brand-emblem-badge svg {
    width: 17px !important;
    height: 17px !important;
  }
  .main-header .menu-icon,
  .main-header .header-left .menu-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  .main-header .navbar-wrapper > ul {
    gap: 4px !important;
  }
  .main-header .navbar-wrapper > ul > li,
  .main-header .navbar-wrapper > ul > li > a {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  .main-header .navbar-wrapper > ul > li > a .header-icon,
  .main-header .navbar-wrapper > ul > li > a svg {
    width: 16px !important;
    height: 16px !important;
  }
  .main-header .user-menu img {
    width: 30px !important;
    height: 30px !important;
  }
}

@media (max-width: 480px) {
  .main-header .header-inner {
    padding: 0 10px !important;
  }
  .brand-logo-modern .brand-text {
    font-size: 14.5px !important;
  }
}
.main-header .user-menu {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 2px 4px 2px 2px !important;
  border-radius: var(--ms-radius-pill) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}
.main-header .user-menu img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  transition: border-color var(--ms-transition-fast) !important;
}
.main-header .user-menu:hover img {
  border-color: var(--ms-primary) !important;
}

/* Dropdowns in Header */
.main-header .dropdown-menu {
  background: var(--ms-bg-surface-elevated) !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: var(--ms-radius-md) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
  padding: 6px 0 !important;
  margin-top: 6px !important;
  color: var(--ms-text-primary) !important;
}
.main-header .dropdown-menu .dropdown-item {
  color: var(--ms-text-secondary) !important;
  padding: 8px 14px !important;
  font-size: 13.5px !important;
  display: flex !important;
  align-items: center !important;
  transition: all var(--ms-transition-fast) !important;
}
.main-header .dropdown-menu .dropdown-item:hover,
.main-header .dropdown-menu .dropdown-item:focus {
  background: var(--ms-bg-surface-hover) !important;
  color: var(--ms-text-primary) !important;
}
.dropdown-divider {
  border-color: var(--ms-border-subtle) !important;
}

/* Mobile Header Tuning */
@media (max-width: 576px) {
  .main-header .container,
  .main-header .container-fluid,
  .main-header .header-inner {
    padding: 0 10px !important;
  }
  .brand-logo-modern {
    gap: 7px !important;
  }
  .brand-logo-modern .brand-text {
    font-size: 15px !important;
  }
  .brand-logo-modern .brand-emblem-badge {
    width: 28px !important;
    height: 28px !important;
  }
  .brand-logo-modern .brand-emblem-badge svg {
    width: 18px !important;
    height: 18px !important;
  }
  body .main-header .btn-header-signin,
  .main-header .btn-header-signin,
  a.btn-header-signin {
    height: 33px !important;
    line-height: 31px !important;
    padding: 0 13px !important;
    font-size: 12.5px !important;
    gap: 6px !important;
    border-radius: 9999px !important;
  }
  .btn-header-signup {
    display: none !important;
  }
  .main-header .header-more-btn,
  body .header-more-btn {
    width: 33px !important;
    height: 33px !important;
    border-radius: 9999px !important;
  }
  .main-header .navbar-wrapper > ul > li.header-auth-group,
  body .navbar-wrapper > ul > li.header-auth-group {
    gap: 6px !important;
    height: 33px !important;
  }
  .main-wrapper > .container.mt20 {
    margin-top: 8px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* ==========================================================================
/* Note: Mobile & Tablet Bottom Navigation is consolidated in Section: MODERN MOBILE & TABLET BOTTOM NAVIGATION */

/* ==========================================================================
   FEED LAYOUT & BALANCED POST CARDS
   ========================================================================== */

/* Newsfeed centering & balanced width */
.newsfeed-wrapper,
.main-wrapper > .container,
.main-wrapper > .container-fluid {
  max-width: 1200px !important;
}

@media (min-width: 992px) {
  .newsfeed-container,
  .main-content,
  .app-main {
    max-width: var(--ms-feed-max-w) !important;
    margin: 0 auto !important;
  }
}

/* Post Card Shell */
.post {
  background-color: var(--ms-bg-surface) !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: var(--ms-radius-md) !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
  transition: border-color var(--ms-transition-fast) !important;
}
.post:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Mobile full-bleed flush edges with hairline borders */
@media (max-width: 576px) {
  .post {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    margin-bottom: 8px !important;
  }
}

/* Post Header (Avatar, Name, Timestamp) */
.post .post-header {
  padding: 12px 14px 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
}

.post .post-avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  margin-right: 11px !important;
  padding: 0 !important;
  position: relative !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.post .post-avatar-picture {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--ms-border) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--ms-bg-surface-elevated) !important;
  display: block !important;
}

.post .post-avatar .online-dot {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  top: auto !important;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: var(--ms-success) !important;
  border: 2px solid var(--ms-bg-surface) !important;
}

.post .post-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}

.post .post-author {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--ms-text-primary) !important;
  display: inline-block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.post .post-author a {
  color: var(--ms-text-primary) !important;
}
.post .post-author a:hover {
  color: var(--ms-primary) !important;
}

.post .post-time {
  font-size: 11.5px !important;
  color: var(--ms-text-muted) !important;
  margin-top: 1px !important;
}
.post .post-time a {
  color: var(--ms-text-muted) !important;
}

/* Post Action Dropdown Button (3 dots) */
.post .post-actions-wrapper,
.post .post-dropdown {
  position: absolute !important;
  right: 12px !important;
  top: 10px !important;
}

.post .post-dropdown > a,
.post .post-actions-wrapper > a {
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: var(--ms-radius-full) !important;
  color: var(--ms-text-muted) !important;
  transition: all var(--ms-transition-fast) !important;
}
.post .post-dropdown > a:hover {
  background: var(--ms-bg-surface-hover) !important;
  color: var(--ms-text-primary) !important;
}

/* Post Body Content & Text */
.post .post-body {
  padding: 0 !important;
}

.post .post-text {
  padding: 4px 14px 8px 14px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #e2e8f0 !important;
  word-break: break-word !important;
}

/* Post Media Previews (No overflow, contained aspect ratio) */
.post .post-media,
.post .pg_wrapper,
.post .post-photos,
.post .post-video {
  max-width: 100% !important;
  overflow: hidden !important;
  background: #060a12 !important;
}

.post img.img-fluid,
.post .post-media img,
.post .pg_wrapper img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  max-height: 72vh !important;
  object-fit: cover !important;
  display: block !important;
}

/* Multi-photo grid */
.post .pg_wrapper {
  gap: 2px !important;
}

/* Post Stats (Likes, Comments, Shares Count) */
.post .post-stats {
  padding: 6px 14px !important;
  font-size: 12px !important;
  color: var(--ms-text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.post .reactions-stats {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.post .reactions-stats-item {
  width: 18px !important;
  height: 18px !important;
}

/* Post Interaction Buttons (Like / Comment / Share) */
.post .post-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 3px 6px !important;
  border-top: 1px solid var(--ms-border) !important;
}

.post .action-btn {
  flex: 1 1 0 !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: var(--ms-radius-sm) !important;
  color: var(--ms-text-secondary) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all var(--ms-transition-fast) !important;
  user-select: none !important;
}

.post .action-btn:hover {
  background: var(--ms-bg-surface-hover) !important;
  color: var(--ms-text-primary) !important;
}

.post .action-btn:active {
  transform: scale(0.97) !important;
}

.post .action-btn.js_unreact-post,
.post .action-btn.active {
  color: var(--ms-primary) !important;
}

.post .action-icon {
  font-size: 16px !important;
  width: 18px !important;
  height: 18px !important;
}

/* Comments Section in Post */
.post .post-comments {
  background: rgba(14, 21, 38, 0.6) !important;
  border-top: 1px solid var(--ms-border-subtle) !important;
  padding: 8px 14px 12px 14px !important;
}

.post .post-comments .comment {
  margin-top: 8px !important;
  display: flex !important;
  gap: 8px !important;
}

.post .post-comments .comment-avatar img {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.post .post-comments .comment-data {
  background: var(--ms-bg-surface-elevated) !important;
  padding: 6px 12px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  border: 1px solid var(--ms-border-subtle) !important;
}

.post .post-comments .comment-author {
  font-weight: 700 !important;
  color: var(--ms-text-primary) !important;
  margin-right: 4px !important;
}

.post .post-comments .comment-text {
  color: #e2e8f0 !important;
}

/* Comment Publisher input box */
.post .comment_form {
  margin-top: 8px !important;
}
.post .comment_form .form-control {
  border-radius: var(--ms-radius-pill) !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
}

/* ==========================================================================
   STORIES RAIL (FACEBOOK-STYLE VERTICAL CARDS - UNBOXED)
   ========================================================================== */
.stories-card,
.card:has(#stories),
div:has(> .stories-wrapper) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
}

.stories-card .card-header,
.card:has(#stories) .card-header {
  display: none !important;
}

.stories-card .card-body.stories-wrapper,
.card:has(#stories) .card-body.stories-wrapper,
.stories-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

#stories {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px !important;
  margin: 0 !important;
}
#stories::-webkit-scrollbar {
  display: none !important;
}

/* User Add Story Item - Facebook Vertical Card (104px x 160px) */
#stories .add-story {
  width: 104px !important;
  min-width: 104px !important;
  height: 160px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: var(--ms-bg-surface, #1e293b) !important;
  border: 1px solid var(--ms-border, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#stories .add-story:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}
#stories .add-story .img {
  width: 100% !important;
  height: 108px !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
}
#stories .add-story:hover .img {
  transform: scale(1.06) !important;
}
#stories .add-story .add,
#stories .add-story .add-story-btn {
  position: absolute !important;
  top: 92px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #1877f2 !important;
  border: 3px solid var(--ms-bg-surface, #1e293b) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.5) !important;
  z-index: 3 !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}
#stories .add-story:hover .add,
#stories .add-story:hover .add-story-btn {
  transform: translateX(-50%) scale(1.1) !important;
  background: #2563eb !important;
}
#stories .add-story .add svg,
#stories .add-story .add-story-btn svg,
#stories .add-story .add-story-btn i {
  fill: #fff !important;
  color: #fff !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 13px !important;
}
#stories .add-story .add-story-text {
  position: absolute !important;
  bottom: 7px !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--ms-text-primary, #ffffff) !important;
  line-height: 1.2 !important;
  padding: 0 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  z-index: 2 !important;
}

/* Active Story Items generated by Zuck - Facebook Style Vertical Cards */
#stories .story {
  width: 105px !important;
  min-width: 105px !important;
  height: 165px !important;
  display: block !important;
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#stories .story:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45) !important;
}
#stories .story > a,
#stories .story > .item-link {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  text-decoration: none !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}
#stories .story .item-preview {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  display: block !important;
}
#stories .story .item-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}
#stories .story:hover .item-preview img {
  transform: scale(1.06) !important;
}

/* Gradient overlay for text contrast and premium depth */
#stories .story .story-overlay,
#stories .story > .item-link::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.85) 100%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Facebook-style top-left user avatar badge */
#stories .story .story-avatar-badge {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 2.5px solid #1877f2 !important;
  overflow: hidden !important;
  z-index: 3 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.45) !important;
  background: #0f172a !important;
}
#stories .story.seen .story-avatar-badge {
  border-color: rgba(255, 255, 255, 0.45) !important;
  opacity: 0.8 !important;
}
#stories .story .story-avatar-badge img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Fallback if Zuck renders default without story-avatar-badge */
#stories .story:not(:has(.story-avatar-badge))::before {
  content: '' !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #1877f2 !important;
  border: 2px solid #ffffff !important;
  z-index: 3 !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
}
#stories .story.seen:not(:has(.story-avatar-badge))::before {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* Bottom User Name */
#stories .story .info,
#stories .story > a > .info {
  position: absolute !important;
  bottom: 8px !important;
  left: 8px !important;
  right: 8px !important;
  z-index: 3 !important;
  display: block !important;
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
#stories .story .info .name,
#stories .story > a > .info .name {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
  word-break: break-word !important;
}
#stories .story .info .time,
#stories .story > a > .info .time {
  display: none !important;
}

#stories .story.seen {
  opacity: 0.82 !important;
}
#stories .story.seen:hover {
  opacity: 1 !important;
}

/* Newsfeed Header: Discover Live Shortcut Button */
.btn-discover-live-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #ef4444 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  vertical-align: middle !important;
}
.btn-discover-live-pill:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.45) !important;
  transform: translateY(-1px) !important;
}
.btn-discover-live-pill .live-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  display: inline-block !important;
  animation: livePillPulse 1.4s infinite !important;
}
.btn-discover-live-pill:hover .live-pulse-dot {
  background: #ffffff !important;
}
@keyframes livePillPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Zuck Fullscreen Modal / Story Viewer */
#zuck-modal {
  background: rgba(5, 9, 18, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
#zuck-modal-content {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
}
#zuck-modal-content .story-viewer .slides-pointers > * > * {
  background: rgba(255, 255, 255, 0.3) !important;
  height: 3px !important;
  border-radius: 2px !important;
}
#zuck-modal-content .story-viewer .slides-pointers > * > .seen,
#zuck-modal-content .story-viewer .slides-pointers > * > * > b {
  background: #ffffff !important;
}
#zuck-modal-content .story-viewer .head {
  padding: 12px 16px !important;
}
#zuck-modal-content .story-viewer .head .item-preview {
  border: 2px solid var(--ms-primary) !important;
}

/* ==========================================================================
   COMPACT MODERN POST PUBLISHER (WHAT'S ON YOUR MIND)
   ========================================================================== */
#publisher-wapper .publisher,
.x-form.publisher,
body.night-mode .publisher {
  background: var(--ms-bg-surface) !important;
  border: 1px solid var(--ms-border) !important;
  border-radius: var(--ms-radius-md) !important;
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

/* Publisher message row: avatar + pill input + emoji */
.publisher-message,
body.night-mode .publisher-message {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 38px !important;
}

/* Reset avatar to inline flex item, not absolute */
.publisher-message .publisher-avatar,
.publisher-avatar,
body.night-mode .publisher-avatar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid var(--ms-border) !important;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Sleek pill input for textarea */
.publisher-message .colored-text-wrapper {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  background: var(--ms-bg-surface-elevated) !important;
  border: 1px solid var(--ms-border-subtle) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  min-height: 36px !important;
  transition: all 180ms ease !important;
  cursor: text !important;
}

.publisher-message .colored-text-wrapper:focus-within {
  background: var(--ms-bg-surface) !important;
  border-color: var(--ms-primary) !important;
  box-shadow: 0 0 0 2px var(--ms-primary-subtle) !important;
}

.publisher-message textarea,
.publisher textarea:not(.form-control),
body.night-mode .publisher textarea:not(.form-control) {
  width: 100% !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 120px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--ms-text-primary) !important;
  font-size: 13.5px !important;
  line-height: 22px !important;
  resize: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.publisher-message textarea::placeholder,
.publisher textarea:not(.form-control)::placeholder {
  color: var(--ms-text-muted) !important;
  font-size: 13.5px !important;
  opacity: 1 !important;
}

.publisher-emojis {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
}

.publisher-emojis i {
  font-size: 18px !important;
  color: var(--ms-text-muted) !important;
  cursor: pointer !important;
  transition: color 180ms ease !important;
}
.publisher-emojis i:hover {
  color: var(--ms-primary) !important;
}

/* Publisher tools row */
.publisher-tools-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding-top: 8px !important;
  margin-top: 8px !important;
  border-top: 1px solid var(--ms-border-subtle) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.publisher-tools-tabs::-webkit-scrollbar {
  display: none !important;
}

.publisher-tools-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 10px !important;
  border-radius: var(--ms-radius-sm) !important;
  color: var(--ms-text-secondary) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all var(--ms-transition-fast) !important;
  white-space: nowrap !important;
}
.publisher-tools-tab:hover {
  background: var(--ms-bg-surface-hover) !important;
  color: var(--ms-text-primary) !important;
}

.publisher-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 8px !important;
  margin-top: 6px !important;
  border-top: 1px solid var(--ms-border-subtle) !important;
}

/* ==========================================================================
   MODERN COMPACT FEED FILTER BAR (DESKTOP & MOBILE)
   ========================================================================== */
.posts-filter,
body.night-mode .posts-filter {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 2px 10px 2px !important;
  margin-bottom: 10px !important;
  border-bottom: 1px solid var(--ms-border-subtle) !important;
  line-height: normal !important;
}

/* Left side filter: "Recent Updates" */
.posts-filter > a.countries-filter,
.posts-filter > span,
body.night-mode .posts-filter > a.countries-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 9999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  text-decoration: none !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.posts-filter > a.countries-filter:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

/* Right side filter group */
.posts-filter .float-end {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

/* "All Countries" pill */
.posts-filter .float-end .countries-filter,
body.night-mode .posts-filter .float-end .countries-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 32px !important;
  padding: 0 11px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--ms-text-secondary) !important;
  text-decoration: none !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.posts-filter .float-end .countries-filter:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ms-text-primary) !important;
}

.posts-filter .float-end .countries-filter i {
  font-size: 12px !important;
  color: var(--ms-primary) !important;
}

/* "All" (post type filter) pill */
.posts-filter .btn-group.js_posts-filter,
body.night-mode .posts-filter .btn-group.js_posts-filter {
  margin: 0 !important;
}

.posts-filter .btn-group .btn,
body.night-mode .posts-filter .btn-group .btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 32px !important;
  padding: 0 11px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--ms-text-secondary) !important;
  transition: all 180ms ease !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.posts-filter .btn-group .btn:hover,
.posts-filter .btn-group.show .btn {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: var(--ms-text-primary) !important;
}

.posts-filter .btn-group .btn i {
  font-size: 11px !important;
  color: var(--ms-text-muted) !important;
}

/* Mobile adjustments for Stories, Publisher, and Filter bar */
@media (max-width: 576px) {
  .stories-wrapper {
    margin-bottom: 12px !important;
  }
  #stories {
    gap: 8px !important;
    padding: 2px 0 !important;
  }
  #stories .story,
  #stories .add-story {
    width: 96px !important;
    min-width: 96px !important;
    height: 148px !important;
    border-radius: 12px !important;
  }
  #stories .add-story .img {
    width: 100% !important;
    height: 98px !important;
  }
  #stories .add-story .add,
  #stories .add-story .add-story-btn {
    top: 82px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 30px !important;
    height: 30px !important;
    border: 3px solid #1e293b !important;
    border-radius: 50% !important;
  }
  #stories .add-story .add svg,
  #stories .add-story .add-story-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
  #stories .add-story .add-story-text {
    bottom: 7px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
    text-align: center !important;
    left: 0 !important;
    right: 0 !important;
  }
  #stories .story .story-avatar-badge {
    top: 6px !important;
    left: 6px !important;
    width: 28px !important;
    height: 28px !important;
  }
  #stories .story .info,
  #stories .story > a > .info {
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    width: auto !important;
  }
  #stories .story .info .name,
  #stories .story > a > .info .name {
    font-size: 10.5px !important;
  }

  /* Publisher mobile */
  #publisher-wapper .publisher,
  .x-form.publisher,
  body.night-mode .publisher {
    border-radius: var(--ms-radius-sm) !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
  }
  .publisher-message .publisher-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
  .publisher-message .colored-text-wrapper {
    min-height: 32px !important;
    padding: 5px 12px !important;
  }
  .publisher-message textarea {
    font-size: 13px !important;
    height: 20px !important;
    line-height: 20px !important;
  }

  /* Filter bar mobile */
  .posts-filter {
    gap: 4px !important;
    padding: 0 0 8px 0 !important;
    margin-bottom: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }
  .posts-filter::-webkit-scrollbar {
    display: none !important;
  }
  .posts-filter > a.countries-filter,
  .posts-filter > span {
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
  }
  .posts-filter .float-end {
    gap: 4px !important;
  }
  .posts-filter .float-end .countries-filter,
  .posts-filter .btn-group .btn {
    height: 28px !important;
    padding: 0 9px !important;
    font-size: 11.5px !important;
  }
  .posts-filter .float-end .countries-filter i,
  .posts-filter .btn-group .btn i {
    font-size: 10px !important;
  }
}


/* ==========================================================================
   OFFCANVAS SIDEBAR (MOBILE DRAWER)
   ========================================================================== */
.offcanvas-start,
.sg-offcanvas-sidebar {
  background: var(--ms-bg-surface) !important;
  border-right: 1px solid var(--ms-border) !important;
  color: var(--ms-text-primary) !important;
}

.sg-offcanvas-sidebar a {
  color: var(--ms-text-secondary) !important;
  font-weight: 500 !important;
  font-size: 13.5px !important;
  border-radius: var(--ms-radius-sm) !important;
  transition: all var(--ms-transition-fast) !important;
}
.sg-offcanvas-sidebar a:hover,
.sg-offcanvas-sidebar li.active a {
  background: var(--ms-bg-surface-hover) !important;
  color: var(--ms-primary) !important;
}

/* ==========================================================================
   MODERN POST CARDS & LIVE BROADCAST CARDS (KRIPTOGARANTI MODERN SOCIAL)
   ========================================================================== */

/* Newsfeed in-feed publisher removal (Clean feed flow into posts) */
.col-lg-6 > #publisher-wapper,
.newsfeed-col > #publisher-wapper,
.newsfeed #publisher-wapper:not(.modal-body #publisher-wapper) {
  display: none !important;
}

/* Post Container */
.post,
body.night-mode .post {
  position: relative !important;
  background: var(--ms-bg-surface, #111a2e) !important;
  border: 1px solid var(--ms-border, rgba(255, 255, 255, 0.07)) !important;
  border-radius: 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  transition: border-color var(--ms-transition-fast), box-shadow var(--ms-transition-fast) !important;
  overflow: visible !important;
}

.post:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
}

/* Post Header */
.post-header {
  padding: 14px 14px 0 !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.post-avatar {
  display: block !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.post-avatar-picture {
  min-width: 40px !important;
  min-height: 40px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.post-meta {
  display: block !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.post-author {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ms-text-primary, #ffffff) !important;
  text-decoration: none !important;
}

.post-author:hover {
  text-decoration: none !important;
  color: var(--ms-primary, #3b82f6) !important;
}

.post-time {
  font-size: 11.5px !important;
  color: var(--ms-text-muted, #64748b) !important;
  margin-top: 1px !important;
}

/* Post text */
.post-text {
  padding: 0 14px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ms-text-primary, #f1f5f9) !important;
}

/* ==========================================================================
   LIVE POST CARD & BROADCAST INDICATORS
   ========================================================================== */

/* Header Live Status Badge */
.live-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 1.5px 7px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  border-radius: 4px !important;
  vertical-align: middle !important;
  margin-inline-start: 5px !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.live-status-badge:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  transform: scale(1.05);
  color: #ef4444 !important;
  text-decoration: none !important;
}

.live-status-dot {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #ef4444 !important;
  animation: liveDotPulse 1.6s ease-in-out infinite !important;
}

.live-status-ended {
  display: inline-block !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-inline-start: 4px !important;
}

@keyframes liveDotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

/* 16:9 Live Broadcast Video Container - Full Bleed Alignment Matching Normal Posts */
.post-live-card,
.youtube-player.with-live {
  position: relative !important;
  width: 100% !important;
  padding-top: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
  background: #060a14 !important;
  margin: 10px 0 0 0 !important;
  cursor: pointer !important;
}

/* Reset obsolete pixelated play-button.png */
.youtube-player.with-live .play,
.post-live-card .play {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.post-live-canvas {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.post-live-cover,
.youtube-player.with-live img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

.post-live-card:hover .post-live-cover,
.youtube-player.with-live:hover img {
  transform: scale(1.025) !important;
  filter: brightness(0.9) !important;
}

/* Live Top Bar Overlay */
.post-live-overlay-top {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, transparent 100%) !important;
}

.post-live-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  line-height: 1.2 !important;
}

.post-live-pill .live-dot-pulse {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  animation: liveDotPulse 1.6s ease-in-out infinite !important;
}

.post-live-viewers {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #f1f5f9 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  line-height: 1.2 !important;
}

.post-live-viewers i {
  font-size: 10px !important;
}

.post-live-ended-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 8px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Center Frosted Glass Play Button */
.post-live-center-play {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.post-live-play-btn {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease !important;
}

.post-live-play-btn svg {
  transform: translateX(1.5px) !important;
}

.post-live-card:hover .post-live-play-btn {
  transform: scale(1.1) !important;
  background: #2563eb !important;
  border-color: #3b82f6 !important;
}

/* Live Bottom Bar Overlay */
.post-live-overlay-bottom {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 14px !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%) !important;
}

.post-live-callout {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Recorded Live Video */
.post-live-recorded-player {
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-top: 10px !important;
  background: #000000 !important;
}

/* ==========================================================================
   POST ACTIONS, REACTIONS & TRANSITIONS
   ========================================================================== */
.post-stats {
  padding: 8px 14px !important;
  font-size: 12px !important;
  color: var(--ms-text-muted, #94a3b8) !important;
  border-bottom: 1px solid var(--ms-border-subtle, rgba(255, 255, 255, 0.05)) !important;
}

.post-actions,
body.night-mode .post-actions {
  display: flex !important;
  align-items: center !important;
  padding: 4px 8px !important;
  margin-top: 0 !important;
  border-top: 1px solid var(--ms-border-subtle, rgba(255, 255, 255, 0.06)) !important;
  gap: 4px !important;
}

.post-actions .action-btn,
body.night-mode .post-actions .action-btn {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ms-text-secondary, #94a3b8) !important;
  border-radius: 8px !important;
  background: transparent !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  user-select: none !important;
}

.post-actions .action-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--ms-text-primary, #ffffff) !important;
}

.post-actions .action-btn:active {
  transform: scale(0.92) !important;
}

.post-actions .action-btn svg,
.post-actions .action-btn i {
  font-size: 15px !important;
  transition: transform 0.15s ease !important;
}

.post-actions .action-btn:hover svg,
.post-actions .action-btn:hover i {
  transform: scale(1.1) !important;
}

/* Post footer / comments */
.post-footer,
body.night-mode .post-footer {
  background: transparent !important;
  border-top: 1px solid var(--ms-border-subtle, rgba(255, 255, 255, 0.05)) !important;
  padding: 8px 14px 12px !important;
}

/* ==========================================================================
   MODERN MOBILE & TABLET BOTTOM NAVIGATION (STRICTLY HIDDEN ON DESKTOP)
   ========================================================================== */

/* DESKTOP (>= 992px): Completely hidden on desktop monitors and laptops */
@media (min-width: 992px) {
  .footer-bottom-bar,
  body .footer-bottom-bar,
  body.night-mode .footer-bottom-bar,
  html body .footer-bottom-bar,
  html body.night-mode .footer-bottom-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  body,
  body.night-mode,
  html body,
  html body.night-mode {
    padding-bottom: 0 !important;
  }
}

/* MOBILE & TABLET (< 992px): Sleek 5-tab bar with frosted glass effect */
@media (max-width: 991.98px) {
  .footer-bottom-bar,
  body .footer-bottom-bar,
  body.night-mode .footer-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(11, 18, 32, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45) !important;
    z-index: 1040 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .footer-bottom-bar.x-hidden,
  body.night-mode .footer-bottom-bar.x-hidden {
    display: none !important;
  }

  body,
  body.night-mode {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 10px) !important;
  }
}

.footer-bottom-bar .container {
  height: 100% !important;
  max-width: 100% !important;
  padding: 0 4px !important;
}

.footer-bottom-bar-links {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  height: 100% !important;
  gap: 0 !important;
}

.footer-bottom-bar-links > .link {
  flex: 1 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  position: relative !important;
}

.footer-bottom-bar-links > .link > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  color: #94a3b8 !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Material Tap Micro-interaction */
.footer-bottom-bar-links > .link > a:active {
  transform: scale(0.9) !important;
}

/* Nav Icon Container (Clean, transparent, no broken bounding box) */
.nav-icon-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 34px !important;
  border-radius: 12px !important;
  background: transparent !important;
  position: relative !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-bottom-bar-links > .link.active .nav-icon-pill {
  background: transparent !important;
}

/* Vector Icons sizing & styling: Clean, crisp, no path distortion */
.footer-bottom-bar-links .link .header-icon,
.footer-bottom-bar-links .link svg {
  width: 24px !important;
  height: 24px !important;
  color: #94a3b8 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* SVG Fill & Stroke handling */
.footer-bottom-bar-links .link svg[fill="currentColor"],
.footer-bottom-bar-links .link .header-icon[fill="currentColor"] {
  fill: currentColor !important;
}

.footer-bottom-bar-links .link svg[fill="none"],
.footer-bottom-bar-links .link .header-icon[fill="none"] {
  fill: none !important;
  stroke: currentColor !important;
}

/* Hover state */
.footer-bottom-bar-links .link:hover .header-icon,
.footer-bottom-bar-links .link:hover svg {
  color: #f1f5f9 !important;
}

/* Active tab state */
.footer-bottom-bar-links .link.active > a {
  color: #3b82f6 !important;
}

.footer-bottom-bar-links .link.active .header-icon,
.footer-bottom-bar-links .link.active svg {
  color: #3b82f6 !important;
  transform: scale(1.08) !important;
}

/* Sleek active indicator dot centered at bottom of active tab */
.footer-bottom-bar-links > .link.active::after {
  content: "" !important;
  position: absolute !important;
  bottom: 4px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #3b82f6 !important;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8) !important;
}

/* Hide oversized text labels on mobile for clean Instagram/Threads feel */
.footer-bottom-bar-links .title {
  display: none !important;
}

/* Center Elevated Action Button (FAB Plus) */
.footer-bottom-bar-links .link-add {
  overflow: visible !important;
}

.add-fab-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.add-fab-btn::after,
.add-fab-btn.dropdown-toggle::after,
.link-add .dropdown-toggle::after,
.footer-bottom-bar .dropdown-toggle::after {
  display: none !important;
  content: none !important;
}

.fab-circle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: -12px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease !important;
}

.fab-circle svg,
.fab-circle .header-icon {
  width: 20px !important;
  height: 20px !important;
  fill: #ffffff !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.add-fab-btn:active .fab-circle {
  transform: scale(0.9) !important;
}

/* When Bottomsheet is open, rotate the plus into an X */
.link-add.show .fab-circle,
.link-add .dropdown.show .fab-circle {
  transform: rotate(45deg) !important;
  background: #ef4444 !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45) !important;
}

/* User Menu Avatar in Bottom Bar */
.footer-bottom-bar .user-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.footer-bottom-bar .user-menu img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  object-fit: cover !important;
  transition: border-color 0.2s ease, transform 0.15s ease !important;
}

.footer-bottom-bar .user-menu:hover img {
  border-color: #3b82f6 !important;
  transform: scale(1.05) !important;
}

/* ==========================================================================
   MODERN MOBILE BOTTOM SHEET (SLIDE-UP CREATE DRAWER)
   ========================================================================== */
@media (max-width: 767.98px) {
  .footer-bottom-bar .dropdown-menu.dropdown-widget {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    transform: none !important;
    border: none !important;
    border-radius: 24px 24px 0 0 !important;
    background: rgba(15, 23, 42, 0.97) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.75) !important;
    z-index: 1060 !important;
    padding: 10px 18px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    animation: bottomSheetSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    max-height: 82vh !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

  .footer-bottom-bar .dropdown-menu.dropdown-widget:not(.show) {
    display: none !important;
  }

  .footer-bottom-bar .dropdown-menu.dropdown-widget.show {
    display: block !important;
  }

  .footer-bottom-bar .dropdown-menu.dropdown-widget::-webkit-scrollbar {
    display: none !important;
  }

  @keyframes bottomSheetSlideIn {
    from {
      transform: translateY(100%) !important;
      opacity: 0;
    }
    to {
      transform: translateY(0) !important;
      opacity: 1;
    }
  }

  /* Bottom Sheet Handle & Header */
  .bottom-sheet-handle {
    width: 38px !important;
    height: 4.5px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.25) !important;
    margin: 4px auto 14px auto !important;
  }

  .bottom-sheet-header {
    text-align: center !important;
    margin-bottom: 16px !important;
  }

  .bottom-sheet-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #cbd5e1 !important;
    text-transform: uppercase !important;
  }

  /* 4-Column Creation Action Grid */
  .footer-quick-adds {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px 8px !important;
    padding: 4px 0 14px 0 !important;
  }

  .footer-quick-adds .add-quick-item {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    padding: 4px 0 !important;
    border-radius: 12px !important;
    text-align: center !important;
    color: #cbd5e1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    user-select: none !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .footer-quick-adds .add-quick-item:active {
    transform: scale(0.9) !important;
  }

  /* Quick Action Icon Circle */
  .quick-icon-circle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 6px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .quick-icon-circle svg,
  .quick-icon-circle .main-icon {
    width: 22px !important;
    height: 22px !important;
    transition: transform 0.2s ease !important;
  }

  .footer-quick-adds .add-quick-item:hover .quick-icon-circle {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
  }

  /* Distinct Modern Accents per Action */
  .qic-post { background: rgba(59, 130, 246, 0.12) !important; border-color: rgba(59, 130, 246, 0.25) !important; }
  .qic-post svg { fill: #3b82f6 !important; }

  .qic-live { background: rgba(239, 68, 68, 0.12) !important; border-color: rgba(239, 68, 68, 0.25) !important; }
  .qic-live svg { fill: #ef4444 !important; }

  .qic-discover { background: rgba(139, 92, 246, 0.12) !important; border-color: rgba(139, 92, 246, 0.25) !important; }
  .qic-discover i, .qic-discover svg { color: #8b5cf6 !important; fill: #8b5cf6 !important; }

  .qic-story { background: rgba(168, 85, 247, 0.12) !important; border-color: rgba(168, 85, 247, 0.25) !important; }
  .qic-story svg { fill: #a855f7 !important; }

  .qic-blog { background: rgba(245, 158, 11, 0.12) !important; border-color: rgba(245, 158, 11, 0.25) !important; }
  .qic-blog svg { fill: #f59e0b !important; }

  .qic-product { background: rgba(16, 185, 129, 0.12) !important; border-color: rgba(16, 185, 129, 0.25) !important; }
  .qic-product svg { fill: #10b981 !important; }

  .qic-funding { background: rgba(14, 165, 233, 0.12) !important; border-color: rgba(14, 165, 233, 0.25) !important; }
  .qic-funding svg { fill: #0ea5e9 !important; }

  .qic-ads { background: rgba(236, 72, 153, 0.12) !important; border-color: rgba(236, 72, 153, 0.25) !important; }
  .qic-ads svg { fill: #ec4899 !important; }

  .qic-page { background: rgba(99, 102, 241, 0.12) !important; border-color: rgba(99, 102, 241, 0.25) !important; }
  .qic-page svg { fill: #6366f1 !important; }

  .qic-group { background: rgba(20, 184, 166, 0.12) !important; border-color: rgba(20, 184, 166, 0.25) !important; }
  .qic-group svg { fill: #14b8a6 !important; }

  .qic-event { background: rgba(249, 115, 22, 0.12) !important; border-color: rgba(249, 115, 22, 0.25) !important; }
  .qic-event svg { fill: #f97316 !important; }

  .quick-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
  }

  .footer-quick-adds .add-quick-item:hover .quick-label {
    color: #f1f5f9 !important;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   PUBLISHER & NEWSFEED STATUS BAR MODERNIZATION
   ========================================================================== */
.publisher-quick-shortcuts {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 14px 6px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  margin-top: 6px !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.publisher-quick-shortcuts::-webkit-scrollbar {
  display: none !important;
}

body:not(.night-mode) .publisher-quick-shortcuts {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
}

.quick-shortcut-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body:not(.night-mode) .quick-shortcut-item {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.quick-shortcut-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

body:not(.night-mode) .quick-shortcut-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.quick-shortcut-item.qs-live:hover {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
}

.quick-shortcut-item.qs-photo:hover {
  border-color: rgba(34, 197, 94, 0.4) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  color: #22c55e !important;
}

.quick-shortcut-item.qs-hub:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  color: #6366f1 !important;
}

.quick-shortcut-item .qs-icon {
  font-size: 14px !important;
}

/* Ensure posts-filter bar is responsive and flexes gracefully on mobile */
.posts-filter {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 10px 0 !important;
}

.posts-filter .float-end {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: auto !important;
  gap: 8px !important;
}



