/**
 * BudunOS front sidebar — match soft feed cards (publisher / right rail)
 * Scoped to .budun-sidebar (keeps Bootstrap collapse intact)
 */
.budun-sidebar {
  --sb-ink: #191b20;
  --sb-muted: #858b95;
  --sb-faint: #858b95;
  --sb-line: #e9ebef;
  --sb-soft: #f6f7f9;
  --sb-bg: #ffffff;
  --sb-hover: #f6f7f9;
  --sb-active-bg: var(--sb-soft);
  --sb-accent: var(--link-color);
  --sb-radius: 18px;
  --sb-item-radius: 12px;

  background: var(--sb-bg);
  color: var(--sb-ink);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius);
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.16);
  min-width: 0;
  width: 100%;
  overflow: hidden;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.budun-sidebar.card {
  background: var(--sb-bg);
  border-color: var(--sb-line);
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.16);
}

.budun-sidebar * {
  box-sizing: border-box;
}

.budun-sidebar .card-body.with-nav {
  padding: 12px 10px 14px !important;
}

.budun-sidebar .main-side-nav,
.budun-sidebar .main-side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.budun-sidebar .main-side-nav > li {
  margin: 2px 0;
  padding: 0;
}

/* Direct toggle anchors that sit outside <li> (legacy Mine / Boosted) */
.budun-sidebar .main-side-nav > a {
  margin: 2px 0;
}

.budun-sidebar .main-side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--sb-item-radius);
  color: var(--sb-ink);
  font: 550 13.5px/1.35 var(--body-font-family, Poppins, Helvetica, sans-serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.budun-sidebar .main-side-nav a:hover {
  background: var(--sb-hover);
  color: var(--sb-ink);
}

.budun-sidebar .main-side-nav a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link-color) 28%, transparent);
  outline-offset: 1px;
}

/* Active = soft pill like feed chips — no admin accent bar */
.budun-sidebar .main-side-nav > li.active > a,
.budun-sidebar .main-side-nav .active > a {
  background: var(--sb-active-bg);
  color: var(--sb-ink);
  font-weight: 650;
  box-shadow: none;
}

.budun-sidebar .main-side-nav > li.active > a::before,
.budun-sidebar .main-side-nav li.active > a::before {
  display: none;
  content: none;
}

/* Icons — soft stroke weight */
.budun-sidebar .main-icon,
.budun-sidebar .bos-sb-ico,
.budun-sidebar a > img,
.budun-sidebar a > i.main-icon {
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  color: var(--sb-muted);
  opacity: 1;
}

.budun-sidebar .main-icon svg,
.budun-sidebar .bos-sb-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.budun-sidebar .bos-sb-ico svg path,
.budun-sidebar .bos-sb-ico svg circle,
.budun-sidebar .bos-sb-ico svg rect,
.budun-sidebar .bos-sb-ico svg line,
.budun-sidebar .bos-sb-ico svg polyline,
.budun-sidebar .bos-sb-ico svg polygon {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.75;
}

.budun-sidebar .main-side-nav a:hover .main-icon,
.budun-sidebar .main-side-nav a:hover .bos-sb-ico {
  color: var(--sb-ink);
}

.budun-sidebar .main-side-nav .active > a .main-icon,
.budun-sidebar .main-side-nav .active > a .bos-sb-ico {
  color: var(--sb-ink);
}

.budun-sidebar .collapse .main-icon,
.budun-sidebar .collapsing .main-icon,
.budun-sidebar .collapse .bos-sb-ico,
.budun-sidebar .collapsing .bos-sb-ico {
  width: 18px !important;
  height: 18px !important;
  flex-basis: 18px !important;
}

.budun-sidebar .collapse .main-icon svg,
.budun-sidebar .collapsing .main-icon svg,
.budun-sidebar .collapse .bos-sb-ico svg,
.budun-sidebar .collapsing .bos-sb-ico svg {
  width: 18px;
  height: 18px;
}

/* Collapse chevron */
.budun-sidebar a[data-bs-toggle="collapse"] {
  padding-right: 34px;
}

.budun-sidebar a[data-bs-toggle="collapse"]::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.budun-sidebar a[data-bs-toggle="collapse"][aria-expanded="true"]::after {
  transform: rotate(225deg);
  margin-top: -2px;
  opacity: 0.65;
}

/* Nested lists */
.budun-sidebar .collapse ul,
.budun-sidebar .collapsing ul {
  margin: 4px 6px 8px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--sb-line);
}

.budun-sidebar .collapse a,
.budun-sidebar .collapsing a {
  font-size: 12.5px;
  font-weight: 500;
  min-height: 34px;
  padding: 6px 10px;
  gap: 9px;
  color: var(--sb-muted);
}

.budun-sidebar .collapse a:hover,
.budun-sidebar .collapsing a:hover {
  color: var(--sb-ink);
}

.budun-sidebar .collapse .active > a,
.budun-sidebar .collapsing .active > a {
  color: var(--sb-ink);
  background: var(--sb-active-bg);
}

/* Section labels — same voice as right-rail card headers */
.budun-sidebar .main-side-nav > .bos-sb-section,
.budun-sidebar .main-side-nav > .ptb5 {
  border-top: 1px solid var(--sb-line);
  margin: 12px 4px 2px;
  padding: 14px 8px 6px !important;
  pointer-events: none;
  list-style: none;
}

.budun-sidebar .main-side-nav > .bos-sb-section--first {
  border-top: 0;
  margin-top: 0;
  padding-top: 2px !important;
}

.budun-sidebar .bos-sb-section .text-muted,
.budun-sidebar .ptb5 .text-muted {
  display: block;
  font: 700 11px/1.3 var(--body-font-family, Poppins, Helvetica, sans-serif) !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sb-muted) !important;
}

/* Night mode */
body.night-mode .budun-sidebar,
html[data-bs-theme="dark"] .budun-sidebar {
  --sb-ink: #e8eaed;
  --sb-muted: #94a3b8;
  --sb-faint: #94a3b8;
  --sb-line: rgba(255, 255, 255, 0.1);
  --sb-soft: rgba(255, 255, 255, 0.04);
  --sb-bg: var(--card-dark-color, #262d34);
  --sb-hover: rgba(255, 255, 255, 0.05);
  --sb-active-bg: rgba(255, 255, 255, 0.06);
  --sb-accent: var(--link-color);
  box-shadow: 0 14px 40px -28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  .budun-sidebar {
    border-radius: 12px;
  }

  .budun-sidebar .card-body.with-nav {
    padding: 8px 6px !important;
  }

  .budun-sidebar .main-side-nav a {
    min-height: 40px;
    font-size: 13.5px;
  }
}

/* —— Stroke icons only (layout/colors stay in style.css + settings) —— */
.bos-sb-ico svg {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.75;
}

.bos-sb-ico svg path,
.bos-sb-ico svg circle,
.bos-sb-ico svg rect,
.bos-sb-ico svg line,
.bos-sb-ico svg polyline,
.bos-sb-ico svg polygon,
.bos-sb-ico svg g {
  fill: none !important;
  stroke: currentColor !important;
}

.bos-sb-ico svg circle[fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}


/* —— Stories (circular, theme-native) —— */
.bos-stories {
  position: relative;
  margin: 0 0 16px;
  padding: 0;
}

.bos-stories-del {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

.bos-stories-del:hover {
  color: #e74c3c;
}

body.night-mode .bos-stories-del,
html[data-bs-theme="dark"] .bos-stories-del {
  color: #94a3b8;
}

.bos-stories .stories-wrapper {
  overflow: auto;
  padding: 0 !important;
  margin: 0 !important;
}

.bos-stories #stories,
.bos-stories .stories.carousel {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 0;
}

.bos-stories .add-story,
.bos-stories .stories.budunos.carousel .story {
  position: relative;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  width: 68px !important;
  min-width: 68px;
  max-width: 68px;
  height: auto !important;
  margin: 0 !important;
  vertical-align: top;
  text-align: center;
  cursor: pointer;
}

.bos-stories .stories.carousel .story > .item-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-decoration: none !important;
  color: inherit !important;
}

.bos-stories .add-story .img,
.bos-stories .stories.budunos.carousel .story > .item-link > .item-preview {
  display: block !important;
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-height: 56px !important;
  margin: 0 auto;
  border-radius: 50% !important;
  padding: 2px;
  border: 2px solid var(--link-color) !important;
  background-clip: padding-box;
  box-sizing: border-box;
  overflow: hidden;
  flex: 0 0 56px;
}

.bos-stories .add-story .img.bos-story-add-ring {
  position: relative;
  display: block !important;
  background-size: cover !important;
  background-position: center !important;
  background-color: #e4e6eb !important;
  border-style: dashed !important;
  border-color: var(--link-color) !important;
  overflow: visible !important;
}

body.night-mode .bos-stories .add-story .img.bos-story-add-ring,
html[data-bs-theme="dark"] .bos-stories .add-story .img.bos-story-add-ring {
  border-color: var(--link-color) !important;
  background-color: #3a4149 !important;
}

.bos-stories .add-story .add {
  position: absolute !important;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--link-color) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  z-index: 1;
}

.bos-stories .add-story .add .bos-sb-ico,
.bos-stories .add-story .add .svg-container {
  width: 12px !important;
  height: 12px !important;
  display: block;
}

.bos-stories .add-story .add .bos-sb-ico svg,
.bos-stories .add-story .add .bos-sb-ico svg *,
.bos-stories .add-story .add .svg-container svg,
.bos-stories .add-story .add .svg-container svg * {
  stroke: #fff !important;
  color: #fff !important;
  fill: none !important;
}

body.night-mode .bos-stories .add-story .add,
html[data-bs-theme="dark"] .bos-stories .add-story .add {
  border-color: var(--card-dark-color, #262D34);
}

.bos-stories .stories.budunos .story > a > .item-preview > img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  padding: 0 !important;
  display: block;
  background: #e4e6eb;
}

body.night-mode .bos-stories .stories.budunos .story > a > .item-preview > img,
html[data-bs-theme="dark"] .bos-stories .stories.budunos .story > a > .item-preview > img {
  border-color: var(--card-dark-color, #262D34) !important;
}

.bos-stories .stories.budunos .story.seen > a > .item-preview {
  border-color: #dbdbdb !important;
}

.bos-stories .stories.budunos .story.seen {
  opacity: 0.65;
}

.bos-stories .bos-story-name,
.bos-stories .stories.carousel .story > .item-link > .info {
  display: block;
  width: 68px;
  margin-top: 6px;
  padding: 0;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25;
  color: #65676b !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: none !important;
  text-decoration: none !important;
  letter-spacing: 0;
}

.bos-stories .stories.carousel .story > .item-link > .info strong,
.bos-stories .stories.carousel .story > .item-link > .info span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: inherit !important;
}

body.night-mode .bos-stories .bos-story-name,
body.night-mode .bos-stories .stories.carousel .story > .item-link > .info,
html[data-bs-theme="dark"] .bos-stories .bos-story-name,
html[data-bs-theme="dark"] .bos-stories .stories.carousel .story > .item-link > .info {
  color: #94a3b8 !important;
}

/* —— Daytime greeting (feed-native) —— */
.card.daytime_message.bos-daytime {
  position: relative;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  padding: 14px 16px !important;
  margin-bottom: 16px !important;
  border: 0 !important;
  border-left: 3px solid var(--link-color) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: visible;
}

.card.daytime_message.bos-daytime:not([style]),
.card.daytime_message.bos-daytime[style*="display: none"],
.card.daytime_message.bos-daytime[style*="display:none"] {
  display: none !important;
}

body.night-mode .card.daytime_message.bos-daytime,
html[data-bs-theme="dark"] .card.daytime_message.bos-daytime {
  background: var(--card-dark-color, #262D34) !important;
  border-color: transparent !important;
  border-left-color: var(--link-color) !important;
  box-shadow: none !important;
}

.bos-daytime-ico {
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--link-color) !important;
  border: 0;
  float: none !important;
  padding: 0;
}

.bos-daytime-ico .bos-sb-ico,
.bos-daytime-ico .svg-container,
.bos-daytime-ico .main-icon {
  width: 28px !important;
  height: 28px !important;
  color: var(--link-color) !important;
  fill: none !important;
  float: none !important;
  display: block !important;
}

.bos-daytime-ico .bos-sb-ico svg,
.bos-daytime-ico .bos-sb-ico svg *,
.bos-daytime-ico .svg-container svg,
.bos-daytime-ico .svg-container svg * {
  stroke: var(--link-color) !important;
  fill: none !important;
  color: var(--link-color) !important;
}

.bos-daytime-body {
  min-width: 0;
  flex: 1 1 auto !important;
  display: block !important;
  float: none !important;
}

.bos-daytime-body strong {
  display: inline;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  letter-spacing: 0;
  color: inherit !important;
}

.bos-daytime-body strong::after {
  content: "";
  display: block;
}

.bos-daytime-body span {
  display: block;
  margin-top: 2px;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.45;
  color: #65676b !important;
  letter-spacing: 0;
}

body.night-mode .bos-daytime-body span,
html[data-bs-theme="dark"] .bos-daytime-body span {
  color: #94a3b8 !important;
}

.bos-daytime .btn-close {
  position: static !important;
  float: none !important;
  margin: 0 0 0 auto !important;
  flex: 0 0 auto !important;
  width: 12px;
  height: 12px;
  opacity: 0.4;
  align-self: flex-start;
}

.bos-daytime .btn-close:hover {
  opacity: 0.75;
}

/* —— Header navbar actions (compact chips) —— */
.main-header .navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.main-header .navbar-wrapper > ul {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .navbar-wrapper > ul > li {
  flex: 0 0 auto !important;
  margin: 0 !important;
  text-align: center;
}

.main-header .navbar-wrapper > ul > li > a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 36px;
  min-width: 36px;
  height: 36px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
  transition: background 0.12s ease, color 0.12s ease;
}

.main-header .navbar-wrapper > ul > li > a:hover {
  background: rgba(15, 23, 42, 0.09);
}

.main-header .navbar-wrapper > ul > li.dropdown.show > a {
  background: color-mix(in srgb, var(--link-color) 12%, transparent);
  color: var(--link-color);
}

body.night-mode .main-header .navbar-wrapper > ul > li > a,
html[data-bs-theme="dark"] .main-header .navbar-wrapper > ul > li > a {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .main-header .navbar-wrapper > ul > li > a:hover,
html[data-bs-theme="dark"] .main-header .navbar-wrapper > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.night-mode .main-header .navbar-wrapper > ul > li.dropdown.show > a,
html[data-bs-theme="dark"] .main-header .navbar-wrapper > ul > li.dropdown.show > a {
  background: color-mix(in srgb, var(--link-color) 18%, transparent);
}

.main-header .navbar-wrapper .header-icon.bos-sb-ico,
.main-header .navbar-wrapper .bos-sb-ico.header-icon,
.main-header .navbar-wrapper .svg-container.header-icon {
  width: 18px !important;
  height: 18px !important;
  display: block;
  line-height: 0;
}

.main-header .navbar-wrapper .header-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.main-header .navbar-wrapper .counter {
  top: -2px !important;
  right: -2px !important;
  min-width: 16px;
  padding: 1px 4px !important;
  font-size: 9px !important;
  line-height: 14px !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 2px var(--header-bg-color, #fff);
}

body.night-mode .main-header .navbar-wrapper .counter,
html[data-bs-theme="dark"] .main-header .navbar-wrapper .counter {
  box-shadow: 0 0 0 2px var(--header-bg-color-dark, #262D34);
}

/* user menu chip: avatar + a bit of room */
.main-header .navbar-wrapper > ul > li > a.user-menu {
  width: auto;
  min-width: 36px;
  padding: 0 8px 0 6px !important;
}

.main-header .navbar-wrapper .user-menu > img {
  margin-top: 0 !important;
  width: 22px !important;
  height: 22px !important;
}

@media (max-width: 767px) {
  body {
    padding-top: 56px;
  }

  .main-header {
    height: 56px;
  }

  .main-header .container > .row {
    align-items: center;
    min-height: 56px;
    height: 56px;
  }

  .main-header .logo-wrapper {
    display: flex;
    align-items: center;
    height: 56px;
    padding-left: 40px;
    overflow: visible;
  }

  .main-header .logo {
    font-size: 22px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .main-header .logo img {
    max-height: 28px;
    width: auto;
  }

  .main-header .menu-icon {
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.05);
    color: inherit;
  }

  body.night-mode .main-header .menu-icon,
  html[data-bs-theme="dark"] .main-header .menu-icon {
    background: rgba(255, 255, 255, 0.06);
  }

  .main-header .bos-header-right {
    height: 56px;
    margin: 0;
  }

  .main-header .navbar-wrapper {
    width: 100%;
    height: 56px;
  }

  .main-header .navbar-wrapper > ul {
    gap: 2px;
    width: 100%;
    height: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .main-header .navbar-wrapper > ul > li {
    display: flex !important;
    align-items: center;
  }

  .main-header .navbar-wrapper > ul > li.d-none {
    display: none !important;
  }

  .main-header .navbar-wrapper > ul > li > a {
    width: 34px;
    min-width: 34px;
    height: 34px !important;
    border-radius: 8px;
  }
}

/* —— Right rail (merits / trending / people / footer) — soft console, not skin cards —— */
.js_sticky-sidebar > .card.bos-merits-side,
.js_sticky-sidebar > .card.bos-merits-banner,
.js_sticky-sidebar > .card.bos-trending,
.js_sticky-sidebar > .card.bos-people,
.col-lg-8 .card.bos-merits-side {
  --bos-rail-ink: #191b20;
  --bos-rail-muted: #858b95;
  --bos-rail-line: #e9ebef;
  --bos-rail-soft: #f6f7f9;
  --bos-rail-bs: color-mix(in srgb, var(--link-color) 12%, #fff);
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-rail-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.16) !important;
  overflow: hidden;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.js_sticky-sidebar > .card.bos-merits-side .card-header,
.js_sticky-sidebar > .card.bos-trending .card-header,
.js_sticky-sidebar > .card.bos-people .card-header,
.col-lg-8 .card.bos-merits-side .card-header {
  background: transparent !important;
  border: 0 !important;
  padding: 14px 14px 4px !important;
}

.js_sticky-sidebar > .card.bos-merits-side .card-body,
.js_sticky-sidebar > .card.bos-trending .card-body,
.js_sticky-sidebar > .card.bos-people .card-body,
.col-lg-8 .card.bos-merits-side .card-body {
  background: transparent !important;
  padding: 6px 12px 12px !important;
}

/* Merits strip */
.bos-merits-side .card-header strong,
.bos-trending-head strong,
.bos-people-head strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-rail-muted, #858b95) !important;
}

.bos-merits-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 2px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bos-merits-scroller.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.bos-merits-scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.bos-merit-item {
  flex: 0 0 auto;
  width: 62px;
  padding: 8px 4px 6px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.12s ease;
}

.bos-merits-scroller.is-dragging .bos-merit-item {
  cursor: grabbing;
}

.bos-merit-item:hover {
  background: var(--bos-rail-soft, #f6f7f9);
}

.bos-merit-item img {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(20, 24, 32, 0.08));
}

.bos-merit-item span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-merit-item:hover span {
  color: var(--link-color);
}

/* Merits balance banner */
.bos-merits-banner {
  overflow: hidden;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--link-color) 18%, #e9ebef) !important;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--link-color) 10%, #fff) 0%,
      #fff 62%
    ) !important;
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.16) !important;
}

.bos-merits-banner-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 15px 14px !important;
  overflow: hidden;
}

.bos-merits-banner-glow {
  position: absolute;
  top: -36px;
  right: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--link-color) 22%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.bos-merits-banner-ico {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--bos-rail-bs, color-mix(in srgb, var(--link-color) 12%, #fff));
  color: var(--link-color);
}

.bos-merits-banner-ico .svg-container,
.bos-merits-banner-ico .bos-sb-ico {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-merits-banner-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bos-merits-banner-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #858b95;
  margin-bottom: 3px;
}

.bos-merits-banner-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.bos-merits-banner-num {
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--link-color);
}

.bos-merits-banner-label {
  font-size: 13px;
  font-weight: 650;
  color: #191b20;
}

.bos-merits-banner-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  background: #1b1e23;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}

.bos-merits-banner-btn:hover {
  background: #111318;
}

.bos-merits-banner-btn:active {
  transform: translateY(1px);
}

.bos-merits-banner-btn .svg-container,
.bos-merits-banner-btn .bos-sb-ico {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  color: #fff;
}

.bos-merits-banner-btn svg {
  stroke: #fff;
}

/* Trending */
.bos-trending-head {
  padding: 14px 14px 4px !important;
}

.bos-trending-head .bos-sb-ico,
.bos-trending-head .svg-container {
  color: var(--link-color);
}

.bos-trending-head .bos-sb-ico svg,
.bos-trending-head .svg-container svg {
  stroke: currentColor !important;
  fill: none !important;
}

.bos-trending-list {
  padding: 4px 8px 10px !important;
}

.bos-trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 11px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.12s ease;
}

.bos-trend-item:hover {
  background: #f6f7f9;
}

.bos-trend-rank {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #f2f4f6;
  font-size: 10px;
  font-weight: 700;
  color: #858b95;
}

.bos-trend-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bos-trend-hash {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  color: #191b20;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-trend-item:hover .bos-trend-hash {
  color: var(--link-color);
}

.bos-trend-freq {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #999fa8;
  line-height: 1.3;
}

/* People */
.bos-people-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 4px !important;
}

.bos-people-head a {
  font-size: 11px;
  font-weight: 650;
  color: #858b95;
  text-decoration: none;
}

.bos-people-head a:hover {
  color: var(--link-color);
}

.bos-people-list {
  padding: 4px 8px 10px !important;
}

.bos-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.12s ease;
}

.bos-person + .bos-person {
  border-top: 0;
}

.bos-person:hover {
  background: #f6f7f9;
}

.bos-person-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f6;
}

.bos-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bos-person-meta {
  min-width: 0;
  flex: 1;
}

.bos-person-name {
  display: block;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  color: #191b20;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-person-name:hover {
  color: var(--link-color);
}

.bos-person-meta small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  color: #999fa8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-person-meta small:empty {
  display: none;
}

.bos-person-action {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e9ebef;
  background: #fff;
  color: #747b85;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  line-height: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.bos-person-action .svg-container,
.bos-person-action .bos-sb-ico {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: inherit;
}

.bos-person-action svg {
  width: 15px !important;
  height: 15px !important;
  display: block;
  stroke: currentColor !important;
}

.bos-person-action:hover {
  background: color-mix(in srgb, var(--link-color) 12%, #fff);
  border-color: color-mix(in srgb, var(--link-color) 28%, #e9ebef);
  color: var(--link-color);
}

/* Mini footer — soft rail, not skin */
.js_sticky-sidebar .mini-footer,
.bos-mini-footer {
  margin: 8px 0 20px;
  padding: 0 !important;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-mini-footer-bar {
  padding: 12px 12px 10px;
  border: 1px solid #e9ebef;
  border-radius: 14px;
  background: #fff;
}

.js_sticky-sidebar .mini-footer .copyrights,
.bos-mini-footer .copyrights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #eef0f3;
  font-size: 11px;
  font-weight: 600;
  color: #858b95;
}

.bos-mini-footer-copy,
.bos-site-footer-copy {
  letter-spacing: -0.01em;
}

.js_sticky-sidebar .mini-footer .language-dropdown,
.bos-mini-footer .language-dropdown,
.bos-site-footer .language-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e9ebef;
  background: #f6f7f9;
  color: #515761 !important;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.js_sticky-sidebar .mini-footer .language-dropdown:hover,
.bos-mini-footer .language-dropdown:hover,
.bos-site-footer .language-dropdown:hover {
  border-color: color-mix(in srgb, var(--link-color) 28%, #e9ebef);
  background: #fff;
  color: var(--link-color) !important;
}

.js_sticky-sidebar .mini-footer .language-dropdown img,
.bos-mini-footer .language-dropdown img,
.bos-site-footer .language-dropdown img,
.bos-mini-footer-langs .dropdown-item img {
  margin: 0 !important;
  border-radius: 2px;
  flex: 0 0 auto;
}

.js_sticky-sidebar .mini-footer .links,
.bos-mini-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.js_sticky-sidebar .mini-footer .links li,
.bos-mini-footer .links li {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.js_sticky-sidebar .mini-footer .links li:not(:last-child)::after,
.bos-mini-footer .links li:not(:last-child)::after {
  content: "·";
  margin: 0 6px 0 4px;
  color: #c5cad2;
  font-weight: 700;
  pointer-events: none;
}

.js_sticky-sidebar .mini-footer .links a,
.bos-mini-footer .links a {
  font-size: 11px;
  font-weight: 550;
  color: #8b919b;
  text-decoration: none;
  line-height: 1.4;
}

.js_sticky-sidebar .mini-footer .links a:hover,
.bos-mini-footer .links a:hover {
  color: var(--link-color);
}

.bos-mini-footer-langs {
  min-width: 200px;
  padding: 6px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(25, 27, 32, 0.1) !important;
  overflow: hidden;
}

.bos-mini-footer-langs .js_scroller {
  max-height: 260px;
  overflow-y: auto;
}

.bos-mini-footer-langs .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: #515761;
}

.bos-mini-footer-langs .dropdown-item:hover {
  background: #f6f7f9;
  color: var(--bos-auth-ink, #191b20);
}

/* Auth / static page site footer */
.bos-site-footer-wrap {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  margin-bottom: 28px;
}

.bos-site-footer {
  align-items: center;
  row-gap: 12px;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px;
  background: #fff;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #858b95;
}

.bos-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px 2px;
  text-align: right;
}

.bos-site-footer-links a {
  font-size: 12px !important;
  font-weight: 550;
  color: #8b919b !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bos-site-footer-links a:not(:last-child)::after {
  content: "·";
  margin: 0 8px 0 6px;
  color: #c5cad2;
  font-weight: 700;
  pointer-events: none;
}

.bos-site-footer-links a:hover {
  color: var(--link-color) !important;
}

@media (max-width: 575.98px) {
  .bos-site-footer-links {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Night */
body.night-mode .js_sticky-sidebar > .card.bos-merits-side,
body.night-mode .js_sticky-sidebar > .card.bos-trending,
body.night-mode .js_sticky-sidebar > .card.bos-people,
body.night-mode .col-lg-8 .card.bos-merits-side,
html[data-bs-theme="dark"] .js_sticky-sidebar > .card.bos-merits-side,
html[data-bs-theme="dark"] .js_sticky-sidebar > .card.bos-trending,
html[data-bs-theme="dark"] .js_sticky-sidebar > .card.bos-people,
html[data-bs-theme="dark"] .col-lg-8 .card.bos-merits-side {
  --bos-rail-ink: #e2e8f0;
  --bos-rail-muted: #94a3b8;
  --bos-rail-line: rgba(255, 255, 255, 0.1);
  --bos-rail-soft: rgba(255, 255, 255, 0.05);
  --bos-rail-bs: color-mix(in srgb, var(--link-color) 22%, transparent);
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-merits-banner,
html[data-bs-theme="dark"] .bos-merits-banner {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--link-color) 18%, #1e252b) 0%,
      #262d34 100%
    ) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-merits-banner-kicker,
body.night-mode .bos-merit-item span,
body.night-mode .bos-trend-freq,
body.night-mode .bos-person-meta small,
body.night-mode .bos-people-head a,
body.night-mode .js_sticky-sidebar .mini-footer .copyrights,
body.night-mode .js_sticky-sidebar .mini-footer .links a,
body.night-mode .bos-mini-footer .copyrights,
body.night-mode .bos-mini-footer .links a,
body.night-mode .bos-site-footer-copy,
body.night-mode .bos-site-footer-links a,
html[data-bs-theme="dark"] .bos-merits-banner-kicker,
html[data-bs-theme="dark"] .bos-merit-item span,
html[data-bs-theme="dark"] .bos-trend-freq,
html[data-bs-theme="dark"] .bos-person-meta small,
html[data-bs-theme="dark"] .bos-people-head a,
html[data-bs-theme="dark"] .js_sticky-sidebar .mini-footer .copyrights,
html[data-bs-theme="dark"] .js_sticky-sidebar .mini-footer .links a,
html[data-bs-theme="dark"] .bos-mini-footer .copyrights,
html[data-bs-theme="dark"] .bos-mini-footer .links a,
html[data-bs-theme="dark"] .bos-site-footer-copy,
html[data-bs-theme="dark"] .bos-site-footer-links a {
  color: #94a3b8;
}

body.night-mode .bos-mini-footer-bar,
body.night-mode .bos-site-footer,
html[data-bs-theme="dark"] .bos-mini-footer-bar,
html[data-bs-theme="dark"] .bos-site-footer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-mini-footer .copyrights,
html[data-bs-theme="dark"] .bos-mini-footer .copyrights {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-mini-footer .language-dropdown,
body.night-mode .bos-site-footer .language-dropdown,
html[data-bs-theme="dark"] .bos-mini-footer .language-dropdown,
html[data-bs-theme="dark"] .bos-site-footer .language-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c5ccd6 !important;
}

body.night-mode .bos-mini-footer-langs,
html[data-bs-theme="dark"] .bos-mini-footer-langs {
  background: #262d34 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-mini-footer-langs .dropdown-item,
html[data-bs-theme="dark"] .bos-mini-footer-langs .dropdown-item {
  color: #c5ccd6;
}

body.night-mode .bos-mini-footer-langs .dropdown-item:hover,
html[data-bs-theme="dark"] .bos-mini-footer-langs .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eaed;
}

body.night-mode .bos-merits-banner-label,
body.night-mode .bos-trend-hash,
body.night-mode .bos-person-name,
html[data-bs-theme="dark"] .bos-merits-banner-label,
html[data-bs-theme="dark"] .bos-trend-hash,
html[data-bs-theme="dark"] .bos-person-name {
  color: #e2e8f0;
}

body.night-mode .bos-trend-item:hover,
body.night-mode .bos-person:hover,
body.night-mode .bos-merit-item:hover,
html[data-bs-theme="dark"] .bos-trend-item:hover,
html[data-bs-theme="dark"] .bos-person:hover,
html[data-bs-theme="dark"] .bos-merit-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-trend-rank,
body.night-mode .bos-person-action,
html[data-bs-theme="dark"] .bos-trend-rank,
html[data-bs-theme="dark"] .bos-person-action {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

body.night-mode .bos-merits-banner-btn,
html[data-bs-theme="dark"] .bos-merits-banner-btn {
  background: #e2e8f0;
  color: #111;
}

body.night-mode .bos-merits-banner-btn svg,
html[data-bs-theme="dark"] .bos-merits-banner-btn svg {
  stroke: #111;
}

/* —— User hover popover —— */
@media (min-width: 768px) {
  .user-popover-wrapper:has(.bos-popover),
  .user-popover-content.bos-popover {
    width: 320px;
  }

  .user-popover-content.bos-popover {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px !important;
    background: #fff;
    box-shadow:
      0 4px 6px -1px rgba(15, 23, 42, 0.06),
      0 18px 36px -12px rgba(15, 23, 42, 0.18);
    font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  }

  .bos-popover-cover {
    height: 88px !important;
    border-radius: 14px 14px 0 0 !important;
    background-color: color-mix(in srgb, var(--link-color) 35%, #1e293b) !important;
  }

  .bos-popover-avatar {
    left: 14px !important;
    bottom: -18px !important;
    padding: 2px !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--link-color) 25%, transparent) !important;
  }

  .bos-popover-avatar img {
    width: 52px !important;
    height: 52px !important;
  }

  .bos-popover-info {
    left: 78px !important;
    bottom: 6px !important;
    right: 12px;
  }

  .bos-popover-info a.name {
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.25;
  }

  .bos-popover-handle {
    font-size: 11px;
    opacity: 0.9;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.85);
    margin-top: 1px;
  }

  .bos-popover-info .info {
    font-size: 11px !important;
    margin-top: 2px;
  }

  .bos-popover-meta {
    padding: 26px 14px 8px 14px !important;
    font-size: 12px !important;
    color: #4b4f56 !important;
  }

  .bos-popover-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px !important;
    line-height: 1.35;
  }

  .bos-popover-meta-row .svg-container,
  .bos-popover-meta-row .bos-sb-ico {
    flex: 0 0 15px;
    width: 15px !important;
    height: 15px !important;
    margin: 1px 0 0 !important;
    color: #8a8d91;
  }

  .bos-popover-meta-row strong,
  .bos-popover-meta-row .text-primary {
    color: var(--link-color) !important;
    font-weight: 600;
  }

  .bos-popover-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 12px !important;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    text-align: left !important;
  }

  .bos-popover-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 !important;
    padding: 7px 11px !important;
    border-radius: 8px !important;
    border: 0 !important;
    font-family: var(--body-font-family, Poppins, Helvetica, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2;
    box-shadow: none !important;
  }

  .bos-popover-btn .svg-container,
  .bos-popover-btn .bos-sb-ico {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }

  .bos-popover-btn--primary {
    background: var(--link-color) !important;
    color: #fff !important;
  }

  .bos-popover-btn--primary .svg-container,
  .bos-popover-btn--primary svg {
    color: #fff !important;
    stroke: #fff;
  }

  .bos-popover-btn--ok {
    background: color-mix(in srgb, #16a34a 14%, transparent) !important;
    color: #15803d !important;
  }

  .bos-popover-btn--muted {
    background: color-mix(in srgb, #f59e0b 16%, transparent) !important;
    color: #b45309 !important;
  }

  .bos-popover-btn--ghost {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #4b4f56 !important;
  }

  .bos-popover-btn--ico {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    background: rgba(15, 23, 42, 0.05) !important;
    color: #4b4f56 !important;
  }

  body.night-mode .user-popover-content.bos-popover,
  html[data-bs-theme="dark"] .user-popover-content.bos-popover {
    background: var(--card-dark-color, #262d34);
    border-color: rgba(255, 255, 255, 0.08);
  }

  body.night-mode .bos-popover-avatar,
  html[data-bs-theme="dark"] .bos-popover-avatar {
    background: var(--card-dark-color, #262d34) !important;
  }

  body.night-mode .bos-popover-meta,
  html[data-bs-theme="dark"] .bos-popover-meta {
    color: #cbd5e1 !important;
  }

  body.night-mode .bos-popover-footer,
  html[data-bs-theme="dark"] .bos-popover-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  body.night-mode .bos-popover-btn--ghost,
  body.night-mode .bos-popover-btn--ico,
  html[data-bs-theme="dark"] .bos-popover-btn--ghost,
  html[data-bs-theme="dark"] .bos-popover-btn--ico {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #e2e8f0 !important;
  }
}

/* —— User account dropdown —— */
.bos-user-dd {
  min-width: 268px !important;
  max-width: min(92vw, 300px);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  padding: 8px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 16px 32px -8px rgba(15, 23, 42, 0.14) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.18) transparent;
}

.bos-user-dd::-webkit-scrollbar {
  width: 5px;
}

.bos-user-dd::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 8px;
}

.bos-user-dd .dropdown-divider {
  margin: 6px 4px;
  border-top-color: rgba(15, 23, 42, 0.08);
  opacity: 1;
}

.bos-user-dd-profile {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 10px !important;
  margin-bottom: 2px;
  border-radius: 10px !important;
  white-space: normal !important;
}

.bos-user-dd-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.bos-user-dd-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.bos-user-dd-name {
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-user-dd-handle {
  font-size: 12px;
  color: #8a8d91;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-user-dd-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.3;
  color: inherit !important;
  white-space: nowrap;
}

.bos-user-dd-item:hover,
.bos-user-dd-item:focus,
.bos-user-dd-profile:hover,
.bos-user-dd-profile:focus {
  background: rgba(15, 23, 42, 0.05) !important;
  color: inherit !important;
}

.bos-user-dd-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  color: #65676b;
}

.bos-user-dd-ico .svg-container,
.bos-user-dd-ico .bos-sb-ico {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}

.bos-user-dd-ico svg {
  width: 15px !important;
  height: 15px !important;
  display: block;
}

.bos-user-dd-item:hover .bos-user-dd-ico {
  background: color-mix(in srgb, var(--link-color) 12%, transparent);
  color: var(--link-color);
}

.bos-user-dd-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-user-dd-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--link-color);
  background: color-mix(in srgb, var(--link-color) 10%, transparent);
}

.bos-user-dd-badge--muted {
  color: #65676b;
  background: rgba(15, 23, 42, 0.06);
}

.bos-user-dd-item--out:hover .bos-user-dd-ico {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.bos-user-dd-item--out:hover .bos-user-dd-label {
  color: #dc3545;
}

.bos-user-dd-item--muted {
  opacity: 0.72;
  font-size: 12px !important;
}

.bos-user-dd-item--muted .bos-user-dd-ico {
  background: transparent;
}

/* hide leftover default badge markup if any plugin injects */
.bos-user-dd .badge.bg-light {
  display: none;
}

/* plugin-injected plain items still get soft padding */
.bos-user-dd > .dropdown-item:not(.bos-user-dd-item):not(.bos-user-dd-profile) {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500;
}

body.night-mode .bos-user-dd,
html[data-bs-theme="dark"] .bos-user-dd {
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 16px 32px -8px rgba(0, 0, 0, 0.4) !important;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body.night-mode .bos-user-dd .dropdown-divider,
html[data-bs-theme="dark"] .bos-user-dd .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-user-dd-handle,
html[data-bs-theme="dark"] .bos-user-dd-handle {
  color: #94a3b8;
}

body.night-mode .bos-user-dd-item:hover,
body.night-mode .bos-user-dd-item:focus,
body.night-mode .bos-user-dd-profile:hover,
body.night-mode .bos-user-dd-profile:focus,
html[data-bs-theme="dark"] .bos-user-dd-item:hover,
html[data-bs-theme="dark"] .bos-user-dd-item:focus,
html[data-bs-theme="dark"] .bos-user-dd-profile:hover,
html[data-bs-theme="dark"] .bos-user-dd-profile:focus {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-user-dd-ico,
html[data-bs-theme="dark"] .bos-user-dd-ico {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

body.night-mode .bos-user-dd-badge--muted,
html[data-bs-theme="dark"] .bos-user-dd-badge--muted {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
}

/* —— Create (+) dropdown —— */
.bos-create-dd {
  min-width: 248px !important;
  max-width: min(92vw, 280px);
  max-height: min(80vh, 520px);
  overflow-y: auto;
  padding: 8px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 18px 40px -16px rgba(20, 24, 32, 0.22) !important;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 24, 32, 0.16) transparent;
}

.bos-create-dd::-webkit-scrollbar {
  width: 5px;
}

.bos-create-dd::-webkit-scrollbar-thumb {
  background: rgba(20, 24, 32, 0.16);
  border-radius: 8px;
}

.bos-create-dd-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.3;
  color: #191b20 !important;
  white-space: nowrap;
}

.bos-create-dd-item:hover,
.bos-create-dd-item:focus {
  background: #f6f7f9 !important;
  color: #191b20 !important;
}

.bos-create-dd-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f6f7f9;
  color: #747b85;
}

.bos-create-dd-ico .svg-container,
.bos-create-dd-ico .bos-sb-ico,
.bos-create-dd-ico .main-icon {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}

.bos-create-dd-ico svg {
  width: 15px !important;
  height: 15px !important;
  display: block;
}

.bos-create-dd-item:hover .bos-create-dd-ico {
  background: color-mix(in srgb, var(--link-color) 12%, transparent);
  color: var(--link-color);
}

.bos-create-dd-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-create-dd-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--link-color);
  background: color-mix(in srgb, var(--link-color) 10%, transparent);
}

body.night-mode .bos-create-dd,
html[data-bs-theme="dark"] .bos-create-dd {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 16px 32px -8px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .bos-create-dd-item,
html[data-bs-theme="dark"] .bos-create-dd-item {
  color: #e2e8f0 !important;
}

body.night-mode .bos-create-dd-item:hover,
body.night-mode .bos-create-dd-item:focus,
html[data-bs-theme="dark"] .bos-create-dd-item:hover,
html[data-bs-theme="dark"] .bos-create-dd-item:focus {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-create-dd-ico,
html[data-bs-theme="dark"] .bos-create-dd-ico {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* —— Publisher (compose box) — mockup v4 —— */
.bos-publisher {
  --bos-pub-ink: #191b20;
  --bos-pub-muted: #858b95;
  --bos-pub-line: #e9ebef;
  --bos-pub-soft: #f6f7f9;
  --bos-pub-bs: color-mix(in srgb, var(--link-color) 12%, #fff);
  position: relative;
  margin-bottom: 18px !important;
  border: 1px solid var(--bos-pub-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 18px 50px -28px rgba(20, 24, 32, 0.18) !important;
  overflow: hidden;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  color: var(--bos-pub-ink);
}

body.publisher-focus .bos-publisher {
  box-shadow: 0 24px 70px -28px rgba(20, 24, 32, 0.22) !important;
}

/* user + editor */
.bos-publisher .publisher-message.bos-pub-compose {
  display: block !important;
  padding: 14px 16px 6px !important;
  min-height: 0 !important;
  position: relative;
}

.bos-publisher .bos-pub-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.bos-publisher .publisher-avatar,
.bos-publisher .bos-pub-compose .publisher-avatar {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  object-fit: cover;
  flex: 0 0 36px;
}

.bos-publisher .bos-pub-user-meta { flex: 1; min-width: 0; }

.bos-publisher .bos-pub-user-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bos-pub-ink);
}

.bos-publisher .colored-text-wrapper,
.bos-publisher .colored-text-wrapper .quill-editor {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bos-publisher .ql-editor {
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 15px !important;
  line-height: 1.45 !important;
  min-height: 52px !important;
  padding: 8px 0 6px !important;
  color: var(--bos-pub-ink);
}

body.publisher-focus .bos-publisher .ql-editor {
  min-height: 72px !important;
}

.bos-publisher .ql-editor.ql-blank::before {
  font-style: normal !important;
  font-weight: 500 !important;
  color: #afb3ba !important;
  font-size: 15px !important;
  left: 0 !important;
  right: 0 !important;
}

.bos-publisher .publisher-meta {
  margin: 0 20px 12px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--bos-pub-line) !important;
  border-radius: 15px !important;
  background: #f9fafb !important;
}

.bos-publisher .publisher-attachments {
  margin: 0 20px 10px;
  padding: 0 !important;
}

/* tools strip — sits on the footer divider, no boxed chrome */
.bos-publisher .publisher-tools-tabs,
.bos-publisher .bos-pub-tools {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.bos-publisher .bos-pub-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 16px 8px;
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.bos-publisher .bos-pub-bar-label {
  margin-right: auto;
  padding-left: 2px;
  font-size: 12px;
  font-weight: 650;
  color: #6b7280;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bos-publisher .bos-pub-quick {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}

.bos-publisher .bos-pub-tool,
.bos-publisher .bos-pub-quick .publisher-tools-tab {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #747b85 !important;
  display: inline-grid !important;
  place-items: center;
  cursor: pointer;
  position: relative;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.bos-publisher .bos-pub-tool .main-icon,
.bos-publisher .bos-pub-tool .bos-sb-ico,
.bos-publisher .bos-pub-tool .svg-container {
  color: #747b85 !important;
}

.bos-publisher .bos-pub-tool svg {
  stroke: #747b85 !important;
}

.bos-publisher .bos-pub-tool:hover,
.bos-publisher .bos-pub-quick .publisher-tools-tab:hover {
  background: var(--bos-pub-soft) !important;
  color: #25282e !important;
}

.bos-publisher .bos-pub-tool:hover svg,
.bos-publisher .bos-pub-quick .publisher-tools-tab:hover svg {
  stroke: #25282e !important;
}

.bos-publisher .bos-pub-tool.active,
.bos-publisher .bos-pub-tool.activated,
.bos-publisher .bos-pub-quick .publisher-tools-tab.active,
.bos-publisher .bos-pub-quick .publisher-tools-tab.activated,
.bos-publisher .bos-pub-more-btn.is-on {
  background: var(--bos-pub-bs) !important;
  color: var(--link-color) !important;
  border-color: transparent !important;
}

.bos-publisher .bos-pub-tool.active svg,
.bos-publisher .bos-pub-tool.activated svg,
.bos-publisher .bos-pub-more-btn.is-on svg {
  stroke: var(--link-color) !important;
}

.bos-publisher .bos-pub-more-btn.is-on .bos-pub-more-plus {
  transform: rotate(45deg);
}

.bos-publisher .bos-pub-more-btn.is-on .bos-pub-more-plus,
.bos-publisher .bos-pub-more-btn.is-on .bos-pub-more-lbl {
  color: var(--link-color) !important;
}

.bos-publisher .bos-pub-tool .svg-container,
.bos-publisher .bos-pub-tool .bos-sb-ico,
.bos-publisher .bos-pub-quick .svg-container {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  color: inherit !important;
}

.bos-publisher .bos-pub-tool svg,
.bos-publisher .bos-pub-quick svg {
  width: 17px !important;
  height: 17px !important;
  stroke: currentColor !important;
}

.bos-publisher .bos-pub-tool.attach .x-uploader,
.bos-publisher .bos-pub-tool .js_x-uploader,
.bos-publisher .bos-pub-tool.attach form {
  display: grid !important;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.bos-publisher .bos-pub-more-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 0 10px 0 8px !important;
  gap: 5px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  letter-spacing: 0;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #515761 !important;
  white-space: nowrap;
}

.bos-publisher .bos-pub-more-plus {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
  display: inline-block;
  transition: transform 0.15s ease;
}

.bos-publisher .bos-pub-more-lbl {
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  color: inherit;
}

.bos-publisher .bos-pub-more-btn:hover {
  border-color: transparent !important;
  background: var(--bos-pub-soft) !important;
  color: var(--link-color) !important;
}

/* types grid — soft sheet under the strip */
.bos-publisher .bos-pub-types {
  display: none;
  margin: 0;
  padding: 10px 14px 12px;
  border: 0;
  border-top: 1px solid var(--bos-pub-line);
  border-radius: 0;
  background: var(--bos-pub-soft);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.bos-publisher .bos-pub-types.is-on {
  display: grid;
}

.bos-publisher .bos-pub-type,
.bos-publisher a.bos-pub-type {
  border: 0 !important;
  background: transparent !important;
  border-radius: 11px !important;
  padding: 9px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  text-align: left;
  color: #515761 !important;
  text-decoration: none !important;
  cursor: pointer;
  min-width: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.bos-publisher .bos-pub-type:hover,
.bos-publisher a.bos-pub-type:hover {
  background: #fff !important;
  color: var(--bos-pub-ink) !important;
}

.bos-publisher .bos-pub-type.active,
.bos-publisher .bos-pub-type.activated {
  background: var(--bos-pub-bs) !important;
  color: var(--link-color) !important;
}

.bos-publisher .bos-pub-ti {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f2f4f6;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  color: inherit;
}

.bos-publisher .bos-pub-type.active .bos-pub-ti,
.bos-publisher .bos-pub-type.activated .bos-pub-ti {
  background: #fff;
}

.bos-publisher .bos-pub-ti .svg-container,
.bos-publisher .bos-pub-ti .bos-sb-ico {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: inherit !important;
}

.bos-publisher .bos-pub-ti svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
}

.bos-publisher .bos-pub-tt {
  min-width: 0;
  flex: 1;
}

.bos-publisher .bos-pub-tt b {
  display: block !important;
  font-size: 12.5px !important;
  font-weight: 550 !important;
  line-height: 1.25 !important;
  color: inherit;
  letter-spacing: -0.01em;
}

.bos-publisher .bos-pub-tt small {
  display: block !important;
  color: #999fa8 !important;
  font-size: 11px !important;
  font-weight: 450 !important;
  margin-top: 2px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}

.bos-publisher .bos-pub-type:hover .bos-pub-tt small,
.bos-publisher a.bos-pub-type:hover .bos-pub-tt small {
  color: #8b919a !important;
}

.bos-publisher .bos-pub-type.active .bos-pub-tt small,
.bos-publisher .bos-pub-type.activated .bos-pub-tt small {
  color: color-mix(in srgb, var(--link-color) 55%, #999fa8) !important;
}

.bos-publisher .bos-pub-type.attach .x-uploader,
.bos-publisher .bos-pub-type .js_x-uploader,
.bos-publisher .bos-pub-type.attach form {
  display: contents;
}

.bos-publisher .publisher-tools-tab .badge { display: none !important; }

.bos-publisher .publisher-tools-tab .svg-container path[fill]:not([fill="none"]),
.bos-publisher .publisher-tools-tab .svg-container circle[fill]:not([fill="none"]),
.bos-publisher .publisher-tools-tab .svg-container rect[fill]:not([fill="none"]) {
  fill: currentColor;
}

/* options — panel above footer row; trigger button in footer */
.bos-publisher .bos-pub-opts-details {
  margin: 0 0 10px;
}

.bos-publisher .bos-pub-opts-sum-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.bos-publisher .bos-pub-opts-sum {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--bos-pub-line);
  border-radius: 10px;
  background: #f6f7f9;
  color: #515761;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  order: 2;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.bos-publisher .bos-pub-opts-sum .svg-container,
.bos-publisher .bos-pub-opts-sum .bos-sb-ico {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  color: inherit !important;
}

.bos-publisher .bos-pub-opts-sum svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
}

.bos-publisher .bos-pub-opts-sum:hover {
  background: #eef0f3;
  color: var(--bos-pub-ink);
  border-color: #dde1e6;
}

.bos-publisher .bos-pub-opts-sum.is-on {
  background: var(--bos-pub-bs);
  border-color: color-mix(in srgb, var(--link-color) 28%, var(--bos-pub-line));
  color: var(--link-color);
}

.bos-publisher .publisher-footer-options,
.bos-publisher .bos-pub-opts {
  display: none;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--bos-pub-line) !important;
  border-radius: 14px;
  background: #fafbfc !important;
  box-shadow: none;
  position: static;
  width: auto;
}

.bos-publisher .bos-pub-opts-details[open] > .bos-pub-opts,
.bos-publisher .bos-pub-opts-details[open] > .publisher-footer-options {
  display: block;
}

.bos-publisher .bos-pub-opt,
.bos-publisher .publisher-footer-options .form-table-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 10px;
  min-height: 0;
}

.bos-publisher .bos-pub-opt:hover,
.bos-publisher .publisher-footer-options .form-table-row:hover {
  background: var(--bos-pub-soft);
}

.bos-publisher .bos-pub-opt-ico,
.bos-publisher .publisher-footer-options .form-table-row > .avatar {
  flex: 0 0 28px;
  width: 28px !important;
  height: 28px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 8px;
  background: #f2f4f6;
  color: #747b85;
}

.bos-publisher .bos-pub-opt-ico .svg-container,
.bos-publisher .bos-pub-opt-ico .bos-sb-ico,
.bos-publisher .publisher-footer-options .form-table-row > .avatar .svg-container {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.bos-publisher .bos-pub-opt-ico svg,
.bos-publisher .publisher-footer-options .form-table-row > .avatar svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor !important;
}

.bos-publisher .bos-pub-opt-copy { flex: 1; min-width: 0; }

.bos-publisher .publisher-footer-options .form-label,
.bos-publisher .bos-pub-opt .form-label {
  font-size: 12px !important;
  font-weight: 650 !important;
  margin-bottom: 0 !important;
  color: var(--bos-pub-ink) !important;
  line-height: 1.25 !important;
}

.bos-publisher .publisher-footer-options .form-text,
.bos-publisher .bos-pub-opt .form-text,
.bos-publisher .bos-pub-opt-copy .form-text {
  display: block !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #999fa8 !important;
}

.bos-publisher .bos-pub-opt-extra > .form-text {
  display: block !important;
  margin-top: 6px !important;
  font-size: 10px !important;
  color: #999fa8 !important;
}

.bos-publisher .bos-pub-opt-switch { margin-left: auto; flex: 0 0 auto; }
.bos-publisher .bos-pub-opt-switch .switch {
  margin: 0;
  width: 36px;
  height: 20px;
}
.bos-publisher .bos-pub-opt-switch .switch .slider:before {
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
}
.bos-publisher .bos-pub-opt-switch .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.bos-publisher .bos-pub-opt-extra {
  margin: 0 4px 6px;
  padding: 0 8px 6px 38px;
}

/* footer / bottom */
.bos-publisher .publisher-footer {
  display: block !important;
  margin: 0 !important;
  padding: 13px 20px !important;
  border-top: 1px solid var(--bos-pub-line) !important;
  background: #fff;
  text-align: left !important;
  overflow: visible;
}

.bos-publisher .publisher-footer-buttons {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
}

.bos-publisher .publisher-footer-buttons .btn-group {
  flex: 0 0 auto;
  order: 1;
}

.bos-publisher .publisher-footer-buttons .btn-group .btn,
.bos-publisher .publisher-footer-buttons > .btn.btn-light {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px !important;
  border: 1px solid var(--bos-pub-line) !important;
  background: #f6f7f9 !important;
  border-radius: 10px !important;
  color: #515761 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-publisher .publisher-footer-buttons .btn-group .btn:hover,
.bos-publisher .publisher-footer-buttons > .btn.btn-light:hover {
  background: #eef0f3 !important;
  color: var(--bos-pub-ink) !important;
}

.bos-publisher .publisher-footer-buttons .btn.x-hidden,
.bos-publisher .publisher-footer-buttons > .btn.btn-light.x-hidden,
.bos-publisher .publisher-footer-buttons .js_publisher-privacy-public {
  display: none !important;
}

.bos-publisher .publisher-footer-buttons .btn-group .dropdown-menu {
  border: 1px solid var(--bos-pub-line);
  border-radius: 12px;
  box-shadow: 0 14px 40px -20px rgba(20, 24, 32, 0.28);
  padding: 6px;
  min-width: 160px;
}

.bos-publisher .publisher-footer-buttons .btn-group .dropdown-item {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  color: #515761;
}

.bos-publisher .publisher-footer-buttons .d-grid {
  margin-left: auto;
  order: 3;
  display: block !important;
}

.bos-publisher .publisher-footer-buttons .js_publisher,
.bos-publisher .bos-pub-share {
  min-width: 96px;
  height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-publisher .publisher-footer-buttons .js_publisher:hover,
.bos-publisher .bos-pub-share:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-publisher .publisher-footer-buttons .js_publisher .fa-paper-plane,
.bos-publisher .publisher-footer-buttons .js_publisher .ml5 {
  display: none !important;
}

.bos-publisher .publisher-footer-buttons .js_publisher span {
  margin: 0 !important;
}

@media (max-width: 620px) {
  .bos-publisher { border-radius: 18px !important; }
  .bos-publisher .bos-pub-bar {
    padding: 4px 12px 6px;
    min-height: 44px;
  }
  .bos-publisher .bos-pub-bar-label {
    font-size: 11px;
  }
  .bos-publisher .bos-pub-more-lbl {
    display: none;
  }
  .bos-publisher .bos-pub-more-btn {
    width: 36px !important;
    padding: 0 !important;
  }
  .bos-publisher .bos-pub-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bos-publisher .ql-editor { font-size: 14px !important; }
  .bos-publisher .ql-editor.ql-blank::before { font-size: 14px !important; }
  .bos-publisher .bos-pub-opts-sum span { display: none; }
  .bos-publisher .bos-pub-opts-sum { padding: 0 10px; }
}

body.night-mode .bos-publisher,
html[data-bs-theme="dark"] .bos-publisher {
  --bos-pub-ink: #e2e8f0;
  --bos-pub-muted: #94a3b8;
  --bos-pub-line: rgba(255, 255, 255, 0.1);
  --bos-pub-soft: rgba(255, 255, 255, 0.05);
  --bos-pub-bs: color-mix(in srgb, var(--link-color) 22%, transparent);
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-publisher .bos-pub-bar,
body.night-mode .bos-publisher .publisher-footer,
html[data-bs-theme="dark"] .bos-publisher .bos-pub-bar,
html[data-bs-theme="dark"] .bos-publisher .publisher-footer {
  background: transparent;
}

body.night-mode .bos-publisher .bos-pub-types,
html[data-bs-theme="dark"] .bos-publisher .bos-pub-types {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-publisher .bos-pub-type:hover,
html[data-bs-theme="dark"] .bos-publisher .bos-pub-type:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-publisher .bos-pub-tool:hover,
html[data-bs-theme="dark"] .bos-publisher .bos-pub-tool:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-publisher .bos-pub-ti,
html[data-bs-theme="dark"] .bos-publisher .bos-pub-ti {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .bos-publisher .publisher-footer-buttons .js_publisher,
html[data-bs-theme="dark"] .bos-publisher .publisher-footer-buttons .js_publisher {
  background: #fff !important;
  color: #111 !important;
}

/* —— Tagify user search (avatars) —— */
.bos-tagify-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 28px;
  background: rgba(15, 23, 42, 0.06);
}

.bos-tagify-avatar--empty {
  display: inline-block;
}

.bos-tagify-tag-body {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
}

.bos-tagify-tag-body .bos-tagify-avatar {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.bos-tagify-handle {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8a8d91;
  line-height: 1.2;
}

.tagify__tag .bos-tagify-handle {
  display: none;
}

.bos-tagify-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 10px !important;
}

.bos-tagify-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.bos-tagify-name {
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tagify__dropdown.bos-tagify-dd {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.tagify__dropdown.bos-tagify-dd .tagify__dropdown__item--active {
  background: color-mix(in srgb, var(--link-color) 10%, transparent) !important;
}

/* —— Send Merit modal —— */
.modal-content:has(.bos-merit-modal),
.modal-content:has(.bos-merit-modal-head) {
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.28) !important;
}

.bos-merit-modal-head.modal-header {
  padding: 16px 18px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #fff !important;
}

.bos-merit-modal-head .modal-title .svg-container,
.bos-merit-modal-head .modal-title .main-icon {
  color: var(--link-color) !important;
}

.bos-merit-modal-head .modal-title .svg-container *,
.bos-merit-modal-head .modal-title .main-icon *,
.bos-merit-modal-head .modal-title path {
  fill: none !important;
  stroke: currentColor !important;
}

.bos-merit-balance {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid #e9ebef;
  border-radius: 14px;
  background: #f6f7f9;
}

.bos-merit-balance-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e9ebef;
  color: var(--link-color);
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.04);
}

.bos-merit-balance-ico .svg-container,
.bos-merit-balance-ico .main-icon {
  margin: 0 !important;
  color: var(--link-color) !important;
}

.bos-merit-balance-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

.bos-merit-balance-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.bos-merit-balance-row strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: #191b20;
  letter-spacing: -0.02em;
}

.bos-merit-balance-row span {
  font-size: 13px;
  font-weight: 600;
  color: #515761;
}

.bos-merit-field {
  margin-bottom: 14px !important;
}

.bos-merit-field.mb0 {
  margin-bottom: 0 !important;
}

.bos-merit-hint.form-text {
  margin-top: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #858b95 !important;
  line-height: 1.4;
}

.bos-merit-modal .form-control,
.bos-merit-modal .tagify {
  border: 1px solid #e9ebef !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  box-shadow: none !important;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #191b20 !important;
}

.bos-merit-modal .tagify {
  padding: 6px 8px !important;
  min-height: 44px;
}

.bos-merit-modal .tagify:hover {
  background: #f6f7f9 !important;
}

.bos-merit-modal .tagify.tagify--focus,
.bos-merit-modal .form-control:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-merit-modal .tagify__tag {
  border-radius: 8px !important;
  background: #f6f7f9 !important;
}

.bos-merit-modal .tagify__tag > div {
  color: #191b20 !important;
  font-weight: 600 !important;
}

.bos-merit-modal .tagify__input {
  color: #191b20 !important;
}

.bos-merit-modal .tagify__input::placeholder {
  color: #858b95 !important;
  font-weight: 500;
}

.bos-merit-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .bos-merit-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bos-merit-cat {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.bos-merit-cat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bos-merit-cat-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px 10px;
  border-radius: 12px;
  border: 1px solid #e9ebef;
  background: #fff;
  text-align: center;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.bos-merit-cat-face img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bos-merit-cat-face > span {
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  color: #515761;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-merit-cat:hover .bos-merit-cat-face {
  border-color: #dde1e7;
  background: #fafbfc;
}

.bos-merit-cat input:checked + .bos-merit-cat-face {
  border-color: color-mix(in srgb, var(--link-color) 55%, #e9ebef);
  background: color-mix(in srgb, var(--link-color) 8%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.bos-merit-cat input:checked + .bos-merit-cat-face > span {
  color: var(--link-color);
}

.bos-merit-upload.x-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 96px;
  border-radius: 12px !important;
  border: 1px dashed #d5d9e0 !important;
  background: #fafbfc !important;
  overflow: hidden;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.bos-merit-upload.x-image:hover {
  border-color: color-mix(in srgb, var(--link-color) 40%, #d5d9e0) !important;
  background: #f6f7f9 !important;
}

.bos-merit-upload-face {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #858b95;
  pointer-events: none;
}

.bos-merit-upload-face span {
  font-size: 12px;
  font-weight: 650;
}

.bos-merit-upload .js_x-uploader {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 2;
}

.bos-merit-upload .x-image-loader {
  z-index: 3;
}

.bos-merit-modal-foot.modal-footer {
  gap: 8px;
  padding: 12px 18px !important;
  border-top: 1px solid #e9ebef !important;
  background: #fafbfc !important;
}

.bos-merit-submit {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.bos-merit-submit .svg-container,
.bos-merit-submit .main-icon {
  margin: 0 !important;
  color: inherit !important;
}

.bos-merit-submit svg {
  stroke: currentColor;
}

body.night-mode .modal-content:has(.bos-merit-modal),
body.night-mode .modal-content:has(.bos-merit-modal-head),
html[data-bs-theme="dark"] .modal-content:has(.bos-merit-modal),
html[data-bs-theme="dark"] .modal-content:has(.bos-merit-modal-head) {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-merit-balance,
html[data-bs-theme="dark"] .bos-merit-balance {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-merit-balance-ico,
html[data-bs-theme="dark"] .bos-merit-balance-ico {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-merit-balance-kicker,
html[data-bs-theme="dark"] .bos-merit-balance-kicker {
  color: #94a3b8;
}

body.night-mode .bos-merit-balance-row strong,
html[data-bs-theme="dark"] .bos-merit-balance-row strong {
  color: #e2e8f0;
}

body.night-mode .bos-merit-balance-row span,
html[data-bs-theme="dark"] .bos-merit-balance-row span {
  color: #cbd5e1;
}

body.night-mode .bos-merit-cat-face,
html[data-bs-theme="dark"] .bos-merit-cat-face {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-merit-cat-face > span,
html[data-bs-theme="dark"] .bos-merit-cat-face > span {
  color: #cbd5e1;
}

body.night-mode .bos-merit-upload.x-image,
html[data-bs-theme="dark"] .bos-merit-upload.x-image {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.night-mode .bos-merit-modal .form-control,
body.night-mode .bos-merit-modal .tagify,
html[data-bs-theme="dark"] .bos-merit-modal .form-control,
html[data-bs-theme="dark"] .bos-merit-modal .tagify {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-tagify-handle,
html[data-bs-theme="dark"] .bos-tagify-handle {
  color: #94a3b8;
}

/* —— Feed post cards — soft console (independent of skin) —— */
.post.bos-post {
  --bos-post-ink: #191b20;
  --bos-post-muted: #858b95;
  --bos-post-line: #e9ebef;
  --bos-post-soft: #f6f7f9;
  position: relative;
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 12px 36px -26px rgba(20, 24, 32, 0.18) !important;
  overflow: visible !important;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  color: var(--bos-post-ink);
  z-index: 1;
}

.post.bos-post:has(.dropdown-menu.show),
.post.bos-post:has(.dropdown.show) {
  z-index: 40;
}

.post.bos-post.boosted {
  border-color: color-mix(in srgb, #ffa412 55%, var(--bos-post-line)) !important;
}

.post.bos-post .post-body {
  padding: 0;
  overflow: visible;
}

.post.bos-post .post-header {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 6px !important;
  margin-bottom: 0 !important;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.post.bos-post .post-avatar {
  display: block !important;
  padding: 0 !important;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  position: relative;
}

.post.bos-post .post-avatar-picture {
  min-width: 42px !important;
  min-height: 42px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  padding-top: 0 !important;
  border-radius: 12px !important;
  background-color: #eef0f3;
  background-size: cover;
  background-position: center;
  display: block !important;
}

.post.bos-post .post-avatar .online-dot {
  position: absolute !important;
  top: auto !important;
  right: -2px !important;
  bottom: -2px !important;
  left: auto !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  background: #22c55e !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
  /* kill FA glyph — solid CSS status pip */
  text-indent: -9999px;
}

/* Keep classic meta flow — menu pinned top-right (no flex-order explosion) */
.post.bos-post .post-meta {
  position: relative;
  display: block !important;
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 2px 36px 0 0 !important;
  overflow: visible;
  line-height: 1.25;
}

.post.bos-post .post-meta > .float-end.dropdown,
.post.bos-post .post-header .float-end.dropdown {
  position: absolute !important;
  top: 0;
  right: 0;
  float: none !important;
  margin: 0 !important;
  z-index: 30;
}

.post.bos-post .post-meta > .js_user-popover {
  display: inline;
  vertical-align: middle;
}

.post.bos-post .post-author {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--bos-post-ink) !important;
  text-decoration: none !important;
  line-height: 1.25;
}

.post.bos-post .post-author:hover {
  color: var(--link-color) !important;
}

.post.bos-post .verified-badge {
  display: inline-flex !important;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.post.bos-post .verified-badge .svg-container {
  width: 14px !important;
  height: 14px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
}

.post.bos-post .verified-badge .svg-container svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

.post.bos-post .post-title:empty {
  display: none !important;
}

.post.bos-post .post-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--bos-post-muted);
}

.post.bos-post .post-time {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  font-weight: 500;
  color: #999fa8;
  line-height: 1.3;
}

.post.bos-post .post-time a {
  color: #999fa8 !important;
  text-decoration: none !important;
}

.post.bos-post .post-time a:hover {
  color: var(--link-color) !important;
}

.post.bos-post .post-time .btn-group {
  display: inline-flex !important;
  align-items: center;
  vertical-align: middle;
  margin: 0 !important;
}

.post.bos-post .post-time .btn-group .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-height: 0 !important;
  padding: 0 2px !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #999fa8 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

.post.bos-post .post-time .btn-group .btn:hover {
  color: var(--link-color) !important;
}

.post.bos-post .post-time .btn-group .dropdown-toggle::after {
  display: none !important;
}

.post.bos-post .post-time .btn-group-icon {
  font-size: 11px;
  line-height: 1;
}

.post.bos-post .post-header .dropdown-toggle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #858b95;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.post.bos-post .post-header .dropdown-toggle:hover,
.post.bos-post .post-header .dropdown-toggle.show {
  background: var(--bos-post-soft);
  color: var(--bos-post-ink);
}

.post.bos-post .post-header .dropdown-toggle::after {
  display: none;
}

.post.bos-post .post-header .dropdown-toggle .fa-chevron-down {
  font-size: 11px;
}

/* Soft post action menu */
.post.bos-post .action-dropdown-menu {
  z-index: 1050 !important;
  margin-top: 6px !important;
  padding: 8px !important;
  min-width: 248px !important;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 18px 40px -18px rgba(20, 24, 32, 0.28) !important;
  overflow: visible !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item {
  display: block;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  margin: 0 !important;
  color: var(--bos-post-ink) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.25;
  white-space: normal;
  background: transparent !important;
  transition: background 0.12s ease;
}

.post.bos-post .action-dropdown-menu .dropdown-item:hover,
.post.bos-post .action-dropdown-menu .dropdown-item:focus {
  background: var(--bos-post-soft) !important;
  color: var(--bos-post-ink) !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item .action {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
}

.post.bos-post .action-dropdown-menu .dropdown-item .action.no-desc {
  padding: 0 !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item .action span {
  flex: 1;
  min-width: 0;
}

.post.bos-post .action-dropdown-menu .dropdown-item .action-desc {
  margin: 2px 0 0 26px;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--bos-post-muted) !important;
  line-height: 1.35;
}

.post.bos-post .action-dropdown-menu .dropdown-item .svg-container,
.post.bos-post .action-dropdown-menu .dropdown-item .main-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border-radius: 8px;
  background: var(--bos-post-soft);
  overflow: hidden;
  color: #747b85 !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item:hover .svg-container,
.post.bos-post .action-dropdown-menu .dropdown-item:hover .main-icon {
  background: #fff;
}

.post.bos-post .action-dropdown-menu .dropdown-item .svg-container svg,
.post.bos-post .action-dropdown-menu .dropdown-item .main-icon svg {
  width: 15px !important;
  height: 15px !important;
  display: block;
}

.post.bos-post .action-dropdown-menu .dropdown-item .svg-container *,
.post.bos-post .action-dropdown-menu .dropdown-item .svg-container path,
.post.bos-post .action-dropdown-menu .dropdown-item .svg-container path[fill],
.post.bos-post .action-dropdown-menu .dropdown-item .main-icon *,
.post.bos-post .action-dropdown-menu .dropdown-item .main-icon path {
  fill: #747b85 !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item:hover .svg-container *,
.post.bos-post .action-dropdown-menu .dropdown-item:hover .main-icon * {
  fill: var(--link-color) !important;
}

.post.bos-post .action-dropdown-menu .dropdown-divider {
  margin: 6px 4px !important;
  border-color: var(--bos-post-line) !important;
  opacity: 1;
}

.post.bos-post .action-dropdown-menu .dropdown-item.js_delete-post:hover,
.post.bos-post .action-dropdown-menu .dropdown-item.js_delete-post:hover .action span {
  color: #dc2626 !important;
}

.post.bos-post .action-dropdown-menu .dropdown-item.js_delete-post:hover .svg-container {
  background: #fef2f2;
}

.post.bos-post .action-dropdown-menu .dropdown-item.js_delete-post:hover .svg-container * {
  fill: #dc2626 !important;
}

.post.bos-post .post-text {
  padding: 2px 14px 8px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--bos-post-ink);
  font-weight: 500;
}

.post.bos-post .post-replace {
  margin: 0;
}

.post.bos-post .post-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 !important;
  padding: 2px 14px 8px !important;
  border: 0 !important;
  font-size: 11px !important;
  font-weight: 500;
  color: #999fa8 !important;
  min-height: 0;
}

.post.bos-post .post-stats:empty {
  display: none;
}

.post.bos-post .post-stats .float-end {
  float: none !important;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 !important;
}

.post.bos-post .post-stats .pointer {
  color: #999fa8;
  white-space: nowrap;
}

.post.bos-post .post-stats .pointer:hover {
  color: var(--link-color);
}

.post.bos-post .post-stats i {
  margin-right: 3px;
  opacity: 0.7;
  font-size: 11px;
}

.post.bos-post .post-actions {
  display: flex !important;
  gap: 2px;
  margin: 0 !important;
  padding: 6px 8px 8px !important;
  border-top: 1px solid var(--bos-post-line) !important;
  background: transparent;
}

.post.bos-post .post-actions .action-btn {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  color: #5c636c !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  background: transparent !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.post.bos-post .post-actions .action-btn:hover {
  background: var(--bos-post-soft) !important;
  color: var(--bos-post-ink) !important;
}

.post.bos-post .post-actions .action-icon,
.post.bos-post .post-actions .svg-container.action-icon,
.post.bos-post .post-actions .reaction-btn-icon {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: #747b85 !important;
  fill: #747b85 !important;
  overflow: hidden;
}

.post.bos-post .post-actions .svg-container.action-icon svg,
.post.bos-post .post-actions .action-icon svg {
  width: 16px !important;
  height: 16px !important;
  display: block;
}

.post.bos-post .post-actions .svg-container.action-icon *,
.post.bos-post .post-actions .svg-container.action-icon path,
.post.bos-post .post-actions .svg-container.action-icon path[fill],
.post.bos-post .post-actions .action-icon path {
  color: #747b85 !important;
  fill: #747b85 !important;
}

.post.bos-post .post-actions .reaction-btn-icon .fa,
.post.bos-post .post-actions .reaction-btn-icon i {
  font-size: 15px;
  color: #747b85 !important;
}

.post.bos-post .post-actions .reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post.bos-post .post-footer {
  background: #fafbfc !important;
  border-top: 1px solid var(--bos-post-line) !important;
  border-radius: 0 0 18px 18px !important;
  padding: 12px 14px 14px !important;
}

.post.bos-post .post-comments {
  padding-top: 0 !important;
}

/* —— Comment composer —— */
.post.bos-post .comment.js_comment-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 12px !important;
  margin: 0 !important;
}

.post.bos-post .comment.js_comment-form .comment-avatar {
  float: none !important;
  flex: 0 0 34px;
  width: 34px;
  margin: 0 !important;
}

.post.bos-post .comment.js_comment-form .comment-data {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
}

.post.bos-post .comment-form {
  position: relative;
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.post.bos-post .comment-form:focus-within {
  border-color: color-mix(in srgb, var(--link-color) 45%, var(--bos-post-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.post.bos-post .comment-form textarea {
  background: transparent !important;
  border: 0 !important;
  border-radius: 14px !important;
  height: auto !important;
  min-height: 42px;
  padding: 11px 112px 11px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500;
  line-height: 1.4 !important;
  color: var(--bos-post-ink) !important;
}

.post.bos-post .comment-form textarea::placeholder {
  color: #a0a6af !important;
  font-weight: 500;
}

.post.bos-post .comment-form .x-form-tools {
  bottom: 6px !important;
  right: 8px !important;
  display: flex !important;
  align-items: center;
  gap: 2px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.post.bos-post .comment-form .x-form-tools > li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: #8b929c !important;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.post.bos-post .comment-form .x-form-tools > li:hover {
  background: var(--bos-post-soft) !important;
  color: var(--bos-post-ink) !important;
}

.post.bos-post .comment-form .x-form-tools > li.x-form-tools-post {
  color: var(--link-color) !important;
}

.post.bos-post .comment-form .x-form-tools > li.x-form-tools-post:hover {
  background: color-mix(in srgb, var(--link-color) 12%, transparent) !important;
  color: var(--link-color) !important;
}

.post.bos-post .comment-form .x-form-tools > li i {
  font-size: 15px !important;
  line-height: 1 !important;
  width: auto !important;
}

.post.bos-post .comment-voice-notes,
.post.bos-post .comment-attachments {
  margin-top: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.post.bos-post .btn-voice-start,
.post.bos-post .btn-voice-stop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.post.bos-post .btn-voice-start {
  background: var(--bos-post-soft);
  color: var(--bos-post-ink);
}

.post.bos-post .btn-voice-start:hover {
  background: #eceef2;
}

/* —— Comment list —— */
.post.bos-post .js_comments {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.post.bos-post .js_comments > li {
  margin: 0 !important;
  padding: 0 !important;
}

.post.bos-post .js_comments > li + li .comment {
  margin-top: 4px;
}

.post.bos-post .comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0 8px !important;
  margin: 0 !important;
}

.post.bos-post .comment-avatar {
  float: none !important;
  flex: 0 0 34px;
  width: 34px;
  margin: 0 !important;
  position: relative;
}

.post.bos-post .comment-avatar-picture {
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  padding-top: 0 !important;
  border-radius: 10px !important;
  background-color: #eef0f3;
  background-size: cover;
  background-position: center;
}

.post.bos-post .comment-data,
.post.bos-post .comment-edit {
  margin: 0 !important;
  flex: 1;
  min-width: 0;
  position: relative;
}

.post.bos-post .comment-btn.dropdown {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 5;
}

.post.bos-post .comment-btn .dropdown-toggle-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #9aa1aa;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.post.bos-post .comment-btn .dropdown-toggle-icon:hover {
  background: var(--bos-post-soft);
  color: var(--bos-post-ink);
}

.post.bos-post .comment-btn .dropdown-menu {
  z-index: 1050 !important;
  margin-top: 4px !important;
  padding: 6px !important;
  min-width: 160px;
  border: 1px solid var(--bos-post-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 14px 28px -14px rgba(20, 24, 32, 0.22) !important;
}

.post.bos-post .comment-btn .dropdown-item {
  border-radius: 8px !important;
  padding: 8px 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--bos-post-ink) !important;
}

.post.bos-post .comment-btn .dropdown-item:hover {
  background: var(--bos-post-soft) !important;
}

.post.bos-post .comment-btn .dropdown-item.js_delete-comment:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.post.bos-post .comment-inner-wrapper {
  display: block !important;
  margin: 0 0 4px !important;
  padding-right: 28px;
}

.post.bos-post .comment-inner {
  display: inline-block;
  max-width: 100%;
  padding: 8px 12px !important;
  background: #f3f4f7 !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.post.bos-post .comment-inner:before {
  display: none !important;
}

.post.bos-post .comment-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bos-post-ink);
}

.post.bos-post .comment-author a {
  color: var(--bos-post-ink) !important;
  text-decoration: none !important;
}

.post.bos-post .comment-author a:hover {
  color: var(--link-color) !important;
}

.post.bos-post .comment-author .verified-badge {
  display: inline-flex !important;
  align-items: center;
}

.post.bos-post .comment-author .verified-badge .svg-container {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
}

.post.bos-post .comment-author .verified-badge .svg-container svg {
  width: 13px !important;
  height: 13px !important;
  display: block;
}

.post.bos-post .comment-text {
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bos-post-ink);
}

.post.bos-post .comment-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0 !important;
  padding: 0 0 0 4px !important;
  list-style: none;
  clear: both;
}

.post.bos-post .comment-actions > li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: #8b929c;
  line-height: 1.3;
}

.post.bos-post .comment-actions .text-link,
.post.bos-post .comment-actions .reaction-btn-name {
  color: #8b929c !important;
  text-decoration: none !important;
  font-weight: 600;
  cursor: pointer;
}

.post.bos-post .comment-actions .text-link:hover,
.post.bos-post .comment-actions .reaction-btn-name:hover {
  color: var(--link-color) !important;
}

.post.bos-post .comment-actions .text-muted,
.post.bos-post .comment-actions small {
  color: #a0a6af !important;
  font-size: 11.5px !important;
  font-weight: 500;
}

.post.bos-post .comment-replies {
  margin-top: 6px;
  padding: 6px 0 0 8px !important;
  border-left: 2px solid var(--bos-post-line);
}

.post.bos-post .js_comment-disabled-msg {
  margin: 4px 0 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px;
  background: var(--bos-post-soft);
  color: var(--bos-post-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.post.bos-post .post-media,
.post.bos-post .post-media img,
.post.bos-post .pg_wrapper {
  border-radius: 0;
}

.post.bos-post .pg_wrapper {
  margin-top: 4px;
}

@media (max-width: 620px) {
  .post.bos-post {
    border-radius: 16px !important;
  }
  .post.bos-post .post-text {
    font-size: 14px !important;
  }
  .post.bos-post .comment-form textarea {
    padding-right: 108px !important;
  }
}

body.night-mode .post.bos-post,
html[data-bs-theme="dark"] .post.bos-post {
  --bos-post-ink: #e2e8f0;
  --bos-post-muted: #94a3b8;
  --bos-post-line: rgba(255, 255, 255, 0.1);
  --bos-post-soft: rgba(255, 255, 255, 0.05);
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .post.bos-post .post-actions,
body.night-mode .post.bos-post .post-footer,
html[data-bs-theme="dark"] .post.bos-post .post-actions,
html[data-bs-theme="dark"] .post.bos-post .post-footer {
  background: transparent !important;
  border-color: var(--bos-post-line) !important;
}

body.night-mode .post.bos-post .post-author,
html[data-bs-theme="dark"] .post.bos-post .post-author {
  color: #e2e8f0 !important;
}

body.night-mode .post.bos-post .post-actions .action-btn,
html[data-bs-theme="dark"] .post.bos-post .post-actions .action-btn {
  color: #94a3b8 !important;
}

body.night-mode .post.bos-post .action-dropdown-menu,
body.night-mode .post.bos-post .comment-btn .dropdown-menu,
html[data-bs-theme="dark"] .post.bos-post .action-dropdown-menu,
html[data-bs-theme="dark"] .post.bos-post .comment-btn .dropdown-menu {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .post.bos-post .action-dropdown-menu .dropdown-item,
body.night-mode .post.bos-post .comment-btn .dropdown-item,
html[data-bs-theme="dark"] .post.bos-post .action-dropdown-menu .dropdown-item,
html[data-bs-theme="dark"] .post.bos-post .comment-btn .dropdown-item {
  color: #e2e8f0 !important;
}

body.night-mode .post.bos-post .action-dropdown-menu .dropdown-item:hover,
body.night-mode .post.bos-post .comment-btn .dropdown-item:hover,
html[data-bs-theme="dark"] .post.bos-post .action-dropdown-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .post.bos-post .comment-btn .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .post.bos-post .action-dropdown-menu .dropdown-item .svg-container,
body.night-mode .post.bos-post .action-dropdown-menu .dropdown-item .main-icon,
html[data-bs-theme="dark"] .post.bos-post .action-dropdown-menu .dropdown-item .svg-container,
html[data-bs-theme="dark"] .post.bos-post .action-dropdown-menu .dropdown-item .main-icon {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .post.bos-post .comment-form,
body.night-mode .post.bos-post .comment-voice-notes,
body.night-mode .post.bos-post .comment-attachments,
html[data-bs-theme="dark"] .post.bos-post .comment-form,
html[data-bs-theme="dark"] .post.bos-post .comment-voice-notes,
html[data-bs-theme="dark"] .post.bos-post .comment-attachments {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .post.bos-post .comment-inner,
html[data-bs-theme="dark"] .post.bos-post .comment-inner {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .post.bos-post .comment-author a,
html[data-bs-theme="dark"] .post.bos-post .comment-author a {
  color: #e2e8f0 !important;
}

body.night-mode .post.bos-post .comment-text,
html[data-bs-theme="dark"] .post.bos-post .comment-text {
  color: #e2e8f0 !important;
}

/* —— Profile page — soft console —— */
.bos-profile {
  --bos-pf-ink: #191b20;
  --bos-pf-muted: #858b95;
  --bos-pf-line: #e9ebef;
  --bos-pf-soft: #f6f7f9;
  --bos-pf-bs: color-mix(in srgb, var(--link-color) 12%, #fff);
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-profile .bos-profile-header,
.bos-profile-header {
  position: relative;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible;
}

.bos-profile .profile-cover-wrapper {
  position: relative;
  height: 160px !important;
  border-radius: 19px 19px 0 0 !important;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--link-color) 22%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, #eef1f5 0%, #e4e8ee 45%, #d8dde5 100%) !important;
}

@media (min-width: 576px) {
  .bos-profile .profile-cover-wrapper { height: 190px !important; }
}
@media (min-width: 768px) {
  .bos-profile .profile-cover-wrapper { height: 220px !important; }
}
@media (min-width: 992px) {
  .bos-profile .profile-cover-wrapper { height: 240px !important; }
}

.bos-profile .profile-cover-wrapper img.js_position-cover-cropped {
  border-radius: 0 !important;
}

.bos-profile .profile-cover-buttons {
  opacity: 1 !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  display: flex !important;
  gap: 6px;
}

.bos-profile .profile-cover-buttons > div {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  place-items: center;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #515761 !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px -10px rgba(20, 24, 32, 0.35);
  cursor: pointer;
}

.bos-profile .profile-cover-buttons > div:not(.profile-cover-position-buttons):not(.x-hidden) {
  display: inline-grid !important;
}

.bos-profile .profile-cover-buttons > div.x-hidden {
  display: none !important;
}

.bos-profile .profile-cover-buttons > div.profile-cover-position-buttons {
  display: none;
  place-items: center;
}

.bos-profile .profile-cover-buttons > div:hover {
  background: #fff !important;
  color: var(--link-color) !important;
}

.bos-profile .profile-avatar-wrapper {
  position: absolute !important;
  top: 108px !important;
  bottom: auto !important;
  left: 18px !important;
  transform: none !important;
  margin: 0 !important;
  padding: 3px !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px -14px rgba(20, 24, 32, 0.3) !important;
  border: 0 !important;
  z-index: 3;
}

@media (min-width: 576px) {
  .bos-profile .profile-avatar-wrapper {
    top: 138px !important;
  }
}

@media (min-width: 768px) {
  .bos-profile .profile-avatar-wrapper {
    left: 22px !important;
    top: 160px !important;
  }
}

@media (min-width: 992px) {
  .bos-profile .profile-avatar-wrapper {
    top: 180px !important;
  }
}

.bos-profile .profile-avatar-wrapper img {
  width: 96px !important;
  height: 96px !important;
  border-radius: 17px !important;
  object-fit: cover;
  background: var(--bos-pf-soft, #f6f7f9);
}

@media (min-width: 768px) {
  .bos-profile .profile-avatar-wrapper img {
    width: 112px !important;
    height: 112px !important;
    border-radius: 18px !important;
  }
}

.bos-profile .profile-avatar-change,
.bos-profile .profile-avatar-crop,
.bos-profile .profile-avatar-delete {
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #515761 !important;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  box-shadow: 0 4px 12px -8px rgba(0, 0, 0, 0.25);
  opacity: 1 !important;
  z-index: 5;
  place-items: center;
}

.bos-profile .profile-avatar-change:not(.x-hidden),
.bos-profile .profile-avatar-crop:not(.x-hidden),
.bos-profile .profile-avatar-delete:not(.x-hidden) {
  display: inline-grid !important;
}

.bos-profile .profile-avatar-change.x-hidden,
.bos-profile .profile-avatar-crop.x-hidden,
.bos-profile .profile-avatar-delete.x-hidden {
  display: none !important;
}

.bos-profile .bos-pf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 16px 16px 140px;
  min-height: 72px;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-meta {
    padding: 14px 20px 18px 160px;
    min-height: 80px;
    align-items: center;
  }
}

.bos-profile .profile-name-wrapper {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  background: transparent !important;
  color: var(--bos-pf-ink, #191b20) !important;
  text-shadow: none !important;
  font-size: inherit !important;
  flex: 1 1 auto;
  min-width: 0;
}

.bos-profile .profile-name-inner {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.bos-profile .profile-name-wrapper a {
  font-size: 20px !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--bos-pf-ink, #191b20) !important;
  text-decoration: none !important;
  text-shadow: none !important;
}

@media (min-width: 992px) {
  .bos-profile .profile-name-wrapper a {
    font-size: 22px !important;
    color: var(--bos-pf-ink, #191b20) !important;
  }
}

.bos-profile .bos-pf-uname {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--bos-pf-muted, #858b95);
  letter-spacing: 0;
}

.bos-profile .profile-name-wrapper .verified-badge .svg-container {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bos-profile .profile-buttons-wrapper {
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  flex: 0 0 auto;
}

@media (min-width: 992px) {
  .bos-profile .profile-buttons-wrapper {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    justify-content: flex-end;
  }
}

.bos-profile .profile-buttons-wrapper .btn {
  height: 38px;
  min-width: 38px;
  padding: 0 14px !important;
  border-radius: 11px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: #515761 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bos-profile .profile-buttons-wrapper .btn:hover {
  background: #eef0f3 !important;
  color: #191b20 !important;
}

.bos-profile .profile-buttons-wrapper .btn-success,
.bos-profile .profile-buttons-wrapper .btn-primary {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

.bos-profile .profile-buttons-wrapper .btn-success:hover,
.bos-profile .profile-buttons-wrapper .btn-primary:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-profile .profile-buttons-wrapper .btn-danger {
  background: #fff !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* Tabs — soft button rail */
.bos-profile .bos-profile-tabs,
.bos-profile-tabs {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center !important;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 16px !important;
  padding: 8px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 16px !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  box-shadow: none !important;
  scrollbar-width: none;
}

.bos-profile-tabs::-webkit-scrollbar { display: none; }

.bos-profile .bos-profile-tabs > a,
.bos-profile-tabs > a {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  min-height: 42px;
  height: auto !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #6b7280 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.bos-profile .bos-profile-tabs > a .bos-pf-tab-lbl {
  display: inline-block;
  line-height: 1.2;
  margin: 0 !important;
}

.bos-profile .bos-profile-tabs > a .main-icon,
.bos-profile .bos-profile-tabs > a .svg-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 9px;
  background: #eef0f3;
  line-height: 0 !important;
  vertical-align: middle;
  color: #858b95 !important;
  transform: none;
}

.bos-profile .bos-profile-tabs > a .main-icon svg,
.bos-profile .bos-profile-tabs > a .svg-container svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.bos-profile .bos-profile-tabs > a .main-icon *,
.bos-profile .bos-profile-tabs > a .svg-container * {
  fill: #858b95 !important;
}

.bos-profile .bos-profile-tabs > a:hover {
  background: #fff !important;
  color: var(--bos-pf-ink, #191b20) !important;
  border-color: #e9ebef !important;
}

.bos-profile .bos-profile-tabs > a:hover .main-icon,
.bos-profile .bos-profile-tabs > a:hover .svg-container {
  background: #e8eaee;
}

.bos-profile .bos-profile-tabs > a:hover .main-icon *,
.bos-profile .bos-profile-tabs > a:hover .svg-container * {
  fill: #515761 !important;
}

.bos-profile .bos-profile-tabs > a.active {
  background: #fff !important;
  color: var(--link-color) !important;
  border-color: color-mix(in srgb, var(--link-color) 22%, #e9ebef) !important;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.05), 0 8px 18px -14px rgba(20, 24, 32, 0.35);
}

.bos-profile .bos-profile-tabs > a.active .main-icon,
.bos-profile .bos-profile-tabs > a.active .svg-container {
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
}

.bos-profile .bos-profile-tabs > a.active .main-icon *,
.bos-profile .bos-profile-tabs > a.active .svg-container * {
  fill: var(--link-color) !important;
}

.bos-profile .bos-profile-tabs > a.active::after {
  display: none !important;
}

@media (max-width: 991.98px) {
  .bos-profile .bos-profile-tabs > a .bos-pf-tab-lbl {
    display: none;
  }

  .bos-profile .bos-profile-tabs > a {
    width: 44px;
    min-height: 44px;
    padding: 0 !important;
  }
}

/* Left sidebar panels on profile */
.bos-profile .bos-profile-side {
  display: flex;
  flex-direction: column;
}

.bos-profile .bos-profile-side > .card {
  order: 20;
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.14) !important;
  overflow: hidden;
}

.bos-profile .bos-profile-side > .bos-pf-about { order: 1; }
.bos-profile .bos-profile-side > .bos-pf-complete { order: 2; }
.bos-profile .bos-profile-side > .bos-pf-merits { order: 3; }
.bos-profile .bos-profile-side > .d-grid { order: 5; }
.bos-profile .bos-profile-side > .bos-pf-search { order: 6; }
.bos-profile .bos-profile-side > .panel-photos { order: 10; }
.bos-profile .bos-profile-side > .d-none.d-lg-block { order: 15; }
.bos-profile .bos-profile-side > .d-none.d-lg-block:last-of-type,
.bos-profile .bos-profile-side > div.d-none.d-lg-block:has(.bos-mini-footer) {
  order: 40;
}

.bos-profile .bos-profile-side > .card > .card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent !important;
  border: 0 !important;
  padding: 14px 14px 6px !important;
}

.bos-profile .bos-profile-side > .card > .card-header strong,
.bos-profile .bos-profile-side > .card > .card-header {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-pf-muted, #858b95) !important;
}

.bos-profile .bos-profile-side > .card > .card-header .main-icon,
.bos-profile .bos-profile-side > .card > .card-header .svg-container {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  color: #858b95 !important;
  fill: #858b95 !important;
}

.bos-profile .bos-profile-side > .card > .card-header .main-icon *,
.bos-profile .bos-profile-side > .card > .card-header .svg-container * {
  fill: #858b95 !important;
  color: #858b95 !important;
}

.bos-profile .bos-profile-side > .card > .card-header .float-end,
.bos-profile .bos-profile-side > .card > .card-header small {
  margin-left: auto;
  font-size: 11px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
}

.bos-profile .bos-profile-side > .card > .card-body {
  padding: 8px 14px 14px !important;
}

.bos-profile .bos-profile-side .btn-primary {
  height: 38px;
  border: 0 !important;
  border-radius: 11px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-profile .bos-profile-side .btn-primary:hover {
  background: #111318 !important;
}

.bos-profile .bos-profile-side .badge.bg-light {
  background: var(--bos-pf-bs, #eef4ff) !important;
  color: var(--link-color) !important;
  font-weight: 700;
  border-radius: 8px;
}

.bos-profile .bos-profile-side .text-link,
.bos-profile .bos-profile-side a.text-danger,
.bos-profile .bos-profile-side .card-body a {
  color: #515761 !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
}

.bos-profile .bos-profile-side .card-body a:hover {
  color: var(--link-color) !important;
}

.bos-profile .bos-profile-side .progress,
.bos-profile .bos-profile-side .x-progress {
  height: 6px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
  width: 100%;
  margin-top: 10px !important;
}

.bos-profile .bos-profile-side .progress-bar {
  background: var(--link-color) !important;
  border-radius: 999px;
}

/* Merits */
.bos-profile .bos-pf-merit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bos-profile .bos-pf-merit-cell {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-merit-ico {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--link-color);
  font-size: 12px;
}

.bos-profile .bos-pf-merit-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-pf-ink, #191b20);
  line-height: 1.1;
}

.bos-profile .bos-pf-merit-lbl {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
  color: var(--bos-pf-muted, #858b95);
}

/* Profile completion steps */
.bos-profile .bos-pf-complete .card-header {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 14px 10px !important;
}

.bos-profile .bos-pf-complete .card-header > .d-flex,
.bos-profile .bos-pf-complete .card-header > .progress {
  grid-column: 1 / -1;
}

.bos-profile .bos-pf-complete-pct {
  justify-self: end;
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--link-color) !important;
  background: var(--bos-pf-bs, color-mix(in srgb, var(--link-color) 12%, #fff)) !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-variant-numeric: tabular-nums;
}

.bos-profile .bos-pf-complete .progress {
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--bos-pf-line, #e9ebef) !important;
  overflow: hidden;
  width: 100%;
  margin: 0 !important;
}

.bos-profile .bos-pf-complete .progress-bar {
  background: var(--link-color) !important;
  border-radius: 999px !important;
  transition: width 0.4s ease;
}

.bos-profile .bos-pf-steps {
  counter-reset: bos-pf-step;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bos-profile .bos-pf-step {
  counter-increment: bos-pf-step;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.bos-profile .bos-pf-step > a,
.bos-profile .bos-pf-step > .text-link,
.bos-profile .bos-pf-step.is-done {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px !important;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
  background: var(--bos-pf-soft, #f6f7f9);
  transition: background-color 0.12s ease, color 0.12s ease;
}

.bos-profile .bos-pf-step.is-done {
  cursor: default;
  background: transparent;
}

.bos-profile .bos-pf-step.is-pending > a,
.bos-profile .bos-pf-step.is-pending > .text-link {
  cursor: pointer;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-step.is-pending > a:hover,
.bos-profile .bos-pf-step.is-pending > .text-link:hover {
  background: color-mix(in srgb, var(--link-color) 10%, #f6f7f9);
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-step.is-pending > a::after,
.bos-profile .bos-pf-step.is-pending > .text-link::after {
  content: "";
  margin-left: auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  background-color: #b0b6bf;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
  opacity: 1;
  transform: none;
}

.bos-profile .bos-pf-step.is-pending > a:hover::after,
.bos-profile .bos-pf-step.is-pending > .text-link:hover::after {
  background-color: var(--link-color);
}

.bos-profile .bos-pf-step-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.bos-profile .bos-pf-step.is-pending .bos-pf-step-dot {
  border: 0;
  background: #fff;
  color: var(--link-color);
}

.bos-profile .bos-pf-step.is-pending .bos-pf-step-dot::before {
  content: counter(bos-pf-step);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--link-color);
}

.bos-profile .bos-pf-step.is-done .bos-pf-step-dot {
  border: 0;
  background-color: #22c55e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.5L4.8 8.8L9.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.bos-profile .bos-pf-step.is-done .bos-pf-step-dot::before {
  content: none;
}

.bos-profile .bos-pf-step-txt {
  flex: 1;
  min-width: 0;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: var(--bos-pf-ink, #191b20);
  word-break: break-word;
}

.bos-profile .bos-pf-step.is-pending > a:hover .bos-pf-step-txt,
.bos-profile .bos-pf-step.is-pending > .text-link:hover .bos-pf-step-txt {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-step.is-done .bos-pf-step-txt {
  color: var(--bos-pf-muted, #858b95) !important;
  text-decoration: line-through;
  font-weight: 500 !important;
}

/* About */
.bos-profile .bos-pf-about .card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.bos-profile .bos-pf-about .bos-pf-about-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: var(--bos-pf-muted, #858b95) !important;
  background: transparent;
  transition: all 0.15s ease;
  font-size: 11px;
  text-decoration: none !important;
}

.bos-profile .bos-pf-about .bos-pf-about-edit:hover {
  color: var(--link-color) !important;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-about .about-bio {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
  border: 1px solid var(--bos-pf-line, #e9ebef);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bos-pf-ink, #191b20);
  line-height: 1.5;
  word-break: break-word;
}

.bos-profile .bos-pf-about-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 4px;
  margin-bottom: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 12px;
}

.bos-profile .bos-pf-about-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-decoration: none !important;
  position: relative;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bos-profile .bos-pf-about-stat:hover {
  opacity: 0.85;
}

.bos-profile .bos-pf-about-stat + .bos-pf-about-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--bos-pf-line, #e9ebef);
}

.bos-profile .bos-pf-about-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--bos-pf-ink, #191b20);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

.bos-profile .bos-pf-about-stat:hover .bos-pf-about-stat-val {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-about-stat-lbl {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--bos-pf-muted, #858b95);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bos-profile .bos-pf-about .about-list,
.bos-profile .bos-pf-about .bos-pf-about-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bos-profile .bos-pf-about .about-list > li,
.bos-profile .bos-pf-about .bos-pf-about-list > li {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-weight: inherit;
}

.bos-profile .bos-pf-about .about-list-item {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 6px 8px !important;
  border-radius: 9px;
  font-size: 12.5px !important;
  font-weight: 500;
  color: var(--bos-pf-ink, #191b20);
  line-height: 1.4;
  word-break: break-word;
  transition: background-color 0.15s ease;
}

.bos-profile .bos-pf-about .about-list-item:hover {
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-about .about-list-item:has(.details),
.bos-profile .bos-pf-about .about-list-item.has-details {
  align-items: flex-start;
}

.bos-profile .bos-pf-about .about-list-item:has(.details) .main-icon,
.bos-profile .bos-pf-about .about-list-item.has-details .main-icon,
.bos-profile .bos-pf-about .about-list-item:has(.details) .svg-container,
.bos-profile .bos-pf-about .about-list-item.has-details .svg-container {
  margin-top: 2px !important;
}

.bos-profile .bos-pf-about .about-list-item .main-icon,
.bos-profile .bos-pf-about .about-list-item .svg-container {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  flex: 0 0 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent !important;
  color: var(--bos-pf-muted, #858b95) !important;
  fill: var(--bos-pf-muted, #858b95) !important;
  transition: color 0.15s ease, fill 0.15s ease;
}

.bos-profile .bos-pf-about .about-list-item:hover .main-icon,
.bos-profile .bos-pf-about .about-list-item:hover .svg-container {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.bos-profile .bos-pf-about .about-list-item .svg-container svg,
.bos-profile .bos-pf-about .about-list-item .main-icon svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  display: block;
}

.bos-profile .bos-pf-about .about-list-item .main-icon *,
.bos-profile .bos-pf-about .about-list-item .svg-container *,
.bos-profile .bos-pf-about .about-list-item .svg-container path,
.bos-profile .bos-pf-about .about-list-item .svg-container path[fill] {
  fill: currentColor !important;
  color: currentColor !important;
  stroke: none !important;
  transition: fill 0.15s ease;
}

.bos-profile .bos-pf-about-txt {
  flex: 1;
  min-width: 0;
  padding: 0 !important;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-about-lbl {
  color: var(--bos-pf-muted, #858b95) !important;
  font-weight: 450;
  margin-right: 3px;
}

.bos-profile .bos-pf-about-val {
  color: var(--bos-pf-ink, #191b20);
  font-weight: 600;
}

.bos-profile .bos-pf-about .about-list-item .text-info,
.bos-profile .bos-pf-about .bos-pf-about-txt a,
.bos-profile .bos-pf-about .bos-pf-about-link {
  color: var(--link-color) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.bos-profile .bos-pf-about .bos-pf-about-txt a:hover,
.bos-profile .bos-pf-about .bos-pf-about-link:hover {
  text-decoration: underline !important;
  opacity: 0.85;
}

.bos-profile .bos-pf-about .about-list-item .details {
  margin-top: 2px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--bos-pf-muted, #858b95);
}

/* Search */
.bos-profile .bos-pf-search {
  overflow: hidden;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-search > .card-body,
.bos-profile .bos-pf-search > .card-header {
  display: none;
}

.bos-profile .bos-pf-search-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.bos-profile .bos-pf-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bos-profile .bos-pf-search-head-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: var(--bos-pf-soft, #f6f7f9);
  color: var(--link-color);
}

.bos-profile .bos-pf-search-head-ico .main-icon,
.bos-profile .bos-pf-search-head-ico .svg-container,
.bos-profile .bos-pf-search-head-ico svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

.bos-profile .bos-pf-search-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile .bos-pf-search-head-copy strong {
  display: block;
  margin: 0 0 1px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-search-head-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #858b95;
}

.bos-profile .bos-pf-search-form {
  margin: 0;
}

.bos-profile .bos-pf-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.bos-profile .bos-pf-search-field:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--link-color) 42%, var(--bos-pf-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.bos-profile .bos-pf-search-ico {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #858b95;
}

.bos-profile .bos-pf-search-field .form-control {
  flex: 1;
  min-width: 0;
  height: 36px;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 36px;
  color: var(--bos-pf-ink, #191b20);
  padding: 0 !important;
}

.bos-profile .bos-pf-search-field .form-control::placeholder {
  color: #9aa1ab;
  font-weight: 500;
}

.bos-profile .bos-pf-search-btn {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--link-color);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.bos-profile .bos-pf-search-btn:hover {
  opacity: 0.92;
}

.bos-profile .bos-pf-search-btn:active {
  transform: scale(0.96);
}

.bos-profile .bos-pf-search-btn i {
  font-size: 12px;
  line-height: 1;
}

.bos-profile .bos-pf-search-field .btn-primary {
  display: none !important;
}

body.night-mode .bos-profile .bos-pf-search,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-profile .bos-pf-search-head-ico,
body.night-mode .bos-profile .bos-pf-search-field,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search-head-ico,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search-field {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile .bos-pf-search-field:focus-within,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search-field:focus-within {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .bos-profile .bos-pf-search-head-copy strong,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search-head-copy strong {
  color: #e8eef4;
}

/* Soft tiles (friends/subscribers) — defeat absolute name overlay */
.bos-profile .bos-profile-side .circled-user-box {
  margin: 0 !important;
  padding: 2px;
}

.bos-profile .bos-profile-side .circled-user-box .user-box {
  position: relative !important;
  display: block;
  margin: 0 0 18px !important;
  padding: 0 !important;
  padding-top: 100% !important;
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
  overflow: hidden;
  text-decoration: none !important;
}

.bos-profile .bos-profile-side .circled-user-box .user-box:hover {
  background: #eef1f4;
}

.bos-profile .bos-profile-side .circled-user-box img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 12px !important;
  border: 0 !important;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-profile-side .circled-user-box .name {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 4px) !important;
  bottom: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 2px;
  font-size: 11px !important;
  font-weight: 650 !important;
  color: #515761 !important;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pages / groups / events — clean soft grid */
.bos-profile .bos-pf-entities .card-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

.bos-profile .bos-pf-entities .card-header .svg-container,
.bos-profile .bos-pf-entities .card-header .main-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  color: var(--bos-pf-muted, #858b95) !important;
}

.bos-profile .bos-pf-entities .card-header .svg-container *,
.bos-profile .bos-pf-entities .card-header .main-icon * {
  fill: #858b95 !important;
}

.bos-profile .bos-pf-entities .card-header strong,
.bos-profile .bos-pf-entities .card-header strong a {
  color: var(--bos-pf-ink, #191b20) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bos-profile .bos-pf-entities .card-header strong a:hover {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-entities .card-body {
  padding: 4px 14px 14px !important;
}

.bos-profile .bos-pf-entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bos-profile .bos-pf-entity {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  text-decoration: none !important;
  color: inherit;
}

.bos-profile .bos-pf-entity-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bos-pf-soft, #f6f7f9);
  border: 1px solid var(--bos-pf-line, #e9ebef);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.bos-profile .bos-pf-entity:hover .bos-pf-entity-media {
  border-color: color-mix(in srgb, var(--link-color) 35%, var(--bos-pf-line, #e9ebef));
  background: color-mix(in srgb, var(--link-color) 6%, #f6f7f9);
}

.bos-profile .bos-pf-entity-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bos-profile .bos-pf-entity-media img[src*="blank_"] {
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bos-profile .bos-pf-entity-media:has(img[src*="blank_"])::before {
  content: "\f03e";
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #9aa1ab;
}

.bos-profile .bos-pf-entity-media:has(img[src*="blank_page"])::before {
  content: "\f024";
}

.bos-profile .bos-pf-entity-media:has(img[src*="blank_group"])::before {
  content: "\f0c0";
}

.bos-profile .bos-pf-entity-media:has(img[src*="blank_event"])::before {
  content: "\f073";
}

.bos-profile .bos-pf-entity-name {
  display: block;
  padding: 0 2px;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  line-height: 1.3;
  color: var(--bos-pf-ink, #191b20) !important;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-profile .bos-pf-entity:hover .bos-pf-entity-name {
  color: var(--link-color) !important;
}

.bos-profile .bos-profile-side .panel-photos .pg_photo,
.bos-profile .bos-profile-side .panel-photos img {
  border-radius: 12px !important;
}

/* —— Profile catalog: pages / groups / events —— */
.bos-profile .bos-pf-catalog {
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 14px 40px -28px rgba(20, 24, 32, 0.14) !important;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 0;
}

.bos-profile .bos-pf-catalog-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bos-profile .bos-pf-catalog-title strong {
  margin: 0;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-catalog-title .main-icon,
.bos-profile .bos-pf-catalog-title .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
  fill: #747b85 !important;
}

.bos-profile .bos-pf-catalog-title .main-icon *,
.bos-profile .bos-pf-catalog-title .svg-container * {
  fill: #747b85 !important;
}

.bos-profile .bos-pf-catalog-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 10px !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-catalog-cta:hover {
  background: #eef0f3 !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-catalog-body {
  padding: 14px 16px 16px !important;
}

.bos-profile .bos-pf-catalog-section {
  margin: 0 0 18px;
}

.bos-profile .bos-pf-catalog-section:last-child {
  margin-bottom: 0;
}

.bos-profile .bos-pf-catalog-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

.bos-profile .bos-pf-catalog-section-head h3 {
  margin: 0;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-pf-muted, #858b95) !important;
}

.bos-profile .bos-pf-catalog-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bos-pf-soft, #f6f7f9);
  border: 1px solid var(--bos-pf-line, #e9ebef);
  font-size: 11px;
  font-weight: 700;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-catalog-hint {
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px dashed var(--bos-pf-line, #e9ebef);
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
}

.bos-profile .bos-pf-catalog-grid > [class*="col-"] {
  display: flex;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bos-profile .bos-pf-catalog .ui-box {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 10px !important;
  text-align: left !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-catalog .ui-box.darker {
  background: #fff !important;
}

.bos-profile .bos-pf-catalog .ui-box .img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  aspect-ratio: 1;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  border: 1px solid var(--bos-pf-line, #e9ebef);
}

.bos-profile .bos-pf-catalog--events .ui-box .img {
  aspect-ratio: 16 / 10;
}

.bos-profile .bos-pf-catalog .ui-box .img a {
  display: block;
  width: 100%;
  height: 100%;
}

.bos-profile .bos-pf-catalog .ui-box .img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.bos-profile .bos-pf-catalog .ui-box .img img[src*="blank_"] {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.bos-profile .bos-pf-catalog .ui-box .img:has(img[src*="blank_"])::before {
  content: "\f03e";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #9aa1ab;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-catalog--pages .ui-box .img:has(img[src*="blank_"])::before {
  content: "\f024";
}

.bos-profile .bos-pf-catalog--groups .ui-box .img:has(img[src*="blank_"])::before {
  content: "\f0c0";
}

.bos-profile .bos-pf-catalog--events .ui-box .img:has(img[src*="blank_"])::before {
  content: "\f073";
}

.bos-profile .bos-pf-catalog .ui-box .mt10 {
  margin-top: 0 !important;
}

.bos-profile .bos-pf-catalog .ui-box .mt10 + .mt10 {
  margin-top: 8px !important;
}

.bos-profile .bos-pf-catalog .ui-box .h6,
.bos-profile .bos-pf-catalog .ui-box .h6 a,
.bos-profile .bos-pf-catalog .ui-box a.h6 {
  display: inline;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--bos-pf-ink, #191b20) !important;
  text-decoration: none !important;
}

.bos-profile .bos-pf-catalog .ui-box .h6 a:hover,
.bos-profile .bos-pf-catalog .ui-box a.h6:hover {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-catalog .ui-box .mt10 > div:not(.verified-badge) {
  margin-top: 2px;
  font-size: 12px !important;
  font-weight: 500;
  color: var(--bos-pf-muted, #858b95) !important;
}

.bos-profile .bos-pf-catalog .ui-box .verified-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.bos-profile .bos-pf-catalog .ui-box .verified-badge .svg-container,
.bos-profile .bos-pf-catalog .ui-box .verified-badge svg {
  width: 14px !important;
  height: 14px !important;
}

.bos-profile .bos-pf-catalog .ui-box .mt10:has(.btn) {
  margin-top: auto !important;
  padding-top: 12px;
}

.bos-profile .bos-pf-catalog .ui-box .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 32px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-primary {
  border: 0 !important;
  background: #1b1e23 !important;
  color: #fff !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-primary:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-success {
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-success:hover {
  background: #eef0f3 !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-warning {
  border: 1px solid color-mix(in srgb, #d97706 25%, var(--bos-pf-line, #e9ebef)) !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-light {
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn-light:hover {
  background: #eef0f3 !important;
}

.bos-profile .bos-pf-catalog .ui-box .btn i {
  margin-right: 6px !important;
}

.bos-profile .bos-pf-catalog .ui-box .badge {
  border-radius: 8px !important;
  font-weight: 650 !important;
}

.bos-profile .bos-pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 16px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-empty-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  color: #747b85;
}

.bos-profile .bos-pf-empty-ico .main-icon,
.bos-profile .bos-pf-empty-ico .svg-container {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

.bos-profile .bos-pf-empty-ico .main-icon *,
.bos-profile .bos-pf-empty-ico .svg-container *,
.bos-profile .bos-pf-empty-ico path {
  fill: #747b85 !important;
}

.bos-profile .bos-pf-empty strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-empty p {
  margin: 0 0 14px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-empty .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px;
  height: auto !important;
  min-height: 40px;
  padding: 10px 18px 9px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-empty .btn-primary:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-profile .bos-pf-catalog-more.see-more,
.bos-profile .bos-pf-catalog .see-more {
  margin: 14px 0 0 !important;
  padding: 12px !important;
  border: 1px dashed var(--bos-pf-line, #e9ebef) !important;
  border-radius: 12px !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-muted, #858b95) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-catalog-more.see-more:hover,
.bos-profile .bos-pf-catalog .see-more:hover {
  background: #eef0f3 !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

/* —— Profile store / products —— */
.bos-profile .bos-pf-product-search {
  margin: 0 0 14px;
}

.bos-profile .bos-pf-product-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-product-search-field > i {
  color: #9aa1ab;
  font-size: 13px;
}

.bos-profile .bos-pf-product-search-field .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-product-search-field .form-control::placeholder {
  color: #9aa1ab;
}

.bos-profile .bos-pf-product-search-field .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-profile .bos-pf-product-search-field .btn:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-profile .bos-pf-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-catalog--products .card.product {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog--products .product-image {
  height: 160px;
  border-radius: 0 !important;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-catalog--products .product-price {
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(27, 30, 35, 0.88);
  font-size: 12px;
  font-weight: 700;
}

.bos-profile .bos-pf-catalog--products .product-overlay {
  padding-top: 0;
  display: grid;
  place-items: center;
  background: rgba(25, 27, 32, 0.28);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.bos-profile .bos-pf-catalog--products .card.product:hover .product-overlay {
  opacity: 1;
}

.bos-profile .bos-pf-catalog--products .product-overlay .btn {
  height: 32px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--bos-pf-ink, #191b20) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bos-profile .bos-pf-catalog--products .product-info {
  padding: 10px 12px 12px !important;
}

.bos-profile .bos-pf-catalog--products .product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px !important;
  font-size: 12px;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-catalog--products .product-meta:last-child {
  margin-bottom: 0 !important;
}

.bos-profile .bos-pf-catalog--products .product-meta .title {
  display: block;
  width: 100%;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  color: var(--bos-pf-ink, #191b20) !important;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-profile .bos-pf-catalog--products .product-meta .title:hover {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-catalog--products .product-meta .main-icon,
.bos-profile .bos-pf-catalog--products .product-meta .svg-container {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

.bos-profile .bos-pf-catalog--products .product-meta .badge {
  border-radius: 7px !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}

.bos-profile .bos-pf-catalog--products .boosted-icon {
  border-radius: 8px !important;
}

body.night-mode .bos-profile .bos-pf-product-search-field,
body.night-mode .bos-profile .bos-pf-catalog--products .card.product,
body.night-mode .bos-profile .bos-pf-catalog--products .product-image,
html[data-bs-theme="dark"] .bos-profile .bos-pf-product-search-field,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--products .card.product,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--products .product-image {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* —— Profile blogs —— */
.bos-profile .bos-pf-blog-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-catalog--blogs .bos-pf-blog-grid > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.bos-profile .bos-pf-catalog--blogs .blog-container,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: inherit !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog--blogs .blog-image,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .blog-image {
  display: block !important;
  width: 100% !important;
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
  overflow: hidden;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-catalog--blogs .blog-image img,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .blog-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.bos-profile .bos-pf-catalog--blogs .blog-content,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .blog-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  width: 100% !important;
  padding: 12px 12px 10px !important;
  float: none !important;
}

.bos-profile .bos-pf-catalog--blogs .blog-content h3,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .blog-content h3 {
  margin: 0 0 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--bos-pf-ink, #191b20) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog--blogs .blog-content .text,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .blog-content .text {
  margin: 0 0 10px !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: var(--bos-pf-muted, #858b95) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog--blogs .blog-content .post-avatar {
  float: none !important;
  margin: 0 8px 0 0 !important;
}

.bos-profile .bos-pf-catalog--blogs .blog-content > div:last-child {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.bos-profile .bos-pf-catalog--blogs .blog-content .post-meta {
  flex: 1 1 auto;
  min-width: 0;
}

.bos-profile .bos-pf-catalog--blogs .blog-content .text-link,
.bos-profile .bos-pf-catalog--blogs .blog-container.primary .text-link {
  display: block;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--bos-pf-ink, #191b20) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-profile .bos-pf-catalog--blogs .blog-content .post-time {
  font-size: 11px;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-catalog--blogs .blog-more {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 12px !important;
  background: transparent !important;
  opacity: 1 !important;
  transform: none !important;
}

.bos-profile .bos-pf-catalog--blogs .blog-more span {
  display: inline-flex !important;
  align-items: center !important;
  height: 28px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.bos-profile .bos-pf-catalog--blogs .blog-container:hover .blog-more span {
  background: #eef0f3 !important;
}

body.night-mode .bos-profile .bos-pf-catalog--blogs .blog-container,
body.night-mode .bos-profile .bos-pf-catalog--blogs .blog-container.primary,
body.night-mode .bos-profile .bos-pf-catalog--blogs .blog-image,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--blogs .blog-container,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--blogs .blog-container.primary,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--blogs .blog-image {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-profile .bos-pf-catalog--blogs .blog-more span,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--blogs .blog-more span {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

/* —— Profile videos / reels —— */
.bos-profile .bos-pf-subtabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile .bos-pf-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--bos-pf-muted, #858b95) !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.bos-profile .bos-pf-subtab:hover {
  color: var(--bos-pf-ink, #191b20) !important;
  background: rgba(255, 255, 255, 0.7);
}

.bos-profile .bos-pf-subtab.active {
  background: #fff !important;
  color: var(--bos-pf-ink, #191b20) !important;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.06);
}

.bos-profile .bos-pf-subtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(25, 27, 32, 0.06);
  color: var(--bos-pf-muted, #858b95);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.bos-profile .bos-pf-subtab.active .bos-pf-subtab-count {
  background: var(--bos-pf-soft, #f6f7f9);
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .bos-profile .bos-pf-reel-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-catalog--videos .bos-pf-video-grid > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.bos-profile .bos-pf-catalog--videos .pg_video {
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
  padding-bottom: 72%;
}

.bos-profile .bos-pf-catalog--reels .pg_video {
  padding-bottom: 140%;
}

.bos-profile .bos-pf-catalog--videos .pg_video .play-button {
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(27, 30, 35, 0.72);
  color: #fff;
  box-shadow: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.bos-profile .bos-pf-catalog--videos .pg_video .play-button i {
  font-size: 14px;
  margin-left: 2px;
}

.bos-profile .bos-pf-catalog--videos .pg_video:hover .play-button {
  background: rgba(27, 30, 35, 0.9);
  box-shadow: none;
  transform: scale(1.04);
}

body.night-mode .bos-profile .bos-pf-subtabs,
html[data-bs-theme="dark"] .bos-profile .bos-pf-subtabs {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile .bos-pf-subtab.active,
html[data-bs-theme="dark"] .bos-profile .bos-pf-subtab.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: none;
}

body.night-mode .bos-profile .bos-pf-catalog--videos .pg_video,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--videos .pg_video {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

/* —— Profile photos / albums —— */
.bos-profile .bos-pf-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-album-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (min-width: 576px) {
  .bos-profile .bos-pf-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .bos-profile .bos-pf-album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-catalog--photos .bos-pf-photo-grid > [class*="col-"],
.bos-profile .bos-pf-catalog--photos .bos-pf-album-grid > [class*="col-"],
.bos-profile .bos-pf-album-detail .row > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.bos-profile .bos-pf-album-detail .row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-album-detail .row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-album-detail .row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.bos-profile .bos-pf-catalog--photos .pg_photo {
  display: block;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background-color: var(--bos-pf-soft, #f6f7f9);
  background-size: cover;
  background-position: center;
  padding-bottom: 100%;
  overflow: hidden;
}

.bos-profile .bos-pf-catalog--photos .pg_photo.large {
  height: auto !important;
}

.bos-profile .bos-pf-catalog--photos .pg_photo-delete-btn,
.bos-profile .bos-pf-catalog--photos .pg_photo-pin-btn {
  border-radius: 999px;
}

.bos-profile .bos-pf-catalog--photos .album-card {
  height: 100%;
  margin: 0 !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff;
  overflow: hidden;
  box-shadow: none !important;
}

.bos-profile .bos-pf-catalog--photos .album-cover {
  border-radius: 0 !important;
  background-color: var(--bos-pf-soft, #f6f7f9);
  padding-top: 72%;
}

.bos-profile .bos-pf-catalog--photos .album-details {
  padding: 12px !important;
}

.bos-profile .bos-pf-catalog--photos .album-details > a {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bos-pf-ink, #191b20) !important;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-profile .bos-pf-catalog--photos .album-details > a:hover {
  color: var(--link-color) !important;
}

.bos-profile .bos-pf-catalog--photos .album-details > div {
  font-size: 12px;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-album-detail .text-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  text-align: left !important;
}

.bos-profile .bos-pf-album-detail .text-center .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 10px !important;
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-profile .bos-pf-album-detail .text-center .btn:hover {
  background: #eef0f3 !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .bos-pf-album-detail .text-center .btn-outline-danger {
  color: #b42318 !important;
}

.bos-profile .bos-pf-album-detail .album-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile .bos-pf-album-detail .album-meta {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--bos-pf-muted, #858b95);
}

.bos-profile .bos-pf-album-detail .text-muted {
  margin: 0 !important;
  padding: 28px 16px;
  border: 1px dashed var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
  color: var(--bos-pf-muted, #858b95) !important;
  font-size: 13px;
}

.bos-profile .bos-pf-album-detail .see-more {
  margin-top: 14px !important;
}

body.night-mode .bos-profile .bos-pf-catalog--photos .pg_photo,
body.night-mode .bos-profile .bos-pf-catalog--photos .album-card,
body.night-mode .bos-profile .bos-pf-catalog--photos .album-cover,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--photos .pg_photo,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--photos .album-card,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog--photos .album-cover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile .bos-pf-album-detail .text-center .btn,
html[data-bs-theme="dark"] .bos-profile .bos-pf-album-detail .text-center .btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* —— Profile people (friends / followers…) —— */
.bos-profile .bos-pf-people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-profile .bos-pf-people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-profile .bos-pf-people-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

.bos-profile .bos-pf-catalog--people .ui-box .img {
  aspect-ratio: 1 / 1;
}

body.night-mode .bos-profile .bos-pf-subtab-count,
html[data-bs-theme="dark"] .bos-profile .bos-pf-subtab-count {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.night-mode .bos-profile .bos-pf-subtab.active .bos-pf-subtab-count,
html[data-bs-theme="dark"] .bos-profile .bos-pf-subtab.active .bos-pf-subtab-count {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Night */
body.night-mode .bos-profile,
html[data-bs-theme="dark"] .bos-profile {
  --bos-pf-ink: #e2e8f0;
  --bos-pf-muted: #94a3b8;
  --bos-pf-line: rgba(255, 255, 255, 0.1);
  --bos-pf-soft: rgba(255, 255, 255, 0.05);
  --bos-pf-bs: color-mix(in srgb, var(--link-color) 22%, transparent);
}

body.night-mode .bos-profile .bos-profile-header,
html[data-bs-theme="dark"] .bos-profile .bos-profile-header {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-profile .profile-cover-wrapper,
html[data-bs-theme="dark"] .bos-profile .profile-cover-wrapper {
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--link-color) 28%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, #2a3138 0%, #1f252b 100%) !important;
}

body.night-mode .bos-profile .bos-profile-side > .card,
html[data-bs-theme="dark"] .bos-profile .bos-profile-side > .card {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-profile .bos-profile-tabs,
html[data-bs-theme="dark"] .bos-profile .bos-profile-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-profile .bos-profile-tabs > a:hover,
body.night-mode .bos-profile .bos-profile-tabs > a.active,
html[data-bs-theme="dark"] .bos-profile .bos-profile-tabs > a:hover,
html[data-bs-theme="dark"] .bos-profile .bos-profile-tabs > a.active {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .bos-profile .bos-pf-merit-cell,
body.night-mode .bos-profile .bos-pf-about .about-bio,
body.night-mode .bos-profile .bos-pf-about-stats,
body.night-mode .bos-profile .bos-pf-search-field,
html[data-bs-theme="dark"] .bos-profile .bos-pf-merit-cell,
html[data-bs-theme="dark"] .bos-profile .bos-pf-about .about-bio,
html[data-bs-theme="dark"] .bos-profile .bos-pf-about-stats,
html[data-bs-theme="dark"] .bos-profile .bos-pf-search-field {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-profile .bos-pf-merit-ico,
html[data-bs-theme="dark"] .bos-profile .bos-pf-merit-ico {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .bos-profile .bos-profile-side .circled-user-box .user-box:hover,
html[data-bs-theme="dark"] .bos-profile .bos-profile-side .circled-user-box .user-box:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-profile .bos-profile-side .circled-user-box img,
html[data-bs-theme="dark"] .bos-profile .bos-profile-side .circled-user-box img,
body.night-mode .bos-profile .bos-pf-entity-media,
html[data-bs-theme="dark"] .bos-profile .bos-pf-entity-media {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-profile .bos-pf-entities .card-header .svg-container *,
body.night-mode .bos-profile .bos-pf-entities .card-header .main-icon *,
html[data-bs-theme="dark"] .bos-profile .bos-pf-entities .card-header .svg-container *,
html[data-bs-theme="dark"] .bos-profile .bos-pf-entities .card-header .main-icon * {
  fill: #94a3b8 !important;
}

body.night-mode .bos-profile .bos-pf-entity-name,
html[data-bs-theme="dark"] .bos-profile .bos-pf-entity-name {
  color: #e2e8f0 !important;
}

body.night-mode .bos-profile .bos-pf-catalog-count,
body.night-mode .bos-profile .bos-pf-catalog-hint,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog-count,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog-hint {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-profile .bos-pf-catalog,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-profile .bos-pf-catalog .ui-box,
body.night-mode .bos-profile .bos-pf-catalog .ui-box.darker,
body.night-mode .bos-profile .bos-pf-empty-ico,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog .ui-box,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog .ui-box.darker,
html[data-bs-theme="dark"] .bos-profile .bos-pf-empty-ico {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-profile .bos-pf-empty,
body.night-mode .bos-profile .bos-pf-catalog-cta,
body.night-mode .bos-profile .bos-pf-catalog .ui-box .btn-light,
body.night-mode .bos-profile .bos-pf-catalog .see-more,
html[data-bs-theme="dark"] .bos-profile .bos-pf-empty,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog-cta,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog .ui-box .btn-light,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog .see-more {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-profile .bos-pf-catalog .ui-box .img,
html[data-bs-theme="dark"] .bos-profile .bos-pf-catalog .ui-box .img {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-profile .profile-avatar-wrapper,
html[data-bs-theme="dark"] .bos-profile .profile-avatar-wrapper {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-profile .profile-name-wrapper a,
html[data-bs-theme="dark"] .bos-profile .profile-name-wrapper a {
  color: #e2e8f0 !important;
}

body.night-mode .bos-profile .profile-buttons-wrapper .btn,
html[data-bs-theme="dark"] .bos-profile .profile-buttons-wrapper .btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

/* —— Settings pages — soft console —— */
.bos-settings {
  --bos-set-ink: #191b20;
  --bos-set-muted: #858b95;
  --bos-set-line: #e9ebef;
  --bos-set-soft: #f6f7f9;
  --bos-set-bs: color-mix(in srgb, var(--link-color) 12%, #fff);
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-settings .bos-settings-nav,
.bos-settings .bos-settings-panel {
  margin-bottom: 16px !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px -22px rgba(20, 24, 32, 0.18) !important;
  overflow: hidden;
}

.bos-settings .bos-settings-nav .card-body.with-nav {
  padding: 8px !important;
}

.bos-settings .side-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-settings .side-nav > li {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.bos-settings .side-nav > li > a,
.bos-settings .side-nav > li > .static {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  margin: 1px 0;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 10px !important;
  color: #515761 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.12s ease, color 0.12s ease;
}

.bos-settings .side-nav > li > a::before,
.bos-settings .side-nav > li.active > a::before {
  content: none !important;
  display: none !important;
}

.bos-settings .side-nav > li > a .main-icon,
.bos-settings .side-nav > li > a .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px;
  color: #858b95 !important;
  fill: #858b95 !important;
}

.bos-settings .side-nav > li > a .main-icon *,
.bos-settings .side-nav > li > a .svg-container *,
.bos-settings .side-nav > li > a .svg-container path,
.bos-settings .side-nav > li > a .svg-container path[fill] {
  color: #858b95 !important;
  fill: #858b95 !important;
  stroke: none !important;
}

.bos-settings .side-nav > li > a:hover {
  background: var(--bos-set-soft) !important;
  color: var(--bos-set-ink) !important;
}

.bos-settings .side-nav > li.active > a {
  background: var(--bos-set-bs) !important;
  color: var(--link-color) !important;
}

.bos-settings .side-nav > li.active > a .main-icon,
.bos-settings .side-nav > li.active > a .svg-container,
.bos-settings .side-nav > li.active > a .main-icon *,
.bos-settings .side-nav > li.active > a .svg-container * {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.bos-settings .side-nav a[data-bs-toggle="collapse"]:after {
  margin-left: auto;
  float: none !important;
  color: #c5cad1 !important;
  font-size: 12px;
}

.bos-settings .side-nav a[data-bs-toggle="collapse"][aria-expanded="true"]:after {
  color: var(--link-color) !important;
}

.bos-settings .side-nav .collapse > ul,
.bos-settings .side-nav .collapsing > ul {
  list-style: none;
  margin: 0 0 6px;
  padding: 0 0 0 8px;
}

.bos-settings .side-nav .collapse ul a,
.bos-settings .side-nav ul a {
  display: block;
  padding: 8px 12px 8px 40px !important;
  margin: 1px 0;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 10px !important;
  color: #747b85 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bos-settings .side-nav .collapse ul a:hover,
.bos-settings .side-nav ul > li.active > a {
  background: var(--bos-set-soft) !important;
  color: var(--link-color) !important;
}

.bos-settings .side-nav .divider {
  height: 1px;
  margin: 8px 10px !important;
  background: var(--bos-set-line);
  border: 0;
}

/* Content panel */
.bos-settings .bos-settings-panel > .card-header,
.bos-settings .bos-settings-panel .card-header.with-icon {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--bos-set-line) !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--bos-set-ink) !important;
}

.bos-settings .bos-settings-panel .card-header .main-icon,
.bos-settings .bos-settings-panel .card-header .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.bos-settings .bos-settings-panel .card-header .main-icon *,
.bos-settings .bos-settings-panel .card-header .svg-container * {
  color: var(--link-color) !important;
  fill: var(--link-color) !important;
}

.bos-settings .bos-settings-panel .card-body {
  padding: 18px !important;
}

.bos-settings .heading-small {
  margin-bottom: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-set-muted) !important;
}

.bos-settings .form-label {
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #515761 !important;
}

.bos-settings .form-control,
.bos-settings .form-select,
.bos-settings .input-group-text {
  min-height: 42px;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--bos-set-ink) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.bos-settings .input-group > .form-control,
.bos-settings .input-group > .input-group-text,
.bos-settings .input-group > .form-select {
  border-radius: 0 !important;
}

.bos-settings .input-group > :first-child {
  border-top-left-radius: 11px !important;
  border-bottom-left-radius: 11px !important;
}

.bos-settings .input-group > :last-child {
  border-top-right-radius: 11px !important;
  border-bottom-right-radius: 11px !important;
}

.bos-settings .form-control:focus,
.bos-settings .form-select:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, var(--bos-set-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 14%, transparent) !important;
}

.bos-settings .form-text {
  margin-top: 6px !important;
  font-size: 11px !important;
  font-weight: 500;
  color: #999fa8 !important;
}

.bos-settings .divider {
  margin: 18px 0 !important;
  border-top: 1px solid var(--bos-set-line) !important;
  opacity: 1;
}

.bos-settings .card-footer,
.bos-settings .bos-settings-panel .card-footer {
  background: transparent !important;
  border-top: 1px solid var(--bos-set-line) !important;
  padding: 14px 18px !important;
}

.bos-settings .btn-primary,
.bos-settings button[type="submit"].btn,
.bos-settings .js_ajax-forms .btn-primary,
.bos-settings a.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 40px;
  padding: 10px 18px 9px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.bos-settings .btn-primary:hover,
.bos-settings button[type="submit"].btn:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-settings .btn-light,
.bos-settings .btn-secondary {
  height: 40px;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 11px !important;
  background: var(--bos-set-soft) !important;
  color: #515761 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-settings .alert {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  font-size: 12px;
  font-weight: 550;
}

.bos-settings .alert.x-hidden,
.bos-settings .alert-danger.x-hidden,
.bos-settings .alert-success.x-hidden,
.bos-settings .alert-info.x-hidden,
.bos-settings .alert-warning.x-hidden {
  display: none !important;
}

.bos-settings .alert-warning:not(.x-hidden) {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

.bos-settings .alert-danger:not(.x-hidden) {
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.bos-settings .alert-success:not(.x-hidden) {
  background: #f0fdf4 !important;
  color: #166534 !important;
}

.bos-settings .alert-info:not(.x-hidden) {
  background: #eff6ff !important;
  color: #1e3a8a !important;
}

/* Toggle rows */
.bos-settings .form-table-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 12px;
  background: transparent;
  transition: background 0.12s ease;
}

.bos-settings .form-table-row:hover {
  background: var(--bos-set-soft);
}

.bos-settings .form-table-row > div {
  flex: 1;
  min-width: 0;
}

.bos-settings .form-table-row > div.avatar {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bos-set-soft);
  color: #747b85 !important;
  fill: #747b85 !important;
}

.bos-settings .form-table-row > div.avatar .main-icon,
.bos-settings .form-table-row > div.avatar .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-settings .form-table-row > div.avatar .main-icon,
.bos-settings .form-table-row > div.avatar .main-icon *,
.bos-settings .form-table-row > div.avatar .svg-container,
.bos-settings .form-table-row > div.avatar .svg-container * {
  color: #747b85 !important;
  fill: #747b85 !important;
}

.bos-settings .form-table-row > div.avatar svg {
  width: 18px !important;
  height: 18px !important;
}

.bos-settings .form-table-row .form-label,
.bos-settings .form-table-row .form-label.h6 {
  margin: 0 0 2px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--bos-set-ink) !important;
  line-height: 1.3;
}

.bos-settings .form-table-row .form-text {
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 500;
  color: #999fa8 !important;
  line-height: 1.35;
}

.bos-settings .form-table-row > .text-end {
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.bos-settings .form-table-row .switch {
  margin: 0;
  width: 40px;
  height: 22px;
}

.bos-settings .form-table-row .switch .slider:before {
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
}

.bos-settings .form-table-row .switch input:checked + .slider:before {
  transform: translateX(18px);
}

.bos-settings .form-table-row .switch .slider {
  background-color: #d7dbe2 !important;
}

.bos-settings .form-table-row .switch input:checked + .slider {
  background-color: var(--link-color) !important;
}

.bos-settings .bos-settings-panel .card-body > .row {
  margin-top: 10px;
}

.bos-settings .bos-settings-panel .card-body > .row > .form-group {
  margin-bottom: 14px;
}

.bos-settings .input-group-text i {
  color: #858b95 !important;
  font-size: 13px;
}

.bos-settings .bos-settings-back .text-link {
  color: var(--bos-set-muted) !important;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-settings .bos-settings-back .text-link:hover {
  color: var(--link-color) !important;
}

/* Night */
body.night-mode .bos-settings,
html[data-bs-theme="dark"] .bos-settings {
  --bos-set-ink: #e2e8f0;
  --bos-set-muted: #94a3b8;
  --bos-set-line: rgba(255, 255, 255, 0.1);
  --bos-set-soft: rgba(255, 255, 255, 0.05);
  --bos-set-bs: color-mix(in srgb, var(--link-color) 22%, transparent);
}

body.night-mode .bos-settings .bos-settings-nav,
body.night-mode .bos-settings .bos-settings-panel,
html[data-bs-theme="dark"] .bos-settings .bos-settings-nav,
html[data-bs-theme="dark"] .bos-settings .bos-settings-panel {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-settings .form-control,
body.night-mode .bos-settings .form-select,
body.night-mode .bos-settings .input-group-text,
html[data-bs-theme="dark"] .bos-settings .form-control,
html[data-bs-theme="dark"] .bos-settings .form-select,
html[data-bs-theme="dark"] .bos-settings .input-group-text {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-settings .btn-primary,
html[data-bs-theme="dark"] .bos-settings .btn-primary {
  background: #e2e8f0 !important;
  color: #111 !important;
}

/* —— Settings account/profile tabs —— */
.bos-settings .bos-settings-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bos-set-line);
  background: color-mix(in srgb, var(--bos-set-soft) 70%, #fff);
  scrollbar-width: none;
}

.bos-settings .bos-settings-tabs::-webkit-scrollbar {
  display: none;
}

.bos-settings .bos-settings-tabs > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  color: #747b85 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.bos-settings .bos-settings-tabs > a:hover {
  background: #fff;
  color: var(--bos-set-ink) !important;
}

.bos-settings .bos-settings-tabs > a.active {
  background: #fff;
  color: var(--link-color) !important;
  box-shadow: 0 1px 0 rgba(20, 24, 32, 0.04), 0 8px 20px -16px rgba(20, 24, 32, 0.35);
}

.bos-settings .bos-settings-panel.has-soft-tabs > .card-header,
.bos-settings .bos-settings-panel.has-soft-tabs > .card-header.with-icon {
  display: none !important;
}

body.night-mode .bos-settings .bos-settings-tabs,
html[data-bs-theme="dark"] .bos-settings .bos-settings-tabs {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-settings-tabs > a:hover,
body.night-mode .bos-settings .bos-settings-tabs > a.active,
html[data-bs-theme="dark"] .bos-settings .bos-settings-tabs > a:hover,
html[data-bs-theme="dark"] .bos-settings .bos-settings-tabs > a.active {
  background: rgba(255, 255, 255, 0.06);
}

/* —— Download Your Information —— */
.bos-settings .bos-info-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-info-intro-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: #747b85;
}

.bos-settings .bos-info-intro-ico .main-icon,
.bos-settings .bos-info-intro-ico .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-info-intro-ico .main-icon *,
.bos-settings .bos-info-intro-ico .svg-container *,
.bos-settings .bos-info-intro-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-info-intro-copy {
  flex: 1;
  min-width: 0;
}

.bos-settings .bos-info-intro-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bos-set-ink);
}

.bos-settings .bos-info-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bos-set-muted);
}

.bos-settings .bos-info-section-lbl {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
}

.bos-settings .bos-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bos-settings .bos-info-grid > .input-label {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bos-settings .bos-info-tile.button-label,
.bos-settings .button-label.bos-info-tile {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 12px 12px 14px !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  text-align: left !important;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.bos-settings .bos-info-tile:hover {
  background: var(--bos-set-soft) !important;
  border-color: color-mix(in srgb, var(--link-color) 22%, var(--bos-set-line)) !important;
}

.bos-settings .bos-info-tile .icon {
  flex: 0 0 34px !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--bos-set-soft) !important;
  display: grid !important;
  place-items: center;
  float: none !important;
}

.bos-settings .bos-info-tile .icon .main-icon,
.bos-settings .bos-info-tile .icon .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-info-tile .icon .main-icon *,
.bos-settings .bos-info-tile .icon .svg-container *,
.bos-settings .bos-info-tile .icon path {
  fill: #747b85 !important;
}

.bos-settings .bos-info-tile .title {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--bos-set-ink) !important;
  text-align: left !important;
}

.bos-settings .bos-info-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c9ced6;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.bos-settings .bos-info-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.bos-settings .input-label:checked + .bos-info-tile {
  background: var(--bos-set-bs) !important;
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-set-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 10%, transparent) !important;
}

.bos-settings .input-label:checked + .bos-info-tile .icon {
  background: #fff !important;
}

.bos-settings .input-label:checked + .bos-info-tile .icon .main-icon *,
.bos-settings .input-label:checked + .bos-info-tile .icon .svg-container *,
.bos-settings .input-label:checked + .bos-info-tile .icon path {
  fill: var(--link-color) !important;
}

.bos-settings .input-label:checked + .bos-info-tile .title {
  color: var(--bos-set-ink) !important;
}

.bos-settings .input-label:checked + .bos-info-tile .bos-info-check {
  border-color: var(--link-color);
  background: var(--link-color);
}

.bos-settings .input-label:checked + .bos-info-tile .bos-info-check::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

@media (min-width: 768px) {
  .bos-settings .bos-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .bos-settings .bos-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.night-mode .bos-settings .bos-info-intro-ico,
body.night-mode .bos-settings .bos-info-tile.button-label,
html[data-bs-theme="dark"] .bos-settings .bos-info-intro-ico,
html[data-bs-theme="dark"] .bos-settings .bos-info-tile.button-label {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-settings .bos-info-tile .icon,
html[data-bs-theme="dark"] .bos-settings .bos-info-tile .icon {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-settings .input-label:checked + .bos-info-tile .icon,
html[data-bs-theme="dark"] .bos-settings .input-label:checked + .bos-info-tile .icon {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-settings .bos-info-check,
html[data-bs-theme="dark"] .bos-settings .bos-info-check {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
}

/* —— Addresses —— */
.bos-settings .bos-addr-grid.payment-plans,
.bos-settings .bos-addr-grid {
  display: grid !important;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px !important;
  flex-wrap: unset !important;
}

@media (min-width: 768px) {
  .bos-settings .bos-addr-grid.payment-plans,
  .bos-settings .bos-addr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bos-settings .bos-addr-card.payment-plan,
.bos-settings .bos-addr-card {
  flex-basis: auto !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 !important;
  padding: 14px !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  min-height: 0 !important;
}

.bos-settings .bos-addr-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bos-settings .bos-addr-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bos-set-soft);
  color: #747b85;
}

.bos-settings .bos-addr-ico .main-icon,
.bos-settings .bos-addr-ico .svg-container {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-addr-ico .main-icon *,
.bos-settings .bos-addr-ico .svg-container *,
.bos-settings .bos-addr-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-addr-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bos-set-ink);
}

.bos-settings .bos-addr-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.bos-settings .bos-addr-line {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--bos-set-muted);
  word-break: break-word;
}

.bos-settings .bos-addr-phone {
  color: var(--bos-set-ink);
  font-weight: 550;
}

.bos-settings .bos-addr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.bos-settings .bos-addr-edit {
  flex: 1;
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 10px !important;
  background: var(--bos-set-soft) !important;
  color: var(--bos-set-ink) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-settings .bos-addr-edit:hover {
  background: #eceef2 !important;
  color: var(--link-color) !important;
}

.bos-settings .bos-addr-del {
  flex: 0 0 36px;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #9aa1aa !important;
}

.bos-settings .bos-addr-del .main-icon,
.bos-settings .bos-addr-del .svg-container {
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
}

.bos-settings .bos-addr-del .main-icon *,
.bos-settings .bos-addr-del .svg-container *,
.bos-settings .bos-addr-del path {
  fill: #9aa1aa !important;
}

.bos-settings .bos-addr-del:hover {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
}

.bos-settings .bos-addr-del:hover .main-icon *,
.bos-settings .bos-addr-del:hover .svg-container *,
.bos-settings .bos-addr-del:hover path {
  fill: #dc2626 !important;
}

.bos-settings .bos-addr-add.payment-plan,
.bos-settings .bos-addr-add {
  flex-basis: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding: 28px 16px !important;
  min-height: 160px !important;
  border: 1.5px dashed color-mix(in srgb, var(--link-color) 35%, var(--bos-set-line)) !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--link-color) 4%, #fff) !important;
  color: var(--link-color) !important;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.bos-settings .bos-addr-add:hover {
  background: var(--bos-set-bs) !important;
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-set-line)) !important;
}

.bos-settings .bos-addr-add-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--link-color);
  box-shadow: 0 1px 0 rgba(20, 24, 32, 0.04);
}

.bos-settings .bos-addr-add-lbl {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bos-set-ink);
}

body.night-mode .bos-settings .bos-addr-card,
html[data-bs-theme="dark"] .bos-settings .bos-addr-card {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-addr-add,
html[data-bs-theme="dark"] .bos-settings .bos-addr-add {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-addr-add-ico,
html[data-bs-theme="dark"] .bos-settings .bos-addr-add-ico {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .bos-settings .bos-addr-del,
html[data-bs-theme="dark"] .bos-settings .bos-addr-del {
  background: transparent !important;
}

/* —— Soft modal (addresses + shared) —— */
.modal-content:has(.bos-modal-header),
.modal-content:has(.bos-modal-form) {
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.28) !important;
}

.bos-modal-header.modal-header,
.modal-header.bos-modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #fff !important;
}

.bos-modal-header .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  line-height: 1.3;
}

.bos-modal-header .modal-title .main-icon,
.bos-modal-header .modal-title .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-modal-header .modal-title svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

.bos-modal-header .modal-title svg[fill="none"],
.bos-modal-header .modal-title svg[fill="none"] * {
  fill: none !important;
  stroke: currentColor !important;
}

.bos-modal-header .btn-close {
  margin: 0 0 0 auto;
  opacity: 0.55;
  box-shadow: none !important;
}

.bos-modal-body.modal-body,
.modal-body.bos-modal-body {
  padding: 16px 18px !important;
  background: #fff;
}

.bos-modal-body .form-group {
  margin-bottom: 12px !important;
}

.bos-modal-body .form-label {
  margin-bottom: 6px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
}

.bos-modal-body .form-control,
.bos-modal-body .form-select,
.bos-modal-body textarea.form-control {
  min-height: 42px;
  padding: 10px 12px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  color: #191b20 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bos-modal-body textarea.form-control {
  min-height: 84px;
  resize: vertical;
}

.bos-modal-body .input-group-text {
  border: 1px solid #e9ebef !important;
  border-radius: 11px 0 0 11px !important;
  background: #f6f7f9 !important;
  color: #858b95 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.bos-modal-body .input-group .form-control {
  border-radius: 0 11px 11px 0 !important;
}

.bos-modal-url-group {
  flex-wrap: nowrap;
}

.bos-modal-url-group .input-group-text {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px !important;
  font-weight: 550 !important;
  color: #9aa1ab !important;
}

.bos-modal-body .row.g-2 > .form-group {
  margin-bottom: 12px !important;
}

.bos-modal-body .form-text {
  margin-top: 6px;
  font-size: 11.5px;
  color: #858b95;
}

.bos-modal-body .form-control:focus,
.bos-modal-body .form-select:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-modal-footer.modal-footer,
.modal-footer.bos-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px !important;
  border-top: 1px solid #e9ebef !important;
  background: #fafbfc !important;
}

.bos-modal-footer .btn-light {
  height: 38px;
  padding: 0 14px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #515761 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-modal-footer .btn-light:hover {
  background: #f6f7f9 !important;
}

.bos-modal-footer .btn-primary {
  height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-modal-footer .btn-primary:hover {
  background: #111318 !important;
}

body.night-mode .modal-content:has(.bos-modal-header),
body.night-mode .modal-content:has(.bos-modal-form),
html[data-bs-theme="dark"] .modal-content:has(.bos-modal-header),
html[data-bs-theme="dark"] .modal-content:has(.bos-modal-form) {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-modal-header,
body.night-mode .bos-modal-body,
html[data-bs-theme="dark"] .bos-modal-header,
html[data-bs-theme="dark"] .bos-modal-body {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-modal-header .modal-title,
html[data-bs-theme="dark"] .bos-modal-header .modal-title {
  color: #e2e8f0 !important;
}

body.night-mode .bos-modal-body .form-control,
html[data-bs-theme="dark"] .bos-modal-body .form-control {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-modal-footer,
html[data-bs-theme="dark"] .bos-modal-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-modal-footer .btn-primary,
html[data-bs-theme="dark"] .bos-modal-footer .btn-primary {
  background: #fff !important;
  color: #111 !important;
}

/* soft create-modal extras (toggles, uploads, money) */
.bos-modal-body .form-table-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 0 0 12px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 12px !important;
  background: #f6f7f9 !important;
}

.bos-modal-body .form-table-row .form-label.h6,
.bos-modal-body .form-table-row .form-label {
  margin: 0 0 2px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #191b20 !important;
}

.bos-modal-body .form-table-row .form-text {
  margin: 0;
  font-size: 11.5px;
  color: #858b95;
}

.bos-modal-body .form-table-row .avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e9ebef;
}

.bos-modal-body .form-table-row .avatar .svg-container,
.bos-modal-body .form-table-row .avatar .main-icon {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-modal-body .divider,
.bos-modal-body .divider.dashed {
  margin: 14px 0 !important;
  border-top: 1px solid #e9ebef !important;
  opacity: 1;
}

.bos-modal-body .x-image {
  border: 1px solid #e9ebef !important;
  border-radius: 12px !important;
  background: #f6f7f9 !important;
  overflow: hidden;
}

.bos-modal-body .attachments ul li.add {
  border: 1px dashed #e9ebef !important;
  border-radius: 12px !important;
  background: #f6f7f9 !important;
  color: #858b95 !important;
}

.bos-modal-body .attachments ul li.add:hover {
  border-color: color-mix(in srgb, var(--link-color) 40%, #e9ebef) !important;
  background: color-mix(in srgb, var(--link-color) 8%, #fff) !important;
  color: var(--link-color) !important;
}

.bos-modal-body .input-money {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e9ebef !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  overflow: hidden;
}

.bos-modal-body .input-money > span {
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: #858b95;
  background: #f6f7f9;
  border-right: 1px solid #e9ebef;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.bos-modal-body .input-money .form-control {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bos-modal-body .alert {
  border-radius: 12px !important;
  border: 1px solid #e9ebef !important;
  font-size: 12.5px;
}

.bos-modal-body .alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: color-mix(in srgb, #f59e0b 10%, #fff) !important;
  border-color: color-mix(in srgb, #d97706 22%, #e9ebef) !important;
  color: #5c4a2e !important;
  padding: 12px 14px !important;
}

.bos-modal-body .alert-warning .icon {
  flex: 0 0 auto;
  color: #b45309;
  margin: 0;
}

.bos-modal-body .alert-warning .text {
  font-size: 13px;
  line-height: 1.45;
}

.bos-modal-body .alert-warning .badge {
  background: #fff !important;
  color: #191b20 !important;
  border: 1px solid #e9ebef;
  font-weight: 700;
}

/* Product modal extras */
.bos-product-form .bos-product-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #dde1e7;
  border-radius: 12px;
  background: #f6f7f9;
}

.bos-product-form .bos-product-file .x-image {
  flex: 0 0 72px;
  width: 72px !important;
  height: 72px !important;
  margin: 0;
}

.bos-product-form .bos-product-file-hint {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bos-product-form .bos-product-file-hint strong {
  font-size: 13px;
  font-weight: 650;
  color: #191b20;
}

.bos-product-form .bos-product-file-hint span {
  font-size: 11.5px;
  color: #858b95;
  word-break: break-word;
}

.bos-product-form .bos-product-photos {
  margin: 0;
}

.bos-product-form .bos-product-photos ul {
  margin: 0;
}

.bos-product-form .bos-product-photos li.add {
  width: 88px !important;
  height: 88px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bos-product-form .bos-product-photos-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #858b95;
}

.bos-product-form input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.bos-product-form .row.g-2 > [class*="col-"] > .form-group,
.bos-product-form .row.g-2 > .form-group {
  margin-bottom: 12px !important;
}

/* Create Post modal — CSS-first soft shell around bos-publisher */
.modal-content:has(.bos-create-post-modal),
.modal-content:has(#publisher-wapper-modal),
.modal-content:has(.bos-publisher[data-modal-mode="true"]) {
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.28) !important;
  background: #fff !important;
}

.bos-create-post-modal {
  padding: 0 !important;
  background: #fff;
}

.bos-create-post-modal .bos-publisher,
.modal-content:has(#publisher-wapper-modal) .bos-publisher,
.modal-content .bos-publisher[data-modal-mode="true"] {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bos-create-post-modal .publisher-close,
.modal-content .bos-publisher[data-modal-mode="true"] .publisher-close {
  top: 12px;
  right: 12px;
  z-index: 5;
}

.bos-create-post-modal .publisher-close .btn-close,
.modal-content .bos-publisher[data-modal-mode="true"] .publisher-close .btn-close {
  opacity: 0.55;
  box-shadow: none !important;
}

body.night-mode .modal-content:has(.bos-create-post-modal),
body.night-mode .modal-content:has(#publisher-wapper-modal),
body.night-mode .modal-content:has(.bos-publisher[data-modal-mode="true"]),
html[data-bs-theme="dark"] .modal-content:has(.bos-create-post-modal),
html[data-bs-theme="dark"] .modal-content:has(#publisher-wapper-modal),
html[data-bs-theme="dark"] .modal-content:has(.bos-publisher[data-modal-mode="true"]) {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-modal-body .form-table-row,
html[data-bs-theme="dark"] .bos-modal-body .form-table-row {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-modal-body .form-table-row .form-label.h6,
html[data-bs-theme="dark"] .bos-modal-body .form-table-row .form-label.h6 {
  color: #e2e8f0 !important;
}

/* —— Bank transfers —— */
.bos-settings .bos-bank-lbl {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
}

.bos-settings .bos-bank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bos-settings .bos-bank-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.bos-settings .bos-bank-row:hover {
  background: var(--bos-set-soft);
}

.bos-settings .bos-bank-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bos-set-soft);
  color: #747b85;
}

.bos-settings .bos-bank-ico .main-icon,
.bos-settings .bos-bank-ico .svg-container {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-bank-ico .main-icon *,
.bos-settings .bos-bank-ico .svg-container *,
.bos-settings .bos-bank-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-bank-main {
  flex: 1;
  min-width: 0;
}

.bos-settings .bos-bank-type {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bos-set-ink);
}

.bos-settings .bos-bank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #999fa8;
  line-height: 1.3;
}

.bos-settings .bos-bank-dot {
  opacity: 0.7;
}

.bos-settings .bos-bank-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.bos-settings .bos-bank-amount {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bos-set-ink);
  white-space: nowrap;
}

.bos-settings .bos-bank-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.bos-settings .bos-bank-badge.is-pending {
  background: #fff7ed;
  color: #c2410c;
}

.bos-settings .bos-bank-badge.is-ok {
  background: #f0fdf4;
  color: #15803d;
}

.bos-settings .bos-bank-badge.is-bad {
  background: #fef2f2;
  color: #b91c1c;
}

.bos-settings .bos-bank-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 18px;
  border: 1px dashed var(--bos-set-line);
  border-radius: 16px;
  background: var(--bos-set-soft);
  text-align: center;
}

.bos-settings .bos-bank-empty-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  color: #747b85;
  box-shadow: 0 1px 0 rgba(20, 24, 32, 0.04);
}

.bos-settings .bos-bank-empty-ico .main-icon,
.bos-settings .bos-bank-empty-ico .svg-container {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-bank-empty-ico .main-icon *,
.bos-settings .bos-bank-empty-ico .svg-container *,
.bos-settings .bos-bank-empty-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-bank-empty-txt {
  max-width: 280px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
  color: var(--bos-set-muted);
}

body.night-mode .bos-settings .bos-bank-row,
html[data-bs-theme="dark"] .bos-settings .bos-bank-row {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-bank-empty,
html[data-bs-theme="dark"] .bos-settings .bos-bank-empty {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-bank-empty-ico,
html[data-bs-theme="dark"] .bos-settings .bos-bank-empty-ico {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .bos-settings .bos-bank-badge.is-pending,
html[data-bs-theme="dark"] .bos-settings .bos-bank-badge.is-pending {
  background: rgba(194, 65, 12, 0.18);
  color: #fdba74;
}

body.night-mode .bos-settings .bos-bank-badge.is-ok,
html[data-bs-theme="dark"] .bos-settings .bos-bank-badge.is-ok {
  background: rgba(21, 128, 61, 0.18);
  color: #86efac;
}

body.night-mode .bos-settings .bos-bank-badge.is-bad,
html[data-bs-theme="dark"] .bos-settings .bos-bank-badge.is-bad {
  background: rgba(185, 28, 28, 0.18);
  color: #fca5a5;
}

/* —— Funding withdraw —— */
.bos-settings .bos-fund-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-fund-intro-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: #747b85;
}

.bos-settings .bos-fund-intro-ico .main-icon,
.bos-settings .bos-fund-intro-ico .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-settings .bos-fund-intro-ico .main-icon *,
.bos-settings .bos-fund-intro-ico .svg-container *,
.bos-settings .bos-fund-intro-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-fund-intro-copy {
  flex: 1;
  min-width: 0;
}

.bos-settings .bos-fund-intro-copy strong {
  display: block;
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bos-set-ink);
}

.bos-settings .bos-fund-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bos-set-muted);
}

.bos-settings .bos-fund-intro-copy a {
  color: var(--link-color) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.bos-settings .bos-fund-intro-copy a:hover {
  text-decoration: underline !important;
}

.bos-settings .bos-fund-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
}

.bos-settings .bos-fund-balance-solo {
  margin-bottom: 0;
}

.bos-settings .bos-fund-balance-lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bos-set-muted);
}

.bos-settings .bos-fund-balance-val {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bos-set-ink);
  letter-spacing: -0.02em;
}

.bos-settings .bos-fund-lbl {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
}

.bos-settings .bos-fund-field {
  margin: 0 0 14px;
}

.bos-settings .bos-fund-field .form-label {
  margin-bottom: 6px !important;
}

.bos-settings .bos-fund-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bos-settings .bos-fund-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 9px 12px;
  border: 1px solid var(--bos-set-line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bos-set-ink);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.bos-settings .bos-fund-method:hover {
  background: var(--bos-set-soft);
}

.bos-settings .bos-fund-method .form-check-input {
  margin: 0 !important;
  float: none !important;
  width: 15px;
  height: 15px;
  border-color: #c9ced6;
  box-shadow: none !important;
}

.bos-settings .bos-fund-method:has(input:checked) {
  background: var(--bos-set-bs);
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-set-line));
}

.bos-settings .bos-fund-method:has(input:checked) .form-check-input {
  border-color: var(--link-color);
  background-color: var(--link-color);
}

.bos-settings .bos-fund-actions {
  margin-top: 4px;
}

.bos-settings .bos-fund-actions .btn-primary {
  min-width: 160px;
}

.bos-settings .bos-fund-divider {
  height: 1px;
  margin: 22px 0 18px;
  background: var(--bos-set-line);
  border: 0;
}

body.night-mode .bos-settings .bos-fund-intro-ico,
body.night-mode .bos-settings .bos-fund-balance,
body.night-mode .bos-settings .bos-fund-method,
html[data-bs-theme="dark"] .bos-settings .bos-fund-intro-ico,
html[data-bs-theme="dark"] .bos-settings .bos-fund-balance,
html[data-bs-theme="dark"] .bos-settings .bos-fund-method {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-settings .bos-fund-method:has(input:checked),
html[data-bs-theme="dark"] .bos-settings .bos-fund-method:has(input:checked) {
  background: var(--bos-set-bs);
}

/* —— Points —— */
.bos-settings .bos-pts-balances {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

@media (min-width: 640px) {
  .bos-settings .bos-pts-balances {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bos-settings .bos-pts-balances .bos-fund-balance {
  margin: 0;
}

.bos-settings .bos-fund-balance-val small {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bos-set-muted);
}

.bos-settings .bos-pts-earn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}

@media (min-width: 992px) {
  .bos-settings .bos-pts-earn {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bos-settings .bos-pts-earn-tile {
  padding: 14px 12px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.bos-settings .bos-pts-earn-n {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--bos-set-ink);
}

.bos-settings .bos-pts-earn-t {
  margin: 2px 0 6px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bos-set-muted);
}

.bos-settings .bos-pts-earn-d {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #8b929c;
}

.bos-settings .bos-bank-ico.is-up {
  background: #f0fdf4;
  color: #15803d;
  font-size: 16px;
  font-weight: 700;
}

.bos-settings .bos-bank-ico.is-down {
  background: #fef2f2;
  color: #b91c1c;
  font-size: 16px;
  font-weight: 700;
}

.bos-settings .bos-bank-amount.is-up {
  color: #15803d;
}

.bos-settings .bos-bank-amount.is-down {
  color: #b91c1c;
}

body.night-mode .bos-settings .bos-pts-earn-tile,
html[data-bs-theme="dark"] .bos-settings .bos-pts-earn-tile {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-bank-ico.is-up,
html[data-bs-theme="dark"] .bos-settings .bos-bank-ico.is-up {
  background: rgba(21, 128, 61, 0.18);
  color: #86efac;
}

body.night-mode .bos-settings .bos-bank-ico.is-down,
html[data-bs-theme="dark"] .bos-settings .bos-bank-ico.is-down {
  background: rgba(185, 28, 28, 0.18);
  color: #fca5a5;
}

/* —— Affiliates —— */
.bos-settings .bos-aff-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

@media (min-width: 768px) {
  .bos-settings .bos-aff-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bos-settings .bos-aff-stat {
  padding: 14px 12px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.bos-settings .bos-aff-stat-lbl {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
  line-height: 1.3;
}

.bos-settings .bos-aff-stat-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bos-set-ink);
}

.bos-settings .bos-aff-stat-val-sm {
  font-size: 16px;
}

.bos-settings .bos-aff-link {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}

.bos-settings .bos-aff-link .form-control {
  flex: 1;
  min-width: 0;
  background: var(--bos-set-soft) !important;
}

.bos-settings .bos-aff-copy {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: auto !important;
  padding: 0 14px !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--bos-set-ink) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  white-space: nowrap;
  box-shadow: none !important;
}

.bos-settings .bos-aff-copy:hover {
  background: var(--bos-set-soft) !important;
  color: var(--link-color) !important;
}

.bos-settings .bos-aff-share {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
}

.bos-settings .bos-aff-share-lbl {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-set-muted);
}

.bos-settings .bos-aff-share .social-links,
.bos-settings .bos-aff-share .share-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.bos-settings .bos-aff-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 4px;
}

@media (min-width: 768px) {
  .bos-settings .bos-aff-levels {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.bos-settings .bos-aff-level {
  padding: 12px 10px;
  border: 1px solid var(--bos-set-line);
  border-radius: 12px;
  background: var(--bos-set-soft);
  text-align: center;
}

.bos-settings .bos-aff-level-n {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--bos-set-muted);
}

.bos-settings .bos-aff-level-v {
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-set-ink);
  letter-spacing: -0.01em;
}

.bos-settings .bos-aff-list > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-settings .bos-aff-list .feeds-item,
.bos-settings .bos-aff-list li {
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 14px !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

.bos-settings .bos-aff-more {
  margin-top: 8px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--bos-set-soft) !important;
  color: var(--bos-set-ink) !important;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

body.night-mode .bos-settings .bos-aff-stat,
body.night-mode .bos-settings .bos-aff-share,
body.night-mode .bos-settings .bos-aff-list .feeds-item,
body.night-mode .bos-settings .bos-aff-list li,
html[data-bs-theme="dark"] .bos-settings .bos-aff-stat,
html[data-bs-theme="dark"] .bos-settings .bos-aff-share,
html[data-bs-theme="dark"] .bos-settings .bos-aff-list .feeds-item,
html[data-bs-theme="dark"] .bos-settings .bos-aff-list li {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-aff-level,
html[data-bs-theme="dark"] .bos-settings .bos-aff-level {
  background: rgba(255, 255, 255, 0.05);
}

body.night-mode .bos-settings .bos-aff-copy,
html[data-bs-theme="dark"] .bos-settings .bos-aff-copy {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
}

/* —— Affiliates payments —— */
.bos-settings .bos-aff-pay-panel {
  margin: 0 0 4px;
  padding: 16px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-aff-pay-panel .bos-fund-lbl {
  margin-bottom: 14px;
}

.bos-settings .bos-aff-pay-panel .form-control {
  background: #fff !important;
}

.bos-settings .bos-aff-pay-panel .bos-fund-method {
  background: #fff;
}

.bos-settings .bos-aff-pay-panel .bos-fund-actions .btn-primary {
  width: 100%;
  min-height: 42px;
  border-radius: 12px !important;
  font-weight: 650;
}

body.night-mode .bos-settings .bos-aff-pay-panel,
html[data-bs-theme="dark"] .bos-settings .bos-aff-pay-panel {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-aff-pay-panel .form-control,
body.night-mode .bos-settings .bos-aff-pay-panel .bos-fund-method,
html[data-bs-theme="dark"] .bos-settings .bos-aff-pay-panel .form-control,
html[data-bs-theme="dark"] .bos-settings .bos-aff-pay-panel .bos-fund-method {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* —— Monetization —— */
.bos-settings .bos-mon-stats {
  margin-bottom: 20px;
}

.bos-settings .bos-mon-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
}

.bos-settings .bos-mon-alert-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 14px;
}

.bos-settings .bos-mon-alert-copy {
  min-width: 0;
}

.bos-settings .bos-mon-alert-copy strong {
  display: block;
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
}

.bos-settings .bos-mon-alert-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #b91c1c;
}

.bos-settings .bos-mon-alert-copy a {
  color: #dc2626 !important;
  font-weight: 650;
  text-decoration: underline !important;
}

.bos-settings .bos-mon-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}

@media (min-width: 768px) {
  .bos-settings .bos-mon-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-mon-plan-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--bos-set-ink) !important;
}

.bos-settings .bos-mon-plan-price span {
  font-weight: 550;
  color: var(--bos-set-muted);
}

.bos-settings .bos-mon-save {
  margin-top: 18px;
}

.bos-settings .bos-mon-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.bos-settings .bos-mon-toolbar .bos-fund-intro {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.bos-settings .bos-mon-toolbar-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

.bos-settings .bos-mon-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--bos-set-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bos-set-ink);
}

.bos-settings .bos-mon-disc {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--link-color) 12%, transparent);
  color: var(--link-color);
  font-size: 11px;
  font-weight: 700;
}

.bos-settings .bos-mon-users {
  color: var(--link-color) !important;
  font-weight: 650;
}

.bos-settings .bos-mon-coupon-acts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bos-settings .bos-mon-act {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--bos-set-ink) !important;
  box-shadow: none !important;
}

.bos-settings .bos-mon-act:hover {
  background: var(--bos-set-soft) !important;
  color: var(--link-color) !important;
}

.bos-settings .bos-mon-act.is-del:hover {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.bos-settings .bos-mon-earn-stats {
  margin-bottom: 18px;
}

.bos-settings .bos-mon-earn-av {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--bos-set-line);
}

.bos-settings .bos-mon-earn-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bos-settings .bos-mon-earn-row .bos-bank-type a {
  color: var(--bos-set-ink) !important;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-settings .bos-mon-earn-row .bos-bank-type a:hover {
  color: var(--link-color) !important;
}

@media (max-width: 575.98px) {
  .bos-settings .bos-mon-toolbar-btn span {
    display: none;
  }
}

body.night-mode .bos-settings .bos-mon-alert,
html[data-bs-theme="dark"] .bos-settings .bos-mon-alert {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}

body.night-mode .bos-settings .bos-mon-alert-ico,
html[data-bs-theme="dark"] .bos-settings .bos-mon-alert-ico {
  background: rgba(220, 38, 38, 0.2);
}

body.night-mode .bos-settings .bos-mon-code,
body.night-mode .bos-settings .bos-mon-act,
html[data-bs-theme="dark"] .bos-settings .bos-mon-code,
html[data-bs-theme="dark"] .bos-settings .bos-mon-act {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
}

/* —— Membership —— */
.bos-settings .bos-mem-stats {
  margin-bottom: 16px;
}

.bos-settings .bos-mem-package {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: #fff;
}

.bos-settings .bos-mem-package-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bos-settings .bos-mem-package-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bos-set-soft);
  color: #747b85;
}

.bos-settings .bos-mem-package-ico .main-icon,
.bos-settings .bos-mem-package-ico .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-settings .bos-mem-package-ico .main-icon *,
.bos-settings .bos-mem-package-ico .svg-container *,
.bos-settings .bos-mem-package-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-mem-package-main {
  flex: 1;
  min-width: 0;
}

.bos-settings .bos-mem-package-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--bos-set-ink);
  line-height: 1.25;
}

.bos-settings .bos-mem-package-meta {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--bos-set-muted);
}

.bos-settings .bos-mem-package-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.bos-settings .bos-mem-package-badge.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.bos-settings .bos-mem-package-badge.is-bad {
  background: #fef2f2;
  color: #b91c1c;
}

.bos-settings .bos-mem-package-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--bos-set-line);
}

.bos-settings .bos-mem-package-dates span {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
}

.bos-settings .bos-mem-package-dates strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--bos-set-ink);
}

.bos-settings .bos-mem-boosts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .bos-settings .bos-mem-boosts {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-mem-boost {
  padding: 12px 14px;
  border: 1px solid var(--bos-set-line);
  border-radius: 14px;
  background: #fff;
}

.bos-settings .bos-mem-boost-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--bos-set-ink);
}

.bos-settings .bos-mem-boost-n {
  font-weight: 700;
  color: var(--bos-set-muted);
  font-variant-numeric: tabular-nums;
}

.bos-settings .bos-mem-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bos-set-soft);
  overflow: hidden;
}

.bos-settings .bos-mem-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--link-color);
  min-width: 0;
  transition: width 0.2s ease;
}

.bos-settings .bos-mem-boost-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.bos-settings .bos-mem-boost-link:hover {
  text-decoration: underline !important;
}

.bos-settings .bos-mem-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
}

.bos-settings .bos-mem-unsub {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid #fecaca !important;
  border-radius: 11px !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-settings .bos-mem-unsub:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.bos-settings .bos-mem-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-mem-cta-copy {
  min-width: 0;
}

.bos-settings .bos-mem-cta-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bos-set-ink);
}

.bos-settings .bos-mem-cta-copy p {
  margin: 0;
  font-size: 12.5px;
  color: var(--bos-set-muted);
  line-height: 1.4;
}

.bos-settings .bos-mem-cta .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 38px;
  padding: 9px 16px 8px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.bos-settings .bos-mem-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 4px;
  padding: 28px 20px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-mem-empty-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bos-set-line);
  color: #747b85;
}

.bos-settings .bos-mem-empty-ico .main-icon,
.bos-settings .bos-mem-empty-ico .svg-container {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

.bos-settings .bos-mem-empty-ico .main-icon *,
.bos-settings .bos-mem-empty-ico .svg-container *,
.bos-settings .bos-mem-empty-ico path {
  fill: #747b85 !important;
}

.bos-settings .bos-mem-empty strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bos-set-ink);
}

.bos-settings .bos-mem-empty p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--bos-set-muted);
  line-height: 1.45;
  max-width: 320px;
}

.bos-settings .bos-mem-empty .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 160px;
  height: auto !important;
  min-height: 40px;
  padding: 10px 18px 9px !important;
  border-radius: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

body.night-mode .bos-settings .bos-mem-package,
body.night-mode .bos-settings .bos-mem-boost,
body.night-mode .bos-settings .bos-mem-empty-ico,
html[data-bs-theme="dark"] .bos-settings .bos-mem-package,
html[data-bs-theme="dark"] .bos-settings .bos-mem-boost,
html[data-bs-theme="dark"] .bos-settings .bos-mem-empty-ico {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-mem-cta,
body.night-mode .bos-settings .bos-mem-empty,
html[data-bs-theme="dark"] .bos-settings .bos-mem-cta,
html[data-bs-theme="dark"] .bos-settings .bos-mem-empty {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-settings .bos-mem-package-badge.is-ok,
html[data-bs-theme="dark"] .bos-settings .bos-mem-package-badge.is-ok {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

body.night-mode .bos-settings .bos-mem-unsub,
html[data-bs-theme="dark"] .bos-settings .bos-mem-unsub {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #fca5a5 !important;
}

/* —— Connected accounts —— */
.bos-settings .bos-acc-stats {
  grid-template-columns: minmax(0, 1fr);
  max-width: 220px;
  margin-bottom: 16px;
}

.bos-settings .bos-acc-list > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-settings .bos-acc-list .feeds-item,
.bos-settings .bos-acc-list li {
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 14px !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

.bos-settings .bos-acc-list .btn-danger {
  border-radius: 9px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-settings .bos-acc-info {
  border-color: color-mix(in srgb, var(--link-color) 25%, var(--bos-set-line));
  background: color-mix(in srgb, var(--link-color) 8%, #fff);
}

.bos-settings .bos-acc-info .bos-mon-alert-ico {
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
  color: var(--link-color);
}

.bos-settings .bos-acc-info .bos-mon-alert-copy strong {
  color: var(--bos-set-ink);
}

.bos-settings .bos-acc-info .bos-mon-alert-copy p {
  color: var(--bos-set-muted);
}

.bos-settings .bos-acc-empty-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
}

.modal .bos-acc-modal {
  padding: 18px 18px 20px !important;
}

.modal .bos-acc-modal .input-group-text {
  border-radius: 11px 0 0 11px !important;
  background: var(--bos-set-soft, #f6f7f9);
  border-color: var(--bos-set-line, #e9ebef);
  color: #858b95;
}

.modal .bos-acc-modal .form-control {
  border-radius: 0 11px 11px 0 !important;
  border-color: var(--bos-set-line, #e9ebef);
}

.modal .bos-acc-modal .bos-fund-actions .btn-primary {
  min-height: 42px;
  border-radius: 12px !important;
  font-weight: 650;
}

body.night-mode .bos-settings .bos-acc-list .feeds-item,
body.night-mode .bos-settings .bos-acc-list li,
html[data-bs-theme="dark"] .bos-settings .bos-acc-list .feeds-item,
html[data-bs-theme="dark"] .bos-settings .bos-acc-list li {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-acc-info,
html[data-bs-theme="dark"] .bos-settings .bos-acc-info {
  background: color-mix(in srgb, var(--link-color) 12%, transparent);
}

/* —— Blocking —— */
.bos-settings .bos-blk-stats {
  grid-template-columns: minmax(0, 1fr);
  max-width: 220px;
  margin-bottom: 16px;
}

.bos-settings .bos-blk-list > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-settings .bos-blk-list .feeds-item,
.bos-settings .bos-blk-list li {
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 14px !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

.bos-settings .bos-blk-list .btn-danger {
  border-radius: 9px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.night-mode .bos-settings .bos-blk-list .feeds-item,
body.night-mode .bos-settings .bos-blk-list li,
html[data-bs-theme="dark"] .bos-settings .bos-blk-list .feeds-item,
html[data-bs-theme="dark"] .bos-settings .bos-blk-list li {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* —— Privacy —— */
.bos-settings .bos-priv-toggles {
  margin: 0 0 4px;
}

.bos-settings .bos-priv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .bos-settings .bos-priv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-priv-field {
  margin: 0;
}

.bos-settings .bos-priv-field .form-label {
  margin: 0 0 6px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: var(--bos-set-ink) !important;
}

.bos-settings .bos-priv-field .input-group-text {
  border-radius: 11px 0 0 11px !important;
  border-color: var(--bos-set-line) !important;
  background: var(--bos-set-soft) !important;
  color: #858b95 !important;
  font-size: 13px;
}

.bos-settings .bos-priv-field .form-select {
  border-radius: 0 11px 11px 0 !important;
  border-color: var(--bos-set-line) !important;
  background-color: #fff !important;
  font-size: 13px !important;
  font-weight: 550;
  color: var(--bos-set-ink) !important;
  box-shadow: none !important;
}

.bos-settings .bos-priv-field .form-select:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, var(--bos-set-line)) !important;
}

.bos-settings .bos-priv-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px !important;
  border-top: 1px solid var(--bos-set-line) !important;
  background: var(--bos-set-soft) !important;
}

.bos-settings .bos-priv-footer .btn-primary {
  min-width: 140px;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
}

body.night-mode .bos-settings .bos-priv-field .input-group-text,
html[data-bs-theme="dark"] .bos-settings .bos-priv-field .input-group-text {
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-settings .bos-priv-field .form-select,
html[data-bs-theme="dark"] .bos-settings .bos-priv-field .form-select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-settings .bos-priv-footer,
html[data-bs-theme="dark"] .bos-settings .bos-priv-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* —— Verification —— */
.bos-settings .bos-ver-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: var(--bos-set-soft);
}

.bos-settings .bos-ver-status-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bos-set-line);
  color: #747b85;
}

.bos-settings .bos-ver-status-ico .main-icon,
.bos-settings .bos-ver-status-ico .svg-container {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

.bos-settings .bos-ver-status strong {
  display: block;
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-set-ink);
}

.bos-settings .bos-ver-status p {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-set-muted);
}

.bos-settings .bos-ver-status.is-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.bos-settings .bos-ver-status.is-ok .bos-ver-status-ico {
  border-color: #bbf7d0;
  background: #ecfdf5;
}

.bos-settings .bos-ver-status.is-ok strong {
  color: #047857;
}

.bos-settings .bos-ver-status.is-pending {
  border-color: #fde68a;
  background: #fffbeb;
}

.bos-settings .bos-ver-status.is-pending .bos-ver-status-ico {
  border-color: #fde68a;
  background: #fef3c7;
}

.bos-settings .bos-ver-status.is-pending strong {
  color: #b45309;
}

.bos-settings .bos-ver-status.is-bad {
  margin-bottom: 18px;
  border-color: #fecaca;
  background: #fef2f2;
}

.bos-settings .bos-ver-status.is-bad .bos-ver-status-ico {
  border-color: #fecaca;
  background: #fee2e2;
}

.bos-settings .bos-ver-status.is-bad strong {
  color: #b91c1c;
}

.bos-settings .bos-ver-docs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 8px;
}

@media (min-width: 576px) {
  .bos-settings .bos-ver-docs {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-ver-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.bos-settings .bos-ver-doc-lbl {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bos-set-ink, #191b20);
}

.bos-settings .bos-ver-doc .x-image,
.bos-settings .bos-ver-upload.x-image {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 148px !important;
  border: 1.5px dashed #d7dbe3 !important;
  border-radius: 14px !important;
  background: #fafbfc !important;
  overflow: hidden !important;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.bos-settings .bos-ver-doc .x-image:hover,
.bos-settings .bos-ver-upload.x-image:hover {
  border-color: color-mix(in srgb, var(--link-color) 45%, #d7dbe3) !important;
  background: color-mix(in srgb, var(--link-color) 5%, #fff) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 10%, transparent);
}

.bos-settings .bos-ver-upload-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.bos-settings .bos-ver-upload-ico {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 12px;
  border: 1px solid #e9ebef;
  background: #fff;
  color: #747b85;
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.04);
}

.bos-settings .bos-ver-upload-ico .main-icon,
.bos-settings .bos-ver-upload-ico .svg-container,
.bos-settings .bos-ver-upload-ico svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

.bos-settings .bos-ver-upload-face strong {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bos-set-ink, #191b20);
  line-height: 1.3;
}

.bos-settings .bos-ver-upload-face > span:last-child {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #858b95;
  line-height: 1.35;
}

.bos-settings .bos-ver-upload .js_x-uploader,
.bos-settings .bos-ver-upload .x-uploader,
.bos-settings .bos-ver-upload form.x-uploader {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

.bos-settings .bos-ver-upload .x-uploader input[type="file"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  font-size: 0 !important;
}

.bos-settings .bos-ver-upload .x-image-loader {
  z-index: 3;
}

.bos-settings .bos-ver-upload .btn-close {
  z-index: 4;
}

.bos-settings .bos-ver-upload[style*="background-image"] .bos-ver-upload-face {
  display: none !important;
}

.bos-settings .bos-ver-doc .x-image .fa-camera {
  color: transparent !important;
}

.bos-settings .bos-ver-hint {
  margin: 0 0 16px !important;
}

.bos-settings .bos-ver-form textarea.form-control {
  min-height: 110px;
  border-radius: 12px !important;
  resize: vertical;
}

.bos-settings .bos-ver-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px !important;
  border-top: 1px solid var(--bos-set-line) !important;
  background: var(--bos-set-soft) !important;
}

.bos-settings .bos-ver-footer .btn-primary {
  min-width: 120px;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
}

body.night-mode .bos-settings .bos-ver-status,
html[data-bs-theme="dark"] .bos-settings .bos-ver-status {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-settings .bos-ver-status.is-ok,
html[data-bs-theme="dark"] .bos-settings .bos-ver-status.is-ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

body.night-mode .bos-settings .bos-ver-status.is-pending,
html[data-bs-theme="dark"] .bos-settings .bos-ver-status.is-pending {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

body.night-mode .bos-settings .bos-ver-status.is-bad,
html[data-bs-theme="dark"] .bos-settings .bos-ver-status.is-bad {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}

body.night-mode .bos-settings .bos-ver-doc .x-image,
body.night-mode .bos-settings .bos-ver-upload.x-image,
html[data-bs-theme="dark"] .bos-settings .bos-ver-doc .x-image,
html[data-bs-theme="dark"] .bos-settings .bos-ver-upload.x-image {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

body.night-mode .bos-settings .bos-ver-upload-ico,
html[data-bs-theme="dark"] .bos-settings .bos-ver-upload-ico {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #c1d4e3;
}

body.night-mode .bos-settings .bos-ver-upload-face strong,
html[data-bs-theme="dark"] .bos-settings .bos-ver-upload-face strong {
  color: #e8eef4;
}

body.night-mode .bos-settings .bos-ver-upload-face > span:last-child,
html[data-bs-theme="dark"] .bos-settings .bos-ver-upload-face > span:last-child {
  color: #9aa8b5;
}

body.night-mode .bos-settings .bos-ver-footer,
html[data-bs-theme="dark"] .bos-settings .bos-ver-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* —— Two-factor auth —— */
.bos-settings .bos-2fa-steps {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  color: var(--bos-set-ink);
  font-size: 13px;
  line-height: 1.5;
}

.bos-settings .bos-2fa-steps li {
  margin: 0 0 8px;
}

.bos-settings .bos-2fa-steps a {
  color: var(--link-color) !important;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-settings .bos-2fa-steps a:hover {
  text-decoration: underline !important;
}

.bos-settings .bos-2fa-setup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 4px;
}

@media (min-width: 768px) {
  .bos-settings .bos-2fa-setup {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-2fa-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--bos-set-line);
  border-radius: 16px;
  background: #fff;
}

.bos-settings .bos-2fa-card-lbl {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-set-muted);
}

.bos-settings .bos-2fa-qr {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--bos-set-soft);
  border: 1px solid var(--bos-set-line);
}

.bos-settings .bos-2fa-qr img {
  display: block;
  max-width: 160px;
  height: auto;
  border-radius: 6px;
}

.bos-settings .bos-2fa-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--link-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--link-color) 25%, var(--bos-set-line));
  color: var(--bos-set-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.bos-settings .bos-2fa-code {
  max-width: 280px;
  letter-spacing: 0.18em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 650;
  text-align: center;
}

.bos-settings .bos-2fa-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 18px !important;
  border-top: 1px solid var(--bos-set-line) !important;
  background: var(--bos-set-soft) !important;
}

.bos-settings .bos-2fa-footer .btn-primary {
  min-width: 140px;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-weight: 650 !important;
}

body.night-mode .bos-settings .bos-2fa-card,
html[data-bs-theme="dark"] .bos-settings .bos-2fa-card {
  background: rgba(255, 255, 255, 0.03);
}

body.night-mode .bos-settings .bos-2fa-qr,
html[data-bs-theme="dark"] .bos-settings .bos-2fa-qr {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-settings .bos-2fa-token,
html[data-bs-theme="dark"] .bos-settings .bos-2fa-token {
  background: color-mix(in srgb, var(--link-color) 16%, transparent);
  color: #e2e8f0;
}

body.night-mode .bos-settings .bos-2fa-footer,
html[data-bs-theme="dark"] .bos-settings .bos-2fa-footer {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* —— Sessions —— */
.bos-settings .bos-sess-stats {
  grid-template-columns: minmax(0, 1fr);
  max-width: 220px;
  margin-bottom: 16px;
}

.bos-settings .bos-sess-logout-all {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid #fecaca !important;
  border-radius: 11px !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-settings .bos-sess-logout-all:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

.bos-settings .bos-sess-row.is-active {
  border-color: color-mix(in srgb, var(--link-color) 35%, var(--bos-set-line)) !important;
  background: color-mix(in srgb, var(--link-color) 6%, #fff) !important;
}

.bos-settings .bos-sess-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
}

.bos-settings .bos-sess-end {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border: 1px solid var(--bos-set-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--bos-set-ink) !important;
  box-shadow: none !important;
}

.bos-settings .bos-sess-end:hover {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.bos-settings .bos-sess-row .bos-bank-ico {
  font-size: 14px;
  color: #747b85;
}

@media (max-width: 575.98px) {
  .bos-settings .bos-sess-logout-all span {
    display: none;
  }
}

body.night-mode .bos-settings .bos-sess-row.is-active,
html[data-bs-theme="dark"] .bos-settings .bos-sess-row.is-active {
  background: color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

body.night-mode .bos-settings .bos-sess-badge,
html[data-bs-theme="dark"] .bos-settings .bos-sess-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

body.night-mode .bos-settings .bos-sess-logout-all,
html[data-bs-theme="dark"] .bos-settings .bos-sess-logout-all {
  background: rgba(220, 38, 38, 0.12) !important;
  border-color: rgba(220, 38, 38, 0.35) !important;
  color: #fca5a5 !important;
}

body.night-mode .bos-settings .bos-sess-end,
html[data-bs-theme="dark"] .bos-settings .bos-sess-end {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
}

/* —— Delete account —— */
.bos-settings .bos-del-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fef2f2;
}

.bos-settings .bos-del-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.bos-settings .bos-del-ico .main-icon,
.bos-settings .bos-del-ico .svg-container {
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
}

.bos-settings .bos-del-ico .main-icon *,
.bos-settings .bos-del-ico .svg-container *,
.bos-settings .bos-del-ico path {
  fill: #dc2626 !important;
}

.bos-settings .bos-del-panel strong {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #991b1b;
}

.bos-settings .bos-del-panel p {
  margin: 0 0 16px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
}

.bos-settings .bos-del-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-settings .bos-del-btn:hover {
  background: #b91c1c !important;
  color: #fff !important;
}

body.night-mode .bos-settings .bos-del-panel,
html[data-bs-theme="dark"] .bos-settings .bos-del-panel {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}

body.night-mode .bos-settings .bos-del-ico,
html[data-bs-theme="dark"] .bos-settings .bos-del-ico {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.4);
}

body.night-mode .bos-settings .bos-del-panel strong,
html[data-bs-theme="dark"] .bos-settings .bos-del-panel strong {
  color: #fecaca;
}

body.night-mode .bos-settings .bos-del-panel p,
html[data-bs-theme="dark"] .bos-settings .bos-del-panel p {
  color: #fca5a5;
}

/* —— Header search —— */
.main-header .search-wrapper.bos-search,
.main-header .bos-search {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.main-header .bos-search-form {
  position: relative;
  margin: 12px 0;
}

.main-header .bos-search-input.form-control,
.main-header .search-wrapper.bos-search .form-control {
  height: 42px !important;
  margin: 0 !important;
  padding: 0 44px 0 16px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px !important;
  background: #f6f7f9 !important;
  box-shadow: none !important;
  color: #191b20 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.main-header .bos-search-input.form-control::placeholder,
.main-header .search-wrapper.bos-search .form-control::placeholder {
  color: #858b95 !important;
  font-weight: 500;
}

.main-header .bos-search-input.form-control:hover {
  background: #f1f2f5 !important;
  border-color: #e0e3e8 !important;
}

.main-header .bos-search-input.form-control:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 14%, transparent) !important;
}

.main-header .bos-search-ico.search-input-icon,
.main-header .bos-search .search-input-icon {
  position: absolute !important;
  top: 0 !important;
  right: 8px !important;
  bottom: auto !important;
  left: auto !important;
  width: 36px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  display: grid !important;
  place-items: center !important;
  color: #858b95 !important;
  pointer-events: none;
  z-index: 2;
}

.main-header .bos-search-ico .header-icon,
.main-header .bos-search-ico .svg-container,
.main-header .bos-search-ico svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  color: #858b95 !important;
}

.main-header .bos-search-input:focus ~ .bos-search-ico,
.main-header .bos-search-input:focus + .bos-search-ico {
  color: var(--link-color) !important;
}

.main-header .bos-search-input:focus ~ .bos-search-ico svg,
.main-header .bos-search-input:focus + .bos-search-ico svg {
  color: var(--link-color) !important;
}

/* Search / history dropdown */
.main-header .bos-search-dd.dropdown-widget,
.main-header .dropdown-widget.dropdown-search.bos-search-dd {
  margin-top: 8px !important;
  padding: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px -20px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden;
}

@media (min-width: 768px) {
  .main-header .bos-search-dd.dropdown-widget {
    min-width: 100% !important;
    width: 100% !important;
  }
}

.main-header .bos-search-dd-head.dropdown-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #f6f7f9 !important;
}

.main-header .bos-search-dd-head .title {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #191b20 !important;
  line-height: 1.3 !important;
}

.main-header .bos-search-dd-head .js_clear-searches,
.main-header .bos-search-dd-head .text-link {
  float: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
  text-decoration: none !important;
}

.main-header .bos-search-dd-head .js_clear-searches:hover {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.main-header .bos-search-dd-body.dropdown-widget-body {
  padding: 8px !important;
  max-height: 380px;
}

.main-header .bos-search-dd-body .js_scroller > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .bos-search-dd-body .feeds-item,
.main-header .bos-search-dd-body li.feeds-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  overflow: hidden;
}

.main-header .bos-search-dd-body .data-container {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  float: none !important;
}

.main-header .bos-search-dd-body .data-container::after {
  display: none !important;
  content: none !important;
}

.main-header .bos-search-dd-body .feeds-item:hover .data-container,
.main-header .bos-search-dd-body .data-container:hover {
  background: #f6f7f9 !important;
}

.main-header .bos-search-dd-body .data-avatar {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.main-header .bos-search-dd-body .data-avatar img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  object-fit: cover;
  background: #eef0f3;
}

.main-header .bos-search-dd-body .data-content {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.main-header .bos-search-dd-body .data-content .float-end {
  float: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 5;
  margin-left: auto !important;
}

.main-header .bos-search-dd-body .data-content > *:not(.float-end) {
  order: 1;
}

.main-header .bos-search-dd-body .data-content .name,
.main-header .bos-search-dd-body .data-content a.name,
.main-header .bos-search-dd-body .data-content > .name,
.main-header .bos-search-dd-body .data-content > div > a:not(.btn),
.main-header .bos-search-dd-body .data-content a:not(.btn) {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  text-decoration: none !important;
}

.main-header .bos-search-dd-body .data-content .text,
.main-header .bos-search-dd-body .data-content .text-muted,
.main-header .bos-search-dd-body .data-content small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px !important;
  color: #858b95 !important;
}

.main-header .bos-search-dd-body .data-content .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 30px !important;
  min-width: 30px;
  padding: 0 10px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #191b20 !important;
  box-shadow: none !important;
}

.main-header .bos-search-dd-body .data-content .btn:hover {
  background: #eef0f3 !important;
}

.main-header .bos-search-dd-body .data-content .btn-success,
.main-header .bos-search-dd-body .data-content .btn-primary,
.main-header .bos-search-dd-body .data-content .btn-info {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

/* Soft compact CTAs (search / list feeds) */
.bos-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #191b20 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.bos-cta .main-icon,
.bos-cta .bos-sb-ico,
.bos-cta .svg-container {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  color: inherit !important;
  flex-shrink: 0;
}

.bos-cta svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
  stroke: currentColor !important;
  fill: none !important;
}

.bos-cta span {
  display: inline-block;
}

.bos-cta--ink {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

.bos-cta--ink:hover {
  background: #111318 !important;
  border-color: #111318 !important;
  color: #fff !important;
}

.bos-cta--soft {
  background: #f6f7f9 !important;
  border-color: #e9ebef !important;
  color: #515761 !important;
}

.bos-cta--soft:hover {
  background: #eef0f3 !important;
  color: #191b20 !important;
}

.bos-cta--muted {
  background: #fff !important;
  border-color: #e9ebef !important;
  color: #858b95 !important;
}

.bos-cta--muted:hover {
  background: #f6f7f9 !important;
  color: #515761 !important;
}

.bos-cta--danger {
  background: #fff5f5 !important;
  border-color: #fecdca !important;
  color: #b42318 !important;
}

.bos-cta--danger:hover {
  background: #fee4e2 !important;
}

.main-header .bos-search-dd-body .bos-user-actions,
.main-header .bos-search-dd-body .float-end {
  display: flex !important;
  align-items: center;
  gap: 6px;
  float: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

.main-header .bos-search-dd-body .bos-cta {
  min-height: 30px;
  padding: 0 10px !important;
  font-size: 11.5px !important;
}

body.night-mode .bos-cta,
html[data-bs-theme="dark"] .bos-cta {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-cta--ink,
html[data-bs-theme="dark"] .bos-cta--ink {
  background: #e8eaed !important;
  border-color: #e8eaed !important;
  color: #111318 !important;
}

body.night-mode .bos-cta--soft,
html[data-bs-theme="dark"] .bos-cta--soft {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #c1d4e3 !important;
}

body.night-mode .bos-cta--danger,
html[data-bs-theme="dark"] .bos-cta--danger {
  background: rgba(180, 35, 24, 0.15) !important;
  border-color: rgba(180, 35, 24, 0.35) !important;
  color: #fda29b !important;
}

.main-header .bos-search-dd-body .title {
  margin: 8px 4px 4px !important;
  padding: 4px 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #858b95 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-header .bos-search-dd-body .loader {
  padding: 18px 0 !important;
}

.main-header .bos-search-dd-foot.dropdown-widget-footer {
  display: block;
  padding: 11px 14px !important;
  border-top: 1px solid #e9ebef !important;
  background: #f6f7f9 !important;
  color: #191b20 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  text-align: center;
  text-decoration: none !important;
}

.main-header .bos-search-dd-foot.dropdown-widget-footer:hover {
  background: #eef0f3 !important;
  color: var(--link-color) !important;
  text-decoration: none !important;
}

body.night-mode .main-header .bos-search-input.form-control,
html[data-bs-theme="dark"] .main-header .bos-search-input.form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .main-header .bos-search-input.form-control:focus,
html[data-bs-theme="dark"] .main-header .bos-search-input.form-control:focus {
  background: rgba(255, 255, 255, 0.07) !important;
}

body.night-mode .main-header .bos-search-dd.dropdown-widget,
html[data-bs-theme="dark"] .main-header .bos-search-dd.dropdown-widget {
  background: #1f2730 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
}

body.night-mode .main-header .bos-search-dd-head,
body.night-mode .main-header .bos-search-dd-foot,
html[data-bs-theme="dark"] .main-header .bos-search-dd-head,
html[data-bs-theme="dark"] .main-header .bos-search-dd-foot {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .main-header .bos-search-dd-body .feeds-item:hover .data-container,
body.night-mode .main-header .bos-search-dd-body .data-container:hover,
html[data-bs-theme="dark"] .main-header .bos-search-dd-body .feeds-item:hover .data-container,
html[data-bs-theme="dark"] .main-header .bos-search-dd-body .data-container:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.night-mode .main-header .bos-search-dd-foot,
html[data-bs-theme="dark"] .main-header .bos-search-dd-foot {
  color: #e2e8f0 !important;
}

/* —— Search page —— */
.bos-search-page {
  --bos-sr-ink: #191b20;
  --bos-sr-muted: #858b95;
  --bos-sr-line: #e9ebef;
  --bos-sr-soft: #f6f7f9;
  margin-top: 14px;
  margin-bottom: 40px;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-search-page .bos-search-hero {
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--bos-sr-line);
  border-radius: 18px;
  background: #fff;
}

.bos-search-page .bos-search-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.bos-search-page .bos-search-hero-title .main-icon,
.bos-search-page .bos-search-hero-title .svg-container {
  width: 20px !important;
  height: 20px !important;
  color: #747b85 !important;
  fill: #747b85 !important;
}

.bos-search-page .bos-search-hero-title strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-sr-ink);
}

.bos-search-page .bos-search-hero-copy {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-sr-muted);
}

.bos-search-page .bos-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--bos-sr-line);
  border-radius: 14px;
  background: var(--bos-sr-soft);
}

.bos-search-page .bos-search-field > i {
  color: #9aa1ab;
  font-size: 14px;
}

.bos-search-page .bos-search-field .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--bos-sr-ink) !important;
}

.bos-search-page .bos-search-field .form-control::placeholder {
  color: #9aa1ab;
}

.bos-search-page .bos-search-field .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-search-page .bos-search-field .btn:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-search-page .bos-search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 0;
  padding: 4px;
  border: 1px solid var(--bos-sr-line);
  border-radius: 12px;
  background: var(--bos-sr-soft);
}

.bos-search-page .bos-search-tabs > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--bos-sr-muted) !important;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-search-page .bos-search-tabs > a:hover {
  color: var(--bos-sr-ink) !important;
  background: rgba(255, 255, 255, 0.7);
}

.bos-search-page .bos-search-tabs > a.active {
  background: #fff !important;
  color: var(--bos-sr-ink) !important;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.06);
}

.bos-search-page .bos-search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-search-page .bos-search-results > .feeds-item,
.bos-search-page .bos-search-results > li {
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--bos-sr-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-search-page .bos-search-results > .feeds-item:last-child,
.bos-search-page .bos-search-results > li:last-child {
  margin-bottom: 0;
}

.bos-search-page .bos-search-results .data-container {
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 0 !important;
  padding: 12px 14px !important;
}

.bos-search-page .bos-search-results .data-container::after {
  display: none !important;
  content: none !important;
}

.bos-search-page .bos-search-results .data-avatar {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

.bos-search-page .bos-search-results .data-avatar img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  object-fit: cover;
  background: var(--bos-sr-soft);
}

.bos-search-page .bos-search-results .data-content {
  flex: 1 1 auto;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.bos-search-page .bos-search-results .data-content .float-end {
  float: none !important;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  order: 5;
  margin-left: auto !important;
}

.bos-search-page .bos-search-results .data-content > *:not(.float-end) {
  order: 1;
}

.bos-search-page .bos-search-results .data-content a:not(.btn) {
  color: var(--bos-sr-ink) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.bos-search-page .bos-search-results .data-content a:not(.btn):hover {
  color: var(--link-color) !important;
}

.bos-search-page .bos-search-results .data-content .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bos-sr-line) !important;
  border-radius: 10px !important;
  background: var(--bos-sr-soft) !important;
  color: var(--bos-sr-ink) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-search-page .bos-search-results .data-content .btn:hover {
  background: #eef0f3 !important;
}

.bos-search-page .bos-search-results .data-content .btn-success,
.bos-search-page .bos-search-results .data-content .btn-primary,
.bos-search-page .bos-search-results .data-content .btn-info {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

.bos-search-page .bos-search-results .post-container {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.bos-search-page .bos-search-empty {
  padding: 36px 18px;
  border: 1px dashed var(--bos-sr-line);
  border-radius: 16px;
  background: var(--bos-sr-soft);
  text-align: center;
}

.bos-search-page .bos-search-empty-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--bos-sr-line);
}

.bos-search-page .bos-search-empty-ico .main-icon,
.bos-search-page .bos-search-empty-ico .svg-container {
  width: 24px !important;
  height: 24px !important;
  color: #9aa1ab !important;
}

.bos-search-page .bos-search-empty strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--bos-sr-ink);
}

.bos-search-page .bos-search-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--bos-sr-muted);
}

.bos-search-page .bos-search-more.see-more {
  margin: 14px 0 0 !important;
  padding: 12px !important;
  border: 1px dashed var(--bos-sr-line) !important;
  border-radius: 12px !important;
  background: var(--bos-sr-soft) !important;
  color: var(--bos-sr-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-search-page .bos-search-more.see-more:hover {
  background: #eef0f3 !important;
  color: var(--bos-sr-ink) !important;
}

body.night-mode .bos-search-page,
html[data-bs-theme="dark"] .bos-search-page {
  --bos-sr-ink: #e2e8f0;
  --bos-sr-muted: #94a3b8;
  --bos-sr-line: rgba(255, 255, 255, 0.1);
  --bos-sr-soft: rgba(255, 255, 255, 0.05);
}

body.night-mode .bos-search-page .bos-search-hero,
body.night-mode .bos-search-page .bos-search-results > .feeds-item,
body.night-mode .bos-search-page .bos-search-results > li,
html[data-bs-theme="dark"] .bos-search-page .bos-search-hero,
html[data-bs-theme="dark"] .bos-search-page .bos-search-results > .feeds-item,
html[data-bs-theme="dark"] .bos-search-page .bos-search-results > li {
  background: var(--card-dark-color, #262d34);
}

body.night-mode .bos-search-page .bos-search-tabs > a.active,
html[data-bs-theme="dark"] .bos-search-page .bos-search-tabs > a.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: none;
}

body.night-mode .bos-search-page .bos-search-empty-ico,
html[data-bs-theme="dark"] .bos-search-page .bos-search-empty-ico {
  background: rgba(255, 255, 255, 0.04);
}

/* —— Directory pages (pages / groups / events) —— */
.bos-dir {
  --bos-dir-ink: #191b20;
  --bos-dir-muted: #858b95;
  --bos-dir-line: #e9ebef;
  --bos-dir-soft: #f6f7f9;
  margin-top: 14px;
  margin-bottom: 40px;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
}

.bos-dir .bos-dir-hero {
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 18px;
  background: #fff;
}

.bos-dir .bos-dir-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.bos-dir .bos-dir-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.bos-dir .bos-dir-hero-title .main-icon,
.bos-dir .bos-dir-hero-title .svg-container {
  width: 20px !important;
  height: 20px !important;
  color: #747b85 !important;
  fill: #747b85 !important;
}

.bos-dir .bos-dir-hero-title strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir .bos-dir-hero-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-dir-muted);
}

.bos-dir .bos-dir-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 10px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-dir .bos-dir-cta:hover {
  background: #eef0f3 !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir .bos-dir-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: var(--bos-dir-soft);
}

.bos-dir .bos-dir-search > i {
  color: #9aa1ab;
  font-size: 14px;
}

.bos-dir .bos-dir-search .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir .bos-dir-search .form-control::placeholder {
  color: #9aa1ab;
}

.bos-dir .bos-dir-search .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-dir .bos-dir-search .btn:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-dir .bos-dir-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 0;
  padding: 4px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
}

.bos-dir .bos-dir-tabs > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--bos-dir-muted) !important;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-dir .bos-dir-tabs > a:hover {
  color: var(--bos-dir-ink) !important;
  background: rgba(255, 255, 255, 0.7);
}

.bos-dir .bos-dir-tabs > a.active {
  background: #fff !important;
  color: var(--bos-dir-ink) !important;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.06);
}

.bos-dir .bos-dir-side {
  margin-bottom: 14px !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir .bos-dir-side-head {
  padding: 14px 14px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir .bos-dir-side-body {
  padding: 10px;
}

.bos-dir .bos-dir-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bos-dir .bos-dir-cats > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--bos-dir-muted) !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.bos-dir .bos-dir-cats > li > a:hover {
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink) !important;
}

.bos-dir .bos-dir-cats > li.active > a {
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink) !important;
  font-weight: 700;
}

.bos-dir .bos-dir-cats > li > a i {
  font-size: 11px;
  opacity: 0.7;
}

.bos-dir .bos-dir-section {
  margin: 0 0 18px;
}

.bos-dir .bos-dir-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.bos-dir .bos-dir-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir .bos-dir-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bos-dir .bos-dir-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bos-dir-muted) !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-dir .bos-dir-filter:hover {
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink) !important;
}

.bos-dir .bos-dir-dd {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px -18px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden;
}

.bos-dir .bos-dir-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

@media (min-width: 768px) {
  .bos-dir .bos-dir-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .bos-dir .bos-dir-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.bos-dir .bos-dir-grid > [class*="col-"] {
  display: flex;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bos-dir .ui-box {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 10px !important;
  text-align: left !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.bos-dir .ui-box .img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 0 10px !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: var(--bos-dir-soft);
}

.bos-dir .ui-box .img a {
  display: block;
  width: 100%;
  height: 100%;
}

.bos-dir .ui-box .img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover;
}

.bos-dir .ui-box .img img[src*="blank_"] {
  opacity: 0;
  position: absolute;
  inset: 0;
}

.bos-dir .ui-box .img:has(img[src*="blank_"])::before {
  content: "\f024";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: #9aa1ab;
  background: var(--bos-dir-soft);
}

.bos-dir .ui-box .mt10 {
  margin: 0 0 6px !important;
}

.bos-dir .ui-box .mt10 + .mt10 {
  margin-top: 0 !important;
}

.bos-dir .ui-box .h6,
.bos-dir .ui-box .h6 a,
.bos-dir .ui-box a.h6 {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--bos-dir-ink) !important;
  text-decoration: none !important;
}

.bos-dir .ui-box .h6 a:hover,
.bos-dir .ui-box a.h6:hover {
  color: var(--link-color) !important;
}

.bos-dir .ui-box .mt10 > div:not(.verified-badge) {
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir .ui-box .mt10:has(.btn) {
  margin-top: auto !important;
  padding-top: 8px;
}

.bos-dir .ui-box .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 9px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-dir .ui-box .btn-primary,
.bos-dir .ui-box .btn-success,
.bos-dir .ui-box .btn-info {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

.bos-dir .ui-box .btn-light:hover,
.bos-dir .ui-box .btn:hover {
  background: #eef0f3 !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir .bos-dir-empty {
  padding: 36px 18px;
  border: 1px dashed var(--bos-dir-line);
  border-radius: 16px;
  background: var(--bos-dir-soft);
  text-align: center;
}

.bos-dir .bos-dir-empty-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--bos-dir-line);
}

.bos-dir .bos-dir-empty-ico .main-icon,
.bos-dir .bos-dir-empty-ico .svg-container {
  width: 28px !important;
  height: 28px !important;
  color: #9aa1ab !important;
}

.bos-dir .bos-dir-empty strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--bos-dir-ink);
}

.bos-dir .bos-dir-empty p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--bos-dir-muted);
}

.bos-dir .bos-dir-empty .btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px;
  min-height: 40px;
  padding: 10px 18px 9px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-dir .bos-dir-more.see-more {
  margin: 14px 0 0 !important;
  padding: 12px !important;
  border: 1px dashed var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-dir .bos-dir-more.see-more:hover {
  background: #eef0f3 !important;
  color: var(--bos-dir-ink) !important;
}

body.night-mode .bos-dir,
html[data-bs-theme="dark"] .bos-dir {
  --bos-dir-ink: #e2e8f0;
  --bos-dir-muted: #94a3b8;
  --bos-dir-line: rgba(255, 255, 255, 0.1);
  --bos-dir-soft: rgba(255, 255, 255, 0.05);
}

body.night-mode .bos-dir .bos-dir-hero,
body.night-mode .bos-dir .bos-dir-side,
body.night-mode .bos-dir .ui-box,
html[data-bs-theme="dark"] .bos-dir .bos-dir-hero,
html[data-bs-theme="dark"] .bos-dir .bos-dir-side,
html[data-bs-theme="dark"] .bos-dir .ui-box {
  background: var(--card-dark-color, #262d34);
}

body.night-mode .bos-dir .bos-dir-tabs > a.active,
html[data-bs-theme="dark"] .bos-dir .bos-dir-tabs > a.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: none;
}

body.night-mode .bos-dir .bos-dir-empty-ico,
html[data-bs-theme="dark"] .bos-dir .bos-dir-empty-ico {
  background: rgba(255, 255, 255, 0.04);
}



/* People discover list */
.bos-dir--people .bos-dir-section-head {
  margin-bottom: 10px;
}

.bos-dir--people .bos-people-filters {
  position: sticky;
  top: 78px;
}

.bos-dir--people .bos-people-panel {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #fff !important;
}

.bos-dir--people .bos-people-panel-body {
  padding: 10px !important;
}

.bos-dir--people .bos-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bos-dir--people .bos-people-list--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 992px) {
  .bos-dir--people .bos-people-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bos-dir--people .bos-people-list > li,
.bos-dir--people .bos-people-list .feeds-item {
  padding: 12px !important;
  margin: 0 !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 14px !important;
  background: var(--bos-dir-soft) !important;
}

.bos-dir--people .bos-people-list > li:hover,
.bos-dir--people .bos-people-list .feeds-item:hover {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 28%, var(--bos-dir-line)) !important;
}

.bos-dir--people .bos-people-list .data-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bos-dir--people .bos-people-list .data-avatar {
  float: none !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid var(--bos-dir-line);
  background: #fff;
  flex: 0 0 48px;
}

.bos-dir--people .bos-people-list .data-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 0 !important;
}

.bos-dir--people .bos-people-list .data-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.bos-dir--people .bos-people-list .bos-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.bos-dir--people .bos-people-list .bos-user-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.bos-dir--people .bos-people-list .bos-user-name-row .name {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.bos-dir--people .bos-people-list .name a,
.bos-dir--people .bos-people-list .name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--bos-dir-ink) !important;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--people .bos-people-list .name a:hover {
  color: var(--link-color) !important;
}

.bos-dir--people .bos-people-list .bos-user-handle {
  font-size: 12px;
  line-height: 1.25;
  color: var(--bos-dir-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--people .bos-people-list .bos-user-mutual {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--bos-dir-muted);
}

.bos-dir--people .bos-people-list .bos-user-mutual .text-underline {
  cursor: pointer;
  color: var(--bos-dir-muted);
  text-decoration: none !important;
}

.bos-dir--people .bos-people-list .bos-user-mutual .text-underline:hover {
  color: var(--link-color);
}

.bos-dir--people .bos-people-list .bos-user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}

.bos-dir--people .bos-people-list .btn {
  min-height: 34px;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  padding: 0 12px !important;
  white-space: nowrap;
}

.bos-dir--people .bos-people-list .btn-success {
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
}

.bos-dir--people .bos-people-list .btn-success:hover {
  background: color-mix(in srgb, var(--bos-dir-ink) 88%, #fff) !important;
}

.bos-dir--people .bos-dir-more {
  margin: 10px 0 0 !important;
  border-radius: 12px !important;
}

/* Merits ranking directory */
.bos-dir--merits .bos-merits-filters {
  margin: 0 0 2px;
}

.bos-dir--merits .bos-merits-filters-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) repeat(2, minmax(140px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.bos-dir--merits .bos-merits-field {
  min-width: 0;
}

.bos-dir--merits .bos-merits-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--merits .bos-merits-filters .form-control,
.bos-dir--merits .bos-merits-filters .form-select {
  min-height: 42px;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--merits .bos-merits-filters .form-control:focus,
.bos-dir--merits .bos-merits-filters .form-select:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-dir-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-dir--merits .bos-merits-submit {
  min-height: 42px;
  min-width: 110px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--link-color) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-dir--merits .bos-merits-submit:hover {
  opacity: 0.94;
}

.bos-dir--merits .bos-merits-count {
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-dir-muted);
}

.bos-dir--merits .bos-merits-board {
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
}

.bos-dir--merits .bos-merits-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.12s ease;
}

.bos-dir--merits .bos-merits-row + .bos-merits-row {
  margin-top: 2px;
}

.bos-dir--merits .bos-merits-row:hover {
  background: var(--bos-dir-soft);
}

.bos-dir--merits .bos-merits-rank {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
  font-size: 13px;
  font-weight: 800;
  color: var(--bos-dir-muted);
}

.bos-dir--merits .bos-merits-medal {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: #fff;
  font-weight: 800;
}

.bos-dir--merits .bos-merits-row--top1 .bos-merits-rank {
  border: 0;
  background: linear-gradient(145deg, #f6c453, #e0a106);
  color: #fff;
}

.bos-dir--merits .bos-merits-row--top2 .bos-merits-rank {
  border: 0;
  background: linear-gradient(145deg, #c9d1da, #8e9aa8);
  color: #fff;
}

.bos-dir--merits .bos-merits-row--top3 .bos-merits-rank {
  border: 0;
  background: linear-gradient(145deg, #e0a57a, #b56a3a);
  color: #fff;
}

.bos-dir--merits .bos-merits-user {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: inherit;
}

.bos-dir--merits .bos-merits-avatar {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bos-dir-soft);
  border: 1px solid var(--bos-dir-line);
}

.bos-dir--merits .bos-merits-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bos-dir--merits .bos-merits-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bos-dir--merits .bos-merits-name {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bos-dir-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--merits .bos-merits-user:hover .bos-merits-name {
  color: var(--link-color);
}

.bos-dir--merits .bos-merits-handle {
  font-size: 12px;
  font-weight: 500;
  color: var(--bos-dir-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--merits .bos-merits-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
  text-align: center;
}

.bos-dir--merits .bos-merits-score-val {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-dir--merits .bos-merits-score small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

@media (max-width: 767.98px) {
  .bos-dir--merits .bos-merits-filters-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bos-dir--merits .bos-merits-field--action {
    grid-column: 1 / -1;
  }

  .bos-dir--merits .bos-merits-submit {
    width: 100%;
  }

  .bos-dir--merits .bos-merits-handle {
    display: none;
  }
}

body.night-mode .bos-dir--merits .bos-merits-board,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-board {
  background: var(--card-dark-color, #262d34);
}

body.night-mode .bos-dir--merits .bos-merits-filters .form-control,
body.night-mode .bos-dir--merits .bos-merits-filters .form-select,
body.night-mode .bos-dir--merits .bos-merits-rank,
body.night-mode .bos-dir--merits .bos-merits-score,
body.night-mode .bos-dir--merits .bos-merits-avatar,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-filters .form-control,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-filters .form-select,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-rank,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-score,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-avatar {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0;
}

body.night-mode .bos-dir--merits .bos-merits-name,
html[data-bs-theme="dark"] .bos-dir--merits .bos-merits-name {
  color: #e8eef4;
}

/* People directory */
.bos-dir--people .bos-dir-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
  color: var(--link-color);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.bos-dir--people .bos-dir-tab-badge--warn {
  background: #fff4e5;
  color: #b86a00;
}

.bos-dir--people .bos-people-filters .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--people .bos-people-filters .bos-dir-side-head .main-icon,
.bos-dir--people .bos-people-filters .bos-dir-side-head .svg-container,
.bos-dir--people .bos-people-filters .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: var(--link-color);
}

.bos-dir--people .bos-people-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--people .bos-people-field {
  margin: 0;
}

.bos-dir--people .bos-people-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--people .bos-people-filter-form .form-control,
.bos-dir--people .bos-people-filter-form .form-select {
  min-height: 40px;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--people .bos-people-filter-form .form-control:focus,
.bos-dir--people .bos-people-filter-form .form-select:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-dir-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-dir--people .bos-people-range {
  width: 100%;
  margin: 0 0 8px;
  accent-color: var(--link-color);
}

.bos-dir--people .bos-people-distance {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--people .bos-people-distance-unit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  color: var(--bos-dir-muted);
}

.bos-dir--people .bos-people-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--link-color) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-dir--people .bos-people-submit:hover {
  opacity: 0.94;
}

.bos-dir--people .bos-people-custom .form-group {
  margin-bottom: 12px;
}

body.night-mode .bos-dir--people .bos-people-panel,
html[data-bs-theme="dark"] .bos-dir--people .bos-people-panel {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-dir--people .bos-people-filter-form .form-control,
body.night-mode .bos-dir--people .bos-people-filter-form .form-select,
html[data-bs-theme="dark"] .bos-dir--people .bos-people-filter-form .form-control,
html[data-bs-theme="dark"] .bos-dir--people .bos-people-filter-form .form-select {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-dir--people .bos-dir-tab-badge,
html[data-bs-theme="dark"] .bos-dir--people .bos-dir-tab-badge {
  background: color-mix(in srgb, var(--link-color) 22%, transparent);
}

body.night-mode .bos-dir--people .bos-dir-tab-badge--warn,
html[data-bs-theme="dark"] .bos-dir--people .bos-dir-tab-badge--warn {
  background: rgba(184, 106, 0, 0.25);
  color: #ffcc80;
}

/* —— Theme Switcher modal —— */
.modal-content:has(.bos-theme-modal-head),
.modal-content:has(.bos-theme-modal-body) {
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.28) !important;
}

.bos-theme-modal-head.modal-header {
  padding: 16px 18px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #fff !important;
}

.bos-theme-modal-head .modal-title .svg-container,
.bos-theme-modal-head .modal-title .main-icon {
  color: #747b85 !important;
}

.bos-theme-modal-head .modal-title .svg-container *,
.bos-theme-modal-head .modal-title .main-icon *,
.bos-theme-modal-head .modal-title path {
  fill: none !important;
  stroke: currentColor !important;
}

.bos-theme-modal-body.modal-body {
  padding: 16px 18px 18px !important;
  background: #fff;
}

.bos-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bos-theme-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e9ebef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.bos-theme-card:hover {
  border-color: #dde1e7;
  box-shadow: 0 8px 24px rgba(25, 27, 32, 0.08);
  text-decoration: none !important;
  color: inherit;
}

.bos-theme-card.is-active {
  border-color: color-mix(in srgb, var(--link-color) 50%, #e9ebef);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.bos-theme-card-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: #f6f7f9;
  overflow: hidden;
}

.bos-theme-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bos-theme-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid #e9ebef;
  background: #fafbfc;
}

.bos-theme-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #191b20;
  text-transform: capitalize;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-theme-card-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--link-color) 12%, #fff);
  color: var(--link-color);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.bos-theme-card-action {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 650;
  color: #858b95;
}

.bos-theme-card:hover .bos-theme-card-action {
  color: var(--link-color);
}

body.night-mode .modal-content:has(.bos-theme-modal-head),
body.night-mode .modal-content:has(.bos-theme-modal-body),
html[data-bs-theme="dark"] .modal-content:has(.bos-theme-modal-head),
html[data-bs-theme="dark"] .modal-content:has(.bos-theme-modal-body) {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-theme-modal-head,
body.night-mode .bos-theme-modal-body,
html[data-bs-theme="dark"] .bos-theme-modal-head,
html[data-bs-theme="dark"] .bos-theme-modal-body {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-theme-card,
html[data-bs-theme="dark"] .bos-theme-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-theme-card-preview,
html[data-bs-theme="dark"] .bos-theme-card-preview {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-theme-card-meta,
html[data-bs-theme="dark"] .bos-theme-card-meta {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-theme-card-name,
html[data-bs-theme="dark"] .bos-theme-card-name {
  color: #e2e8f0;
}

body.night-mode .bos-theme-card-action,
html[data-bs-theme="dark"] .bos-theme-card-action {
  color: #94a3b8;
}

/* —— Support Center —— */
.bos-support {
  --bos-sup-ink: #191b20;
  --bos-sup-muted: #858b95;
  --bos-sup-line: #e9ebef;
  --bos-sup-soft: #f6f7f9;
  padding-top: 18px;
  padding-bottom: 28px;
}

.bos-support-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 18px;
  margin-bottom: 12px;
  border: 1px solid var(--bos-sup-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.03);
}

.bos-support-hero-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--bos-sup-line);
  background: var(--bos-sup-soft);
  color: var(--link-color);
}

.bos-support-hero-ico .svg-container,
.bos-support-hero-ico .main-icon {
  margin: 0 !important;
  color: var(--link-color) !important;
}

.bos-support-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.bos-support-hero-copy h1 {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 700;
  color: var(--bos-sup-ink);
  line-height: 1.25;
}

.bos-support-hero-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--bos-sup-muted);
  line-height: 1.4;
}

.bos-support-create {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px !important;
  margin-left: auto;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-support-create:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-support-create .svg-container,
.bos-support-create .main-icon {
  margin: 0 !important;
  color: #fff !important;
}

.bos-support-create svg {
  stroke: currentColor;
}

.bos-support-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--bos-sup-line);
  border-radius: 14px;
  background: #fff;
  overflow-x: auto;
}

.bos-support-tabs > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--bos-sup-muted) !important;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none !important;
  white-space: nowrap;
}

.bos-support-tabs > a:hover {
  background: var(--bos-sup-soft);
  color: var(--bos-sup-ink) !important;
}

.bos-support-tabs > a.active {
  background: color-mix(in srgb, var(--link-color) 10%, #fff);
  color: var(--link-color) !important;
}

.bos-support-panel.card {
  border: 1px solid var(--bos-sup-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.03) !important;
  overflow: hidden;
}

.bos-support-panel-head.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--bos-sup-line) !important;
  background: #fafbfc !important;
}

.bos-support-panel-head .svg-container,
.bos-support-panel-head .main-icon {
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-support-panel-head strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bos-sup-ink);
}

.bos-support-panel > .card-body {
  padding: 14px 16px !important;
}

.bos-support-side {
  margin: 0;
  padding: 6px !important;
  list-style: none;
}

.bos-support-side > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px !important;
  border-radius: 10px;
  color: #515761 !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.bos-support-side > li > a:hover {
  background: var(--bos-sup-soft);
  color: var(--bos-sup-ink) !important;
}

.bos-support-side > li.active > a {
  background: color-mix(in srgb, var(--link-color) 10%, #fff);
  color: var(--link-color) !important;
}

.bos-support-count {
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bos-sup-soft);
  color: var(--bos-sup-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.bos-support-side > li.active .bos-support-count {
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
  color: var(--link-color);
}

.bos-support-side-sep {
  padding: 6px 10px !important;
}

.bos-support-side-sep > span {
  display: block;
  height: 1px;
  background: var(--bos-sup-line);
}

.bos-support-search {
  margin-bottom: 14px;
}

.bos-support-search-row {
  display: flex;
  gap: 8px;
}

.bos-support-search .form-control {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 12px !important;
  border: 1px solid var(--bos-sup-line) !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  color: var(--bos-sup-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bos-support-search .form-control:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-support-search-btn {
  height: 42px;
  padding: 0 14px !important;
  border: 1px solid var(--bos-sup-line) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #515761 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-support-search-btn:hover {
  background: var(--bos-sup-soft) !important;
}

.bos-support-table {
  margin: 0;
}

.bos-support-table thead th {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--bos-sup-line) !important;
  background: var(--bos-sup-soft);
  color: var(--bos-sup-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bos-support-table tbody td {
  padding: 12px !important;
  border-bottom: 1px solid var(--bos-sup-line) !important;
  vertical-align: middle;
  font-size: 13px;
  color: var(--bos-sup-ink);
}

.bos-support-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.bos-support-table tbody tr:hover td {
  background: #fafbfc;
}

.bos-support-id {
  font-weight: 700;
  color: var(--bos-sup-muted);
}

.bos-support-subject {
  font-weight: 650;
  color: var(--bos-sup-ink) !important;
  text-decoration: none !important;
}

.bos-support-subject:hover {
  color: var(--link-color) !important;
}

.bos-support-time {
  color: var(--bos-sup-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.bos-support-meta-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--bos-sup-ink) !important;
  font-weight: 650;
  text-decoration: none !important;
}

.bos-support-meta-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 28px;
}

.bos-support-meta-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bos-support-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.bos-support-badge.is-opened {
  background: color-mix(in srgb, var(--link-color) 12%, #fff);
  color: var(--link-color);
}

.bos-support-badge.is-progress {
  background: #eef6ff;
  color: #2563eb;
}

.bos-support-badge.is-pending {
  background: #fff7e8;
  color: #b45309;
}

.bos-support-badge.is-solved {
  background: #ecfdf3;
  color: #15803d;
}

.bos-support-badge.is-closed,
.bos-support-badge.is-unassigned {
  background: var(--bos-sup-soft);
  color: #515761;
}

.bos-support-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 16px;
  text-align: center;
}

.bos-support-empty-ico {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 14px;
  border: 1px solid var(--bos-sup-line);
  background: var(--bos-sup-soft);
  color: var(--bos-sup-muted);
}

.bos-support-empty strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-sup-ink);
}

.bos-support-empty p {
  margin: 0;
  font-size: 12.5px;
  color: var(--bos-sup-muted);
}

.bos-support-meta-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px !important;
}

.bos-support-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bos-support-meta-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bos-sup-muted);
}

.bos-support-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--bos-sup-ink);
}

.bos-support-thread-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bos-support-thread-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--bos-sup-ink);
  line-height: 1.3;
}

.bos-support-update-btn {
  height: 34px;
  padding: 0 12px !important;
  border: 1px solid var(--bos-sup-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #515761 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-support-update-btn:hover {
  background: var(--bos-sup-soft) !important;
}

.bos-support-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.bos-support-msg {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--bos-sup-line);
  border-radius: 14px;
  background: #fff;
}

@media (max-width: 575.98px) {
  .bos-support-msg {
    grid-template-columns: 1fr;
  }
}

.bos-support-msg-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.bos-support-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bos-sup-line);
}

.bos-support-msg-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--bos-sup-ink) !important;
  text-decoration: none !important;
  word-break: break-word;
}

.bos-support-msg-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--bos-sup-muted);
}

.bos-support-msg-time {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bos-sup-muted);
}

.bos-support-msg-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--bos-sup-ink);
  word-break: break-word;
}

.bos-support-form .form-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-sup-muted);
}

.bos-support-form .form-control {
  min-height: 42px;
  padding: 10px 12px !important;
  border: 1px solid var(--bos-sup-line) !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  color: var(--bos-sup-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bos-support-form .form-control:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

.bos-support-form-foot.card-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px !important;
  border-top: 1px solid var(--bos-sup-line) !important;
  background: #fafbfc !important;
}

.bos-support-form-foot .btn-primary {
  height: 38px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #1b1e23 !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-support-form-foot .btn-primary:hover {
  background: #111318 !important;
}

.bos-ticket-modal .form-select {
  min-height: 42px;
  padding: 10px 12px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 11px !important;
  background: #fafbfc !important;
  color: #191b20 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bos-ticket-modal .form-select:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent) !important;
}

body.night-mode .bos-support,
html[data-bs-theme="dark"] .bos-support {
  --bos-sup-ink: #e2e8f0;
  --bos-sup-muted: #94a3b8;
  --bos-sup-line: rgba(255, 255, 255, 0.1);
  --bos-sup-soft: rgba(255, 255, 255, 0.05);
}

body.night-mode .bos-support-hero,
body.night-mode .bos-support-tabs,
body.night-mode .bos-support-panel.card,
body.night-mode .bos-support-msg,
html[data-bs-theme="dark"] .bos-support-hero,
html[data-bs-theme="dark"] .bos-support-tabs,
html[data-bs-theme="dark"] .bos-support-panel.card,
html[data-bs-theme="dark"] .bos-support-msg {
  background: var(--card-dark-color, #262d34) !important;
}

body.night-mode .bos-support-panel-head,
body.night-mode .bos-support-form-foot,
body.night-mode .bos-support-table thead th,
html[data-bs-theme="dark"] .bos-support-panel-head,
html[data-bs-theme="dark"] .bos-support-form-foot,
html[data-bs-theme="dark"] .bos-support-table thead th {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-support-create,
body.night-mode .bos-support-form-foot .btn-primary,
html[data-bs-theme="dark"] .bos-support-create,
html[data-bs-theme="dark"] .bos-support-form-foot .btn-primary {
  background: #fff !important;
  color: #111 !important;
}

body.night-mode .bos-support-search .form-control,
body.night-mode .bos-support-form .form-control,
body.night-mode .bos-ticket-modal .form-select,
html[data-bs-theme="dark"] .bos-support-search .form-control,
html[data-bs-theme="dark"] .bos-support-form .form-control,
html[data-bs-theme="dark"] .bos-ticket-modal .form-select {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ── Page detail (bos-page) — reuses bos-profile soft shell ── */
.bos-page .profile-avatar-wrapper {
  overflow: visible;
}

.bos-page .profile-avatar-wrapper img[src*="blank_"] {
  opacity: 0;
  /* keep in-flow size so wrapper doesn't collapse */
}

.bos-page .profile-avatar-wrapper:has(img[src*="blank_"])::before {
  content: "\f024";
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: #9aa1ab;
  background: var(--bos-pf-soft, #f6f7f9);
  z-index: 1;
  pointer-events: none;
}

.bos-page .profile-avatar-change,
.bos-page .profile-avatar-crop,
.bos-page .profile-avatar-delete {
  padding: 0 !important;
  opacity: 1 !important;
  z-index: 5;
  bottom: 6px !important;
  right: 6px !important;
}

.bos-page .profile-avatar-change:not(.x-hidden),
.bos-page .profile-avatar-crop:not(.x-hidden),
.bos-page .profile-avatar-delete:not(.x-hidden) {
  display: inline-grid !important;
  place-items: center;
}

.bos-page .profile-avatar-change.x-hidden,
.bos-page .profile-avatar-crop.x-hidden,
.bos-page .profile-avatar-delete.x-hidden {
  display: none !important;
}

.bos-page .profile-avatar-crop {
  bottom: 42px !important;
  right: -4px !important;
}

.bos-page .profile-avatar-delete {
  bottom: 78px !important;
  right: 6px !important;
}

.bos-page .profile-avatar-change .dropdown-menu {
  z-index: 1060;
  min-width: 220px;
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px -16px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden;
}

.bos-page .profile-buttons-wrapper .btn span.d-none.d-xxl-inline-block {
  display: inline-block !important;
}

@media (max-width: 575.98px) {
  .bos-page .profile-buttons-wrapper .btn span.d-none.d-xxl-inline-block {
    display: none !important;
  }
}

.bos-page .bos-profile-tabs .badge.bg-light {
  margin-left: 4px;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--link-color) !important;
  border: 1px solid var(--bos-pf-line, #e9ebef);
}

/* Soft action menus on profile/page headers + cover/avatar pickers */
.bos-profile .action-dropdown-menu,
.bos-profile .bos-action-menu,
.bos-page .profile-avatar-change .dropdown-menu,
.bos-page .profile-cover-change .dropdown-menu,
.bos-profile .profile-avatar-change .dropdown-menu,
.bos-profile .profile-cover-change .dropdown-menu {
  z-index: 1060 !important;
  margin-top: 6px !important;
  padding: 8px !important;
  min-width: 248px !important;
  max-width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--bos-pf-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 18px 40px -18px rgba(20, 24, 32, 0.28) !important;
  overflow: visible !important;
}

.bos-profile .action-dropdown-menu .dropdown-item,
.bos-profile .bos-action-menu .dropdown-item,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item {
  display: block;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  margin: 0 !important;
  color: var(--bos-pf-ink, #191b20) !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  line-height: 1.25;
  white-space: normal;
  background: transparent !important;
  text-decoration: none !important;
  transition: background 0.12s ease;
}

.bos-profile .action-dropdown-menu .dropdown-item:hover,
.bos-profile .action-dropdown-menu .dropdown-item:focus,
.bos-profile .bos-action-menu .dropdown-item:hover,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item:hover,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item:hover,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item:hover,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item:hover {
  background: var(--bos-pf-soft, #f6f7f9) !important;
  color: var(--bos-pf-ink, #191b20) !important;
}

.bos-profile .action-dropdown-menu .dropdown-item .action,
.bos-profile .bos-action-menu .dropdown-item .action,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .action,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .action,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .action,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .action {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
  padding: 0 !important;
}

.bos-profile .action-dropdown-menu .dropdown-item .action span,
.bos-profile .bos-action-menu .dropdown-item .action span,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .action span,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .action span {
  flex: 1;
  min-width: 0;
}

.bos-profile .action-dropdown-menu .dropdown-item .action-desc,
.bos-profile .bos-action-menu .dropdown-item .action-desc,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .action-desc,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .action-desc,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .action-desc,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .action-desc {
  margin: 2px 0 0 38px;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--bos-pf-muted, #858b95) !important;
  line-height: 1.35;
}

.bos-profile .action-dropdown-menu .dropdown-item .svg-container,
.bos-profile .action-dropdown-menu .dropdown-item .main-icon,
.bos-profile .bos-action-menu .dropdown-item .svg-container,
.bos-profile .bos-action-menu .dropdown-item .main-icon,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .svg-container,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .main-icon,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .svg-container,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .main-icon,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .svg-container,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .main-icon,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .svg-container,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .main-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border-radius: 8px;
  background: var(--bos-pf-soft, #f6f7f9);
  overflow: hidden;
  color: #747b85 !important;
}

.bos-profile .action-dropdown-menu .dropdown-item:hover .svg-container,
.bos-profile .action-dropdown-menu .dropdown-item:hover .main-icon,
.bos-profile .bos-action-menu .dropdown-item:hover .svg-container,
.bos-profile .bos-action-menu .dropdown-item:hover .main-icon,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item:hover .svg-container,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item:hover .svg-container,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item:hover .svg-container,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item:hover .svg-container {
  background: #fff;
}

.bos-profile .action-dropdown-menu .dropdown-item .svg-container svg,
.bos-profile .action-dropdown-menu .dropdown-item .main-icon svg,
.bos-profile .bos-action-menu .dropdown-item .svg-container svg,
.bos-profile .bos-action-menu .dropdown-item .main-icon svg,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .svg-container svg,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .svg-container svg,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .svg-container svg,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .svg-container svg {
  width: 15px !important;
  height: 15px !important;
  display: block;
}

.bos-profile .action-dropdown-menu .dropdown-item .svg-container *,
.bos-profile .action-dropdown-menu .dropdown-item .svg-container path,
.bos-profile .action-dropdown-menu .dropdown-item .main-icon *,
.bos-profile .action-dropdown-menu .dropdown-item .main-icon path,
.bos-profile .bos-action-menu .dropdown-item .svg-container *,
.bos-profile .bos-action-menu .dropdown-item .main-icon *,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item .svg-container *,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item .svg-container *,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item .svg-container *,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item .svg-container * {
  fill: #747b85 !important;
}

.bos-profile .action-dropdown-menu .dropdown-item:hover .svg-container *,
.bos-profile .action-dropdown-menu .dropdown-item:hover .main-icon *,
.bos-profile .bos-action-menu .dropdown-item:hover .svg-container *,
.bos-profile .bos-action-menu .dropdown-item:hover .main-icon *,
.bos-page .profile-avatar-change .dropdown-menu .dropdown-item:hover .svg-container *,
.bos-page .profile-cover-change .dropdown-menu .dropdown-item:hover .svg-container *,
.bos-profile .profile-avatar-change .dropdown-menu .dropdown-item:hover .svg-container *,
.bos-profile .profile-cover-change .dropdown-menu .dropdown-item:hover .svg-container * {
  fill: var(--link-color) !important;
}

.bos-profile .action-dropdown-menu .dropdown-divider,
.bos-profile .bos-action-menu .dropdown-divider {
  margin: 6px 4px !important;
  border-color: var(--bos-pf-line, #e9ebef) !important;
  opacity: 1;
}

body.night-mode .bos-profile .action-dropdown-menu,
body.night-mode .bos-profile .bos-action-menu,
body.night-mode .bos-page .profile-avatar-change .dropdown-menu,
body.night-mode .bos-page .profile-cover-change .dropdown-menu,
html[data-bs-theme="dark"] .bos-profile .action-dropdown-menu,
html[data-bs-theme="dark"] .bos-profile .bos-action-menu,
html[data-bs-theme="dark"] .bos-page .profile-avatar-change .dropdown-menu,
html[data-bs-theme="dark"] .bos-page .profile-cover-change .dropdown-menu {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-profile .action-dropdown-menu .dropdown-item,
body.night-mode .bos-profile .bos-action-menu .dropdown-item,
html[data-bs-theme="dark"] .bos-profile .action-dropdown-menu .dropdown-item,
html[data-bs-theme="dark"] .bos-profile .bos-action-menu .dropdown-item {
  color: #e2e8f0 !important;
}

body.night-mode .bos-profile .action-dropdown-menu .dropdown-item:hover,
body.night-mode .bos-profile .bos-action-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .bos-profile .action-dropdown-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .bos-profile .bos-action-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Page settings inside profile shell */
.bos-profile .bos-settings {
  margin-top: 0;
}

.bos-settings .bos-settings-tabs > a[data-bs-toggle="tab"] {
  cursor: pointer;
}

.bos-settings .btn-danger,
.bos-settings .js_delete-page {
  height: 42px;
  padding: 0 18px !important;
  border: 1px solid #fecaca !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #dc2626 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-settings .btn-danger:hover,
.bos-settings .js_delete-page:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.bos-settings .alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bos-settings .alert .icon {
  flex: 0 0 auto;
  color: inherit;
}

.bos-settings .alert .text {
  flex: 1;
  min-width: 0;
}

.bos-settings .side-nav > li.active > a {
  background: var(--bos-set-soft) !important;
  color: var(--bos-set-ink) !important;
  box-shadow: inset 3px 0 0 var(--link-color);
}

.bos-settings .side-nav > li > a .fa.main-icon {
  width: 18px;
  text-align: center;
  color: #858b95;
}

/* Page/profile more-menu — fixed soft layout (no inline icon blowout) */
.bos-profile .bos-pf-more {
  position: relative;
  overflow: visible !important;
}

.bos-profile .profile-buttons-wrapper,
.bos-profile .bos-pf-meta,
.bos-profile .profile-header-wrapper {
  overflow: visible !important;
}

.bos-profile .bos-pf-more .bos-action-menu.dropdown-menu,
.bos-profile .bos-action-menu.dropdown-menu {
  z-index: 1080 !important;
  min-width: 240px !important;
  max-width: 280px !important;
  width: max-content !important;
  padding: 6px !important;
  margin-top: 8px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 18px 40px -18px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden !important;
}

.bos-profile .bos-action-menu .dropdown-item,
.bos-profile .bos-action-menu a.dropdown-item {
  display: block !important;
  padding: 8px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #191b20 !important;
  white-space: normal !important;
  text-decoration: none !important;
}

.bos-profile .bos-action-menu .dropdown-item:hover,
.bos-profile .bos-action-menu .dropdown-item:focus,
.bos-profile .bos-action-menu a.dropdown-item:hover,
.bos-profile .bos-action-menu a.dropdown-item:focus {
  background: #f6f7f9 !important;
  color: #191b20 !important;
}

.bos-profile .bos-action-menu .bos-am-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-width: 0;
}

.bos-profile .bos-action-menu .bos-am-ico,
.bos-profile .bos-action-menu .svg-container.bos-am-ico,
.bos-profile .bos-action-menu .bos-am-row > .svg-container {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 9px !important;
  background: #f6f7f9 !important;
  overflow: hidden !important;
  color: #747b85 !important;
  line-height: 0 !important;
}

.bos-profile .bos-action-menu .bos-am-ico svg,
.bos-profile .bos-action-menu .svg-container.bos-am-ico svg,
.bos-profile .bos-action-menu .bos-am-row > .svg-container svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  display: block !important;
}

.bos-profile .bos-action-menu .bos-am-ico *,
.bos-profile .bos-action-menu .bos-am-ico path,
.bos-profile .bos-action-menu .bos-am-ico path[fill],
.bos-profile .bos-action-menu .svg-container.bos-am-ico *,
.bos-profile .bos-action-menu .svg-container.bos-am-ico path,
.bos-profile .bos-action-menu .bos-am-row > .svg-container *,
.bos-profile .bos-action-menu .bos-am-row > .svg-container path {
  fill: #747b85 !important;
  color: #747b85 !important;
}

.bos-profile .bos-action-menu .dropdown-item:hover .bos-am-ico,
.bos-profile .bos-action-menu .dropdown-item:hover .svg-container.bos-am-ico,
.bos-profile .bos-action-menu .dropdown-item:hover .bos-am-row > .svg-container {
  background: #fff !important;
}

.bos-profile .bos-action-menu .dropdown-item:hover .bos-am-ico *,
.bos-profile .bos-action-menu .dropdown-item:hover .bos-am-ico path,
.bos-profile .bos-action-menu .dropdown-item:hover .svg-container.bos-am-ico *,
.bos-profile .bos-action-menu .dropdown-item:hover .bos-am-row > .svg-container * {
  fill: var(--link-color) !important;
  color: var(--link-color) !important;
}

.bos-profile .bos-action-menu .bos-am-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.bos-profile .bos-action-menu .bos-am-title,
.bos-profile .bos-action-menu a.dropdown-item .bos-am-title {
  display: block;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: #191b20 !important;
}

.bos-profile .bos-action-menu .bos-am-desc,
.bos-profile .bos-action-menu a.dropdown-item .bos-am-desc {
  display: block;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1.35;
  color: #858b95 !important;
}

.bos-profile .bos-action-menu .dropdown-divider {
  margin: 4px 6px !important;
  border-top: 1px solid #e9ebef !important;
  opacity: 1;
}


/* Page settings — members + soft tabs hard fix */
.bos-settings .bos-settings-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 12px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--bos-set-line, #e9ebef);
  background: #fff;
}

.bos-settings .bos-settings-tabs > a,
.bos-settings .bos-settings-tabs > button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-radius: 10px 10px 0 0 !important;
  color: #747b85 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  line-height: 1.2;
}

.bos-settings .bos-settings-tabs > a:hover,
.bos-settings .bos-settings-tabs > button:hover {
  color: var(--bos-set-ink, #191b20) !important;
  background: var(--bos-set-soft, #f6f7f9) !important;
}

.bos-settings .bos-settings-tabs > a.active,
.bos-settings .bos-settings-tabs > button.active {
  color: var(--link-color) !important;
  background: color-mix(in srgb, var(--link-color) 10%, #fff) !important;
  box-shadow: inset 0 -2px 0 var(--link-color);
}

/* Page info — segmented button tabs */
.bos-settings .bos-info-tabs.bos-settings-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px !important;
  padding: 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--bos-set-line, #e9ebef) !important;
  background: #f6f7f9 !important;
  overflow: visible !important;
}

.bos-settings .bos-info-tabs > button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #747b85 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.bos-settings .bos-info-tabs > button:hover {
  background: #fff !important;
  color: var(--bos-set-ink, #191b20) !important;
  border-color: #e9ebef !important;
}

.bos-settings .bos-info-tabs > button.active {
  background: #fff !important;
  color: var(--link-color) !important;
  border-color: color-mix(in srgb, var(--link-color) 22%, #e9ebef) !important;
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.04), 0 8px 18px -14px rgba(25, 27, 32, 0.35) !important;
}

.bos-settings .bos-info-tab-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #eef0f3;
  color: inherit;
}

.bos-settings .bos-info-tabs > button.active .bos-info-tab-ico {
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
  color: var(--link-color);
}

.bos-settings .bos-info-tab-ico .main-icon,
.bos-settings .bos-info-tab-ico .svg-container,
.bos-settings .bos-info-tab-ico svg {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.bos-settings .bos-info-tabs > button > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .bos-settings .bos-info-tabs.bos-settings-tabs {
    grid-template-columns: 1fr;
  }

  .bos-settings .bos-info-tabs > button {
    justify-content: flex-start !important;
    padding-left: 12px !important;
  }
}

body.night-mode .bos-settings .bos-info-tabs.bos-settings-tabs,
html[data-bs-theme="dark"] .bos-settings .bos-info-tabs.bos-settings-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .bos-settings .bos-info-tabs > button:hover,
body.night-mode .bos-settings .bos-info-tabs > button.active,
html[data-bs-theme="dark"] .bos-settings .bos-info-tabs > button:hover,
html[data-bs-theme="dark"] .bos-settings .bos-info-tabs > button.active {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8eef4 !important;
}

body.night-mode .bos-settings .bos-info-tab-ico,
html[data-bs-theme="dark"] .bos-settings .bos-info-tab-ico {
  background: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-settings .bos-info-tabs > button.active .bos-info-tab-ico,
html[data-bs-theme="dark"] .bos-settings .bos-info-tabs > button.active .bos-info-tab-ico {
  background: color-mix(in srgb, var(--link-color) 24%, transparent);
  color: var(--link-color);
}

.bos-settings .tab-content > .tab-pane {
  display: none;
}

.bos-settings .tab-content > .tab-pane.active,
.bos-settings .tab-content > .tab-pane.show {
  display: block;
}

.bos-settings .bos-members {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bos-settings .bos-members-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 360px;
}

.bos-settings .bos-members-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bos-settings .bos-members-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #858b95;
}

.bos-settings .bos-members-head span {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #a0a6b0;
}

.bos-settings .bos-members-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bos-settings .bos-members-list > li,
.bos-settings .bos-members-list .feeds-item {
  list-style: none !important;
  border: 1px solid var(--bos-set-line, #e9ebef) !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

.bos-settings .bos-members-list .data-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  float: none !important;
}

.bos-settings .bos-members-list .data-avatar {
  float: none !important;
  flex: 0 0 auto !important;
  display: block !important;
}

.bos-settings .bos-members-list .data-avatar img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  object-fit: cover;
  display: block;
}

.bos-settings .bos-members-list .data-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  float: none !important;
}

.bos-settings .bos-members-list .data-content > .mt5 {
  margin: 0 !important;
  min-width: 0;
  order: 0;
}

.bos-settings .bos-members-list .data-content > .float-end {
  float: none !important;
  order: 1;
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 !important;
  flex: 0 0 auto;
}

.bos-settings .bos-members-list .name,
.bos-settings .bos-members-list .name a {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--bos-set-ink, #191b20) !important;
  text-decoration: none !important;
}

.bos-settings .bos-members-list .name a:hover {
  color: var(--link-color) !important;
}

.bos-settings .bos-members-list .btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-settings .bos-members-list .btn-danger,
.bos-settings .bos-members-list .js_page-member-remove,
.bos-settings .bos-members-list .js_page-admin-remove {
  background: #fff !important;
  border: 1px solid #fecaca !important;
  color: #b91c1c !important;
}

.bos-settings .bos-members-list .btn-danger:hover,
.bos-settings .bos-members-list .js_page-member-remove:hover,
.bos-settings .bos-members-list .js_page-admin-remove:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
  color: #991b1b !important;
}

.bos-settings .bos-members-list .btn-primary,
.bos-settings .bos-members-list .js_page-admin-addation {
  background: color-mix(in srgb, var(--link-color) 10%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--link-color) 28%, #e9ebef) !important;
  color: var(--link-color) !important;
}

.bos-settings .bos-members-list .btn-primary:hover,
.bos-settings .bos-members-list .js_page-admin-addation:hover {
  background: color-mix(in srgb, var(--link-color) 16%, #fff) !important;
}

/* Admins block: only show Remove Admin (not Remove member) */
.bos-settings .bos-members-admins .js_page-member-remove {
  display: none !important;
}

.bos-settings .bos-members-more {
  margin-top: 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--bos-set-soft, #f6f7f9) !important;
  color: var(--bos-set-ink, #191b20) !important;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.bos-settings .bos-members-empty {
  padding: 22px 14px;
  text-align: center;
  border: 1px dashed #e9ebef;
  border-radius: 14px;
  color: #858b95;
  font-size: 13px;
  font-weight: 550;
  background: #fafbfc;
}

@media (max-width: 575.98px) {
  .bos-settings .bos-members-list .data-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .bos-settings .bos-members-list .data-content > .float-end {
    width: 100%;
    justify-content: flex-start;
  }
}

body.night-mode .bos-settings .bos-members-list > li,
body.night-mode .bos-settings .bos-members-list .feeds-item,
html[data-bs-theme="dark"] .bos-settings .bos-members-list > li,
html[data-bs-theme="dark"] .bos-settings .bos-members-list .feeds-item {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-settings .bos-members-empty,
html[data-bs-theme="dark"] .bos-settings .bos-members-empty {
  background: rgba(255, 255, 255, 0.02);
}

.bos-settings .bos-page-mon .bos-fund-intro {
  margin-bottom: 14px;
}

.bos-settings .bos-page-mon .bos-mon-plans {
  margin-top: 4px;
}

.bos-settings .bos-page-mon .bos-mon-save {
  margin-top: 8px;
}

/* Soft monetization modals */
#modal .modal-content:has(.js_ajax-forms[data-url*="monetization"]) .modal-header,
#modal .modal-content:has([data-url*="monetization"]) .modal-header {
  border-bottom: 1px solid #e9ebef;
  padding: 16px 18px;
}

#modal .modal-content .js_ajax-forms[data-url*="monetization"] .modal-body,
#modal .modal-content .js_ajax-forms[data-url*="insert_plan"] .modal-body,
#modal .modal-content .js_ajax-forms[data-url*="update_plan"] .modal-body,
#modal .modal-content .js_ajax-forms[data-url*="insert_coupon"] .modal-body {
  padding: 18px;
}

#modal .modal-content .js_ajax-forms[data-url*="monetization"] .form-control,
#modal .modal-content .js_ajax-forms[data-url*="insert_plan"] .form-control,
#modal .modal-content .js_ajax-forms[data-url*="update_plan"] .form-control,
#modal .modal-content .js_ajax-forms[data-url*="insert_coupon"] .form-control,
#modal .modal-content .js_ajax-forms[data-url*="insert_plan"] .form-select,
#modal .modal-content .js_ajax-forms[data-url*="update_plan"] .form-select {
  border: 1px solid #e9ebef;
  border-radius: 12px;
  min-height: 42px;
  box-shadow: none;
}

#modal .modal-content .js_ajax-forms[data-url*="monetization"] .alert.x-hidden,
#modal .modal-content .js_ajax-forms[data-url*="insert_plan"] .alert.x-hidden,
#modal .modal-content .js_ajax-forms[data-url*="update_plan"] .alert.x-hidden,
#modal .modal-content .js_ajax-forms[data-url*="insert_coupon"] .alert.x-hidden {
  display: none !important;
}

.bos-settings .bos-ver {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bos-settings .bos-ver-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Page settings — soft social links */
.bos-settings .bos-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bos-settings .bos-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .bos-settings .bos-social-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.bos-settings .bos-social-field {
  margin: 0;
}

.bos-settings .bos-social-field .form-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #747b85 !important;
}

.bos-settings .bos-social-input {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  border: 1px solid var(--bos-set-line, #e9ebef);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.bos-settings .bos-social-input:focus-within {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.bos-settings .bos-social-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-right: 1px solid var(--bos-set-line, #e9ebef);
  background: var(--bos-set-soft, #f6f7f9);
  color: #747b85;
}

.bos-settings .bos-social-ico .svg-container,
.bos-settings .bos-social-ico .main-icon {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
}

.bos-settings .bos-social-ico svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}

/* Keep brand SVG multi-fills intact; only tint monochrome X */
.bos-settings .bos-social-field.is-x .bos-social-ico path {
  fill: currentColor !important;
}

.bos-settings .bos-social-input .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px !important;
  min-height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  font-size: 13px !important;
}

.bos-settings .bos-social-input .form-control:focus {
  box-shadow: none !important;
}

.bos-settings .bos-social-field.is-facebook .bos-social-ico {
  background: #eff6ff;
  color: #1877f2;
}

.bos-settings .bos-social-field.is-x .bos-social-ico {
  background: #f4f4f5;
  color: #111827;
}

.bos-settings .bos-social-field.is-youtube .bos-social-ico {
  background: #fef2f2;
  color: #ff0000;
}

.bos-settings .bos-social-field.is-instagram .bos-social-ico {
  background: #fdf2f8;
  color: #e4405f;
}

.bos-settings .bos-social-field.is-linkedin .bos-social-ico {
  background: #eff6ff;
  color: #0a66c2;
}

.bos-settings .bos-social-field.is-vk .bos-social-ico {
  background: #eff6ff;
  color: #0077ff;
}

body.night-mode .bos-settings .bos-social-input,
html[data-bs-theme="dark"] .bos-settings .bos-social-input {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-settings .bos-social-ico,
html[data-bs-theme="dark"] .bos-settings .bos-social-ico {
  border-right-color: rgba(255, 255, 255, 0.1);
}

/* Page settings — danger delete zone */
.bos-settings .bos-danger {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 1px solid #fecaca;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fff5f5 0%, #ffffff 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bos-settings .bos-danger-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.bos-settings .bos-danger-ico {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #dc2626;
}

.bos-settings .bos-danger-ico .main-icon,
.bos-settings .bos-danger-ico .svg-container,
.bos-settings .bos-danger-ico svg {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
}

.bos-settings .bos-danger-ico path,
.bos-settings .bos-danger-ico * {
  fill: currentColor !important;
}

.bos-settings .bos-danger-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bos-settings .bos-danger-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bos-settings .bos-danger-copy strong {
  display: block;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #991b1b;
}

.bos-settings .bos-danger-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #b91c1c;
}

.bos-settings .bos-danger-list {
  margin: 0;
  padding: 14px 16px 14px 34px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.45);
  list-style: disc;
}

.bos-settings .bos-danger-list li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #7f1d1d;
  font-weight: 600;
}

.bos-settings .bos-danger-list li:last-child {
  margin-bottom: 0;
}

.bos-settings .bos-danger-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}

.bos-settings .bos-danger-btn,
.bos-settings .js_delete-page.bos-danger-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  height: auto !important;
  padding: 0 20px !important;
  border: 1px solid #b91c1c !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28) !important;
}

.bos-settings .bos-danger-btn:hover,
.bos-settings .js_delete-page.bos-danger-btn:hover {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #fff !important;
  border-color: #991b1b !important;
}

.bos-settings .bos-danger-btn .main-icon,
.bos-settings .bos-danger-btn .svg-container,
.bos-settings .bos-danger-btn svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: #fff !important;
}

.bos-settings .bos-danger-btn path,
.bos-settings .bos-danger-btn * {
  fill: currentColor !important;
}

.bos-settings .bos-danger-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #9f1239;
  font-weight: 600;
}

body.night-mode .bos-settings .bos-danger,
html[data-bs-theme="dark"] .bos-settings .bos-danger {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.28) 0%, rgba(255, 255, 255, 0.03) 48%);
  border-color: rgba(248, 113, 113, 0.35);
}

body.night-mode .bos-settings .bos-danger-list,
html[data-bs-theme="dark"] .bos-settings .bos-danger-list {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.28);
}

body.night-mode .bos-settings .bos-danger-copy strong,
html[data-bs-theme="dark"] .bos-settings .bos-danger-copy strong,
body.night-mode .bos-settings .bos-danger-list li,
html[data-bs-theme="dark"] .bos-settings .bos-danger-list li {
  color: #fecaca;
}

body.night-mode .bos-settings .bos-danger-copy p,
html[data-bs-theme="dark"] .bos-settings .bos-danger-copy p,
body.night-mode .bos-settings .bos-danger-note,
html[data-bs-theme="dark"] .bos-settings .bos-danger-note {
  color: #fca5a5;
}

/* Page invites catalog */
.bos-profile.bos-page .bos-page-invites-intro , .bos-profile.bos-group .bos-page-invites-intro , .bos-profile.bos-event .bos-page-invites-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-invites-intro-ico , .bos-profile.bos-group .bos-page-invites-intro-ico , .bos-profile.bos-event .bos-page-invites-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-invites-intro-ico .main-icon, .bos-profile.bos-group .bos-page-invites-intro-ico .main-icon, .bos-profile.bos-event .bos-page-invites-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-invites-intro-ico .svg-container, .bos-profile.bos-group .bos-page-invites-intro-ico .svg-container, .bos-profile.bos-event .bos-page-invites-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-invites-intro-ico svg , .bos-profile.bos-group .bos-page-invites-intro-ico svg , .bos-profile.bos-event .bos-page-invites-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-invites-intro-copy , .bos-profile.bos-group .bos-page-invites-intro-copy , .bos-profile.bos-event .bos-page-invites-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-invites-intro-copy strong , .bos-profile.bos-group .bos-page-invites-intro-copy strong , .bos-profile.bos-event .bos-page-invites-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-invites-intro-copy p , .bos-profile.bos-group .bos-page-invites-intro-copy p , .bos-profile.bos-event .bos-page-invites-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-invites-count , .bos-profile.bos-group .bos-page-invites-count , .bos-profile.bos-event .bos-page-invites-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-invites-count span , .bos-profile.bos-group .bos-page-invites-count span , .bos-profile.bos-event .bos-page-invites-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-invites-count small , .bos-profile.bos-group .bos-page-invites-count small , .bos-profile.bos-event .bos-page-invites-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-invites .ui-box .btn-info, .bos-profile.bos-group .bos-page-invites .ui-box .btn-info, .bos-profile.bos-event .bos-page-invites .ui-box .btn-info,
.bos-profile.bos-page .bos-page-invites .js_page-invite , .bos-profile.bos-group .bos-page-invites .js_page-invite , .bos-profile.bos-event .bos-page-invites .js_page-invite {
  border: 1px solid color-mix(in srgb, var(--link-color) 28%, #e9ebef) !important;
  background: color-mix(in srgb, var(--link-color) 10%, #fff) !important;
  color: var(--link-color) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.bos-profile.bos-page .bos-page-invites .ui-box .btn-info:hover, .bos-profile.bos-group .bos-page-invites .ui-box .btn-info:hover, .bos-profile.bos-event .bos-page-invites .ui-box .btn-info:hover,
.bos-profile.bos-page .bos-page-invites .js_page-invite:hover , .bos-profile.bos-group .bos-page-invites .js_page-invite:hover , .bos-profile.bos-event .bos-page-invites .js_page-invite:hover {
  background: color-mix(in srgb, var(--link-color) 16%, #fff) !important;
  color: var(--link-color) !important;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-invites-intro , .bos-profile.bos-group .bos-page-invites-intro , .bos-profile.bos-event .bos-page-invites-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-invites-count , .bos-profile.bos-group .bos-page-invites-count , .bos-profile.bos-event .bos-page-invites-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-invites-intro, .bos-profile.bos-group .bos-page-invites-intro, .bos-profile.bos-event .bos-page-invites-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-invites-intro , .bos-profile.bos-group .bos-page-invites-intro , .bos-profile.bos-event .bos-page-invites-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-invites-intro-ico, .bos-profile.bos-group .bos-page-invites-intro-ico, .bos-profile.bos-event .bos-page-invites-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-invites-count, .bos-profile.bos-group .bos-page-invites-count, .bos-profile.bos-event .bos-page-invites-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-invites-intro-ico, .bos-profile.bos-group .bos-page-invites-intro-ico, .bos-profile.bos-event .bos-page-invites-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-invites-count , .bos-profile.bos-group .bos-page-invites-count , .bos-profile.bos-event .bos-page-invites-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-invites-intro-copy strong, .bos-profile.bos-group .bos-page-invites-intro-copy strong, .bos-profile.bos-event .bos-page-invites-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-invites-intro-copy strong , .bos-profile.bos-group .bos-page-invites-intro-copy strong , .bos-profile.bos-event .bos-page-invites-intro-copy strong {
  color: #e8eef4;
}

/* Page events catalog */
.bos-profile.bos-page .bos-page-events-intro , .bos-profile.bos-group .bos-page-events-intro , .bos-profile.bos-event .bos-page-events-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-events-intro-ico , .bos-profile.bos-group .bos-page-events-intro-ico , .bos-profile.bos-event .bos-page-events-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-events-intro-ico .main-icon, .bos-profile.bos-group .bos-page-events-intro-ico .main-icon, .bos-profile.bos-event .bos-page-events-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-events-intro-ico .svg-container, .bos-profile.bos-group .bos-page-events-intro-ico .svg-container, .bos-profile.bos-event .bos-page-events-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-events-intro-ico svg , .bos-profile.bos-group .bos-page-events-intro-ico svg , .bos-profile.bos-event .bos-page-events-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-events-intro-copy , .bos-profile.bos-group .bos-page-events-intro-copy , .bos-profile.bos-event .bos-page-events-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-events-intro-copy strong , .bos-profile.bos-group .bos-page-events-intro-copy strong , .bos-profile.bos-event .bos-page-events-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-events-intro-copy p , .bos-profile.bos-group .bos-page-events-intro-copy p , .bos-profile.bos-event .bos-page-events-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-events-count , .bos-profile.bos-group .bos-page-events-count , .bos-profile.bos-event .bos-page-events-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-events-count span , .bos-profile.bos-group .bos-page-events-count span , .bos-profile.bos-event .bos-page-events-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-events-count small , .bos-profile.bos-group .bos-page-events-count small , .bos-profile.bos-event .bos-page-events-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-events-intro , .bos-profile.bos-group .bos-page-events-intro , .bos-profile.bos-event .bos-page-events-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-events-count , .bos-profile.bos-group .bos-page-events-count , .bos-profile.bos-event .bos-page-events-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-events-intro, .bos-profile.bos-group .bos-page-events-intro, .bos-profile.bos-event .bos-page-events-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-events-intro , .bos-profile.bos-group .bos-page-events-intro , .bos-profile.bos-event .bos-page-events-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-events-intro-ico, .bos-profile.bos-group .bos-page-events-intro-ico, .bos-profile.bos-event .bos-page-events-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-events-count, .bos-profile.bos-group .bos-page-events-count, .bos-profile.bos-event .bos-page-events-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-events-intro-ico, .bos-profile.bos-group .bos-page-events-intro-ico, .bos-profile.bos-event .bos-page-events-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-events-count , .bos-profile.bos-group .bos-page-events-count , .bos-profile.bos-event .bos-page-events-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-events-intro-copy strong, .bos-profile.bos-group .bos-page-events-intro-copy strong, .bos-profile.bos-event .bos-page-events-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-events-intro-copy strong , .bos-profile.bos-group .bos-page-events-intro-copy strong , .bos-profile.bos-event .bos-page-events-intro-copy strong {
  color: #e8eef4;
}

/* Page reviews catalog */
.bos-profile.bos-page .bos-page-reviews-summary , .bos-profile.bos-group .bos-page-reviews-summary , .bos-profile.bos-event .bos-page-reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-reviews-score , .bos-profile.bos-group .bos-page-reviews-score , .bos-profile.bos-event .bos-page-reviews-score {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  text-align: center;
}

.bos-profile.bos-page .bos-page-reviews-score-val , .bos-profile.bos-group .bos-page-reviews-score-val , .bos-profile.bos-event .bos-page-reviews-score-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-reviews-score-stars , .bos-profile.bos-group .bos-page-reviews-score-stars , .bos-profile.bos-event .bos-page-reviews-score-stars {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.bos-profile.bos-page .bos-page-reviews-score-stars .review-stars, .bos-profile.bos-group .bos-page-reviews-score-stars .review-stars, .bos-profile.bos-event .bos-page-reviews-score-stars .review-stars,
.bos-profile.bos-page .bos-page-reviews-score-stars .fa-star, .bos-profile.bos-group .bos-page-reviews-score-stars .fa-star, .bos-profile.bos-event .bos-page-reviews-score-stars .fa-star,
.bos-profile.bos-page .bos-page-reviews-score-stars i , .bos-profile.bos-group .bos-page-reviews-score-stars i , .bos-profile.bos-event .bos-page-reviews-score-stars i {
  font-size: 11px !important;
}

.bos-profile.bos-page .bos-page-reviews-score-meta , .bos-profile.bos-group .bos-page-reviews-score-meta , .bos-profile.bos-event .bos-page-reviews-score-meta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-reviews-intro-copy , .bos-profile.bos-group .bos-page-reviews-intro-copy , .bos-profile.bos-event .bos-page-reviews-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-reviews-intro-copy strong , .bos-profile.bos-group .bos-page-reviews-intro-copy strong , .bos-profile.bos-event .bos-page-reviews-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-reviews-intro-copy p , .bos-profile.bos-group .bos-page-reviews-intro-copy p , .bos-profile.bos-event .bos-page-reviews-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-reviews-grid , .bos-profile.bos-group .bos-page-reviews-grid , .bos-profile.bos-event .bos-page-reviews-grid {
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-reviews .ui-box , .bos-profile.bos-group .bos-page-reviews .ui-box , .bos-profile.bos-event .bos-page-reviews .ui-box {
  text-align: left !important;
}

.bos-profile.bos-page .bos-page-reviews .ui-box .img , .bos-profile.bos-group .bos-page-reviews .ui-box .img , .bos-profile.bos-event .bos-page-reviews .ui-box .img {
  width: 48px !important;
  height: 48px !important;
  margin: 0 0 10px !important;
  border-radius: 14px !important;
}

.bos-profile.bos-page .bos-page-reviews .ui-box .img img , .bos-profile.bos-group .bos-page-reviews .ui-box .img img , .bos-profile.bos-event .bos-page-reviews .ui-box .img img {
  border-radius: 14px !important;
}

.bos-profile.bos-page .bos-page-reviews .review-stars , .bos-profile.bos-group .bos-page-reviews .review-stars , .bos-profile.bos-event .bos-page-reviews .review-stars {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

.bos-profile.bos-page .bos-page-reviews .review-review , .bos-profile.bos-group .bos-page-reviews .review-review , .bos-profile.bos-event .bos-page-reviews .review-review {
  margin-top: 10px !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
  border: 1px solid var(--bos-pf-line, #e9ebef);
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-pf-ink, #191b20);
  text-align: left;
}

.bos-profile.bos-page .bos-page-reviews .review-photos , .bos-profile.bos-group .bos-page-reviews .review-photos , .bos-profile.bos-event .bos-page-reviews .review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bos-profile.bos-page .bos-page-reviews .review-photos img , .bos-profile.bos-group .bos-page-reviews .review-photos img , .bos-profile.bos-event .bos-page-reviews .review-photos img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
}

.bos-profile.bos-page .bos-page-reviews .review-reply , .bos-profile.bos-group .bos-page-reviews .review-reply , .bos-profile.bos-event .bos-page-reviews .review-reply {
  margin-top: 4px;
}

.bos-profile.bos-page .bos-page-reviews .review-card.data-container , .bos-profile.bos-group .bos-page-reviews .review-card.data-container , .bos-profile.bos-event .bos-page-reviews .review-card.data-container {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--link-color) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--link-color) 14%, #e9ebef);
}

.bos-profile.bos-page .bos-page-reviews .review-card .data-avatar , .bos-profile.bos-group .bos-page-reviews .review-card .data-avatar , .bos-profile.bos-event .bos-page-reviews .review-card .data-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}

.bos-profile.bos-page .bos-page-reviews .review-card .data-avatar img , .bos-profile.bos-group .bos-page-reviews .review-card .data-avatar img , .bos-profile.bos-event .bos-page-reviews .review-card .data-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-reviews-summary , .bos-profile.bos-group .bos-page-reviews-summary , .bos-profile.bos-event .bos-page-reviews-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .bos-profile.bos-page .bos-page-reviews-score , .bos-profile.bos-group .bos-page-reviews-score , .bos-profile.bos-event .bos-page-reviews-score {
    width: 100%;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-reviews-summary, .bos-profile.bos-group .bos-page-reviews-summary, .bos-profile.bos-event .bos-page-reviews-summary,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews-summary , .bos-profile.bos-group .bos-page-reviews-summary , .bos-profile.bos-event .bos-page-reviews-summary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-reviews-score, .bos-profile.bos-group .bos-page-reviews-score, .bos-profile.bos-event .bos-page-reviews-score,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews-score , .bos-profile.bos-group .bos-page-reviews-score , .bos-profile.bos-event .bos-page-reviews-score {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-reviews-score-val, .bos-profile.bos-group .bos-page-reviews-score-val, .bos-profile.bos-event .bos-page-reviews-score-val,
body.night-mode .bos-profile.bos-page .bos-page-reviews-intro-copy strong, .bos-profile.bos-group .bos-page-reviews-intro-copy strong, .bos-profile.bos-event .bos-page-reviews-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews-score-val, .bos-profile.bos-group .bos-page-reviews-score-val, .bos-profile.bos-event .bos-page-reviews-score-val,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews-intro-copy strong , .bos-profile.bos-group .bos-page-reviews-intro-copy strong , .bos-profile.bos-event .bos-page-reviews-intro-copy strong {
  color: #e8eef4;
}

body.night-mode .bos-profile.bos-page .bos-page-reviews .review-review, .bos-profile.bos-group .bos-page-reviews .review-review, .bos-profile.bos-event .bos-page-reviews .review-review,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews .review-review , .bos-profile.bos-group .bos-page-reviews .review-review , .bos-profile.bos-event .bos-page-reviews .review-review {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eef4;
}

body.night-mode .bos-profile.bos-page .bos-page-reviews .review-card.data-container, .bos-profile.bos-group .bos-page-reviews .review-card.data-container, .bos-profile.bos-event .bos-page-reviews .review-card.data-container,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-reviews .review-card.data-container , .bos-profile.bos-group .bos-page-reviews .review-card.data-container , .bos-profile.bos-event .bos-page-reviews .review-card.data-container {
  background: color-mix(in srgb, var(--link-color) 14%, transparent);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Page products / store catalog */
.bos-profile.bos-page .bos-page-products-intro , .bos-profile.bos-group .bos-page-products-intro , .bos-profile.bos-event .bos-page-products-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-products-intro-ico , .bos-profile.bos-group .bos-page-products-intro-ico , .bos-profile.bos-event .bos-page-products-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-products-intro-ico .main-icon, .bos-profile.bos-group .bos-page-products-intro-ico .main-icon, .bos-profile.bos-event .bos-page-products-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-products-intro-ico .svg-container, .bos-profile.bos-group .bos-page-products-intro-ico .svg-container, .bos-profile.bos-event .bos-page-products-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-products-intro-ico svg , .bos-profile.bos-group .bos-page-products-intro-ico svg , .bos-profile.bos-event .bos-page-products-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-products-intro-copy , .bos-profile.bos-group .bos-page-products-intro-copy , .bos-profile.bos-event .bos-page-products-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-products-intro-copy strong , .bos-profile.bos-group .bos-page-products-intro-copy strong , .bos-profile.bos-event .bos-page-products-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-products-intro-copy p , .bos-profile.bos-group .bos-page-products-intro-copy p , .bos-profile.bos-event .bos-page-products-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-products-count , .bos-profile.bos-group .bos-page-products-count , .bos-profile.bos-event .bos-page-products-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-products-count span , .bos-profile.bos-group .bos-page-products-count span , .bos-profile.bos-event .bos-page-products-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-products-count small , .bos-profile.bos-group .bos-page-products-count small , .bos-profile.bos-event .bos-page-products-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-products-intro , .bos-profile.bos-group .bos-page-products-intro , .bos-profile.bos-event .bos-page-products-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-products-count , .bos-profile.bos-group .bos-page-products-count , .bos-profile.bos-event .bos-page-products-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-products-intro, .bos-profile.bos-group .bos-page-products-intro, .bos-profile.bos-event .bos-page-products-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-products-intro , .bos-profile.bos-group .bos-page-products-intro , .bos-profile.bos-event .bos-page-products-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-products-intro-ico, .bos-profile.bos-group .bos-page-products-intro-ico, .bos-profile.bos-event .bos-page-products-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-products-count, .bos-profile.bos-group .bos-page-products-count, .bos-profile.bos-event .bos-page-products-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-products-intro-ico, .bos-profile.bos-group .bos-page-products-intro-ico, .bos-profile.bos-event .bos-page-products-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-products-count , .bos-profile.bos-group .bos-page-products-count , .bos-profile.bos-event .bos-page-products-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-products-intro-copy strong, .bos-profile.bos-group .bos-page-products-intro-copy strong, .bos-profile.bos-event .bos-page-products-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-products-intro-copy strong , .bos-profile.bos-group .bos-page-products-intro-copy strong , .bos-profile.bos-event .bos-page-products-intro-copy strong {
  color: #e8eef4;
}

/* Page blogs catalog */
.bos-profile.bos-page .bos-page-blogs-intro , .bos-profile.bos-group .bos-page-blogs-intro , .bos-profile.bos-event .bos-page-blogs-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-blogs-intro-ico , .bos-profile.bos-group .bos-page-blogs-intro-ico , .bos-profile.bos-event .bos-page-blogs-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-blogs-intro-ico .main-icon, .bos-profile.bos-group .bos-page-blogs-intro-ico .main-icon, .bos-profile.bos-event .bos-page-blogs-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-blogs-intro-ico .svg-container, .bos-profile.bos-group .bos-page-blogs-intro-ico .svg-container, .bos-profile.bos-event .bos-page-blogs-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-blogs-intro-ico svg , .bos-profile.bos-group .bos-page-blogs-intro-ico svg , .bos-profile.bos-event .bos-page-blogs-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-blogs-intro-copy , .bos-profile.bos-group .bos-page-blogs-intro-copy , .bos-profile.bos-event .bos-page-blogs-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-blogs-intro-copy strong , .bos-profile.bos-group .bos-page-blogs-intro-copy strong , .bos-profile.bos-event .bos-page-blogs-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-blogs-intro-copy p , .bos-profile.bos-group .bos-page-blogs-intro-copy p , .bos-profile.bos-event .bos-page-blogs-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-blogs-count , .bos-profile.bos-group .bos-page-blogs-count , .bos-profile.bos-event .bos-page-blogs-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-blogs-count span , .bos-profile.bos-group .bos-page-blogs-count span , .bos-profile.bos-event .bos-page-blogs-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-blogs-count small , .bos-profile.bos-group .bos-page-blogs-count small , .bos-profile.bos-event .bos-page-blogs-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-blogs-intro , .bos-profile.bos-group .bos-page-blogs-intro , .bos-profile.bos-event .bos-page-blogs-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-blogs-count , .bos-profile.bos-group .bos-page-blogs-count , .bos-profile.bos-event .bos-page-blogs-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-blogs-intro, .bos-profile.bos-group .bos-page-blogs-intro, .bos-profile.bos-event .bos-page-blogs-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-blogs-intro , .bos-profile.bos-group .bos-page-blogs-intro , .bos-profile.bos-event .bos-page-blogs-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-blogs-intro-ico, .bos-profile.bos-group .bos-page-blogs-intro-ico, .bos-profile.bos-event .bos-page-blogs-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-blogs-count, .bos-profile.bos-group .bos-page-blogs-count, .bos-profile.bos-event .bos-page-blogs-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-blogs-intro-ico, .bos-profile.bos-group .bos-page-blogs-intro-ico, .bos-profile.bos-event .bos-page-blogs-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-blogs-count , .bos-profile.bos-group .bos-page-blogs-count , .bos-profile.bos-event .bos-page-blogs-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-blogs-intro-copy strong, .bos-profile.bos-group .bos-page-blogs-intro-copy strong, .bos-profile.bos-event .bos-page-blogs-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-blogs-intro-copy strong , .bos-profile.bos-group .bos-page-blogs-intro-copy strong , .bos-profile.bos-event .bos-page-blogs-intro-copy strong {
  color: #e8eef4;
}

/* Page videos / reels catalog + media subtabs */
.bos-profile.bos-page .bos-page-media-tabs.bos-pf-subtabs , .bos-profile.bos-group .bos-page-media-tabs.bos-pf-subtabs , .bos-profile.bos-event .bos-page-media-tabs.bos-pf-subtabs {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  grid-template-columns: none;
  width: auto;
  max-width: 100%;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 12px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab , .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab , .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #747b85 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab:hover , .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab:hover , .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab:hover {
  background: #fff !important;
  color: var(--bos-pf-ink, #191b20) !important;
  border-color: #e9ebef !important;
}

.bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab.active , .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab.active , .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab.active {
  background: #fff !important;
  color: var(--link-color) !important;
  border-color: color-mix(in srgb, var(--link-color) 22%, #e9ebef) !important;
  box-shadow: 0 1px 2px rgba(25, 27, 32, 0.04) !important;
}

.bos-profile.bos-page .bos-page-media-tab-ico , .bos-profile.bos-group .bos-page-media-tab-ico , .bos-profile.bos-event .bos-page-media-tab-ico {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #eef0f3;
  color: inherit;
}

.bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab.active .bos-page-media-tab-ico , .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab.active .bos-page-media-tab-ico , .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab.active .bos-page-media-tab-ico {
  background: color-mix(in srgb, var(--link-color) 14%, #fff);
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-media-tab-ico .main-icon, .bos-profile.bos-group .bos-page-media-tab-ico .main-icon, .bos-profile.bos-event .bos-page-media-tab-ico .main-icon,
.bos-profile.bos-page .bos-page-media-tab-ico .svg-container, .bos-profile.bos-group .bos-page-media-tab-ico .svg-container, .bos-profile.bos-event .bos-page-media-tab-ico .svg-container,
.bos-profile.bos-page .bos-page-media-tab-ico svg , .bos-profile.bos-group .bos-page-media-tab-ico svg , .bos-profile.bos-event .bos-page-media-tab-ico svg {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-videos-intro , .bos-profile.bos-group .bos-page-videos-intro , .bos-profile.bos-event .bos-page-videos-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-videos-intro-ico , .bos-profile.bos-group .bos-page-videos-intro-ico , .bos-profile.bos-event .bos-page-videos-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-videos-intro-ico .main-icon, .bos-profile.bos-group .bos-page-videos-intro-ico .main-icon, .bos-profile.bos-event .bos-page-videos-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-videos-intro-ico .svg-container, .bos-profile.bos-group .bos-page-videos-intro-ico .svg-container, .bos-profile.bos-event .bos-page-videos-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-videos-intro-ico svg , .bos-profile.bos-group .bos-page-videos-intro-ico svg , .bos-profile.bos-event .bos-page-videos-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-videos-intro-copy , .bos-profile.bos-group .bos-page-videos-intro-copy , .bos-profile.bos-event .bos-page-videos-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-videos-intro-copy strong , .bos-profile.bos-group .bos-page-videos-intro-copy strong , .bos-profile.bos-event .bos-page-videos-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-videos-intro-copy p , .bos-profile.bos-group .bos-page-videos-intro-copy p , .bos-profile.bos-event .bos-page-videos-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-videos-count , .bos-profile.bos-group .bos-page-videos-count , .bos-profile.bos-event .bos-page-videos-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-videos-count span , .bos-profile.bos-group .bos-page-videos-count span , .bos-profile.bos-event .bos-page-videos-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-videos-count small , .bos-profile.bos-group .bos-page-videos-count small , .bos-profile.bos-event .bos-page-videos-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-videos-intro , .bos-profile.bos-group .bos-page-videos-intro , .bos-profile.bos-event .bos-page-videos-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-videos-count , .bos-profile.bos-group .bos-page-videos-count , .bos-profile.bos-event .bos-page-videos-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-media-tabs.bos-pf-subtabs, .bos-profile.bos-group .bos-page-media-tabs.bos-pf-subtabs, .bos-profile.bos-event .bos-page-media-tabs.bos-pf-subtabs,
body.night-mode .bos-profile.bos-page .bos-page-videos-intro, .bos-profile.bos-group .bos-page-videos-intro, .bos-profile.bos-event .bos-page-videos-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-media-tabs.bos-pf-subtabs, .bos-profile.bos-group .bos-page-media-tabs.bos-pf-subtabs, .bos-profile.bos-event .bos-page-media-tabs.bos-pf-subtabs,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-videos-intro , .bos-profile.bos-group .bos-page-videos-intro , .bos-profile.bos-event .bos-page-videos-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab:hover, .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab:hover, .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab:hover,
body.night-mode .bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab.active, .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab.active, .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab.active,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab:hover, .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab:hover, .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab:hover,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-media-tabs .bos-pf-subtab.active , .bos-profile.bos-group .bos-page-media-tabs .bos-pf-subtab.active , .bos-profile.bos-event .bos-page-media-tabs .bos-pf-subtab.active {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8eef4 !important;
}

body.night-mode .bos-profile.bos-page .bos-page-videos-intro-ico, .bos-profile.bos-group .bos-page-videos-intro-ico, .bos-profile.bos-event .bos-page-videos-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-videos-count, .bos-profile.bos-group .bos-page-videos-count, .bos-profile.bos-event .bos-page-videos-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-videos-intro-ico, .bos-profile.bos-group .bos-page-videos-intro-ico, .bos-profile.bos-event .bos-page-videos-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-videos-count , .bos-profile.bos-group .bos-page-videos-count , .bos-profile.bos-event .bos-page-videos-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-videos-intro-copy strong, .bos-profile.bos-group .bos-page-videos-intro-copy strong, .bos-profile.bos-event .bos-page-videos-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-videos-intro-copy strong , .bos-profile.bos-group .bos-page-videos-intro-copy strong , .bos-profile.bos-event .bos-page-videos-intro-copy strong {
  color: #e8eef4;
}

/* Page photos / albums intro */
.bos-profile.bos-page .bos-page-photos-intro , .bos-profile.bos-group .bos-page-photos-intro , .bos-profile.bos-event .bos-page-photos-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  border-radius: 14px;
  background: var(--bos-pf-soft, #f6f7f9);
}

.bos-profile.bos-page .bos-page-photos-intro-ico , .bos-profile.bos-group .bos-page-photos-intro-ico , .bos-profile.bos-event .bos-page-photos-intro-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  background: #fff;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-photos-intro-ico .main-icon, .bos-profile.bos-group .bos-page-photos-intro-ico .main-icon, .bos-profile.bos-event .bos-page-photos-intro-ico .main-icon,
.bos-profile.bos-page .bos-page-photos-intro-ico .svg-container, .bos-profile.bos-group .bos-page-photos-intro-ico .svg-container, .bos-profile.bos-event .bos-page-photos-intro-ico .svg-container,
.bos-profile.bos-page .bos-page-photos-intro-ico svg , .bos-profile.bos-group .bos-page-photos-intro-ico svg , .bos-profile.bos-event .bos-page-photos-intro-ico svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-profile.bos-page .bos-page-photos-intro-copy , .bos-profile.bos-group .bos-page-photos-intro-copy , .bos-profile.bos-event .bos-page-photos-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.bos-profile.bos-page .bos-page-photos-intro-copy strong , .bos-profile.bos-group .bos-page-photos-intro-copy strong , .bos-profile.bos-event .bos-page-photos-intro-copy strong {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-pf-ink, #191b20);
}

.bos-profile.bos-page .bos-page-photos-intro-copy p , .bos-profile.bos-group .bos-page-photos-intro-copy p , .bos-profile.bos-event .bos-page-photos-intro-copy p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #858b95;
}

.bos-profile.bos-page .bos-page-photos-count , .bos-profile.bos-group .bos-page-photos-count , .bos-profile.bos-event .bos-page-photos-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--bos-pf-line, #e9ebef);
  text-align: center;
}

.bos-profile.bos-page .bos-page-photos-count span , .bos-profile.bos-group .bos-page-photos-count span , .bos-profile.bos-event .bos-page-photos-count span {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--link-color);
}

.bos-profile.bos-page .bos-page-photos-count small , .bos-profile.bos-group .bos-page-photos-count small , .bos-profile.bos-event .bos-page-photos-count small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
}

@media (max-width: 575.98px) {
  .bos-profile.bos-page .bos-page-photos-intro , .bos-profile.bos-group .bos-page-photos-intro , .bos-profile.bos-event .bos-page-photos-intro {
    flex-wrap: wrap;
  }

  .bos-profile.bos-page .bos-page-photos-count , .bos-profile.bos-group .bos-page-photos-count , .bos-profile.bos-event .bos-page-photos-count {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}

body.night-mode .bos-profile.bos-page .bos-page-photos-intro, .bos-profile.bos-group .bos-page-photos-intro, .bos-profile.bos-event .bos-page-photos-intro,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-photos-intro , .bos-profile.bos-group .bos-page-photos-intro , .bos-profile.bos-event .bos-page-photos-intro {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-photos-intro-ico, .bos-profile.bos-group .bos-page-photos-intro-ico, .bos-profile.bos-event .bos-page-photos-intro-ico,
body.night-mode .bos-profile.bos-page .bos-page-photos-count, .bos-profile.bos-group .bos-page-photos-count, .bos-profile.bos-event .bos-page-photos-count,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-photos-intro-ico, .bos-profile.bos-group .bos-page-photos-intro-ico, .bos-profile.bos-event .bos-page-photos-intro-ico,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-photos-count , .bos-profile.bos-group .bos-page-photos-count , .bos-profile.bos-event .bos-page-photos-count {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-profile.bos-page .bos-page-photos-intro-copy strong, .bos-profile.bos-group .bos-page-photos-intro-copy strong, .bos-profile.bos-event .bos-page-photos-intro-copy strong,
html[data-bs-theme="dark"] .bos-profile.bos-page .bos-page-photos-intro-copy strong , .bos-profile.bos-group .bos-page-photos-intro-copy strong , .bos-profile.bos-event .bos-page-photos-intro-copy strong {
  color: #e8eef4;
}

/* Games directory + player */
.bos-dir--games .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--games .bos-dir-side-head .main-icon,
.bos-dir--games .bos-dir-side-head .svg-container,
.bos-dir--games .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--games .bos-games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-dir--games .bos-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .bos-dir--games .bos-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--games .bos-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-dir--games .bos-game-card .img {
  aspect-ratio: 16 / 10 !important;
  border-radius: 12px !important;
}

.bos-dir--games .bos-game-card .img:has(img[src*="blank_"])::before {
  content: "\f11b";
}

.bos-dir--games .bos-game-card .btn-primary {
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
}

.bos-dir--games .bos-game-card .btn-primary:hover {
  background: color-mix(in srgb, var(--bos-dir-ink) 88%, #fff) !important;
}

.bos-dir--games .bos-game-played {
  margin: 4px 0 0 !important;
  color: var(--bos-dir-muted) !important;
  font-size: 12px !important;
}

.bos-dir--games .bos-game-player {
  border: 1px solid var(--bos-dir-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--games .bos-game-player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
}

.bos-dir--games .bos-game-player-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bos-dir--games .bos-game-player-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--bos-dir-line);
  background-color: #fff;
  flex: 0 0 48px;
}

.bos-dir--games .bos-game-player-copy {
  min-width: 0;
}

.bos-dir--games .bos-game-player-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  line-height: 1.3;
}

.bos-dir--games .bos-game-player-copy p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--games .bos-game-player-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.bos-dir--games .bos-game-btn-light,
.bos-dir--games .bos-game-btn-dark {
  min-height: 36px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

.bos-dir--games .bos-game-btn-light {
  background: #fff !important;
  border: 1px solid var(--bos-dir-line) !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--games .bos-game-btn-dark {
  background: var(--bos-dir-ink) !important;
  border: 1px solid var(--bos-dir-ink) !important;
  color: #fff !important;
}

.bos-dir--games .bos-game-player-frame {
  background: #0f1115;
}

.bos-dir--games .bos-game-player-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

body.night-mode .bos-dir--games .bos-game-player,
html[data-bs-theme="dark"] .bos-dir--games .bos-game-player {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--games .bos-game-player-bar,
html[data-bs-theme="dark"] .bos-dir--games .bos-game-player-bar {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--games .bos-game-btn-light,
html[data-bs-theme="dark"] .bos-dir--games .bos-game-btn-light {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Movies directory + detail */
.bos-dir--movies .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--movies .bos-dir-side-head .main-icon,
.bos-dir--movies .bos-dir-side-head .svg-container,
.bos-dir--movies .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--movies .bos-movies-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-muted);
  font-size: 13px;
}

.bos-dir--movies .bos-movies-search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-dir-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bos-dir--movies .bos-movies-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 992px) {
  .bos-dir--movies .bos-movies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bos-dir--movies .bos-movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--movies .bos-movie-card-media {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--movies .bos-movie-card-poster {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-dir--movies .bos-movie-card:hover .bos-movie-card-poster {
  transform: scale(1.04);
}

.bos-dir--movies .bos-movie-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(180deg, rgba(25, 27, 32, 0.08) 0%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-dir--movies .bos-movie-card:hover .bos-movie-card-overlay {
  opacity: 1;
}

.bos-dir--movies .bos-movie-card-chip {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bos-dir-ink);
  font-size: 11px;
  font-weight: 650;
}

.bos-dir--movies .bos-movie-card-play {
  align-self: center;
  margin-bottom: 8px;
  min-height: 34px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-dir--movies .bos-movie-card-body {
  padding: 12px;
}

.bos-dir--movies .bos-movie-card-title {
  display: block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  line-height: 1.3;
  text-decoration: none;
}

.bos-dir--movies .bos-movie-card-title:hover {
  color: var(--link-color);
}

.bos-dir--movies .bos-movie-card-year {
  margin-top: 4px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--movies .bos-movie-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.bos-dir--movies .bos-movie-badge--paid {
  background: color-mix(in srgb, #e11d48 12%, #fff);
  color: #be123c;
}

.bos-dir--movies .bos-movies-pager {
  margin-top: 14px;
}

.bos-dir--movies .bos-movie-detail {
  border: 1px solid var(--bos-dir-line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--movies .bos-movie-detail-top {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
}

@media (min-width: 768px) {
  .bos-dir--movies .bos-movie-detail-top {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 18px 20px;
  }
}

.bos-dir--movies .bos-movie-detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--bos-dir-line);
  background-color: #fff;
}

.bos-dir--movies .bos-movie-detail-meta {
  min-width: 0;
}

.bos-dir--movies .bos-movie-detail-actions {
  margin-bottom: 8px;
}

.bos-dir--movies .bos-movie-detail-meta h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  line-height: 1.25;
}

.bos-dir--movies .bos-movie-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--bos-dir-muted);
  font-size: 12.5px;
}

.bos-dir--movies .bos-movie-detail-facts > span:not(.bos-movie-badge)::after {
  content: "·";
  margin-left: 8px;
  color: #c4c8d0;
}

.bos-dir--movies .bos-movie-detail-facts > span:last-child::after,
.bos-dir--movies .bos-movie-detail-facts > .bos-movie-badge::after {
  content: none;
}

.bos-dir--movies .bos-movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.bos-dir--movies .bos-movie-tags a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bos-dir-line);
  color: var(--bos-dir-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.bos-dir--movies .bos-movie-tags a:hover {
  border-color: color-mix(in srgb, var(--link-color) 35%, var(--bos-dir-line));
  color: var(--link-color);
}

.bos-dir--movies .bos-movie-player {
  background: #0f1115;
}

.bos-dir--movies .bos-movie-player .ratio,
.bos-dir--movies .bos-movie-player .youtube-player,
.bos-dir--movies .bos-movie-player video,
.bos-dir--movies .bos-movie-player .post-media {
  width: 100%;
}

.bos-dir--movies .bos-movie-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 280px;
  padding: 32px 20px;
  text-align: center;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
}

.bos-dir--movies .bos-movie-locked p {
  margin: 0;
  color: var(--bos-dir-muted);
  font-size: 13px;
}

.bos-dir--movies .bos-movie-body {
  padding: 18px 20px 22px;
}

.bos-dir--movies .bos-movie-desc {
  margin-bottom: 16px;
  color: var(--bos-dir-ink);
  font-size: 14px;
  line-height: 1.6;
}

.bos-dir--movies .bos-movie-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .bos-dir--movies .bos-movie-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bos-dir--movies .bos-movie-info-item {
  padding: 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
}

.bos-dir--movies .bos-movie-info-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--movies .bos-movie-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bos-dir-ink);
  word-break: break-word;
}

.bos-dir--movies .bos-movie-info-value a {
  color: var(--link-color);
}

.bos-dir--movies .bos-movie-share {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bos-dir-line);
}

.bos-dir--movies .bos-movie-btn-light,
.bos-dir--movies .bos-movie-btn-dark {
  min-height: 36px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

.bos-dir--movies .bos-movie-btn-light {
  background: #fff !important;
  border: 1px solid var(--bos-dir-line) !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--movies .bos-movie-btn-dark {
  background: var(--bos-dir-ink) !important;
  border: 1px solid var(--bos-dir-ink) !important;
  color: #fff !important;
}

body.night-mode .bos-dir--movies .bos-movie-card,
body.night-mode .bos-dir--movies .bos-movie-detail,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-card,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-detail {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--movies .bos-movie-detail-top,
body.night-mode .bos-dir--movies .bos-movie-info-item,
body.night-mode .bos-dir--movies .bos-movies-search-meta,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-detail-top,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-info-item,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movies-search-meta {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--movies .bos-movie-tags a,
body.night-mode .bos-dir--movies .bos-movie-btn-light,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-tags a,
html[data-bs-theme="dark"] .bos-dir--movies .bos-movie-btn-light {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Forums directory + thread views */
.bos-dir--forums .bos-forum-section {
  margin-bottom: 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--forums .bos-forum-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bos-dir-soft);
  border-bottom: 1px solid var(--bos-dir-line);
}

.bos-dir--forums .bos-forum-section-head a {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
}

.bos-dir--forums .bos-forum-section-head a:hover {
  color: var(--link-color);
}

.bos-dir--forums .bos-forum-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bos-dir-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bos-dir--forums .bos-forum-table-head,
.bos-dir--forums .bos-forum-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 90px;
  gap: 8px;
  align-items: center;
}

@media (max-width: 767.98px) {
  .bos-dir--forums .bos-forum-table-head,
  .bos-dir--forums .bos-forum-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.bos-dir--forums .bos-forum-table-head {
  padding: 8px 14px;
  background: #fafbfc;
  border-bottom: 1px solid var(--bos-dir-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bos-dir-line);
}

.bos-dir--forums .bos-forum-row:last-child {
  border-bottom: 0;
}

.bos-dir--forums .bos-forum-row:hover {
  background: var(--bos-dir-soft);
}

.bos-dir--forums .bos-forum-col--main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.bos-dir--forums .bos-forum-col--stat {
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-col--stack {
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-row-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
  display: grid;
  place-items: center;
  flex: 0 0 36px;
}

.bos-dir--forums .bos-forum-row-title {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  line-height: 1.3;
}

.bos-dir--forums .bos-forum-row-title:hover {
  color: var(--link-color);
}

.bos-dir--forums .bos-forum-row-copy p,
.bos-dir--forums .bos-forum-row-mobile {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
  line-height: 1.45;
}

.bos-dir--forums .bos-forum-subs {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-subs a {
  color: var(--link-color);
}

.bos-dir--forums .bos-forum-meta {
  margin-top: 14px;
}

.bos-dir--forums .bos-forum-meta-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 750;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-meta-card {
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;
}

.bos-dir--forums .bos-forum-meta-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bos-dir-soft);
  border-bottom: 1px solid var(--bos-dir-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-meta-card-body {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.bos-dir--forums .bos-forum-meta-card-body a {
  font-weight: 650;
}

.bos-dir--forums .bos-forum-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-dir-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.bos-dir--forums .bos-forum-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bos-dir--forums .bos-forum-stat {
  padding: 14px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.bos-dir--forums .bos-forum-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 750;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-stat span {
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-crumb a {
  color: var(--bos-dir-muted);
  text-decoration: none;
}

.bos-dir--forums .bos-forum-crumb a:hover {
  color: var(--link-color);
}

.bos-dir--forums .bos-forum-crumb strong {
  color: var(--bos-dir-ink);
  font-weight: 700;
}

.bos-dir--forums .bos-forum-pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bos-dir--forums .bos-forum-pagehead h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  line-height: 1.25;
}

.bos-dir--forums .bos-forum-pagehead p {
  margin: 6px 0 0;
  color: var(--bos-dir-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.bos-dir--forums .bos-forum-cta {
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border: 1px solid var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

.bos-dir--forums .bos-forum-post {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .bos-dir--forums .bos-forum-post {
    grid-template-columns: 1fr;
  }
}

.bos-dir--forums .bos-forum-post-author {
  padding: 16px 12px;
  background: var(--bos-dir-soft);
  border-right: 1px solid var(--bos-dir-line);
  text-align: center;
}

@media (max-width: 767.98px) {
  .bos-dir--forums .bos-forum-post-author {
    border-right: 0;
    border-bottom: 1px solid var(--bos-dir-line);
  }
}

.bos-dir--forums .bos-forum-post-author img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--bos-dir-line);
  background: #fff;
}

.bos-dir--forums .bos-forum-post-name {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
}

.bos-dir--forums .bos-forum-role,
.bos-dir--forums .bos-forum-post-author small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-post-body {
  padding: 14px 16px 16px;
  min-width: 0;
}

.bos-dir--forums .bos-forum-post-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--bos-dir-muted);
  font-size: 12px;
}

.bos-dir--forums .bos-forum-post-actions {
  display: flex;
  gap: 6px;
}

.bos-dir--forums .bos-forum-iconbtn {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid var(--bos-dir-line) !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bos-dir--forums .bos-forum-post-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bos-dir-ink);
  word-break: break-word;
}

.bos-dir--forums .bos-forum-form-card {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--forums .bos-forum-form-head {
  padding: 12px 16px;
  background: var(--bos-dir-soft);
  border-bottom: 1px solid var(--bos-dir-line);
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-form {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.bos-dir--forums .bos-forum-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-field .form-control,
.bos-dir--forums .bos-forum-field .form-select {
  border-radius: 12px !important;
  border-color: var(--bos-dir-line) !important;
  min-height: 42px;
  background: var(--bos-dir-soft) !important;
}

.bos-dir--forums .bos-forum-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-form-actions {
  display: flex;
  justify-content: flex-end;
}

.bos-dir--forums .bos-forum-results {
  display: grid;
  gap: 10px;
}

.bos-dir--forums .bos-forum-result {
  padding: 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: #fff;
}

.bos-dir--forums .bos-forum-result-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-result-title {
  display: block;
  font-size: 15px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  margin-bottom: 6px;
}

.bos-dir--forums .bos-forum-result-title:hover {
  color: var(--link-color);
}

.bos-dir--forums .bos-forum-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-result-snippet {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bos-dir-ink);
}

.bos-dir--forums .bos-forum-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  font-size: 13px;
  color: var(--bos-dir-muted);
}

.bos-dir--forums .bos-forum-pager {
  margin-top: 12px;
}

.bos-dir--forums .bos-dir-empty--compact {
  padding: 28px 16px;
}

.bos-dir--forums .bos-forum-muted {
  color: var(--bos-dir-muted);
}

body.night-mode .bos-dir--forums .bos-forum-section,
body.night-mode .bos-dir--forums .bos-forum-meta-card,
body.night-mode .bos-dir--forums .bos-forum-stat,
body.night-mode .bos-dir--forums .bos-forum-post,
body.night-mode .bos-dir--forums .bos-forum-form-card,
body.night-mode .bos-dir--forums .bos-forum-result,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-section,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-meta-card,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-stat,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-post,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-form-card,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-result {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--forums .bos-forum-section-head,
body.night-mode .bos-dir--forums .bos-forum-meta-card-head,
body.night-mode .bos-dir--forums .bos-forum-post-author,
body.night-mode .bos-dir--forums .bos-forum-form-head,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-section-head,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-meta-card-head,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-post-author,
html[data-bs-theme="dark"] .bos-dir--forums .bos-forum-form-head {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Courses directory */
.bos-dir--courses .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--courses .bos-dir-side-head .main-icon,
.bos-dir--courses .bos-dir-side-head .svg-container,
.bos-dir--courses .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--courses .bos-courses-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-muted);
  font-size: 13px;
}

.bos-dir--courses .bos-courses-search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-dir-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bos-dir--courses .bos-courses-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-dir--courses .bos-courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--courses .bos-courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-dir--courses .bos-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--courses .bos-course-boost {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bos-dir-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.bos-dir--courses .bos-course-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--courses .bos-course-cover {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-dir--courses .bos-course-card:hover .bos-course-cover {
  transform: scale(1.04);
}

.bos-dir--courses .bos-course-price {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bos-dir-ink);
  font-size: 12px;
  font-weight: 750;
}

.bos-dir--courses .bos-course-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-dir--courses .bos-course-card:hover .bos-course-overlay {
  opacity: 1;
}

.bos-dir--courses .bos-course-more {
  min-height: 32px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-dir--courses .bos-course-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}

.bos-dir--courses .bos-course-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  line-height: 1.35;
}

.bos-dir--courses .bos-course-title:hover {
  color: var(--link-color);
}

.bos-dir--courses .bos-course-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
}

.bos-dir--courses .bos-course-meta i {
  color: var(--link-color);
  font-size: 12px;
}

.bos-dir--courses .bos-course-meta--reviews .main-icon,
.bos-dir--courses .bos-course-meta--reviews .svg-container,
.bos-dir--courses .bos-course-meta--reviews svg {
  width: 14px !important;
  height: 14px !important;
}

.bos-dir--courses .bos-course-rate {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
  font-size: 11px;
  font-weight: 700;
}

.bos-dir--courses .bos-course-actions {
  margin-top: auto;
  padding-top: 8px;
}

.bos-dir--courses .bos-course-enroll {
  width: 100%;
  min-height: 36px;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border: 1px solid var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

.bos-dir--courses .bos-course-locked {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.bos-dir--courses .bos-courses-distance {
  padding: 12px;
  min-width: 220px;
}

.bos-dir--courses .bos-courses-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--courses .bos-courses-distance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.bos-dir--courses .bos-courses-distance-row .form-control {
  border-radius: 10px !important;
}

.bos-dir--courses .bos-courses-filter-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bos-dir--courses .bos-courses-pager {
  margin-top: 12px;
}

body.night-mode .bos-dir--courses .bos-course-card,
html[data-bs-theme="dark"] .bos-dir--courses .bos-course-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--courses .bos-course-price,
html[data-bs-theme="dark"] .bos-dir--courses .bos-course-price {
  background: rgba(20, 22, 28, 0.92);
  color: #fff;
}

/* Jobs directory */
.bos-dir--jobs .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--jobs .bos-dir-side-head .main-icon,
.bos-dir--jobs .bos-dir-side-head .svg-container,
.bos-dir--jobs .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--jobs .bos-jobs-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-muted);
  font-size: 13px;
}

.bos-dir--jobs .bos-jobs-search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-dir-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bos-dir--jobs .bos-jobs-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-dir--jobs .bos-jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--jobs .bos-jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-dir--jobs .bos-job-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--jobs .bos-job-boost {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bos-dir-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.bos-dir--jobs .bos-job-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--jobs .bos-job-cover {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-dir--jobs .bos-job-card:hover .bos-job-cover {
  transform: scale(1.04);
}

.bos-dir--jobs .bos-job-salary {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  max-width: calc(100% - 56px);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bos-dir-ink);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--jobs .bos-job-salary small {
  font-weight: 600;
  color: var(--bos-dir-muted);
}

.bos-dir--jobs .bos-job-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-dir--jobs .bos-job-card:hover .bos-job-overlay {
  opacity: 1;
}

.bos-dir--jobs .bos-job-more {
  min-height: 32px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-dir--jobs .bos-job-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}

.bos-dir--jobs .bos-job-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  line-height: 1.35;
}

.bos-dir--jobs .bos-job-title:hover {
  color: var(--link-color);
}

.bos-dir--jobs .bos-job-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
}

.bos-dir--jobs .bos-job-meta i {
  width: 14px;
  text-align: center;
  color: var(--link-color);
  font-size: 12px;
}

.bos-dir--jobs .bos-job-meta--reviews .main-icon,
.bos-dir--jobs .bos-job-meta--reviews .svg-container,
.bos-dir--jobs .bos-job-meta--reviews svg {
  width: 14px !important;
  height: 14px !important;
}

.bos-dir--jobs .bos-job-rate {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
  font-size: 11px;
  font-weight: 700;
}

.bos-dir--jobs .bos-job-actions {
  margin-top: auto;
  padding-top: 8px;
}

.bos-dir--jobs .bos-job-apply {
  width: 100%;
  min-height: 36px;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border: 1px solid var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

.bos-dir--jobs .bos-job-locked {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.bos-dir--jobs .bos-jobs-distance {
  padding: 12px;
  min-width: 220px;
}

.bos-dir--jobs .bos-jobs-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--jobs .bos-jobs-distance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.bos-dir--jobs .bos-jobs-distance-row .form-control {
  border-radius: 10px !important;
}

.bos-dir--jobs .bos-jobs-filter-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bos-dir--jobs .bos-jobs-pager {
  margin-top: 12px;
}

body.night-mode .bos-dir--jobs .bos-job-card,
html[data-bs-theme="dark"] .bos-dir--jobs .bos-job-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--jobs .bos-job-salary,
html[data-bs-theme="dark"] .bos-dir--jobs .bos-job-salary {
  background: rgba(20, 22, 28, 0.92);
  color: #fff;
}

body.night-mode .bos-dir--jobs .bos-job-salary small,
html[data-bs-theme="dark"] .bos-dir--jobs .bos-job-salary small {
  color: rgba(255, 255, 255, 0.65);
}

/* Offers directory */
.bos-dir--offers .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--offers .bos-dir-side-head .main-icon,
.bos-dir--offers .bos-dir-side-head .svg-container,
.bos-dir--offers .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--offers .bos-offers-search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-muted);
  font-size: 13px;
}

.bos-dir--offers .bos-offers-search-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bos-dir-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bos-dir--offers .bos-offers-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-dir--offers .bos-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--offers .bos-offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-dir--offers .bos-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--offers .bos-offer-boost {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bos-dir-ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.bos-dir--offers .bos-offer-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--offers .bos-offer-cover {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-dir--offers .bos-offer-card:hover .bos-offer-cover {
  transform: scale(1.04);
}

.bos-dir--offers .bos-offer-expire {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  max-width: calc(100% - 56px);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bos-dir-ink);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--offers .bos-offer-expire i {
  margin-right: 4px;
  color: var(--link-color);
}

.bos-dir--offers .bos-offer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-dir--offers .bos-offer-card:hover .bos-offer-overlay {
  opacity: 1;
}

.bos-dir--offers .bos-offer-more {
  min-height: 32px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-dir--offers .bos-offer-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}

.bos-dir--offers .bos-offer-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  line-height: 1.35;
}

.bos-dir--offers .bos-offer-title:hover {
  color: var(--link-color);
}

.bos-dir--offers .bos-offer-price {
  font-size: 13px;
  color: var(--bos-dir-muted);
}

.bos-dir--offers .bos-offer-price strong {
  color: var(--bos-dir-ink);
  font-weight: 750;
}

.bos-dir--offers .bos-offer-locked {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.bos-dir--offers .bos-offers-distance {
  padding: 12px;
  min-width: 220px;
}

.bos-dir--offers .bos-offers-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--offers .bos-offers-distance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.bos-dir--offers .bos-offers-distance-row .form-control {
  border-radius: 10px !important;
}

.bos-dir--offers .bos-offers-filter-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 10px !important;
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bos-dir--offers .bos-offers-pager {
  margin-top: 12px;
}

body.night-mode .bos-dir--offers .bos-offer-card,
html[data-bs-theme="dark"] .bos-dir--offers .bos-offer-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--offers .bos-offer-expire,
html[data-bs-theme="dark"] .bos-dir--offers .bos-offer-expire {
  background: rgba(20, 22, 28, 0.92);
  color: #fff;
}

/* Funding directory */
.bos-dir--funding .bos-funding-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-dir--funding .bos-funding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--funding .bos-funding-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-dir--funding .bos-funding-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--funding .bos-funding-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--funding .bos-funding-cover {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-dir--funding .bos-funding-card:hover .bos-funding-cover {
  transform: scale(1.04);
}

.bos-dir--funding .bos-funding-raised-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bos-dir-ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.bos-dir--funding .bos-funding-raised-badge small {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--funding .bos-funding-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-dir--funding .bos-funding-card:hover .bos-funding-overlay {
  opacity: 1;
}

.bos-dir--funding .bos-funding-more {
  min-height: 32px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-dir--funding .bos-funding-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  flex: 1;
}

.bos-dir--funding .bos-funding-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
  text-decoration: none;
  line-height: 1.35;
}

.bos-dir--funding .bos-funding-title:hover {
  color: var(--link-color);
}

.bos-dir--funding .bos-funding-progress-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--funding .bos-funding-progress-meta strong {
  color: var(--bos-dir-ink);
  font-weight: 750;
}

.bos-dir--funding .bos-funding-progress-meta em {
  margin-left: auto;
  font-style: normal;
  font-weight: 750;
  color: var(--link-color);
}

.bos-dir--funding .bos-funding-bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--funding .bos-funding-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--link-color);
}

.bos-dir--funding .bos-funding-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bos-dir-muted);
}

.bos-dir--funding .bos-funding-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 2px;
}

.bos-dir--funding .bos-funding-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bos-dir-soft);
  flex: 0 0 28px;
}

.bos-dir--funding .bos-funding-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.bos-dir--funding .bos-funding-author-meta strong {
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-dir-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--funding .bos-funding-author-meta small {
  font-size: 11px;
  color: var(--bos-dir-muted);
}

.bos-dir--funding .bos-funding-locked {
  display: block;
  padding: 20px;
  text-decoration: none;
}

body.night-mode .bos-dir--funding .bos-funding-card,
html[data-bs-theme="dark"] .bos-dir--funding .bos-funding-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--funding .bos-funding-raised-badge,
html[data-bs-theme="dark"] .bos-dir--funding .bos-funding-raised-badge {
  background: rgba(20, 22, 28, 0.92);
  color: #fff;
}


/* Blog cards (directory + profile catalogs) */
.bos-blogs-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
  .bos-blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  .bos-dir--blogs .bos-blogs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.bos-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 1px solid var(--bos-dir-line, #e9ebef);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-blog-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bos-dir-soft, #f6f7f9);
  overflow: hidden;
}

.bos-blog-cover {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.25s ease;
}

.bos-blog-card:hover .bos-blog-cover {
  transform: scale(1.04);
}

.bos-blog-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bos-dir-ink, #191b20);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-blog-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(25, 27, 32, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bos-blog-card:hover .bos-blog-overlay {
  opacity: 1;
}

.bos-blog-more {
  min-height: 32px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 0 !important;
  color: var(--bos-dir-ink, #191b20) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.bos-blog-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px 14px;
  flex: 1;
}

.bos-blog-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink, #191b20);
  text-decoration: none;
  line-height: 1.35;
}

.bos-blog-title:hover {
  color: var(--link-color);
}

.bos-blog-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bos-dir-muted, #858b95);
}

.bos-blog-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.bos-blog-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--bos-dir-soft, #f6f7f9);
  flex: 0 0 28px;
}

.bos-blog-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.bos-blog-author-meta strong {
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-dir-ink, #191b20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-blog-author-meta small {
  font-size: 11px;
  color: var(--bos-dir-muted, #858b95);
}

.bos-blog-locked {
  display: block;
  padding: 20px;
  text-decoration: none;
}

.bos-blog-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bos-blog-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--bos-dir-line, #e9ebef);
  border-radius: 12px;
  text-decoration: none;
  background: #fff;
}

.bos-blog-mini:hover {
  border-color: rgba(25, 27, 32, 0.16);
}

.bos-blog-mini-cover {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--bos-dir-soft, #f6f7f9);
  flex: 0 0 52px;
}

.bos-blog-mini-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.bos-blog-mini-body strong {
  font-size: 12px;
  font-weight: 650;
  color: var(--bos-dir-ink, #191b20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-blog-mini-body small {
  font-size: 11px;
  color: var(--bos-dir-muted, #858b95);
}

.bos-dir--blogs .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--blogs .bos-dir-side-head .main-icon,
.bos-dir--blogs .bos-dir-side-head .svg-container,
.bos-dir--blogs .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--blogs .bos-blog-side-block {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
}

.bos-dir--blogs .bos-blog-side-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-dir-muted);
}

.bos-dir--blogs .bos-blog-side-block > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-dir-muted);
}

.bos-dir--blogs .bos-blog-side-cta {
  width: 100%;
  margin-bottom: 12px;
  justify-content: center;
}

.bos-dir--blogs .bos-dir-search--compact {
  margin: 0;
}

.bos-dir--blogs .bos-blog-article {
  position: relative;
  padding: 18px 18px 8px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
}

.bos-dir--blogs .bos-blog-article--locked {
  padding: 20px;
}

.bos-dir--blogs .bos-blog-article-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bos-dir--blogs .bos-blog-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--blogs .bos-blog-crumb a {
  color: var(--bos-dir-muted);
  text-decoration: none;
  font-weight: 650;
}

.bos-dir--blogs .bos-blog-crumb a:hover {
  color: var(--link-color);
}

.bos-dir--blogs .bos-blog-edit-btn {
  min-height: 34px;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--bos-dir-line) !important;
  background: #fff !important;
  color: var(--bos-dir-ink) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.bos-dir--blogs .bos-blog-article-title {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bos-dir-ink);
}

.bos-dir--blogs .bos-blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bos-dir--blogs .bos-blog-article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bos-dir--blogs .bos-blog-article-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: 0 0 44px;
}

.bos-dir--blogs .bos-blog-article-author a {
  color: var(--bos-dir-ink);
  font-weight: 650;
  text-decoration: none;
}

.bos-dir--blogs .bos-blog-article-time {
  margin-top: 2px;
  font-size: 12px;
  color: var(--bos-dir-muted);
}

.bos-dir--blogs .bos-blog-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bos-dir--blogs .bos-blog-article-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--bos-dir-muted);
}

.bos-dir--blogs .bos-blog-article-stats a {
  color: var(--bos-dir-muted);
  text-decoration: none;
}

.bos-dir--blogs .bos-blog-article-cover {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bos-dir-soft);
}

.bos-dir--blogs .bos-blog-article-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.bos-dir--blogs .bos-blog-article-body {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bos-dir-ink);
}

.bos-dir--blogs .bos-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.bos-dir--blogs .bos-blog-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.bos-dir--blogs .bos-blog-tags a:hover {
  color: var(--link-color);
}

.bos-dir--blogs .bos-blog-refs {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: var(--bos-dir-soft);
}

.bos-dir--blogs .bos-blog-refs h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 750;
  color: var(--bos-dir-ink);
}

.bos-dir--blogs .bos-blog-refs ol {
  margin: 0;
  padding-left: 18px;
}

.bos-dir--blogs .bos-blog-refs a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 13px;
}

.bos-dir--blogs .bos-blog-comments {
  margin-top: 8px;
  border-top: 1px solid var(--bos-dir-line);
  padding-top: 8px;
}

.bos-dir--blogs .bos-blog-form-card {
  --bos-bf-ink: var(--bos-dir-ink, #191b20);
  --bos-bf-muted: var(--bos-dir-muted, #858b95);
  --bos-bf-line: var(--bos-dir-line, #e9ebef);
  --bos-bf-soft: var(--bos-dir-soft, #f6f7f9);
  --bos-bf-cta: #1b1e23;
  border: 1px solid var(--bos-bf-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-dir--blogs .bos-blog-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bos-bf-line);
  background: #fff;
}

.bos-dir--blogs .bos-blog-form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bos-bf-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bos-dir--blogs .bos-blog-form-title .main-icon,
.bos-dir--blogs .bos-blog-form-title .svg-container {
  color: var(--bos-bf-muted);
}

.bos-dir--blogs .bos-blog-form-actions-top .bos-blog-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px !important;
  border: 1px solid var(--bos-bf-line) !important;
  background: var(--bos-bf-soft) !important;
  color: var(--bos-bf-ink) !important;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: none !important;
}

.bos-dir--blogs .bos-blog-form-actions-top .bos-blog-edit-btn:hover {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 28%, var(--bos-bf-line)) !important;
}

.bos-dir--blogs .bos-blog-form-card .card-body {
  padding: 18px 18px 8px !important;
}

.bos-dir--blogs .bos-blog-form-card .card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 18px !important;
  border-top: 1px solid var(--bos-bf-line) !important;
  background: var(--bos-bf-soft) !important;
}

/* Soft notice */
.bos-dir--blogs .bos-blog-form-card .alert.alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #d97706 22%, var(--bos-bf-line));
  border-radius: 12px;
  background: color-mix(in srgb, #f59e0b 10%, #fff);
  color: var(--bos-bf-ink);
  box-shadow: none;
}

.bos-dir--blogs .bos-blog-form-card .alert.alert-warning .icon {
  flex: 0 0 auto;
  color: #b45309;
  margin: 0;
}

.bos-dir--blogs .bos-blog-form-card .alert.alert-warning .text {
  font-size: 13px;
  line-height: 1.45;
  color: #5c4a2e;
}

.bos-dir--blogs .bos-blog-form-card .alert.alert-warning .badge {
  background: #fff !important;
  color: var(--bos-bf-ink) !important;
  border: 1px solid var(--bos-bf-line);
  font-weight: 700;
}

/* Stacked soft fields */
.bos-dir--blogs .bos-blog-form-card .row.form-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 16px;
}

.bos-dir--blogs .bos-blog-form-card .row.form-group > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.bos-dir--blogs .bos-blog-form-card .form-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #515761;
  letter-spacing: -0.01em;
}

.bos-dir--blogs .bos-blog-form-card .form-control,
.bos-dir--blogs .bos-blog-form-card .form-select {
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid var(--bos-bf-line) !important;
  background: var(--bos-bf-soft) !important;
  color: var(--bos-bf-ink) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}

.bos-dir--blogs .bos-blog-form-card textarea.form-control {
  height: auto !important;
  min-height: 96px;
  padding: 12px 14px !important;
}

.bos-dir--blogs .bos-blog-form-card .form-control:focus,
.bos-dir--blogs .bos-blog-form-card .form-select:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-bf-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 16%, transparent) !important;
}

.bos-dir--blogs .bos-blog-form-card .form-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bos-bf-muted);
}

/* Publish-to tiles */
.bos-dir--blogs .bos-blog-form-card .button-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  margin: 0 8px 8px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--bos-bf-line);
  background: var(--bos-bf-soft);
  box-shadow: none;
  color: var(--bos-bf-ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.bos-dir--blogs .bos-blog-form-card .button-label .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--bos-bf-line);
  color: var(--bos-bf-muted);
}

.bos-dir--blogs .bos-blog-form-card .button-label .title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  color: inherit;
}

.bos-dir--blogs .bos-blog-form-card .button-label:hover {
  background: #fff;
  border-color: #dde1e7;
}

.bos-dir--blogs .bos-blog-form-card .input-label:checked + .button-label {
  background: #fff;
  border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-bf-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
  color: var(--bos-bf-ink);
}

.bos-dir--blogs .bos-blog-form-card .input-label:checked + .button-label .icon {
  border-color: color-mix(in srgb, var(--link-color) 30%, var(--bos-bf-line));
  color: var(--link-color);
  background: color-mix(in srgb, var(--link-color) 8%, #fff);
}

/* Cover upload */
.bos-dir--blogs .bos-blog-form-card .x-image {
  width: 160px;
  height: 110px;
  border-radius: 14px;
  border: 1px dashed #dde1e7;
  background-color: var(--bos-bf-soft);
}

.bos-dir--blogs .bos-blog-form-card .x-image .fa-camera {
  color: var(--bos-bf-muted);
}

/* TinyMCE soft frame */
.bos-dir--blogs .bos-blog-form-card .tox-tinymce {
  border: 1px solid var(--bos-bf-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.bos-dir--blogs .bos-blog-form-card .tox .tox-toolbar,
.bos-dir--blogs .bos-blog-form-card .tox .tox-menubar,
.bos-dir--blogs .bos-blog-form-card .tox .tox-statusbar {
  background: var(--bos-bf-soft) !important;
}

.bos-dir--blogs .bos-blog-form-card .tox .tox-edit-area__iframe {
  background: #fff !important;
}

/* Tagify */
.bos-dir--blogs .bos-blog-form-card .tagify {
  --tags-border-color: var(--bos-bf-line);
  --tags-hover-border-color: color-mix(in srgb, var(--link-color) 40%, var(--bos-bf-line));
  --tags-focus-border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-bf-line));
  border-radius: 12px !important;
  background: var(--bos-bf-soft) !important;
  padding: 4px 8px !important;
  min-height: 46px;
}

/* Add reference */
.bos-dir--blogs .bos-blog-form-card .add-auto-connect-node {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #dde1e7;
  background: var(--bos-bf-soft);
  color: var(--bos-bf-ink);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bos-dir--blogs .bos-blog-form-card .add-auto-connect-node:hover {
  background: #fff;
  border-color: color-mix(in srgb, var(--link-color) 30%, #dde1e7);
  color: var(--link-color);
}

.bos-dir--blogs .bos-blog-form-card .divider {
  margin: 8px 0 14px;
  border-top: 1px solid var(--bos-bf-line);
}

/* Toggle rows */
.bos-dir--blogs .bos-blog-form-card .form-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 12px 14px;
  border: 1px solid var(--bos-bf-line);
  border-radius: 12px;
  background: var(--bos-bf-soft);
}

.bos-dir--blogs .bos-blog-form-card .form-table-row .form-label {
  font-size: 13px;
  font-weight: 650;
  color: var(--bos-bf-ink);
}

.bos-dir--blogs .bos-blog-form-card .form-table-row .form-text {
  margin-top: 2px;
  font-size: 12px;
  color: var(--bos-bf-muted);
}

/* Buttons */
.bos-dir--blogs .bos-blog-form-card .card-footer .btn-primary,
.bos-dir--blogs .bos-blog-form-card .bos-blog-publish-btn {
  height: 40px;
  min-width: 120px;
  padding: 0 18px;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--bos-bf-cta) !important;
  color: #fff !important;
  font-weight: 650;
  box-shadow: none !important;
}

.bos-dir--blogs .bos-blog-form-card .card-footer .btn-primary:hover,
.bos-dir--blogs .bos-blog-form-card .bos-blog-publish-btn:hover {
  filter: brightness(1.08);
}

.bos-dir--blogs .bos-blog-form-card .card-footer .btn-danger {
  height: 40px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, #dc2626 25%, var(--bos-bf-line)) !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #b91c1c !important;
  font-weight: 650;
  box-shadow: none !important;
}

body.night-mode .bos-blog-card,
body.night-mode .bos-blog-mini,
body.night-mode .bos-dir--blogs .bos-blog-article,
body.night-mode .bos-dir--blogs .bos-blog-side-block,
body.night-mode .bos-dir--blogs .bos-blog-form-card,
html[data-bs-theme="dark"] .bos-blog-card,
html[data-bs-theme="dark"] .bos-blog-mini,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-article,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-side-block,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--blogs .bos-blog-form-card .form-control,
body.night-mode .bos-dir--blogs .bos-blog-form-card .form-select,
body.night-mode .bos-dir--blogs .bos-blog-form-card .button-label,
body.night-mode .bos-dir--blogs .bos-blog-form-card .form-table-row,
body.night-mode .bos-dir--blogs .bos-blog-form-card .add-auto-connect-node,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .form-control,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .form-select,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .button-label,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .form-table-row,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .add-auto-connect-node {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8eaed !important;
}

body.night-mode .bos-dir--blogs .bos-blog-form-card .form-label,
body.night-mode .bos-dir--blogs .bos-blog-form-card .button-label .title,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .form-label,
html[data-bs-theme="dark"] .bos-dir--blogs .bos-blog-form-card .button-label .title {
  color: #c5ccd6;
}

body.night-mode .bos-blog-cat,
html[data-bs-theme="dark"] .bos-blog-cat {
  background: rgba(20, 22, 28, 0.92);
  color: #fff;
}

/* Watch directory */
.bos-dir--watch .bos-dir-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bos-dir--watch .bos-dir-side-head .main-icon,
.bos-dir--watch .bos-dir-side-head .svg-container,
.bos-dir--watch .bos-dir-side-head svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
}

.bos-dir--watch .bos-watch-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--watch .bos-watch-feed > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--watch .bos-watch-feed .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--watch .bos-watch-feed .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--watch .bos-watch-feed .post-body {
  padding: 14px !important;
}

.bos-dir--watch .bos-watch-feed .post-media,
.bos-dir--watch .bos-watch-feed .post-media video,
.bos-dir--watch .bos-watch-feed .post-media .plyr {
  border-radius: 12px;
  overflow: hidden;
}

.bos-dir--watch .bos-watch-feed .js_see-more.see-more {
  margin: 2px 0 0 !important;
  padding: 12px !important;
  border: 1px dashed var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-muted) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-dir--watch .bos-watch-feed .js_see-more.see-more:hover {
  background: #eef0f3 !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--watch .bos-watch-feed .text-center,
.bos-dir--watch .bos-watch-feed .js_posts_stream .empty,
.bos-dir--watch .bos-watch-feed .no-data {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: var(--bos-dir-soft);
  padding: 28px 16px !important;
}

body.night-mode .bos-dir--watch .bos-watch-feed .post,
html[data-bs-theme="dark"] .bos-dir--watch .bos-watch-feed .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Boosted hub (unified) */
.bos-dir--boosted .bos-dir-section {
  scroll-margin-top: 88px;
}

.bos-dir--boosted .bos-boost-panel {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.bos-dir--boosted .bos-boost-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bos-dir--boosted .bos-boost-list > li,
.bos-dir--boosted .bos-boost-list .feeds-item {
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: var(--bos-dir-soft);
  padding: 10px 12px;
  margin: 0 !important;
}

.bos-dir--boosted .bos-boost-panel .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--boosted .bos-boost-panel .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--boosted .bos-boost-panel .posts-filter {
  display: none;
}

.bos-dir--boosted .bos-boost-panel .posts-staging-btn {
  display: none !important;
}

.bos-dir--boosted .bos-dir-more {
  margin: 10px 0 0 !important;
  border-radius: 12px !important;
}

.bos-dir--boosted .bos-dir-empty--compact {
  padding: 22px 14px;
}

body.night-mode .bos-dir--boosted .bos-boost-panel,
html[data-bs-theme="dark"] .bos-dir--boosted .bos-boost-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--boosted .bos-boost-list > li,
body.night-mode .bos-dir--boosted .bos-boost-list .feeds-item,
html[data-bs-theme="dark"] .bos-dir--boosted .bos-boost-list > li,
html[data-bs-theme="dark"] .bos-dir--boosted .bos-boost-list .feeds-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--boosted .bos-boost-panel .post,
html[data-bs-theme="dark"] .bos-dir--boosted .bos-boost-panel .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Memories directory */
.bos-dir--memories .bos-memories-day {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 14px;
  background: var(--bos-dir-soft);
}

.bos-dir--memories .bos-memories-day-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link-color);
}

.bos-dir--memories .bos-memories-day-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--memories .bos-memories-day-hint {
  flex: 1 1 100%;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bos-dir-muted);
}

.bos-dir--memories .bos-memories-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--memories .bos-memories-feed .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--memories .bos-memories-feed .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--memories .bos-memories-feed .posts-filter,
.bos-dir--memories .bos-memories-feed .posts-staging-btn {
  display: none !important;
}

.bos-dir--memories .bos-memories-feed .post-memory-header {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bos-dir-soft);
  border: 1px solid var(--bos-dir-line);
  color: var(--bos-dir-muted);
  font-size: 12px;
  font-weight: 650;
}

.bos-dir--memories .bos-memories-feed .js_see-more.see-more {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.night-mode .bos-dir--memories .bos-memories-day,
html[data-bs-theme="dark"] .bos-dir--memories .bos-memories-day {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--memories .bos-memories-feed .post,
html[data-bs-theme="dark"] .bos-dir--memories .bos-memories-feed .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .bos-dir--memories .bos-memories-feed .post-memory-header,
html[data-bs-theme="dark"] .bos-dir--memories .bos-memories-feed .post-memory-header {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Scheduled posts directory */
.bos-dir--scheduled .bos-scheduled-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--scheduled .bos-scheduled-feed .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--scheduled .bos-scheduled-feed .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--scheduled .bos-scheduled-feed .posts-filter,
.bos-dir--scheduled .bos-scheduled-feed .posts-staging-btn {
  display: none !important;
}

.bos-dir--scheduled .bos-scheduled-feed .js_see-more.see-more {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.night-mode .bos-dir--scheduled .bos-scheduled-feed .post,
html[data-bs-theme="dark"] .bos-dir--scheduled .bos-scheduled-feed .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Saved posts directory */
.bos-dir--saved .bos-saved-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--saved .bos-saved-feed .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--saved .bos-saved-feed .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--saved .bos-saved-feed .posts-filter,
.bos-dir--saved .bos-saved-feed .posts-staging-btn {
  display: none !important;
}

.bos-dir--saved .bos-saved-feed .js_see-more.see-more {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.night-mode .bos-dir--saved .bos-saved-feed .post,
html[data-bs-theme="dark"] .bos-dir--saved .bos-saved-feed .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Mine hub */
.bos-dir--mine .bos-mine-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--mine .bos-mine-feed .js_posts_stream > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bos-dir--mine .bos-mine-feed .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--mine .bos-mine-feed .posts-filter,
.bos-dir--mine .bos-mine-feed .posts-staging-btn {
  display: none !important;
}

.bos-dir--mine .bos-mine-feed .js_see-more.see-more {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

body.night-mode .bos-dir--mine .bos-mine-feed .post,
html[data-bs-theme="dark"] .bos-dir--mine .bos-mine-feed .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Static / legal pages */
.bos-dir--static .bos-static-panel {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  padding: 22px 24px;
}

.bos-dir--static .bos-static-body {
  color: var(--bos-dir-ink);
  font-size: 14.5px;
  line-height: 1.7;
}

.bos-dir--static .bos-static-body h1,
.bos-dir--static .bos-static-body h2,
.bos-dir--static .bos-static-body h3,
.bos-dir--static .bos-static-body h4 {
  color: var(--bos-dir-ink);
  font-weight: 700;
  line-height: 1.3;
  margin: 22px 0 10px;
}

.bos-dir--static .bos-static-body h1:first-child,
.bos-dir--static .bos-static-body h2:first-child,
.bos-dir--static .bos-static-body h3:first-child {
  margin-top: 0;
}

.bos-dir--static .bos-static-body h2 {
  font-size: 18px;
}

.bos-dir--static .bos-static-body h3 {
  font-size: 16px;
}

.bos-dir--static .bos-static-body p {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--bos-dir-ink) 88%, var(--bos-dir-muted));
}

.bos-dir--static .bos-static-body ul,
.bos-dir--static .bos-static-body ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.bos-dir--static .bos-static-body li {
  margin: 0 0 6px;
}

.bos-dir--static .bos-static-body a {
  color: var(--link-color) !important;
  text-decoration: none !important;
  font-weight: 650;
}

.bos-dir--static .bos-static-body a:hover {
  text-decoration: underline !important;
}

.bos-dir--static .bos-static-side {
  position: sticky;
  top: 84px;
}

body.night-mode .bos-dir--static .bos-static-panel,
html[data-bs-theme="dark"] .bos-dir--static .bos-static-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--static .bos-static-body p,
html[data-bs-theme="dark"] .bos-dir--static .bos-static-body p {
  color: rgba(255, 255, 255, 0.72);
}

/* Contact page */
.bos-dir--contact .bos-contact-panel {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  padding: 22px 24px;
}

.bos-dir--contact .bos-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.bos-dir--contact .bos-contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bos-dir--contact .bos-contact-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bos-dir-muted);
}

.bos-dir--contact .bos-contact-label span {
  color: var(--link-color);
}

.bos-dir--contact .bos-contact-form .form-control {
  min-height: 44px;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  box-shadow: none !important;
  font-size: 14px;
  color: var(--bos-dir-ink);
  padding: 10px 14px;
}

.bos-dir--contact .bos-contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.bos-dir--contact .bos-contact-form .form-control:focus {
  border-color: color-mix(in srgb, var(--link-color) 45%, var(--bos-dir-line)) !important;
  background: #fff !important;
}

.bos-dir--contact .bos-contact-submit {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--bos-dir-ink) !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.bos-dir--contact .bos-contact-submit:hover {
  background: color-mix(in srgb, var(--bos-dir-ink) 88%, #fff) !important;
}

.bos-dir--contact .bos-contact-form .alert {
  margin: 0;
  border-radius: 12px;
}

body.night-mode .bos-dir--contact .bos-contact-panel,
html[data-bs-theme="dark"] .bos-dir--contact .bos-contact-panel {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--contact .bos-contact-form .form-control,
html[data-bs-theme="dark"] .bos-dir--contact .bos-contact-form .form-control {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: inherit;
}

/* Directory hub + lists */
.bos-dir--directory .bos-directory-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 576px) {
  .bos-dir--directory .bos-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .bos-dir--directory .bos-directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bos-dir--directory .bos-directory-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bos-dir--directory .bos-directory-card:hover {
  border-color: color-mix(in srgb, var(--link-color) 35%, var(--bos-dir-line));
  background: #fff;
}

.bos-dir--directory .bos-directory-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bos-dir-soft);
  border: 1px solid var(--bos-dir-line);
  color: var(--link-color);
}

.bos-dir--directory .bos-directory-card-ico .main-icon,
.bos-dir--directory .bos-directory-card-ico .svg-container,
.bos-dir--directory .bos-directory-card-ico svg {
  width: 22px !important;
  height: 22px !important;
}

.bos-dir--directory .bos-directory-card strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
  line-height: 1.3;
}

.bos-dir--directory .bos-directory-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--bos-dir-muted);
}

.bos-dir--directory .bos-directory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bos-dir--directory .bos-directory-list > li,
.bos-dir--directory .bos-directory-list .feeds-item {
  border: 1px solid var(--bos-dir-line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  margin: 0 !important;
}

.bos-dir--directory .bos-directory-list--posts {
  gap: 12px;
}

.bos-dir--directory .bos-directory-list--posts .post {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-dir--directory .bos-directory-pager {
  margin-top: 14px;
}

.bos-dir--directory .bos-directory-pager .pagination {
  justify-content: center;
  gap: 4px;
}

.bos-dir--directory .bos-directory-pager .page-link {
  border-radius: 10px !important;
  border-color: var(--bos-dir-line) !important;
  color: var(--bos-dir-ink) !important;
  font-size: 13px;
  font-weight: 650;
}

.bos-dir--directory .bos-directory-pager .page-item.active .page-link {
  background: var(--bos-dir-ink) !important;
  border-color: var(--bos-dir-ink) !important;
  color: #fff !important;
}

/* people-list tightness inside directory users */
.bos-dir--directory .bos-directory-list .data-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bos-dir--directory .bos-directory-list .data-avatar {
  float: none !important;
  flex: 0 0 48px;
}

.bos-dir--directory .bos-directory-list .data-content {
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100%;
  min-width: 0;
}

body.night-mode .bos-dir--directory .bos-directory-card,
body.night-mode .bos-dir--directory .bos-directory-list > li,
body.night-mode .bos-dir--directory .bos-directory-list .feeds-item,
html[data-bs-theme="dark"] .bos-dir--directory .bos-directory-card,
html[data-bs-theme="dark"] .bos-dir--directory .bos-directory-list > li,
html[data-bs-theme="dark"] .bos-dir--directory .bos-directory-list .feeds-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--directory .bos-directory-list--posts .post,
html[data-bs-theme="dark"] .bos-dir--directory .bos-directory-list--posts .post {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Messages directory */
.bos-dir--messages {
  margin-top: 20px;
}

.bos-dir--messages .bos-msg-layout {
  --bos-msg-gap: 14px;
  gap: 0;
}

.bos-dir--messages .bos-msg-panel {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.bos-dir--messages .bos-msg-threads {
  min-height: 560px;
}

.bos-dir--messages .bos-msg-empty-panel {
  min-height: 560px;
  justify-content: center;
}

.bos-dir--messages .bos-msg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bos-dir-line);
  background: #fff;
}

.bos-dir--messages .bos-msg-panel-head strong {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
  line-height: 1.3;
}

.bos-dir--messages .bos-msg-peer {
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--messages .bos-msg-peer a {
  color: var(--bos-dir-ink) !important;
  font-weight: 700;
}

.bos-dir--messages .bos-msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bos-dir--messages .bos-msg-icon-btn {
  display: inline-grid !important;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 10px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  box-shadow: none !important;
  cursor: pointer;
  text-decoration: none !important;
}

.bos-dir--messages .bos-msg-icon-btn:hover {
  background: #eef0f3 !important;
}

.bos-dir--messages .bos-msg-icon-btn .main-icon,
.bos-dir--messages .bos-msg-icon-btn .svg-container {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-dir--messages .bos-msg-icon-btn .main-icon *,
.bos-dir--messages .bos-msg-icon-btn .svg-container *,
.bos-dir--messages .bos-msg-icon-btn path {
  fill: #747b85 !important;
}

.bos-dir--messages .bos-msg-panel-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.bos-dir--messages .bos-msg-empty-panel .bos-msg-panel-body {
  padding: 24px 18px;
  justify-content: center;
}

.bos-dir--messages .bos-msg-thread-list {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.bos-dir--messages .bos-msg-thread-list > li,
.bos-dir--messages .bos-msg-thread-list .feeds-item {
  margin: 0 0 4px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  overflow: hidden;
}

.bos-dir--messages .bos-msg-thread-list .feeds-item:hover,
.bos-dir--messages .bos-msg-thread-list .feeds-item.unread {
  background: var(--bos-dir-soft) !important;
}

.bos-dir--messages .bos-msg-thread-list .feeds-item.unread .name {
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--messages .bos-msg-thread-list .data-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px !important;
}

.bos-dir--messages .bos-msg-thread-list .data-avatar {
  float: none !important;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.bos-dir--messages .bos-msg-thread-list .data-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.bos-dir--messages .bos-msg-thread-list .data-content {
  float: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100%;
  min-width: 0;
}

.bos-dir--messages .bos-msg-thread-list .name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--bos-dir-ink);
}

.bos-dir--messages .bos-msg-thread-list .text {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--bos-dir-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-dir--messages .bos-msg-thread-list .time {
  margin-top: 2px;
  font-size: 11px;
  color: #a0a6b0;
}

.bos-dir--messages .bos-msg-chat-body {
  padding: 0 !important;
}

.bos-dir--messages .chat-conversations {
  padding: 14px 16px;
  background: #fafbfc;
  flex: 1;
}

.bos-dir--messages .conversation-body .text {
  border-radius: 14px !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  line-height: 1.45 !important;
}

.bos-dir--messages .conversation.right .conversation-body .text {
  border-bottom-right-radius: 6px !important;
}

.bos-dir--messages .conversation:not(.right) .conversation-body .text {
  border-bottom-left-radius: 6px !important;
  background: #fff !important;
  border: 1px solid var(--bos-dir-line) !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--messages .chat-typing {
  padding: 0 16px 6px;
  font-size: 12px;
  color: var(--bos-dir-muted);
  background: #fafbfc;
}

.bos-dir--messages .chat-to {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--bos-dir-line);
  background: #fff;
}

.bos-dir--messages .chat-to .to {
  color: var(--bos-dir-muted);
  font-weight: 650;
  font-size: 12px;
}

.bos-dir--messages .chat-voice-notes,
.bos-dir--messages .chat-attachments {
  padding: 0 16px;
  background: #fff;
}

.bos-dir--messages .chat-form {
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  border-top: 1px solid var(--bos-dir-line) !important;
  background: #fff !important;
  border-radius: 0 !important;
}

.bos-dir--messages .chat-form-message {
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  padding: 8px 12px !important;
}

.bos-dir--messages .chat-form-message textarea {
  background: transparent !important;
  color: var(--bos-dir-ink) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.bos-dir--messages .chat-form .x-form-tools {
  margin-top: 8px !important;
  gap: 4px;
}

.bos-dir--messages .chat-form .x-form-tools > li {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #747b85 !important;
}

.bos-dir--messages .chat-form .x-form-tools > li:hover {
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink) !important;
}

.bos-dir--messages .chat-form .x-form-tools-post {
  background: #1b1e23 !important;
  color: #fff !important;
}

.bos-dir--messages .chat-form .x-form-tools-post:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-dir--messages .bos-msg-back {
  border-bottom: 1px solid var(--bos-dir-line);
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
}

.bos-dir--messages .bos-msg-back .text-link {
  font-size: 13px;
  font-weight: 650;
  color: var(--bos-dir-muted) !important;
}

.bos-dir--messages .sg-offcanvas-sidebar .bos-dir-empty--compact {
  margin: 12px;
}

body.night-mode .bos-dir--messages .bos-msg-panel,
body.night-mode .bos-dir--messages .chat-form,
body.night-mode .bos-dir--messages .chat-to,
html[data-bs-theme="dark"] .bos-dir--messages .bos-msg-panel,
html[data-bs-theme="dark"] .bos-dir--messages .chat-form,
html[data-bs-theme="dark"] .bos-dir--messages .chat-to {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--messages .bos-msg-panel-head,
html[data-bs-theme="dark"] .bos-dir--messages .bos-msg-panel-head {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--messages .chat-conversations,
body.night-mode .bos-dir--messages .chat-typing,
html[data-bs-theme="dark"] .bos-dir--messages .chat-conversations,
html[data-bs-theme="dark"] .bos-dir--messages .chat-typing {
  background: rgba(0, 0, 0, 0.12);
}

body.night-mode .bos-dir--messages .bos-msg-thread-list .feeds-item:hover,
body.night-mode .bos-dir--messages .bos-msg-thread-list .feeds-item.unread,
html[data-bs-theme="dark"] .bos-dir--messages .bos-msg-thread-list .feeds-item:hover,
html[data-bs-theme="dark"] .bos-dir--messages .bos-msg-thread-list .feeds-item.unread {
  background: rgba(255, 255, 255, 0.05) !important;
}

body.night-mode .bos-dir--messages .conversation:not(.right) .conversation-body .text,
html[data-bs-theme="dark"] .bos-dir--messages .conversation:not(.right) .conversation-body .text {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-dir--messages .chat-form-message,
html[data-bs-theme="dark"] .bos-dir--messages .chat-form-message {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-dir--messages .bos-msg-icon-btn,
html[data-bs-theme="dark"] .bos-dir--messages .bos-msg-icon-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Soft floating chat sidebar */
.bos-chat-sidebar {
  --bos-chat-ink: #191b20;
  --bos-chat-muted: #858b95;
  --bos-chat-line: #e9ebef;
  --bos-chat-soft: #f6f7f9;
  width: 72px;
  right: 12px;
  bottom: 12px;
  z-index: 1040;
}

.bos-chat-sidebar .bos-chat-rail {
  bottom: 118px;
  padding: 6px 0;
}

.bos-chat-sidebar .chat-avatar-wrapper {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bos-chat-sidebar .chat-avatar {
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  border: 1px solid var(--bos-chat-line);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(20, 24, 32, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
}

.bos-chat-sidebar .chat-avatar img {
  border: 2px solid #fff;
  box-sizing: border-box;
}

.bos-chat-sidebar .chat-avatar-wrapper:hover .chat-avatar {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(20, 24, 32, 0.28);
}

.bos-chat-sidebar .chat-avatar .online-status {
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  font-size: 0;
  line-height: 0;
  background: #a0a6b0;
  color: transparent !important;
}

.bos-chat-sidebar .chat-avatar .online-status.online {
  background: #22c55e;
}

.bos-chat-sidebar .chat-avatar .online-status.offline {
  background: #c4c9d1;
}

.bos-chat-sidebar .chat-avatar-wrapper .last-seen {
  margin-top: 4px;
  padding: 2px 5px;
  border: 1px solid var(--bos-chat-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bos-chat-muted);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-chat-sidebar .bos-chat-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.bos-chat-sidebar .bos-chat-fab.btn-chat {
  display: inline-grid !important;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--bos-chat-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 1px 2px rgba(20, 24, 32, 0.04),
    0 10px 24px -16px rgba(20, 24, 32, 0.35) !important;
  color: var(--bos-chat-ink) !important;
}

.bos-chat-sidebar .bos-chat-fab.btn-chat:hover,
.bos-chat-sidebar .bos-chat-fab.btn-chat:focus {
  background: var(--bos-chat-soft) !important;
  border-color: #dde1e7 !important;
}

.bos-chat-sidebar .bos-chat-fab.btn-chat.mb10 {
  margin-bottom: 0 !important;
}

.bos-chat-sidebar .bos-chat-fab .main-icon,
.bos-chat-sidebar .bos-chat-fab .svg-container {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  color: #747b85 !important;
}

.bos-chat-sidebar .bos-chat-fab .main-icon *,
.bos-chat-sidebar .bos-chat-fab .svg-container *,
.bos-chat-sidebar .bos-chat-fab path {
  fill: #747b85 !important;
}

.bos-chat-sidebar .bos-chat-fab.js_chat-new {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
}

.bos-chat-sidebar .bos-chat-fab.js_chat-new:hover {
  background: #111318 !important;
  border-color: #111318 !important;
}

.bos-chat-sidebar .bos-chat-fab.js_chat-new .main-icon,
.bos-chat-sidebar .bos-chat-fab.js_chat-new .svg-container {
  color: #fff !important;
}

.bos-chat-sidebar .bos-chat-fab.js_chat-new .main-icon *,
.bos-chat-sidebar .bos-chat-fab.js_chat-new .svg-container *,
.bos-chat-sidebar .bos-chat-fab.js_chat-new path {
  fill: #fff !important;
}

.bos-chat-sidebar .bos-chat-menu.action-dropdown-menu {
  min-width: 260px;
  padding: 8px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--bos-chat-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 20px 40px -18px rgba(20, 24, 32, 0.28) !important;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item {
  display: block;
  padding: 10px 10px !important;
  border-radius: 10px !important;
  color: var(--bos-chat-ink) !important;
  white-space: normal;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item:hover,
.bos-chat-sidebar .bos-chat-menu .dropdown-item:focus {
  background: var(--bos-chat-soft) !important;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item .action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--bos-chat-ink);
  line-height: 1.3;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item .action-desc {
  margin-top: 2px;
  padding-left: 28px;
  font-size: 11.5px;
  color: var(--bos-chat-muted);
  line-height: 1.35;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item .main-icon,
.bos-chat-sidebar .bos-chat-menu .dropdown-item .svg-container {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: 0 0 16px;
  color: #747b85 !important;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-item .main-icon *,
.bos-chat-sidebar .bos-chat-menu .dropdown-item .svg-container *,
.bos-chat-sidebar .bos-chat-menu .dropdown-item path {
  fill: #747b85 !important;
}

.bos-chat-sidebar .bos-chat-menu .dropdown-divider {
  margin: 6px 4px !important;
  border-top-color: var(--bos-chat-line) !important;
  opacity: 1;
}

.bos-chat-sidebar.disabled .bos-chat-rail {
  opacity: 0.35;
  pointer-events: none;
}

body.night-mode .bos-chat-sidebar .chat-avatar,
body.night-mode .bos-chat-sidebar .chat-avatar-wrapper .last-seen,
body.night-mode .bos-chat-sidebar .bos-chat-fab.btn-chat,
body.night-mode .bos-chat-sidebar .bos-chat-menu.action-dropdown-menu,
html[data-bs-theme="dark"] .bos-chat-sidebar .chat-avatar,
html[data-bs-theme="dark"] .bos-chat-sidebar .chat-avatar-wrapper .last-seen,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-fab.btn-chat,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-menu.action-dropdown-menu {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-chat-sidebar .chat-avatar img,
html[data-bs-theme="dark"] .bos-chat-sidebar .chat-avatar img {
  border-color: #262d34;
}

body.night-mode .bos-chat-sidebar .chat-avatar .online-status,
html[data-bs-theme="dark"] .bos-chat-sidebar .chat-avatar .online-status {
  border-color: #262d34;
}

body.night-mode .bos-chat-sidebar .bos-chat-fab.js_chat-new,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-fab.js_chat-new {
  background: #e8eaed !important;
  border-color: #e8eaed !important;
}

body.night-mode .bos-chat-sidebar .bos-chat-fab.js_chat-new .main-icon *,
body.night-mode .bos-chat-sidebar .bos-chat-fab.js_chat-new path,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-fab.js_chat-new .main-icon *,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-fab.js_chat-new path {
  fill: #111318 !important;
}

body.night-mode .bos-chat-sidebar .bos-chat-menu .dropdown-item:hover,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-chat-sidebar .bos-chat-menu .dropdown-item .action,
html[data-bs-theme="dark"] .bos-chat-sidebar .bos-chat-menu .dropdown-item .action {
  color: #e2e8f0;
}

/* Notifications directory */
.bos-dir--notifications .bos-notif-clear {
  color: #b42318 !important;
  background: #fff5f5 !important;
  border-color: #f3d0cd !important;
}

.bos-dir--notifications .bos-notif-clear:hover {
  background: #ffe8e6 !important;
  color: #912018 !important;
}

.bos-dir--notifications .bos-notif-clear .main-icon *,
.bos-dir--notifications .bos-notif-clear .svg-container *,
.bos-dir--notifications .bos-notif-clear path {
  fill: #b42318 !important;
}

.bos-dir--notifications .bos-notif-panel {
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  padding: 14px 14px 12px;
}

.bos-dir--notifications .bos-notif-panel .bos-dir-section-head {
  margin-bottom: 10px;
  padding: 0 2px;
}

.bos-dir--notifications .bos-notif-panel .bos-dir-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--notifications .bos-notif-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bos-dir--notifications .bos-notif-item,
.bos-dir--notifications .bos-notif-list .feeds-action-item {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.bos-dir--notifications .bos-notif-link {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px !important;
  margin: 0 !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: inherit !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bos-dir--notifications .bos-notif-item:hover .bos-notif-link,
.bos-dir--notifications .bos-notif-link:hover {
  background: var(--bos-dir-soft) !important;
  border-color: #dde1e7 !important;
}

.bos-dir--notifications .bos-notif-item.unread .bos-notif-link {
  background: color-mix(in srgb, var(--link-color) 6%, #fff) !important;
  border-color: color-mix(in srgb, var(--link-color) 18%, #e9ebef) !important;
}

.bos-dir--notifications .bos-notif-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.bos-dir--notifications .bos-notif-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bos-dir-line);
}

.bos-dir--notifications .bos-notif-body {
  flex: 1;
  min-width: 0;
}

.bos-dir--notifications .bos-notif-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--bos-dir-ink);
  line-height: 1.3;
}

.bos-dir--notifications .bos-notif-message {
  margin-top: 3px;
  font-size: 13px;
  color: var(--bos-dir-muted);
  line-height: 1.4;
}

.bos-dir--notifications .bos-notif-time {
  margin-top: 4px;
  font-size: 11.5px;
  color: #a0a6b0;
  font-weight: 550;
}

.bos-dir--notifications .bos-notif-del {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  padding: 0;
  border: 1px solid var(--bos-dir-line);
  border-radius: 10px;
  background: #fff;
  color: #a0a6b0;
  cursor: pointer;
  box-shadow: none;
}

.bos-dir--notifications .bos-notif-del:hover {
  background: #fff5f5;
  border-color: #f3d0cd;
  color: #b42318;
}

.bos-dir--notifications .bos-dir-more {
  margin-top: 10px !important;
}

body.night-mode .bos-dir--notifications .bos-notif-panel,
body.night-mode .bos-dir--notifications .bos-notif-link,
html[data-bs-theme="dark"] .bos-dir--notifications .bos-notif-panel,
html[data-bs-theme="dark"] .bos-dir--notifications .bos-notif-link {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .bos-dir--notifications .bos-notif-item.unread .bos-notif-link,
html[data-bs-theme="dark"] .bos-dir--notifications .bos-notif-item.unread .bos-notif-link {
  background: rgba(94, 114, 228, 0.12) !important;
}

body.night-mode .bos-dir--notifications .bos-notif-del,
html[data-bs-theme="dark"] .bos-dir--notifications .bos-notif-del {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

body.night-mode .bos-dir--notifications .bos-notif-clear,
html[data-bs-theme="dark"] .bos-dir--notifications .bos-notif-clear {
  background: rgba(180, 35, 24, 0.12) !important;
  border-color: rgba(180, 35, 24, 0.28) !important;
}

/* Soft header dropdown widgets (messages / notifications / requests) */
.main-header .bos-header-dd.dropdown-widget {
  margin-top: 8px !important;
  padding: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px -20px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden;
}

@media (min-width: 768px) {
  .main-header .bos-header-dd.dropdown-widget {
    min-width: 380px !important;
  }
}

.main-header .bos-header-dd-head.dropdown-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #f6f7f9 !important;
}

.main-header .bos-header-dd-head .title {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  line-height: 1.3 !important;
}

.main-header .bos-header-dd-action,
.main-header .bos-header-dd-head .text-link {
  float: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.main-header .bos-header-dd-action:hover,
.main-header .bos-header-dd-head .text-link:hover {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.main-header .bos-header-dd-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #858b95;
}

.main-header .bos-header-dd-body.dropdown-widget-body {
  padding: 8px !important;
}

.main-header .bos-header-dd-body .js_scroller {
  max-height: 280px;
}

.main-header .bos-header-dd-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .bos-header-dd-list > li,
.main-header .bos-header-dd-list .feeds-item,
.main-header .bos-header-dd-list .feeds-action-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  overflow: hidden;
}

.main-header .bos-header-dd-list .data-container,
.main-header .bos-header-dd-list > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  float: none !important;
  color: inherit !important;
  text-decoration: none !important;
}

.main-header .bos-header-dd-list .data-container:hover,
.main-header .bos-header-dd-list > li > a:hover,
.main-header .bos-header-dd-list .feeds-item.unread .data-container,
.main-header .bos-header-dd-list .feeds-item.unread > a {
  background: #f6f7f9 !important;
}

.main-header .bos-header-dd-list .data-avatar {
  float: none !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.main-header .bos-header-dd-list .data-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.main-header .bos-header-dd-list .data-content {
  float: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100%;
  min-width: 0;
}

.main-header .bos-header-dd-list .name {
  font-size: 13px;
  font-weight: 650;
  color: #191b20;
}

.main-header .bos-header-dd-list .text,
.main-header .bos-header-dd-list .data-content > div:last-child {
  font-size: 12px;
  color: #858b95;
  line-height: 1.35;
}

.main-header .bos-header-dd-list .time {
  margin-top: 2px;
  font-size: 11px;
  color: #a0a6b0;
}

.main-header .bos-header-dd-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  margin: 0 !important;
  padding: 24px 16px !important;
  text-align: center;
  color: #858b95;
}

.main-header .bos-header-dd-empty-ico,
.main-header .bos-header-dd-empty .main-icon,
.main-header .bos-header-dd-empty .bos-sb-ico,
.main-header .bos-header-dd-empty .svg-container {
  display: block;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 0 auto;
  line-height: 0;
  color: #9aa1ab !important;
  overflow: hidden;
}

.main-header .bos-header-dd-empty svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

.main-header .bos-header-dd-empty svg[fill="none"],
.main-header .bos-header-dd-empty svg[fill="none"] path,
.main-header .bos-header-dd-empty svg[fill="none"] circle,
.main-header .bos-header-dd-empty svg[fill="none"] line,
.main-header .bos-header-dd-empty svg[fill="none"] polyline,
.main-header .bos-header-dd-empty svg[fill="none"] rect {
  fill: none !important;
  stroke: currentColor !important;
}

.main-header .bos-header-dd-empty strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #858b95;
}

/* AJAX/live: empty <p> may sit next to orphaned icon markup — keep scroller tidy */
.main-header .js_live-requests .js_scroller > .svg-container,
.main-header .js_live-requests .js_scroller > .main-icon {
  display: none !important;
}

.main-header .bos-header-dd-foot.dropdown-widget-footer {
  display: block;
  padding: 12px 14px !important;
  border-top: 1px solid #e9ebef !important;
  background: #fafbfc !important;
  text-align: center;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  text-decoration: none !important;
}

.main-header .bos-header-dd-foot.dropdown-widget-footer:hover {
  background: #f6f7f9 !important;
  color: #111318 !important;
  text-decoration: none !important;
}

body.night-mode .main-header .bos-header-dd.dropdown-widget,
html[data-bs-theme="dark"] .main-header .bos-header-dd.dropdown-widget {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .main-header .bos-header-dd-head,
body.night-mode .main-header .bos-header-dd-foot,
html[data-bs-theme="dark"] .main-header .bos-header-dd-head,
html[data-bs-theme="dark"] .main-header .bos-header-dd-foot {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .main-header .bos-header-dd-head .title,
body.night-mode .main-header .bos-header-dd-foot,
html[data-bs-theme="dark"] .main-header .bos-header-dd-head .title,
html[data-bs-theme="dark"] .main-header .bos-header-dd-foot {
  color: #e2e8f0 !important;
}

body.night-mode .main-header .bos-header-dd-list .data-container:hover,
body.night-mode .main-header .bos-header-dd-list > li > a:hover,
html[data-bs-theme="dark"] .main-header .bos-header-dd-list .data-container:hover,
html[data-bs-theme="dark"] .main-header .bos-header-dd-list > li > a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Soft header widgets — class fallbacks (AJAX / stale markup) */
.main-header .js_live-messages > .dropdown-widget,
.main-header .js_live-notifications > .dropdown-widget,
.main-header .js_live-requests > .dropdown-widget {
  margin-top: 8px !important;
  padding: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px -20px rgba(20, 24, 32, 0.28) !important;
  overflow: hidden;
}

.main-header .js_live-messages .dropdown-widget-header,
.main-header .js_live-notifications .dropdown-widget-header,
.main-header .js_live-requests .dropdown-widget-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #f6f7f9 !important;
}

.main-header .js_live-messages .dropdown-widget-header .title,
.main-header .js_live-notifications .dropdown-widget-header .title,
.main-header .js_live-requests .dropdown-widget-header .title {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  line-height: 1.3 !important;
}

.main-header .js_live-messages .dropdown-widget-header a,
.main-header .js_live-notifications .dropdown-widget-header .float-end,
.main-header .js_live-notifications .dropdown-widget-header .mr5 {
  float: none !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
}

.main-header .js_live-notifications .dropdown-widget-header .switch,
.main-header .js_live-notifications .dropdown-widget-header label.switch {
  float: none !important;
  margin: 0 !important;
}

.main-header .js_live-messages .dropdown-widget-body,
.main-header .js_live-notifications .dropdown-widget-body,
.main-header .js_live-requests .dropdown-widget-body {
  padding: 8px !important;
}

.main-header .js_live-messages .dropdown-widget-body .js_scroller > ul,
.main-header .js_live-notifications .dropdown-widget-body .js_scroller > ul,
.main-header .js_live-requests .dropdown-widget-body .js_scroller > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header .js_live-messages .dropdown-widget-body .feeds-item,
.main-header .js_live-notifications .dropdown-widget-body .feeds-item,
.main-header .js_live-requests .dropdown-widget-body .feeds-item,
.main-header .js_live-notifications .dropdown-widget-body .feeds-action-item {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  overflow: hidden;
}

.main-header .js_live-messages .dropdown-widget-body .data-container,
.main-header .js_live-notifications .dropdown-widget-body .data-container,
.main-header .js_live-requests .dropdown-widget-body .data-container {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  float: none !important;
}

.main-header .js_live-messages .dropdown-widget-body .data-container:hover,
.main-header .js_live-notifications .dropdown-widget-body .data-container:hover,
.main-header .js_live-requests .dropdown-widget-body .data-container:hover,
.main-header .js_live-messages .dropdown-widget-body .feeds-item.unread .data-container,
.main-header .js_live-notifications .dropdown-widget-body .feeds-item.unread .data-container {
  background: #f6f7f9 !important;
}

.main-header .js_live-messages .dropdown-widget-body .data-avatar,
.main-header .js_live-notifications .dropdown-widget-body .data-avatar,
.main-header .js_live-requests .dropdown-widget-body .data-avatar {
  float: none !important;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.main-header .js_live-messages .dropdown-widget-body .data-avatar img,
.main-header .js_live-notifications .dropdown-widget-body .data-avatar img,
.main-header .js_live-requests .dropdown-widget-body .data-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #f6f7f9;
}

.main-header .js_live-messages .dropdown-widget-body .data-content,
.main-header .js_live-notifications .dropdown-widget-body .data-content,
.main-header .js_live-requests .dropdown-widget-body .data-content {
  float: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  width: 100%;
  min-width: 0;
}

.main-header .js_live-messages .dropdown-widget-body .name,
.main-header .js_live-notifications .dropdown-widget-body .name,
.main-header .js_live-requests .dropdown-widget-body .name {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #191b20 !important;
}

.main-header .js_live-notifications .dropdown-widget-body .data-content > div:last-child {
  margin-top: 2px;
  font-size: 12px;
  color: #858b95;
  line-height: 1.35;
}

.main-header .js_live-messages .dropdown-widget-footer,
.main-header .js_live-notifications .dropdown-widget-footer,
.main-header .js_live-requests .dropdown-widget-footer {
  display: block;
  padding: 12px 14px !important;
  border-top: 1px solid #e9ebef !important;
  background: #fafbfc !important;
  text-align: center;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
  text-decoration: none !important;
}

.main-header .js_live-messages .dropdown-widget-footer:hover,
.main-header .js_live-notifications .dropdown-widget-footer:hover,
.main-header .js_live-requests .dropdown-widget-footer:hover {
  background: #f6f7f9 !important;
  color: #111318 !important;
  text-decoration: none !important;
}

.main-header .js_live-messages .dropdown-widget-body .text-muted,
.main-header .js_live-notifications .dropdown-widget-body .text-muted,
.main-header .js_live-requests .dropdown-widget-body .text-muted {
  padding: 28px 12px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
}

body.night-mode .main-header .js_live-messages > .dropdown-widget,
body.night-mode .main-header .js_live-notifications > .dropdown-widget,
body.night-mode .main-header .js_live-requests > .dropdown-widget,
html[data-bs-theme="dark"] .main-header .js_live-messages > .dropdown-widget,
html[data-bs-theme="dark"] .main-header .js_live-notifications > .dropdown-widget,
html[data-bs-theme="dark"] .main-header .js_live-requests > .dropdown-widget {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .main-header .js_live-messages .dropdown-widget-header,
body.night-mode .main-header .js_live-notifications .dropdown-widget-header,
body.night-mode .main-header .js_live-requests .dropdown-widget-header,
body.night-mode .main-header .js_live-messages .dropdown-widget-footer,
body.night-mode .main-header .js_live-notifications .dropdown-widget-footer,
body.night-mode .main-header .js_live-requests .dropdown-widget-footer,
html[data-bs-theme="dark"] .main-header .js_live-messages .dropdown-widget-header,
html[data-bs-theme="dark"] .main-header .js_live-notifications .dropdown-widget-header,
html[data-bs-theme="dark"] .main-header .js_live-requests .dropdown-widget-header,
html[data-bs-theme="dark"] .main-header .js_live-messages .dropdown-widget-footer,
html[data-bs-theme="dark"] .main-header .js_live-notifications .dropdown-widget-footer,
html[data-bs-theme="dark"] .main-header .js_live-requests .dropdown-widget-footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Friend-requests empty must stay <p> for live AJAX */
.main-header .js_live-requests .bos-header-dd-empty,
.main-header .js_live-requests p.bos-header-dd-empty,
.main-header .js_live-requests .dropdown-widget-body p.text-muted {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 140px;
  margin: 0 !important;
  padding: 24px 16px !important;
  text-align: center;
  font-size: 13px !important;
  font-weight: 650 !important;
  color: #858b95 !important;
  background: transparent !important;
}

.main-header .js_live-requests .bos-header-dd-empty-ico,
.main-header .js_live-requests .bos-header-dd-empty .main-icon,
.main-header .js_live-requests .bos-header-dd-empty .svg-container {
  display: block;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 0 auto !important;
  line-height: 0;
  color: #9aa1ab !important;
  overflow: hidden;
}

.main-header .js_live-requests .bos-header-dd-empty svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

.main-header .js_live-requests .bos-header-dd-empty svg[fill="none"],
.main-header .js_live-requests .bos-header-dd-empty svg[fill="none"] * {
  fill: none !important;
  stroke: currentColor !important;
}

.main-header .js_live-requests .bos-header-dd-empty strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #858b95;
}

/* Soft accept / decline in header requests */
.main-header .js_live-requests .dropdown-widget-body .feeds-item {
  padding: 0 !important;
}

.main-header .js_live-requests .dropdown-widget-body .data-container {
  align-items: flex-start !important;
}

.main-header .js_live-requests .dropdown-widget-body .btns,
.main-header .js_live-requests .dropdown-widget-body .data-content .mt5 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px !important;
}

.main-header .js_live-requests .dropdown-widget-body .btn-sm,
.main-header .js_live-requests .dropdown-widget-body .btn.btn-primary,
.main-header .js_live-requests .dropdown-widget-body .btn.btn-light {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.main-header .js_live-requests .dropdown-widget-body .btn-primary {
  border: 0 !important;
  background: #1b1e23 !important;
  color: #fff !important;
}

.main-header .js_live-requests .dropdown-widget-body .btn-light {
  border: 1px solid #e9ebef !important;
  background: #fff !important;
  color: #515761 !important;
}

/* Soft mobile footer bottom bar */
.bos-fbar.footer-bottom-bar {
  height: 64px;
  padding: 0;
  border-top: 1px solid #e9ebef !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 -8px 24px -18px rgba(20, 24, 32, 0.28);
}

.bos-fbar .bos-fbar-links {
  align-items: stretch;
  gap: 0;
  height: 64px;
}

.bos-fbar .bos-fbar-links > .link {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bos-fbar .bos-fbar-links > .link > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px 4px 8px !important;
  border-radius: 0;
  color: #858b95 !important;
  text-decoration: none !important;
  background: transparent !important;
}

.bos-fbar .bos-fbar-links > .link > a:hover,
.bos-fbar .bos-fbar-links > .link > a:focus {
  background: transparent !important;
  color: #191b20 !important;
}

.bos-fbar .bos-fbar-links .link > a > .title {
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: inherit !important;
}

.bos-fbar .bos-fbar-ico {
  width: 22px !important;
  height: 22px !important;
  color: #747b85 !important;
}

.bos-fbar .bos-fbar-ico svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
}

.bos-fbar .bos-fbar-links > .link.active > a,
.bos-fbar .bos-fbar-links > .link.active > a > .title {
  color: #191b20 !important;
  font-weight: 700 !important;
}

.bos-fbar .bos-fbar-links > .link.active .bos-fbar-ico {
  color: #191b20 !important;
}

/* Center add FAB */
.bos-fbar .bos-fbar-add > a.bos-fbar-add-btn {
  position: relative;
  top: -10px;
  width: auto;
  min-width: 56px;
  height: auto !important;
  padding: 0 !important;
  gap: 4px;
}

.bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add {
  display: grid;
  place-items: center;
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px;
  background: #1b1e23;
  color: #fff !important;
  box-shadow:
    0 1px 2px rgba(20, 24, 32, 0.08),
    0 12px 24px -12px rgba(20, 24, 32, 0.45);
}

.bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #fff !important;
}

.bos-fbar .bos-fbar-add-btn .title {
  color: #858b95 !important;
}

.bos-fbar .bos-fbar-add-btn:hover .bos-fbar-ico--add,
.bos-fbar .bos-fbar-add-btn:focus .bos-fbar-ico--add {
  background: #111318;
}

/* Menu avatar in footer */
.bos-fbar .user-menu {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 6px 4px 8px !important;
  color: #858b95 !important;
}

.bos-fbar .user-menu img {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  border: 1.5px solid #e9ebef;
  object-fit: cover;
}

.bos-fbar .user-menu .title {
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  color: inherit !important;
}

.bos-fbar .user-menu.dropdown-toggle::after {
  display: none !important;
}

/* Soft create sheet — fixed above footer so Popper can't shove it off-screen */
.bos-fbar .bos-fbar-add {
  position: static;
}

.bos-fbar .bos-fbar-sheet.dropdown-widget {
  position: fixed !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 10px) !important;
  top: auto !important;
  inset: auto 12px calc(64px + env(safe-area-inset-bottom, 0px) + 10px) 12px !important;
  display: none;
  flex-direction: column;
  width: auto !important;
  max-width: none !important;
  max-height: min(58vh, 420px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.32) !important;
  overflow: hidden;
  transform: none !important;
  z-index: 1100 !important;
}

.bos-fbar .bos-fbar-sheet.dropdown-widget.show {
  display: flex !important;
}

.bos-fbar .bos-fbar-sheet-head {
  flex: 0 0 auto;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e9ebef;
  background: #f6f7f9;
}

.bos-fbar .bos-fbar-sheet-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #191b20;
}

.bos-fbar .bos-fbar-sheet .bos-fbar-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bos-fbar .bos-fbar-grid.footer-quick-adds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.bos-fbar .bos-fbar-grid .add-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0 !important;
  min-height: 68px;
  margin: 0;
  padding: 10px 6px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #191b20 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
}

.bos-fbar .bos-fbar-grid .add-quick-item.full {
  grid-column: 1 / -1;
}

.bos-fbar .bos-fbar-grid .add-quick-item:hover,
.bos-fbar .bos-fbar-grid .add-quick-item:active {
  background: #f6f7f9 !important;
  border-color: #dde1e7 !important;
}

.bos-fbar .bos-fbar-grid .add-quick-item .main-icon,
.bos-fbar .bos-fbar-grid .add-quick-item .bos-sb-ico,
.bos-fbar .bos-fbar-grid .add-quick-item .svg-container {
  width: 20px !important;
  height: 20px !important;
  color: #747b85 !important;
  flex-shrink: 0;
}

.bos-fbar .bos-fbar-grid .add-quick-item .mt5 {
  margin-top: 0 !important;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
}

.bos-fbar .bos-fbar-paid.badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  background: #fff5f5 !important;
  color: #b42318 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  vertical-align: middle;
  white-space: nowrap;
}

body.night-mode .bos-fbar.footer-bottom-bar,
html[data-bs-theme="dark"] .bos-fbar.footer-bottom-bar {
  background: rgba(30, 37, 43, 0.92) !important;
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-fbar .bos-fbar-links > .link.active > a,
body.night-mode .bos-fbar .bos-fbar-links > .link.active .bos-fbar-ico,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-links > .link.active > a,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-links > .link.active .bos-fbar-ico {
  color: #e2e8f0 !important;
}

body.night-mode .bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add {
  background: #e8eaed;
  color: #111318 !important;
}

body.night-mode .bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add svg,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-add-btn .bos-fbar-ico--add svg {
  stroke: #111318 !important;
}

body.night-mode .bos-fbar .bos-fbar-sheet.dropdown-widget,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-sheet.dropdown-widget {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-fbar .bos-fbar-sheet-head,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-sheet-head {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-fbar .bos-fbar-grid .add-quick-item,
html[data-bs-theme="dark"] .bos-fbar .bos-fbar-grid .add-quick-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

/* ==========================================================================
   Packages soft hub (bos-dir--packages)
   Soft tokens: ink #191b20, muted #858b95, line #e9ebef, soft #f6f7f9
   ========================================================================== */

.bos-dir--packages .bos-dir-hero-top {
  margin-bottom: 0;
}

.bos-dir--packages .bos-pkg-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f0e2b8;
  border-radius: 14px;
  background: #fffbeb;
  color: #7a5c12;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.bos-dir--packages .bos-pkg-grid {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 14px;
}

.bos-dir--packages .bos-pkg-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 0 4px;
  padding: 16px 16px 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}

.bos-dir--packages .bos-pkg-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bos-pkg-accent, var(--link-color));
  opacity: 0.85;
}

.bos-dir--packages .bos-pkg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding-top: 4px;
}

.bos-dir--packages .bos-pkg-head-text {
  min-width: 0;
  flex: 1;
}

.bos-dir--packages .bos-pkg-name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--bos-dir-ink);
  letter-spacing: -0.01em;
}

.bos-dir--packages .bos-pkg-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bos-dir--packages .bos-pkg-price {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bos-dir-ink);
}

.bos-dir--packages .bos-pkg-period {
  font-size: 12px;
  font-weight: 500;
  color: var(--bos-dir-muted);
}

.bos-dir--packages .bos-pkg-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
  overflow: hidden;
}

.bos-dir--packages .bos-pkg-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.bos-dir--packages .bos-pkg-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.bos-dir--packages .bos-pkg-features--perms {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--bos-dir-line);
}

.bos-dir--packages .bos-pkg-feature {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bos-dir-ink);
  background: transparent;
  border: 0;
}

.bos-dir--packages .bos-pkg-feature small {
  color: var(--bos-dir-muted);
  font-weight: 500;
}

.bos-dir--packages .bos-pkg-feature .mr10,
.bos-dir--packages .bos-pkg-feature .svg-container,
.bos-dir--packages .bos-pkg-feature .main-icon {
  flex-shrink: 0;
  width: 18px !important;
  height: 18px !important;
  margin-top: 1px;
  margin-right: 8px !important;
}

.bos-dir--packages .bos-pkg-feature.is-off {
  color: var(--bos-dir-muted);
  opacity: 0.72;
}

.bos-dir--packages .bos-pkg-feature.is-on:hover {
  background: var(--bos-dir-soft);
}

.bos-dir--packages .bos-pkg-perms-toggle {
  margin-top: 4px;
  padding: 8px;
  border-radius: 10px;
  background: var(--bos-dir-soft);
}

.bos-dir--packages .bos-pkg-perms-toggle strong {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--link-color) !important;
  user-select: none;
}

.bos-dir--packages .bos-pkg-perms {
  margin: 0 0 4px;
}

.bos-dir--packages .bos-pkg-desc {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--bos-dir-line);
  background: var(--bos-dir-soft);
  font-size: 12px;
  line-height: 1.45;
  color: var(--bos-dir-muted);
}

.bos-dir--packages .bos-pkg-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--bos-dir-line);
}

.bos-dir--packages .bos-pkg-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px !important;
  border: 1px solid var(--bos-dir-line) !important;
  border-radius: 12px !important;
  background: var(--bos-dir-soft) !important;
  color: var(--bos-dir-ink) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bos-dir--packages .bos-pkg-cta:hover {
  background: #eef0f3 !important;
  border-color: #dde1e7 !important;
  color: var(--bos-dir-ink) !important;
}

.bos-dir--packages .bos-pkg-cta--primary {
  border-color: transparent !important;
  background: var(--bos-dir-ink, #191b20) !important;
  color: #fff !important;
}

.bos-dir--packages .bos-pkg-cta--primary:hover {
  background: var(--link-color, #191b20) !important;
  color: #fff !important;
  border-color: transparent !important;
  filter: none;
}

/* Success / upgraded */
.bos-dir--packages .bos-pkg-success {
  margin: 0;
  padding: 40px 22px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.bos-dir--packages .bos-pkg-success-ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
}

.bos-dir--packages .bos-pkg-success-ico .main-icon,
.bos-dir--packages .bos-pkg-success-ico .svg-container {
  width: 32px !important;
  height: 32px !important;
  color: #747b85 !important;
}

.bos-dir--packages .bos-pkg-success h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bos-dir-ink);
}

.bos-dir--packages .bos-pkg-success > p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--bos-dir-muted);
}

.bos-dir--packages .bos-pkg-success-badge {
  display: inline-block;
  margin: 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bos-dir-soft);
  border: 1px solid var(--bos-dir-line);
  color: var(--bos-dir-ink);
  font-size: 12px;
  font-weight: 700;
}

.bos-dir--packages .bos-pkg-success-hint {
  margin: 0 0 10px !important;
  font-size: 13px !important;
}

.bos-dir--packages .bos-pkg-success-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.bos-dir--packages .bos-pkg-success-cats span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--bos-dir-line);
  background: var(--bos-dir-soft);
  color: var(--bos-dir-ink);
  font-size: 12px;
  font-weight: 600;
}

.bos-dir--packages .bos-pkg-success .bos-pkg-cta {
  max-width: 220px;
}

/* Night / dark */
body.night-mode .bos-dir--packages .bos-pkg-tile,
body.night-mode .bos-dir--packages .bos-pkg-success,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-tile,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-success {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--packages .bos-pkg-ico,
body.night-mode .bos-dir--packages .bos-pkg-success-ico,
body.night-mode .bos-dir--packages .bos-pkg-perms-toggle,
body.night-mode .bos-dir--packages .bos-pkg-desc,
body.night-mode .bos-dir--packages .bos-pkg-success-badge,
body.night-mode .bos-dir--packages .bos-pkg-success-cats span,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-ico,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-success-ico,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-perms-toggle,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-desc,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-success-badge,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-success-cats span {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-dir--packages .bos-pkg-cta:not(.bos-pkg-cta--primary),
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-cta:not(.bos-pkg-cta--primary) {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.night-mode .bos-dir--packages .bos-pkg-feature.is-on:hover,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-feature.is-on:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-dir--packages .bos-pkg-alert,
html[data-bs-theme="dark"] .bos-dir--packages .bos-pkg-alert {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.2);
  color: #f0d78c;
}

/* ==========================================================================
   BudunOS soft auth / welcome (/signin /signup /reset + card-register)
   ========================================================================== */
.bos-auth,
.bos-welcome {
  --bos-auth-ink: #191b20;
  --bos-auth-muted: #858b95;
  --bos-auth-line: #e9ebef;
  --bos-auth-soft: #f6f7f9;
  --bos-auth-cta: #1b1e23;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  color: var(--bos-auth-ink);
}

/* Full soft auth page (no wallpaper / landing image) */
.bos-auth-page {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 40px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(25, 27, 32, 0.045), transparent 60%),
    radial-gradient(720px 380px at 92% 8%, color-mix(in srgb, var(--link-color) 10%, transparent), transparent 55%),
    linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}

.bos-auth-page > .container,
.bos-auth-page > .container-fluid {
  position: relative;
  z-index: 1;
  width: 100%;
}

.bos-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25, 27, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 27, 32, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.bos-auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 992px) {
  .bos-auth-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 0;
  }
}

.bos-auth-intro {
  max-width: 520px;
}

.bos-auth-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bos-auth-muted);
}

.bos-auth-headline {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bos-auth-ink);
}

.bos-auth-lead {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bos-auth-muted);
  max-width: 42ch;
}

.bos-auth-points {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.bos-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #3d424b;
}

.bos-auth-point-ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--bos-auth-line);
  color: var(--bos-auth-ink);
}

.bos-auth-point-ico .bos-sb-ico,
.bos-auth-point-ico .main-icon {
  margin: 0 !important;
}

.bos-auth-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.bos-auth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bos-auth-cta--ghost {
  border: 1px solid var(--bos-auth-line);
  background: #fff;
  color: var(--bos-auth-ink);
}

.bos-auth-cta--ghost:hover {
  background: var(--bos-auth-soft);
  border-color: #dde1e7;
  color: var(--bos-auth-ink);
}

.bos-auth-cta--solid {
  border: 0;
  background: var(--bos-auth-cta);
  color: #fff !important;
  white-space: nowrap;
}

.bos-auth-cta--solid:hover {
  background: #111318;
  color: #fff !important;
}

.bos-auth-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--bos-auth-line);
  background: #fff;
}

.bos-auth-nudge-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bos-auth-nudge-copy strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--bos-auth-ink);
}

.bos-auth-nudge-copy span {
  font-size: 13px;
  color: var(--bos-auth-muted);
}

.bos-auth-shell-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .bos-auth-shell-form {
    margin: 0;
    justify-self: end;
  }
}

.bos-auth-form-note {
  margin: 8px 0 0 !important;
  font-size: 12.5px !important;
  color: #9aa1ab !important;
}

.bos-auth-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 991.98px) {
  .bos-auth-page {
    align-items: flex-start;
    padding: 28px 0 40px;
  }

  .bos-auth-headline {
    font-size: 28px;
  }

  .bos-auth-shell-form {
    max-width: 520px;
  }
}

.bos-auth .card-register,
.bos-welcome .card-register {
  background: #fff;
  border: 1px solid var(--bos-auth-line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: none;
  font-size: 14px;
}

@media (min-width: 992px) {
  .bos-auth .card-register,
  .bos-welcome .card-register {
    padding: 28px 28px 22px;
  }
}

.bos-auth .card-register .card-header,
.bos-welcome .card-register .card-header {
  border: 0;
  background: transparent;
  padding: 0 0 12px;
}

.bos-auth .card-register .card-header .card-title,
.bos-welcome .card-register .card-header .card-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bos-auth-ink);
}

.bos-auth .card-register .card-header p,
.bos-auth .card-register .card-header .card-subtitle,
.bos-welcome .card-register .card-header p,
.bos-welcome .card-register .card-header .card-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--bos-auth-muted);
}

.bos-auth .card-register .card-body,
.bos-welcome .card-register .card-body {
  padding: 4px 0 0;
}

.bos-auth .card-register .form-group,
.bos-welcome .card-register .form-group {
  margin-bottom: 12px;
}

.bos-auth .card-register .input-group,
.bos-welcome .card-register .input-group {
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.bos-auth .card-register .form-control,
.bos-auth .card-register .form-select,
.bos-welcome .card-register .form-control,
.bos-welcome .card-register .form-select {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 14px !important;
  border-radius: 13px !important;
  border: 1px solid var(--bos-auth-line) !important;
  background: var(--bos-auth-soft) !important;
  color: var(--bos-auth-ink) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
}

.bos-auth .card-register .form-control::placeholder,
.bos-welcome .card-register .form-control::placeholder {
  color: #9aa1ab;
}

.bos-auth .card-register .form-control:focus,
.bos-auth .card-register .form-select:focus,
.bos-welcome .card-register .form-control:focus,
.bos-welcome .card-register .form-select:focus {
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-auth-line)) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 16%, transparent) !important;
}

.bos-auth .card-register .input-group > .input-group-text,
.bos-welcome .card-register .input-group > .input-group-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 13px 0 0 13px !important;
  border: 1px solid var(--bos-auth-line) !important;
  border-right: 0 !important;
  background: var(--bos-auth-soft) !important;
  color: #747b85 !important;
  line-height: 1 !important;
}

.bos-auth .card-register .input-group > .input-group-text i,
.bos-welcome .card-register .input-group > .input-group-text i {
  margin: 0;
  font-size: 14px;
  line-height: 1;
}

.bos-auth .card-register .input-group > .form-control,
.bos-auth .card-register .input-group > .form-select,
.bos-welcome .card-register .input-group > .form-control,
.bos-welcome .card-register .input-group > .form-select {
  border-radius: 0 13px 13px 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}

.bos-auth .card-register .input-group > .form-control:not(:last-child),
.bos-auth .card-register .input-group > .form-select:not(:last-child),
.bos-welcome .card-register .input-group > .form-control:not(:last-child),
.bos-welcome .card-register .input-group > .form-select:not(:last-child) {
  border-radius: 0 !important;
  border-right: 0 !important;
}

.bos-auth .card-register .input-group > .js_toggle-password,
.bos-auth .card-register .input-group > .input-group-text.js_toggle-password,
.bos-welcome .card-register .input-group > .js_toggle-password,
.bos-welcome .card-register .input-group > .input-group-text.js_toggle-password {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 0 13px 13px 0 !important;
  border: 1px solid var(--bos-auth-line) !important;
  border-left: 0 !important;
  background: var(--bos-auth-soft) !important;
  color: #747b85 !important;
  cursor: pointer;
  line-height: 1 !important;
}

.bos-auth .card-register .input-group > .js_toggle-password svg,
.bos-welcome .card-register .input-group > .js_toggle-password svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.bos-auth .card-register .input-group:focus-within > .input-group-text,
.bos-auth .card-register .input-group:focus-within > .js_toggle-password,
.bos-welcome .card-register .input-group:focus-within > .input-group-text,
.bos-welcome .card-register .input-group:focus-within > .js_toggle-password {
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-auth-line)) !important;
  background: #fff !important;
}

.bos-auth .card-register .btn-primary,
.bos-welcome .card-register .btn-primary {
  height: 48px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--bos-auth-cta) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-auth .card-register .btn-primary:hover,
.bos-welcome .card-register .btn-primary:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-auth .card-register .form-check-label,
.bos-auth .card-register .text-center,
.bos-welcome .card-register .form-check-label,
.bos-welcome .card-register .text-center {
  font-size: 13px;
  color: var(--bos-auth-muted);
}

.bos-auth .card-register a.text-link,
.bos-auth .card-register a.float-end,
.bos-welcome .card-register a.text-link,
.bos-welcome .card-register a.float-end {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}

.bos-auth .card-register a.text-link:hover,
.bos-auth .card-register a.float-end:hover,
.bos-welcome .card-register a.text-link:hover,
.bos-welcome .card-register a.float-end:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.night-mode .bos-auth .card-register,
body.night-mode .bos-welcome .card-register,
html[data-bs-theme="dark"] .bos-auth .card-register,
html[data-bs-theme="dark"] .bos-welcome .card-register {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-auth .card-register .card-header .card-title,
html[data-bs-theme="dark"] .bos-auth .card-register .card-header .card-title {
  color: #e8eaed;
}

body.night-mode .bos-auth .card-register .form-control,
body.night-mode .bos-auth .card-register .form-select,
body.night-mode .bos-auth .card-register .input-group > .input-group-text,
body.night-mode .bos-auth .card-register .input-group > .js_toggle-password,
html[data-bs-theme="dark"] .bos-auth .card-register .form-control,
html[data-bs-theme="dark"] .bos-auth .card-register .form-select,
html[data-bs-theme="dark"] .bos-auth .card-register .input-group > .input-group-text,
html[data-bs-theme="dark"] .bos-auth .card-register .input-group > .js_toggle-password {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8eaed !important;
}

/* —— Soft activation gate —— */
.bos-activate {
  justify-content: center;
}

.bos-activate-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.bos-activate-card {
  background: #fff;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: none;
}

.bos-activate-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  background: var(--bos-auth-soft, #f6f7f9);
  color: var(--bos-auth-ink, #191b20);
}

.bos-activate-mark .bos-sb-ico,
.bos-activate-mark .main-icon,
.bos-activate-mark .svg-container {
  margin: 0 !important;
}

.bos-activate-title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--bos-auth-ink, #191b20);
}

.bos-activate-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bos-auth-muted, #858b95);
}

.bos-activate-dest {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  background: var(--bos-auth-soft, #f6f7f9);
}

.bos-activate-dest--modal {
  margin-bottom: 14px;
}

.bos-activate-dest-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-auth-muted, #858b95);
}

.bos-activate-dest-value {
  font-size: 14px;
  font-weight: 650;
  color: var(--bos-auth-ink, #191b20);
  word-break: break-all;
}

.bos-activate-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.bos-activate-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--bos-auth-muted, #858b95);
  font-size: 13px;
  line-height: 1.4;
}

.bos-activate-step-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef0f3;
  color: #747b85;
  font-size: 12px;
  font-weight: 700;
}

.bos-activate-step--done {
  color: #3d424b;
}

.bos-activate-step--done .bos-activate-step-num {
  background: color-mix(in srgb, var(--link-color) 16%, #fff);
  color: var(--link-color);
}

.bos-activate-step--current {
  border-color: var(--bos-auth-line, #e9ebef);
  background: #fff;
  color: var(--bos-auth-ink, #191b20);
  font-weight: 550;
}

.bos-activate-step--current .bos-activate-step-num {
  background: var(--bos-auth-cta, #1b1e23);
  color: #fff;
}

.bos-activate-hint {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #9aa1ab;
}

.bos-activate-actions {
  display: grid;
  gap: 10px;
}

.bos-activate-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bos-activate-btn {
  min-height: 46px;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-activate-btn--primary {
  border: 0 !important;
  background: var(--bos-auth-cta, #1b1e23) !important;
  color: #fff !important;
}

.bos-activate-btn--primary:hover {
  background: #111318 !important;
  color: #fff !important;
}

.bos-activate-btn--ghost {
  flex: 1 1 auto;
  border: 1px solid var(--bos-auth-line, #e9ebef) !important;
  background: #fff !important;
  color: var(--bos-auth-ink, #191b20) !important;
}

.bos-activate-btn--ghost:hover {
  background: var(--bos-auth-soft, #f6f7f9) !important;
  border-color: #dde1e7 !important;
  color: var(--bos-auth-ink, #191b20) !important;
}

.bos-activate-modal-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bos-auth-muted, #858b95);
}

.bos-activate-code {
  letter-spacing: 0.28em !important;
  font-weight: 650 !important;
  text-align: center !important;
  font-size: 18px !important;
}

body.night-mode .bos-activate-card,
html[data-bs-theme="dark"] .bos-activate-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-activate-title,
html[data-bs-theme="dark"] .bos-activate-title {
  color: #e8eaed;
}

body.night-mode .bos-activate-dest,
body.night-mode .bos-activate-mark,
html[data-bs-theme="dark"] .bos-activate-dest,
html[data-bs-theme="dark"] .bos-activate-mark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
}

body.night-mode .bos-activate-dest-value,
html[data-bs-theme="dark"] .bos-activate-dest-value {
  color: #e8eaed;
}

body.night-mode .bos-activate-btn--ghost,
html[data-bs-theme="dark"] .bos-activate-btn--ghost {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8eaed !important;
}

/* —— Soft getting-started wizard —— */
.bos-started {
  align-items: center;
  padding-top: 32px;
  padding-bottom: 56px;
}

.bos-started-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.bos-started-intro {
  margin-bottom: 20px;
  max-width: 560px;
}

.bos-started-card {
  background: #fff;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  border-radius: 18px;
  padding: 24px 26px 22px;
}

.bos-started-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bos-started-steps > li {
  min-width: 0;
}

.bos-started-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  background: var(--bos-auth-soft, #f6f7f9);
  color: var(--bos-auth-muted, #858b95) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bos-started-step:hover:not(.disabled) {
  background: #fff;
  border-color: #dde1e7;
  color: var(--bos-auth-ink, #191b20) !important;
}

.bos-started-step.active {
  background: #fff;
  border-color: color-mix(in srgb, var(--link-color) 35%, var(--bos-auth-line, #e9ebef));
  color: var(--bos-auth-ink, #191b20) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 12%, transparent);
}

.bos-started-step.disabled {
  opacity: 0.55;
  pointer-events: none;
}

.bos-started-step-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8eaee;
  color: #747b85;
  font-size: 12px;
  font-weight: 700;
}

.bos-started-step.active .bos-started-step-num {
  background: var(--bos-auth-cta, #1b1e23);
  color: #fff;
}

.bos-started-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bos-started-step-copy strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: inherit;
}

.bos-started-step-copy span {
  font-size: 12px;
  line-height: 1.35;
  color: var(--bos-auth-muted, #858b95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-started-pane-head {
  margin-bottom: 14px;
}

.bos-started-pane-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bos-auth-ink, #191b20);
}

.bos-started-pane-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bos-auth-muted, #858b95);
  max-width: 36ch;
}

/* Step 1: copy left / photo right */
.bos-started-split {
  display: grid;
  gap: 28px;
  align-items: center;
  min-height: 260px;
}

@media (min-width: 768px) {
  .bos-started-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 40px;
  }
}

.bos-started-split-copy {
  min-width: 0;
}

.bos-started-split-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed #dde1e7;
  background: var(--bos-auth-soft, #f6f7f9);
}

.bos-started-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  min-height: 0;
  width: 100%;
}

.bos-started-avatar.profile-avatar-wrapper,
.bos-started .profile-avatar-wrapper.static {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  margin: 0 auto !important;
  transform: none !important;
  padding: 4px !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--bos-auth-line, #e9ebef) !important;
}

.bos-started-avatar img {
  width: 148px !important;
  height: 148px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.bos-started-avatar-hint {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: #9aa1ab;
}

.bos-started-section {
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--bos-auth-line, #e9ebef);
}

.bos-started-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
}

.bos-started-section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bos-auth-muted, #858b95);
}

.bos-started-form .form-group {
  margin-bottom: 12px;
}

.bos-started-form .form-label {
  font-size: 12.5px;
  font-weight: 650;
  color: #515761;
  margin-bottom: 6px;
}

.bos-started-form .form-control,
.bos-started-form .form-select {
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid var(--bos-auth-line, #e9ebef) !important;
  background: var(--bos-auth-soft, #f6f7f9) !important;
  color: var(--bos-auth-ink, #191b20) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}

.bos-started-form .form-control:focus,
.bos-started-form .form-select:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-auth-line, #e9ebef)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 16%, transparent) !important;
}

.bos-started-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.bos-started-actions--start {
  justify-content: flex-start;
  margin-top: 8px;
}

.bos-started-actions--split {
  justify-content: space-between;
}

.bos-started-actions .bos-activate-btn {
  min-width: 120px;
}

.bos-started-people {
  --bs-gutter-x: 12px;
  --bs-gutter-y: 12px;
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.bos-started-people > [class*="col-"] {
  display: flex;
  margin-bottom: 0;
}

.bos-started .ui-box,
.bos-started .ui-box.darker {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 16px 12px 14px !important;
  text-align: center !important;
  background: var(--bos-auth-soft, #f6f7f9) !important;
  border: 1px solid var(--bos-auth-line, #e9ebef) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
}

.bos-started .ui-box .img {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 72px !important;
  height: 72px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid var(--bos-auth-line, #e9ebef);
  flex: 0 0 auto;
}

.bos-started .ui-box .img a {
  display: block;
  width: 100%;
  height: 100%;
}

.bos-started .ui-box .img img,
.bos-started .ui-box img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border-radius: 999px !important;
  object-fit: cover;
}

.bos-started .ui-box .mt10 {
  margin-top: 0 !important;
  width: 100%;
}

.bos-started .ui-box .mt10 + .mt10 {
  margin-top: 10px !important;
}

.bos-started .ui-box .h6,
.bos-started .ui-box .h6 a,
.bos-started .ui-box a.h6 {
  display: inline;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--bos-auth-ink, #191b20) !important;
  text-decoration: none !important;
  word-break: break-word;
}

.bos-started .ui-box .h6 a:hover,
.bos-started .ui-box a.h6:hover {
  color: var(--link-color) !important;
}

.bos-started .ui-box .mt10:has(.btn) {
  margin-top: auto !important;
  padding-top: 10px;
}

.bos-started .ui-box .btn {
  border-radius: 10px !important;
  font-weight: 650;
  box-shadow: none !important;
  white-space: nowrap;
}

.bos-started .ui-box .btn-success {
  background: var(--bos-auth-cta, #1b1e23) !important;
  border: 0 !important;
  color: #fff !important;
}

.bos-started .ui-box .btn-success:hover {
  filter: brightness(1.08);
}

.bos-started .ui-box .btn-light {
  background: #fff !important;
  border: 1px solid var(--bos-auth-line, #e9ebef) !important;
  color: var(--bos-auth-ink, #191b20) !important;
}

.bos-started-section-title {
  margin: 4px 0 12px;
}

#step-3 .bos-started-section-title {
  margin-top: 18px;
}

#step-3 .bos-started-section-title:first-child {
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .bos-started-steps {
    grid-template-columns: 1fr;
  }

  .bos-started-step-copy span {
    white-space: normal;
  }

  .bos-started-split-media {
    order: -1;
    min-height: 180px;
    padding: 16px;
  }

  .bos-started-pane-head p {
    max-width: none;
  }

  .bos-started-actions--split {
    flex-direction: column-reverse;
  }

  .bos-started-actions .bos-activate-btn {
    width: 100%;
  }
}

body.night-mode .bos-started-card,
html[data-bs-theme="dark"] .bos-started-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.night-mode .bos-started-step,
html[data-bs-theme="dark"] .bos-started-step {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-started-step.active,
html[data-bs-theme="dark"] .bos-started-step.active {
  background: rgba(255, 255, 255, 0.06);
  color: #e8eaed !important;
}

body.night-mode .bos-started-pane-head h2,
html[data-bs-theme="dark"] .bos-started-pane-head h2 {
  color: #e8eaed;
}

body.night-mode .bos-started-split-media,
html[data-bs-theme="dark"] .bos-started-split-media {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

body.night-mode .bos-started-form .form-control,
body.night-mode .bos-started-form .form-select,
html[data-bs-theme="dark"] .bos-started-form .form-control,
html[data-bs-theme="dark"] .bos-started-form .form-select {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e8eaed !important;
}

body.night-mode .bos-started .ui-box,
html[data-bs-theme="dark"] .bos-started .ui-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-started .ui-box .img,
html[data-bs-theme="dark"] .bos-started .ui-box .img {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .bos-started .ui-box .h6,
body.night-mode .bos-started .ui-box .h6 a,
body.night-mode .bos-started .ui-box a.h6,
html[data-bs-theme="dark"] .bos-started .ui-box .h6,
html[data-bs-theme="dark"] .bos-started .ui-box .h6 a,
html[data-bs-theme="dark"] .bos-started .ui-box a.h6 {
  color: #e8eaed !important;
}

body.night-mode .bos-started .ui-box .btn-light,
html[data-bs-theme="dark"] .bos-started .ui-box .btn-light {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e8eaed !important;
}

/* —— Soft CookieConsent v3 (#cc-main / .cm / .pm) —— */
#cc-main {
  --cc-font-family: var(--body-font-family) !important;
  --cc-modal-border-radius: 18px;
  --cc-btn-border-radius: 12px;
  --cc-modal-transition-duration: 0.2s;
  --cc-bg: #fff;
  --cc-primary-color: #191b20;
  --cc-secondary-color: #858b95;
  --cc-btn-primary-bg: #1b1e23;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #1b1e23;
  --cc-btn-primary-hover-bg: #111318;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #111318;
  --cc-btn-secondary-bg: #f6f7f9;
  --cc-btn-secondary-color: #515761;
  --cc-btn-secondary-border-color: #e9ebef;
  --cc-btn-secondary-hover-bg: #eef0f3;
  --cc-btn-secondary-hover-color: #191b20;
  --cc-btn-secondary-hover-border-color: #dde1e7;
  --cc-separator-border-color: #e9ebef;
  --cc-toggle-on-bg: #1b1e23;
  --cc-toggle-off-bg: #c5cad3;
  --cc-toggle-on-knob-bg: #fff;
  --cc-toggle-off-knob-bg: #fff;
  --cc-toggle-readonly-bg: #e9ebef;
  --cc-toggle-readonly-knob-bg: #fff;
  --cc-toggle-readonly-knob-icon-color: #c5cad3;
  --cc-section-category-border: #e9ebef;
  --cc-cookie-category-block-bg: #f6f7f9;
  --cc-cookie-category-block-border: #e9ebef;
  --cc-cookie-category-block-hover-bg: #eef0f3;
  --cc-cookie-category-block-hover-border: #dde1e7;
  --cc-cookie-category-expanded-block-bg: transparent;
  --cc-cookie-category-expanded-block-hover-bg: #f6f7f9;
  --cc-overlay-bg: rgba(20, 24, 32, 0.42);
  --cc-webkit-scrollbar-bg: #f6f7f9;
  --cc-webkit-scrollbar-hover-bg: #e9ebef;
  font-family: var(--body-font-family) !important;
  z-index: 2147483000 !important;
}

#cc-main .cm {
  max-width: 380px !important;
  padding: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 24px 48px -20px rgba(20, 24, 32, 0.32) !important;
  overflow: hidden;
}

#cc-main .cm--bottom {
  margin: 0 16px 16px !important;
}

@media (max-width: 767px) {
  #cc-main .cm {
    max-width: none !important;
    width: calc(100vw - 24px) !important;
  }

  #cc-main .cm--bottom {
    margin: 0 12px calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

#cc-main .cm__body {
  padding: 18px 18px 16px !important;
}

#cc-main .cm__texts {
  margin: 0 0 14px !important;
}

#cc-main .cm__title {
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #191b20 !important;
}

#cc-main .cm__desc {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #858b95 !important;
}

#cc-main .cm__btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#cc-main .cm__btn-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
}

#cc-main .cm__btn {
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#cc-main .cm__btn[data-role="all"] {
  background: #1b1e23 !important;
  border-color: #1b1e23 !important;
  color: #fff !important;
}

#cc-main .cm__btn[data-role="all"]:hover {
  background: #111318 !important;
  border-color: #111318 !important;
}

#cc-main .cm__btn[data-role="necessary"] {
  background: #fff !important;
  border: 1px solid #e9ebef !important;
  color: #515761 !important;
}

#cc-main .cm__btn[data-role="necessary"]:hover {
  background: #f6f7f9 !important;
  color: #191b20 !important;
}

#cc-main .cm__btn--secondary,
#cc-main .cm__btn[data-role="show"] {
  background: #f6f7f9 !important;
  border: 1px solid #e9ebef !important;
  color: #747b85 !important;
  font-weight: 650 !important;
}

#cc-main .cm__btn--secondary:hover,
#cc-main .cm__btn[data-role="show"]:hover {
  background: #eef0f3 !important;
  color: #191b20 !important;
}

/* Preferences modal */
#cc-main .pm {
  border: 1px solid #e9ebef !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 28px 56px -22px rgba(20, 24, 32, 0.36) !important;
  overflow: hidden;
}

#cc-main .pm__header {
  padding: 16px 18px !important;
  border-bottom: 1px solid #e9ebef !important;
  background: #f6f7f9 !important;
}

#cc-main .pm__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
}

#cc-main .pm__close-btn {
  border: 1px solid #e9ebef !important;
  border-radius: 10px !important;
  background: #fff !important;
}

#cc-main .pm__body {
  padding: 14px 18px !important;
}

#cc-main .pm__section-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #191b20 !important;
}

#cc-main .pm__section-desc {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #858b95 !important;
}

#cc-main .pm__footer {
  padding: 14px 18px !important;
  border-top: 1px solid #e9ebef !important;
  background: #fafbfc !important;
  gap: 8px !important;
}

#cc-main .pm__btn {
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* Dark / night */
html.cc--darkmode #cc-main,
body.night-mode #cc-main,
html[data-bs-theme="dark"] #cc-main {
  --cc-bg: var(--card-dark-color, #262d34);
  --cc-primary-color: #e8eaed;
  --cc-secondary-color: #9aa6b2;
  --cc-btn-primary-bg: #e8eaed;
  --cc-btn-primary-color: #111318;
  --cc-btn-primary-border-color: #e8eaed;
  --cc-btn-primary-hover-bg: #fff;
  --cc-btn-primary-hover-color: #111318;
  --cc-btn-primary-hover-border-color: #fff;
  --cc-btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --cc-btn-secondary-color: #c1d4e3;
  --cc-btn-secondary-border-color: rgba(255, 255, 255, 0.1);
  --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.1);
  --cc-btn-secondary-hover-color: #e8eaed;
  --cc-separator-border-color: rgba(255, 255, 255, 0.1);
  --cc-toggle-on-bg: var(--link-color);
  --cc-cookie-category-block-bg: rgba(255, 255, 255, 0.04);
  --cc-cookie-category-block-border: rgba(255, 255, 255, 0.1);
  --cc-overlay-bg: rgba(0, 0, 0, 0.55);
}

html.cc--darkmode #cc-main .cm,
body.night-mode #cc-main .cm,
html[data-bs-theme="dark"] #cc-main .cm,
html.cc--darkmode #cc-main .pm,
body.night-mode #cc-main .pm,
html[data-bs-theme="dark"] #cc-main .pm {
  background: var(--card-dark-color, #262d34) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.cc--darkmode #cc-main .cm__title,
html.cc--darkmode #cc-main .pm__title,
body.night-mode #cc-main .cm__title,
html[data-bs-theme="dark"] #cc-main .cm__title {
  color: #e8eaed !important;
}

html.cc--darkmode #cc-main .cm__desc,
body.night-mode #cc-main .cm__desc,
html[data-bs-theme="dark"] #cc-main .cm__desc {
  color: #9aa6b2 !important;
}

html.cc--darkmode #cc-main .cm__btn[data-role="all"],
body.night-mode #cc-main .cm__btn[data-role="all"],
html[data-bs-theme="dark"] #cc-main .cm__btn[data-role="all"] {
  background: #e8eaed !important;
  border-color: #e8eaed !important;
  color: #111318 !important;
}

html.cc--darkmode #cc-main .cm__btn[data-role="necessary"],
html.cc--darkmode #cc-main .cm__btn--secondary,
html.cc--darkmode #cc-main .cm__btn[data-role="show"],
body.night-mode #cc-main .cm__btn[data-role="necessary"],
body.night-mode #cc-main .cm__btn--secondary,
html[data-bs-theme="dark"] #cc-main .cm__btn[data-role="necessary"],
html[data-bs-theme="dark"] #cc-main .cm__btn--secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #c1d4e3 !important;
}

html.cc--darkmode #cc-main .pm__header,
html.cc--darkmode #cc-main .pm__footer,
body.night-mode #cc-main .pm__header,
body.night-mode #cc-main .pm__footer,
html[data-bs-theme="dark"] #cc-main .pm__header,
html[data-bs-theme="dark"] #cc-main .pm__footer {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   Ads Manager — soft shell (list + new/edit)
   ========================================================================== */
.bos-ads {
  --bos-ads-ink: #191b20;
  --bos-ads-muted: #858b95;
  --bos-ads-line: #e9ebef;
  --bos-ads-soft: #f6f7f9;
  --bos-ads-cta: #1b1e23;
  padding-top: 18px;
  padding-bottom: 40px;
}

.bos-ads-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 4px 2px 2px;
}

.bos-ads-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bos-ads-muted);
}

.bos-ads-hero-copy h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--bos-ads-ink);
  line-height: 1.15;
}

.bos-ads-hero-copy > p:last-child {
  margin: 0;
  font-size: 14px;
  color: var(--bos-ads-muted);
  max-width: 42ch;
  line-height: 1.45;
}

.bos-ads-hero-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.bos-ads-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--bos-ads-line);
  border-radius: 14px;
  background: #fff;
}

.bos-ads-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--bos-ads-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.bos-ads-tabs a .main-icon,
.bos-ads-tabs a .svg-container,
.bos-ads-tabs a i {
  color: inherit;
  opacity: 0.85;
}

.bos-ads-tabs a:hover {
  color: var(--bos-ads-ink);
  background: var(--bos-ads-soft);
}

.bos-ads-tabs a.active {
  color: #fff;
  background: var(--bos-ads-cta);
}

.bos-ads-tabs a.active .main-icon,
.bos-ads-tabs a.active .svg-container,
.bos-ads-tabs a.active i {
  color: #fff;
  opacity: 1;
}

.bos-ads-adblock {
  margin-bottom: 16px !important;
  border-radius: 12px !important;
  border: 1px solid color-mix(in srgb, #d97706 22%, var(--bos-ads-line)) !important;
  background: color-mix(in srgb, #f59e0b 10%, #fff) !important;
  color: #5c4a2e !important;
  font-size: 13px;
  line-height: 1.45;
}

.bos-ads-panel {
  border: 1px solid var(--bos-ads-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.bos-ads-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bos-ads-line);
  background: #fff;
}

.bos-ads-panel-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bos-ads-ink);
}

.bos-ads-panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--bos-ads-muted);
  line-height: 1.4;
}

.bos-ads-panel-body {
  padding: 18px;
}

.bos-ads-cta,
.bos-ads .btn.bos-ads-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 11px !important;
  border: 1px solid var(--bos-ads-line) !important;
  background: var(--bos-ads-soft) !important;
  color: var(--bos-ads-ink) !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
}

.bos-ads-cta:hover,
.bos-ads .btn.bos-ads-cta:hover {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 28%, var(--bos-ads-line)) !important;
  color: var(--bos-ads-ink) !important;
}

.bos-ads-cta--solid,
.bos-ads .btn.bos-ads-cta--solid {
  background: var(--bos-ads-cta) !important;
  border-color: var(--bos-ads-cta) !important;
  color: #fff !important;
}

.bos-ads-cta--solid:hover,
.bos-ads .btn.bos-ads-cta--solid:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.bos-ads-ghost,
.bos-ads .btn.bos-ads-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 11px !important;
  border: 1px solid var(--bos-ads-line) !important;
  background: #fff !important;
  color: var(--bos-ads-ink) !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
}

.bos-ads-ghost:hover,
.bos-ads .btn.bos-ads-ghost:hover {
  background: var(--bos-ads-soft) !important;
}

.bos-ads-table-wrap {
  margin: 0 -6px;
}

.bos-ads-table {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
}

.bos-ads-table thead th {
  border: 0 !important;
  border-bottom: 1px solid var(--bos-ads-line) !important;
  background: var(--bos-ads-soft) !important;
  color: var(--bos-ads-muted) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 12px 14px !important;
}

.bos-ads-table tbody td {
  border: 0 !important;
  border-bottom: 1px solid var(--bos-ads-line) !important;
  vertical-align: middle !important;
  padding: 14px !important;
  font-size: 13.5px;
  color: var(--bos-ads-ink);
  background: #fff !important;
}

.bos-ads-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.bos-ads-table tbody tr:hover td {
  background: color-mix(in srgb, var(--bos-ads-soft) 70%, #fff) !important;
}

.bos-ads-muted {
  color: var(--bos-ads-muted) !important;
  font-size: 13px;
}

.bos-ads-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--bos-ads-line);
  background: var(--bos-ads-soft);
  color: var(--bos-ads-ink);
  font-size: 12px;
  font-weight: 650;
}

.bos-ads-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.bos-ads-status--ok {
  background: color-mix(in srgb, #16a34a 12%, #fff);
  border-color: color-mix(in srgb, #16a34a 22%, var(--bos-ads-line));
  color: #166534;
}

.bos-ads-status--warn {
  background: color-mix(in srgb, #f59e0b 12%, #fff);
  border-color: color-mix(in srgb, #d97706 22%, var(--bos-ads-line));
  color: #92400e;
}

.bos-ads-status--danger {
  background: color-mix(in srgb, #dc2626 10%, #fff);
  border-color: color-mix(in srgb, #dc2626 22%, var(--bos-ads-line));
  color: #991b1b;
}

.bos-ads-status--muted {
  background: var(--bos-ads-soft);
  border-color: var(--bos-ads-line);
  color: var(--bos-ads-muted);
}

.bos-ads-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bos-ads-icon-btn,
.bos-ads .btn.bos-ads-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  border: 1px solid var(--bos-ads-line) !important;
  background: var(--bos-ads-soft) !important;
  color: var(--bos-ads-ink) !important;
  box-shadow: none !important;
}

.bos-ads-icon-btn:hover,
.bos-ads .btn.bos-ads-icon-btn:hover {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 30%, var(--bos-ads-line)) !important;
}

.bos-ads-icon-btn--ok { color: #166534 !important; }
.bos-ads-icon-btn--warn { color: #92400e !important; }
.bos-ads-icon-btn--danger { color: #991b1b !important; }

.bos-ads-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 12px 12px;
  text-align: center;
}

.bos-ads-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--bos-ads-line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--bos-ads-ink);
}

.bos-ads-notice a {
  color: var(--link-color);
  font-weight: 650;
}

.bos-ads-notice--danger {
  background: color-mix(in srgb, #dc2626 8%, #fff);
  border-color: color-mix(in srgb, #dc2626 22%, var(--bos-ads-line));
}

.bos-ads-notice--warn {
  background: color-mix(in srgb, #f59e0b 10%, #fff);
  border-color: color-mix(in srgb, #d97706 22%, var(--bos-ads-line));
  color: #5c4a2e;
}

.bos-ads-section-title {
  margin: 8px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bos-ads-line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bos-ads-ink);
}

.bos-ads-form-card .form-group {
  margin-bottom: 14px;
}

.bos-ads-form-card .form-label {
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 650;
  color: #515761;
  letter-spacing: -0.01em;
}

.bos-ads-form-card .form-control,
.bos-ads-form-card .form-select {
  height: 46px !important;
  border-radius: 12px !important;
  border: 1px solid var(--bos-ads-line) !important;
  background: var(--bos-ads-soft) !important;
  color: var(--bos-ads-ink) !important;
  font-size: 14px !important;
  box-shadow: none !important;
  padding: 0 14px !important;
}

.bos-ads-form-card textarea.form-control {
  height: auto !important;
  min-height: 96px;
  padding: 12px 14px !important;
}

.bos-ads-form-card select[multiple].form-select {
  height: auto !important;
  min-height: 120px;
  padding: 10px 12px !important;
}

.bos-ads-form-card .form-control:focus,
.bos-ads-form-card .form-select:focus {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 55%, var(--bos-ads-line)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 16%, transparent) !important;
}

.bos-ads-form-card .form-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bos-ads-muted);
}

.bos-ads-form-card .input-money {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.bos-ads-form-card .input-money > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--bos-ads-line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: var(--bos-ads-muted);
  font-weight: 700;
  font-size: 13px;
}

.bos-ads-form-card .input-money.rtl > span,
.bos-ads-form-card .input-money[class*="rtl"] > span {
  border-right: 1px solid var(--bos-ads-line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.bos-ads-form-card .input-money .form-control {
  border-radius: 0 12px 12px 0 !important;
}

.bos-ads-reach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--bos-ads-line);
  background: var(--bos-ads-soft);
  color: var(--bos-ads-muted);
  font-size: 13px;
  font-weight: 650;
}

.bos-ads-reach-num {
  color: var(--bos-ads-ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.bos-ads-form-card .x-image {
  border-radius: 14px !important;
  border: 1px dashed color-mix(in srgb, var(--bos-ads-muted) 35%, var(--bos-ads-line)) !important;
  background: var(--bos-ads-soft) !important;
}

.bos-ads-preview {
  border: 1px solid var(--bos-ads-line);
  border-radius: 14px;
  background: var(--bos-ads-soft);
  overflow: hidden;
  padding: 12px;
}

.bos-ads-preview-copy {
  padding: 10px 4px 2px;
}

.bos-ads-preview .ads-title {
  margin: 0 0 4px;
  font-weight: 700;
}

.bos-ads-preview .ads-title a {
  color: var(--bos-ads-ink);
  text-decoration: none;
}

.bos-ads-preview .ads-descrition {
  margin: 0;
  color: var(--bos-ads-muted);
  font-size: 13px;
  line-height: 1.45;
}

.bos-ads-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--bos-ads-line);
  background: var(--bos-ads-soft);
}

@media (max-width: 767.98px) {
  .bos-ads-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .bos-ads-hero-copy h1 {
    font-size: 24px;
  }

  .bos-ads-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bos-ads-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

body.night-mode .bos-ads,
html[data-bs-theme="dark"] .bos-ads {
  --bos-ads-ink: #f3f4f6;
  --bos-ads-muted: #9ca3af;
  --bos-ads-line: rgba(255, 255, 255, 0.1);
  --bos-ads-soft: rgba(255, 255, 255, 0.04);
  --bos-ads-cta: #f3f4f6;
}

body.night-mode .bos-ads-panel,
body.night-mode .bos-ads-tabs,
html[data-bs-theme="dark"] .bos-ads-panel,
html[data-bs-theme="dark"] .bos-ads-tabs {
  background: rgba(255, 255, 255, 0.02);
}

body.night-mode .bos-ads-tabs a.active,
html[data-bs-theme="dark"] .bos-ads-tabs a.active {
  background: #fff;
  color: #111;
}

body.night-mode .bos-ads-cta--solid,
html[data-bs-theme="dark"] .bos-ads-cta--solid {
  background: #fff !important;
  border-color: #fff !important;
  color: #111 !important;
}

body.night-mode .bos-ads-table tbody td,
html[data-bs-theme="dark"] .bos-ads-table tbody td {
  background: transparent !important;
}

/* ==========================================================================
   Soft error pages (404 / permission / banned)
   ========================================================================== */
.bos-error-page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.bos-error {
  --bos-err-ink: #191b20;
  --bos-err-muted: #858b95;
  --bos-err-line: #e9ebef;
  --bos-err-soft: #f6f7f9;
  --bos-err-cta: #1b1e23;
  display: flex;
  justify-content: center;
  padding: 28px 8px 12px;
}

.bos-error-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 28px 22px 22px;
  border: 1px solid var(--bos-err-line);
  border-radius: 20px;
  background: #fff;
}

.bos-error-orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bos-err-line);
  background: var(--bos-err-soft);
  color: var(--bos-err-muted);
  font-size: 22px;
}

.bos-error-code {
  margin: 0 0 6px;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bos-err-ink);
}

.bos-error-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bos-err-ink);
}

.bos-error-lead {
  margin: 0 auto 10px;
  max-width: 38ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--bos-err-muted);
}

.bos-error-lead a {
  color: var(--link-color);
  font-weight: 650;
}

.bos-error-hint {
  margin: 0 auto 18px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--bos-err-muted);
}

.bos-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.bos-error-cta,
.bos-error .btn.bos-error-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px !important;
  border: 1px solid var(--bos-err-line) !important;
  background: var(--bos-err-soft) !important;
  color: var(--bos-err-ink) !important;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none !important;
}

.bos-error-cta:hover,
.bos-error .btn.bos-error-cta:hover {
  background: #fff !important;
  border-color: color-mix(in srgb, var(--link-color) 28%, var(--bos-err-line)) !important;
}

.bos-error-cta--solid,
.bos-error .btn.bos-error-cta--solid {
  background: var(--bos-err-cta) !important;
  border-color: var(--bos-err-cta) !important;
  color: #fff !important;
}

.bos-error-cta--solid:hover,
.bos-error .btn.bos-error-cta--solid:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

body.night-mode .bos-error,
html[data-bs-theme="dark"] .bos-error {
  --bos-err-ink: #f3f4f6;
  --bos-err-muted: #9ca3af;
  --bos-err-line: rgba(255, 255, 255, 0.1);
  --bos-err-soft: rgba(255, 255, 255, 0.04);
  --bos-err-cta: #f3f4f6;
}

body.night-mode .bos-error-card,
html[data-bs-theme="dark"] .bos-error-card {
  background: rgba(255, 255, 255, 0.02);
}

body.night-mode .bos-error-cta--solid,
html[data-bs-theme="dark"] .bos-error-cta--solid {
  color: #111 !important;
}

body.night-mode .bos-error-cta--solid:hover,
html[data-bs-theme="dark"] .bos-error-cta--solid:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #111 !important;
}

/* ==========================================================================
   Soft reaction picker (minimal) + stats
   ========================================================================== */
.reactions-container.bos-reactions,
.bos-reactions.reactions-container {
  --bos-rx-ink: #191b20;
  --bos-rx-muted: #858b95;
  --bos-rx-line: #e9ebef;
  --bos-rx-soft: #f6f7f9;
  display: none;
  position: fixed;
  z-index: 1080;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  width: auto !important;
  max-width: calc(100vw - 20px);
  height: auto !important;
  padding: 4px !important;
  margin: 0;
  border: 1px solid var(--bos-rx-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow:
    0 4px 6px -2px rgba(20, 24, 32, 0.04),
    0 18px 36px -18px rgba(20, 24, 32, 0.22) !important;
  overflow: visible;
  font-family: var(--body-font-family, Poppins, Helvetica, sans-serif);
  -webkit-animation: bosRxBarIn 0.16s ease both;
  animation: bosRxBarIn 0.16s ease both;
}

body.night-mode .reactions-container.bos-reactions,
html[data-bs-theme="dark"] .reactions-container.bos-reactions {
  --bos-rx-ink: #e8eaed;
  --bos-rx-muted: #94a3b8;
  --bos-rx-line: rgba(255, 255, 255, 0.1);
  --bos-rx-soft: rgba(255, 255, 255, 0.06);
  background: var(--card-dark-color, #262d34) !important;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.5) !important;
}

.bos-reactions .reactions_item {
  position: relative;
  float: none !important;
  flex: 0 0 auto;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 10px;
  cursor: pointer;
  transform: none !important;
  transition: background 0.12s ease, transform 0.12s ease;
  animation: none !important;
  -webkit-animation: none !important;
}

.bos-reactions .reactions_item:hover,
.bos-reactions .reactions_item:focus-visible {
  background: var(--bos-rx-soft);
  transform: translateY(-1px) scale(1.06) !important;
  outline: none;
  z-index: 2;
}

/* Minimal title chip */
.bos-reactions .reactions_item:after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translate(-50%, -100%);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid var(--bos-rx-line);
  background: #fff;
  color: var(--bos-rx-ink);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: none;
  box-shadow: 0 6px 14px -10px rgba(20, 24, 32, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s ease;
}

body.night-mode .bos-reactions .reactions_item:after,
html[data-bs-theme="dark"] .bos-reactions .reactions_item:after {
  background: #1a1d22;
  color: #f3f4f6;
}

.bos-reactions .reactions_item:hover:after,
.bos-reactions .reactions_item:focus-visible:after {
  opacity: 1;
  visibility: visible;
}

/* Drop Sngine 120px+scale hack — real-size emoji in soft cell */
.bos-reactions .reactions_item .emoji {
  pointer-events: none;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  display: block !important;
  overflow: visible;
}

.bos-reactions .reactions_item .emoji img,
.bos-reactions .reactions_item img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
  transform-origin: center center !important;
}

.bos-reactions .reactions_item:hover .emoji img,
.bos-reactions .reactions_item:hover img {
  animation: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
  .reactions-container.bos-reactions,
  .bos-reactions .reactions_item {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 480px) {
  .reactions-container.bos-reactions {
    max-width: calc(100vw - 16px);
    padding: 3px !important;
    border-radius: 12px !important;
  }

  .bos-reactions .reactions_item {
    width: 34px !important;
    height: 34px !important;
  }

  .bos-reactions .reactions_item .emoji,
  .bos-reactions .reactions_item .emoji img,
  .bos-reactions .reactions_item img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
}

/* Soft reaction stats chips under posts */
.post.bos-post .reactions-stats {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  padding: 2px 8px 2px 4px;
  border-radius: 999px;
  border: 1px solid var(--bos-post-line, #e9ebef);
  background: var(--bos-post-soft, #f6f7f9);
}

.post.bos-post .reactions-stats > .reactions-stats-item {
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.post.bos-post .reactions-stats .inline-emoji,
.post.bos-post .reactions-stats .inline-emoji .emoji {
  width: 16px !important;
  height: 16px !important;
}

.post.bos-post .reactions-stats .inline-emoji .emoji {
  top: auto !important;
  right: auto !important;
  transform: none !important;
  position: relative !important;
}

.post.bos-post .reactions-stats .inline-emoji .emoji img {
  width: 16px !important;
  height: 16px !important;
}

.post.bos-post .reactions-stats > span {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 650;
  color: #747b85;
}

/* ==========================================================================
   Soft share modal
   ========================================================================== */
.bos-share-section-title {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #858b95;
  text-align: center;
}

.bos-share-link {
  margin: 0 0 14px;
}

.bos-share-modal .bos-share-link .input-group,
.bos-modal-body .bos-share-link .input-group {
  flex-wrap: nowrap;
  border: 1px solid #e9ebef;
  border-radius: 12px;
  background: #fafbfc;
  overflow: hidden;
}

.bos-share-modal .bos-share-link .form-control,
.bos-modal-body .bos-share-link .form-control {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #515761 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.bos-share-modal .bos-share-link .form-control:disabled,
.bos-modal-body .bos-share-link .form-control:disabled {
  opacity: 1;
  -webkit-text-fill-color: #515761;
}

.bos-share-copy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px !important;
  border: 0 !important;
  border-left: 1px solid #e9ebef !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #747b85 !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
}

.bos-share-copy:hover {
  background: #f6f7f9 !important;
  color: #191b20 !important;
}

.bos-share-social.post-social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 16px !important;
  margin: 0 0 14px !important;
  border-bottom: 1px solid #e9ebef !important;
}

.bos-share-social .btn-icon-social {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  line-height: 1 !important;
  margin: 0 !important;
  border: 1px solid #e9ebef !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.bos-share-social .btn-icon-social:hover {
  background: #f6f7f9 !important;
  border-color: #dde1e7 !important;
  transform: translateY(-1px);
}

.bos-share-social .btn-icon-social .svg-container {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

.bos-share-social .btn-icon-social svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.bos-share-dest {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.bos-share-dest .bos-share-dest-item.button-label,
.bos-share-dest .button-label.bos-share-dest-item {
  float: none !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 92px !important;
  min-height: 86px;
  margin: 0 !important;
  padding: 12px 8px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bos-share-dest .bos-share-dest-item:hover {
  background: #f6f7f9 !important;
  border-color: #dde1e7 !important;
}

.bos-share-dest .bos-share-dest-item .icon {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  background: #f6f7f9 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.bos-share-dest .bos-share-dest-item .icon .svg-container,
.bos-share-dest .bos-share-dest-item .icon .main-icon {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.bos-share-dest .bos-share-dest-item .icon svg {
  width: 18px !important;
  height: 18px !important;
}

.bos-share-dest .bos-share-dest-item .icon path,
.bos-share-dest .bos-share-dest-item .icon *[fill]:not([fill="none"]) {
  fill: #747b85 !important;
}

.bos-share-dest .bos-share-dest-item .title {
  margin: 0 !important;
  font-size: 11.5px !important;
  font-weight: 650 !important;
  color: #515761 !important;
  line-height: 1.2;
}

.bos-share-dest .input-label:checked + .bos-share-dest-item {
  border-color: color-mix(in srgb, var(--link-color) 45%, #e9ebef) !important;
  background: color-mix(in srgb, var(--link-color) 8%, #fff) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 10%, transparent) !important;
}

.bos-share-dest .input-label:checked + .bos-share-dest-item .icon {
  background: color-mix(in srgb, var(--link-color) 14%, #fff) !important;
}

.bos-share-dest .input-label:checked + .bos-share-dest-item .icon path,
.bos-share-dest .input-label:checked + .bos-share-dest-item .icon *[fill]:not([fill="none"]) {
  fill: var(--link-color) !important;
}

.bos-share-dest .input-label:checked + .bos-share-dest-item .title {
  color: #191b20 !important;
}

.bos-share-embed {
  margin: 0 0 14px;
}

.bos-share-embed-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  resize: none !important;
  background: #f6f7f9 !important;
}

.bos-share-embed-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.bos-share-embed-actions .bos-share-copy {
  height: 34px;
  min-width: auto;
  padding: 0 12px !important;
  border: 1px solid #e9ebef !important;
  border-radius: 10px !important;
}

body.night-mode .bos-share-section-title,
html[data-bs-theme="dark"] .bos-share-section-title {
  color: #94a3b8;
}

body.night-mode .bos-share-modal .bos-share-link .input-group,
body.night-mode .bos-modal-body .bos-share-link .input-group,
html[data-bs-theme="dark"] .bos-share-modal .bos-share-link .input-group,
html[data-bs-theme="dark"] .bos-modal-body .bos-share-link .input-group {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body.night-mode .bos-share-modal .bos-share-link .form-control,
body.night-mode .bos-modal-body .bos-share-link .form-control,
html[data-bs-theme="dark"] .bos-share-modal .bos-share-link .form-control,
html[data-bs-theme="dark"] .bos-modal-body .bos-share-link .form-control {
  color: #c1d4e3 !important;
  -webkit-text-fill-color: #c1d4e3;
}

body.night-mode .bos-share-copy,
html[data-bs-theme="dark"] .bos-share-copy {
  border-left-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
}

body.night-mode .bos-share-copy:hover,
html[data-bs-theme="dark"] .bos-share-copy:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e8eaed !important;
}

body.night-mode .bos-share-social.post-social-share,
html[data-bs-theme="dark"] .bos-share-social.post-social-share {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .bos-share-social .btn-icon-social,
html[data-bs-theme="dark"] .bos-share-social .btn-icon-social {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

body.night-mode .bos-share-social .btn-icon-social:hover,
html[data-bs-theme="dark"] .bos-share-social .btn-icon-social:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .bos-share-dest .bos-share-dest-item,
html[data-bs-theme="dark"] .bos-share-dest .bos-share-dest-item {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

body.night-mode .bos-share-dest .bos-share-dest-item .icon,
html[data-bs-theme="dark"] .bos-share-dest .bos-share-dest-item .icon {
  background: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .bos-share-dest .bos-share-dest-item .icon path,
body.night-mode .bos-share-dest .bos-share-dest-item .icon *[fill]:not([fill="none"]),
html[data-bs-theme="dark"] .bos-share-dest .bos-share-dest-item .icon path,
html[data-bs-theme="dark"] .bos-share-dest .bos-share-dest-item .icon *[fill]:not([fill="none"]) {
  fill: #94a3b8 !important;
}

body.night-mode .bos-share-dest .bos-share-dest-item .title,
html[data-bs-theme="dark"] .bos-share-dest .bos-share-dest-item .title {
  color: #c1d4e3 !important;
}

body.night-mode .bos-share-dest .input-label:checked + .bos-share-dest-item,
html[data-bs-theme="dark"] .bos-share-dest .input-label:checked + .bos-share-dest-item {
  background: color-mix(in srgb, var(--link-color) 16%, transparent) !important;
}

body.night-mode .bos-share-embed-code,
html[data-bs-theme="dark"] .bos-share-embed-code {
  background: rgba(255, 255, 255, 0.04) !important;
}
