/* ========================================================================
   CodeLinSoft Nova 4.9.12 — unified bbPress layout matching the forum index.
   Applies to forum pages, topics, replies, searches and user pages.
   ======================================================================== */

body.cls-bbp-unified {
  --cls-bbp-blue: #0787f9;
  --cls-bbp-blue-2: #29b1ff;
  --cls-bbp-ink: #0f1a39;
  --cls-bbp-muted: #617092;
  --cls-bbp-line: #d9e8f5;
  --cls-bbp-soft: #f7fbff;
}

body.cls-bbp-unified .cls-main--bbpress { padding-top: 24px; padding-bottom: 32px; }
body.cls-bbp-unified .cls-main--bbpress > .cls-shell { width: min(100% - 36px, 1560px); max-width: 1560px; }
body.cls-bbp-unified .cls-component-card--bbpress {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}

body.cls-bbp-unified .bbp-hub-shell {
  --bbp-bg: transparent;
  --bbp-surface: #fff;
  --bbp-border: var(--cls-bbp-line);
  --bbp-text: var(--cls-bbp-ink);
  --bbp-text-soft: var(--cls-bbp-muted);
  --bbp-primary: var(--cls-bbp-blue);
  --bbp-primary-dark: #056ed0;
  --bbp-shadow: 0 8px 22px rgba(14, 55, 92, 0.06);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--bbp-text);
  font-family: "Cantarell", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.cls-bbp-unified .bbp-hub-shell,
body.cls-bbp-unified .bbp-hub-shell input,
body.cls-bbp-unified .bbp-hub-shell button,
body.cls-bbp-unified .bbp-hub-shell textarea,
body.cls-bbp-unified .bbp-hub-shell select {
  font-family: inherit;
}

body.cls-bbp-unified .bbp-hub-toolbar {
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--cls-bbp-line);
}
body.cls-bbp-unified .bbp-hub-toolbar__left { flex: 1 1 auto; min-width: 0; }
body.cls-bbp-unified .bbp-hub-toolbar__right { flex: 0 0 auto; }
body.cls-bbp-unified .bbp-hub-sidebar-toggle { display: none !important; }
body.cls-bbp-unified .bbp-hub-new-topic-btn,
body.cls-bbp-unified .bbp-btn,
body.cls-bbp-unified .bbp-hub-toolbar .bbp-btn--primary {
  border-radius: 12px;
}
body.cls-bbp-unified .bbp-hub-layout,
body.cls-bbp-unified .bbp-hub-layout--full {
  display: block;
}
body.cls-bbp-unified .bbp-hub-sidebar { display: none !important; }
body.cls-bbp-unified .bbp-hub-page { gap: 18px; }

body.cls-bbp-unified .bbp-hub-hero,
body.cls-bbp-unified .bbp-hub-section,
body.cls-bbp-unified .bbp-hub-panel,
body.cls-bbp-unified .bbp-user-panel,
body.cls-bbp-unified .bbp-user-tabs-wrap,
body.cls-bbp-unified .bbp-topic-card,
body.cls-bbp-unified .bbp-reply-card,
body.cls-bbp-unified .bbp-search-card,
body.cls-bbp-unified .bbp-iv-searchrow,
body.cls-bbp-unified .bbp-forum-grid-item,
body.cls-bbp-unified .bbp-widget,
body.cls-bbp-unified .k-card.card {
  border: 1px solid var(--cls-bbp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(14, 55, 92, 0.05);
}

body.cls-bbp-unified .bbp-hub-hero {
  padding: 28px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5fbff 100%);
}
body.cls-bbp-unified .bbp-hub-breadcrumbs {
  margin-bottom: 12px;
  color: #6281a2;
  font-size: 13px;
}
body.cls-bbp-unified .bbp-hub-title {
  color: #10234a;
  font-size: clamp(30px, 2.2vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
body.cls-bbp-unified .bbp-hub-subtitle {
  color: #607497;
  font-size: 15px;
}
body.cls-bbp-unified .bbp-hub-subtitle--meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
body.cls-bbp-unified .bbp-dot { color: #8ea2c0; }
body.cls-bbp-unified .bbp-date { color: #617092; }

body.cls-bbp-unified .bbp-hub-section { padding: 20px 22px; }
body.cls-bbp-unified .bbp-hub-section__head { margin-bottom: 18px; }
body.cls-bbp-unified .bbp-hub-section__title {
  color: #142448;
  font-size: clamp(21px, 1.35vw, 28px);
  letter-spacing: -0.02em;
}
body.cls-bbp-unified .bbp-hub-empty {
  padding: 22px;
  border: 1px dashed var(--cls-bbp-line);
  border-radius: 14px;
  background: var(--cls-bbp-soft);
}

body.cls-bbp-unified .bbp-hub-auxgrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
body.cls-bbp-unified .bbp-hub-panel {
  grid-column: span 4;
  padding: 18px 20px;
  min-width: 0;
}
body.cls-bbp-unified .bbp-hub-panel--topicmeta,
body.cls-bbp-unified .bbp-hub-panel--widgets {
  grid-column: span 8;
}
body.cls-bbp-unified .bbp-hub-panel__title {
  margin: 0 0 12px;
  color: #13264c;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.cls-bbp-unified .bbp-hub-panel .bbp-hub-widget__title,
body.cls-bbp-unified .bbp-hub-panel .bbp-widget__title {
  margin: 0 0 12px;
  color: #13264c;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.cls-bbp-unified .bbp-hub-panel .bbp-hub-widget__body { padding: 0; }
body.cls-bbp-unified .bbp-hub-panel--feedback:empty { display: none; }
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta {
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta__icon { display: none; }
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta__content { padding: 0; }
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta__title { margin-bottom: 8px; color: #13264c; }
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta__desc { color: #607497; }
body.cls-bbp-unified .bbp-hub-panel--feedback .bbp-guest-cta__btn { margin-top: 12px; }

body.cls-bbp-unified .bbp-hub-panel .bbp-widget {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
body.cls-bbp-unified .bbp-hub-panel .bbp-widget + .bbp-widget {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cls-bbp-line);
}

body.cls-bbp-unified .bbp-stat-card {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.cls-bbp-unified .bbp-stat-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid #e6edf5;
}
body.cls-bbp-unified .bbp-stat-card__row:first-child { border-top: 0; padding-top: 0; }
body.cls-bbp-unified .bbp-stat-card__row--stack {
  display: block;
}
body.cls-bbp-unified .bbp-stat-card__label { color: #63728f; }
body.cls-bbp-unified .bbp-stat-card__value { color: #162847; font-size: 28px; font-weight: 800; }
body.cls-bbp-unified .bbp-stat-card__link,
body.cls-bbp-unified .bbp-stat-card__userlink { color: #2160d4; font-weight: 700; }
body.cls-bbp-unified .bbp-stat-card__online-list { margin-top: 8px; color: #46608f; }

body.cls-bbp-unified .bbp-search-form__inner {
  align-items: stretch;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--cls-bbp-line);
  border-radius: 12px;
  background: var(--cls-bbp-soft);
}
body.cls-bbp-unified .bbp-search-form__field input[type="search"] {
  height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.cls-bbp-unified .bbp-search-form__action input[type="submit"] {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, #1498ff 0%, #067be8 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(7, 135, 249, 0.18);
}

body.cls-bbp-unified .bbp-topic-list-wrap,
body.cls-bbp-unified .bbp-replies,
body.cls-bbp-unified #bbp-search-results,
body.cls-bbp-unified .bbp-user-section {
  display: grid;
  gap: 16px;
}
body.cls-bbp-unified .bbp-topic-card,
body.cls-bbp-unified .bbp-reply-card,
body.cls-bbp-unified .bbp-search-card,
body.cls-bbp-unified .bbp-iv-searchrow { box-shadow: 0 6px 18px rgba(14, 55, 92, 0.05); }
body.cls-bbp-unified .bbp-topic-card__title a,
body.cls-bbp-unified .bbp-search-card__title a,
body.cls-bbp-unified .bbp-reply-card__date { color: #142448; }
body.cls-bbp-unified .bbp-topic-card__title a:hover,
body.cls-bbp-unified .bbp-search-card__title a:hover { color: var(--cls-bbp-blue); }
body.cls-bbp-unified .bbp-topic-card__stat,
body.cls-bbp-unified .bbp-search-card__stat {
  min-width: 72px;
  border-radius: 14px;
  background: #f5f8fc;
}
body.cls-bbp-unified .bbp-topic-card__forum,
body.cls-bbp-unified .bbp-search-card__forum,
body.cls-bbp-unified .bbp-topic-card__freshness a,
body.cls-bbp-unified .bbp-search-card__freshness a { color: #2663d9; }
body.cls-bbp-unified .bbp-topic-card__foot .bbp-btn {
  background: #f6fafc;
  border: 1px solid var(--cls-bbp-line);
  color: #1f355f;
}
body.cls-bbp-unified .bbp-topic-card__foot .bbp-btn:hover { background: #edf5fc; }

body.cls-bbp-unified .bbp-reply-card__head,
body.cls-bbp-unified .bbp-reply-card__body,
body.cls-bbp-unified .bbp-reply-card__foot { padding-left: 22px; padding-right: 22px; }
body.cls-bbp-unified .bbp-reply-card__content { color: #21314f; font-size: 16px; line-height: 1.72; }
body.cls-bbp-unified .bbp-reply-card__actions a { color: #6c7894; }

body.cls-bbp-unified .bbp-user-hero__inner { align-items: center; gap: 18px; }
body.cls-bbp-unified .bbp-user-hero__avatar img { width: 96px; height: 96px; border-radius: 24px; }
body.cls-bbp-unified .bbp-user-tabs__nav { gap: 10px; }
body.cls-bbp-unified .bbp-user-tab {
  border-radius: 12px;
  background: #f5f7fb;
  border: 1px solid transparent;
}
body.cls-bbp-unified .bbp-user-tab.is-active {
  background: linear-gradient(180deg, #f9fcff 0%, #eef8ff 100%);
  border-color: var(--cls-bbp-line);
  color: #16335d;
}
body.cls-bbp-unified #bbp-user-ajax-content > *:first-child { margin-top: 0; }
body.cls-bbp-unified .bbp-user-profile .k-card.card,
body.cls-bbp-unified .bbp-user-profile .card-body {
  background: transparent;
  box-shadow: none;
}
body.cls-bbp-unified .bbp-user-profile .card-body { padding: 0; }
body.cls-bbp-unified .bbp-user-profile .k-page-title,
body.cls-bbp-unified .bbp-user-profile h2.entry-title,
body.cls-bbp-unified .bbp-user-profile h3 { color: #13264c; }
body.cls-bbp-unified .bbp-user-profile hr { border-color: var(--cls-bbp-line); }
body.cls-bbp-unified .k-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
body.cls-bbp-unified .k-statbox {
  padding: 18px;
  border: 1px solid var(--cls-bbp-line);
  border-radius: 14px;
  background: var(--cls-bbp-soft);
}
body.cls-bbp-unified .k-stat { color: #13264c; font-size: 30px; font-weight: 800; }
body.cls-bbp-unified .k-muted { color: #677792; }
body.cls-bbp-unified .bbp-user-topics-started .entry-title,
body.cls-bbp-unified .bbp-user-replies-created .entry-title,
body.cls-bbp-unified .bbp-user-engagements .entry-title,
body.cls-bbp-unified .bbp-user-favorites .entry-title,
body.cls-bbp-unified .bbp-user-subscriptions .entry-title {
  margin: 0 0 14px;
  color: #13264c;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.cls-bbp-unified .bbp-widget__body,
body.cls-bbp-unified .bbp-widget__head,
body.cls-bbp-unified .bbp-widget__title {
  background: transparent;
}
body.cls-bbp-unified .bbp-statlist,
body.cls-bbp-unified .bbp-related,
body.cls-bbp-unified .bbp-latest {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
body.cls-bbp-unified .bbp-statlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e6edf5;
}
body.cls-bbp-unified .bbp-statlist li:first-child { border-top: 0; padding-top: 0; }
body.cls-bbp-unified .bbp-divider { height: 1px; margin: 16px 0; background: var(--cls-bbp-line); }
body.cls-bbp-unified .bbp-h4 { margin: 0 0 10px; color: #13264c; font-size: 18px; }
body.cls-bbp-unified .bbp-related li + li,
body.cls-bbp-unified .bbp-latest__item + .bbp-latest__item { margin-top: 10px; }
body.cls-bbp-unified .bbp-latest__title,
body.cls-bbp-unified .bbp-related a { color: #225fda; }
body.cls-bbp-unified .bbp-muted,
body.cls-bbp-unified .bbp-latest__meta { color: #6d7c95; }

@media (max-width: 1140px) {
  body.cls-bbp-unified .bbp-hub-panel,
  body.cls-bbp-unified .bbp-hub-panel--topicmeta,
  body.cls-bbp-unified .bbp-hub-panel--widgets {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  body.cls-bbp-unified .bbp-hub-hero,
  body.cls-bbp-unified .bbp-hub-section,
  body.cls-bbp-unified .bbp-hub-panel { padding: 18px; }
  body.cls-bbp-unified .bbp-hub-auxgrid { grid-template-columns: 1fr; }
  body.cls-bbp-unified .bbp-hub-panel,
  body.cls-bbp-unified .bbp-hub-panel--topicmeta,
  body.cls-bbp-unified .bbp-hub-panel--widgets { grid-column: auto; }
  body.cls-bbp-unified .k-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.cls-bbp-unified .bbp-hub-toolbar { align-items: stretch; }
  body.cls-bbp-unified .bbp-hub-toolbar,
  body.cls-bbp-unified .bbp-hub-toolbar__left,
  body.cls-bbp-unified .bbp-hub-toolbar__right { display: block; }
  body.cls-bbp-unified .bbp-hub-toolbar__right { margin-top: 12px; }
  body.cls-bbp-unified .bbp-hub-title { font-size: 34px; }
  body.cls-bbp-unified .bbp-reply-card__head,
  body.cls-bbp-unified .bbp-reply-card__body,
  body.cls-bbp-unified .bbp-reply-card__foot { padding-left: 16px; padding-right: 16px; }
}

body.cls-bbp-unified .cls-forum-dashboard {
  width: 100%;
  margin-top: 18px;
}

/* ========================================================================
   Nova 4.9.12 — internal bbPress pages use the SAME visual language as index.
   The global bbPress Display Page remains visible and untouched.
   ======================================================================== */

/* Keep the shared Index / Topic recenti / account bar; only the old right sidebar is removed. */
body.cls-bbp-unified .bbp-hub-sidebar,
body.cls-bbp-unified .js-bbp-sidebar,
body.cls-bbp-unified .bbp-hub-sidebar-toggle {
  display: none !important;
}
body.cls-bbp-unified .bbp-hub-layout,
body.cls-bbp-unified .bbp-hub-layout--full {
  display: block !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.cls-bbp-unified .bbp-hub-main { width: 100% !important; max-width: none !important; }

/* Compact page introduction, matching the index intro instead of a second hero card. */
body.cls-bbp-unified .bbp-hub-hero {
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.cls-bbp-unified .bbp-hub-title {
  margin: 0 0 4px !important;
  color: #101b39 !important;
  font-size: clamp(28px, 2vw, 34px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}
body.cls-bbp-unified .bbp-hub-subtitle {
  margin: 0 !important;
  color: #55688d !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
body.cls-bbp-unified .bbp-hub-breadcrumbs {
  margin: 0 0 7px !important;
  color: #7180a0 !important;
  font-size: 11px !important;
}

/* Main content groups look like the index category sections. */
body.cls-bbp-unified .bbp-hub-page { gap: 14px !important; }
body.cls-bbp-unified .bbp-hub-section {
  overflow: visible;
  padding: 14px !important;
  border: 1px solid #cde5f6 !important;
  border-radius: 11px !important;
  background: linear-gradient(180deg, rgba(244,251,255,.95), rgba(250,253,255,.95)) !important;
  box-shadow: 0 4px 13px rgba(21,90,137,.035) !important;
}
body.cls-bbp-unified .bbp-hub-section__head {
  min-height: 38px;
  margin: -2px 0 8px !important;
  padding: 0 !important;
}
body.cls-bbp-unified .bbp-hub-section__title {
  margin: 0 !important;
  color: #0e1a39 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  line-height: 1.15 !important;
}

/* Topic lists: same compact two-column rhythm and card treatment as forum index. */
body.cls-bbp-unified .bbp-topic-list-wrap { min-width: 0; }
body.cls-bbp-unified .bbp-topic-stream {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
}
body.cls-bbp-unified .bbp-topic-card {
  position: relative;
  min-width: 0;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid #dfeaf3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(20,74,113,.035) !important;
}
body.cls-bbp-unified .bbp-topic-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #159df0, #42c5fb);
}
body.cls-bbp-unified .bbp-topic-card__main {
  gap: 8px !important;
  padding: 12px 14px 12px 18px !important;
}
body.cls-bbp-unified .bbp-topic-card__head {
  align-items: flex-start !important;
  gap: 12px !important;
}
body.cls-bbp-unified .bbp-topic-card__titlewrap { gap: 5px !important; }
body.cls-bbp-unified .bbp-topic-card__title {
  margin: 0 !important;
  color: #101b39 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
}
body.cls-bbp-unified .bbp-topic-card__badges { gap: 5px !important; }
body.cls-bbp-unified .bbp-topic-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
}
body.cls-bbp-unified .bbp-topic-card__stats { gap: 6px !important; }
body.cls-bbp-unified .bbp-topic-card__stat {
  min-width: 52px !important;
  min-height: 45px !important;
  padding: 4px 7px !important;
  border: 1px solid #e0e8ef !important;
  border-radius: 10px !important;
  background: #f7fafc !important;
}
body.cls-bbp-unified .bbp-topic-card__stat strong {
  color: #111d3b !important;
  font-size: 14px !important;
  line-height: 1.05 !important;
}
body.cls-bbp-unified .bbp-topic-card__stat span {
  margin-top: 3px !important;
  color: #73819a !important;
  font-size: 9px !important;
}
body.cls-bbp-unified .bbp-topic-card__meta {
  gap: 7px !important;
  align-items: center !important;
}
body.cls-bbp-unified .bbp-topic-card__meta-left,
body.cls-bbp-unified .bbp-topic-card__freshness {
  gap: 5px !important;
  color: #6e7e9d !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}
body.cls-bbp-unified .bbp-topic-card__foot {
  gap: 8px !important;
  margin-top: 1px;
}
body.cls-bbp-unified .bbp-topic-card__foot .bbp-btn {
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #dce8f1 !important;
  border-radius: 8px !important;
  background: #f8fcff !important;
  color: #1e355c !important;
  box-shadow: none !important;
  font-size: 10px !important;
}
body.cls-bbp-unified .bbp-topic-card__foot .bbp-btn:hover {
  transform: none !important;
  background: #eef8ff !important;
  color: #0878e5 !important;
}

/* bbPress pagination/count: compact, no oversized banner. */
body.cls-bbp-unified .bbp-pagination,
body.cls-bbp-unified .bbp-pager { margin: 8px 0 !important; }
body.cls-bbp-unified .bbp-pagination-count {
  display: block !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 9px 12px !important;
  border: 1px solid #dce9f3 !important;
  border-left: 3px solid #159df0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #586b8d !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}
body.cls-bbp-unified .bbp-pagination-count__accent { display: none !important; }
body.cls-bbp-unified .bbp-pagination-count__body {
  display: block !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}
body.cls-bbp-unified .bbp-pagination-links {
  margin-top: 6px !important;
  font-size: 10px !important;
}
body.cls-bbp-unified .bbp-pagination-links a,
body.cls-bbp-unified .bbp-pagination-links span.current {
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 3px 7px !important;
  border-radius: 7px !important;
}

/* Replies use the same border/radius/shadow family while keeping readable long content. */
body.cls-bbp-unified .bbp-replies { gap: 12px !important; }
body.cls-bbp-unified .bbp-reply-card {
  border: 1px solid #dfeaf3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 3px 10px rgba(20,74,113,.035) !important;
}
body.cls-bbp-unified .bbp-reply-card__head { padding: 12px 16px 10px !important; }
body.cls-bbp-unified .bbp-reply-card__body { padding: 8px 16px 0 !important; }
body.cls-bbp-unified .bbp-reply-card__foot { padding: 10px 16px 12px !important; }
body.cls-bbp-unified .bbp-reply-card__content {
  color: #213153 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

/* User area keeps the same compact Nova card language. */
body.cls-bbp-unified .bbp-user-hero__avatar img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 16px !important;
}
body.cls-bbp-unified .bbp-user-tabs-wrap { padding: 10px 12px !important; }
body.cls-bbp-unified .bbp-user-tabs__nav { gap: 7px !important; }
body.cls-bbp-unified .bbp-user-tab {
  min-height: 32px !important;
  padding: 0 11px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}
body.cls-bbp-unified .bbp-user-panel { background: #fff !important; }

/* Exact compact dashboard language from the approved forum index. */
body.cls-bbp-unified .cls-forum-dashboard {
  display: grid;
  grid-template-columns: 1.1fr .9fr .95fr 1.1fr .9fr;
  gap: 14px;
  width: 100%;
  margin-top: 0;
}
body.cls-bbp-unified .cls-forum-dash-card {
  min-width: 0;
  min-height: 94px;
  padding: 11px 14px;
  border: 1px solid #d6e7f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(20,74,113,.035);
}
body.cls-bbp-unified .cls-forum-dash-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px !important;
  color: #101b39 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
}
body.cls-bbp-unified .cls-forum-dash-card h2 > i { width: 18px; color: #0787f9; font-size: 15px; text-align: center; }
body.cls-bbp-unified .cls-forum-dash-card--online h2 > i { color: #18c84a; }
body.cls-bbp-unified .cls-forum-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
body.cls-bbp-unified .cls-forum-stats-grid > div {
  display:flex; flex-direction:column; align-items:center; min-width:0; padding:4px 6px; border-right:1px solid #e0e9f1;
}
body.cls-bbp-unified .cls-forum-stats-grid > div:last-child { border-right:0; }
body.cls-bbp-unified .cls-forum-stats-grid strong { color:#111d3b; font-size:13px; font-weight:800; line-height:1.2; }
body.cls-bbp-unified .cls-forum-stats-grid span { margin-top:4px; color:#697a99; font-size:9px; line-height:1; }
body.cls-bbp-unified .cls-forum-online-counts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:6px; }
body.cls-bbp-unified .cls-forum-online-counts > div { display:flex; flex-direction:column; align-items:center; border-right:1px solid #e0e9f1; }
body.cls-bbp-unified .cls-forum-online-counts > div:last-child { border-right:0; }
body.cls-bbp-unified .cls-forum-online-counts strong { color:#111d3b; font-size:13px; font-weight:800; line-height:1.1; }
body.cls-bbp-unified .cls-forum-online-counts span { margin-top:3px; color:#697a99; font-size:9px; }
body.cls-bbp-unified .cls-forum-dash-card--online p { margin:0 !important; overflow:hidden; color:#6f809f !important; font-size:9px !important; line-height:1.35 !important; text-overflow:ellipsis; white-space:nowrap; }
body.cls-bbp-unified .cls-forum-latest-list { display:grid; gap:2px; }
body.cls-bbp-unified .cls-forum-latest-list a {
  display:grid; grid-template-columns:15px minmax(0,1fr) auto; align-items:center; gap:5px; min-width:0; color:#0878e5 !important; font-size:9px; line-height:1.15; text-decoration:none !important;
}
body.cls-bbp-unified .cls-forum-latest-list a > i { color:#6f86a9; font-size:10px; }
body.cls-bbp-unified .cls-forum-latest-list a > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.cls-bbp-unified .cls-forum-latest-list a > small { color:#73839e; font-size:8px; white-space:nowrap; }
body.cls-bbp-unified .cls-forum-dash-card--links nav { display:grid; }
body.cls-bbp-unified .cls-forum-dash-card--links nav a {
  display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:14px; color:#526483 !important; font-size:9px; line-height:1.1; text-decoration:none !important;
}
body.cls-bbp-unified .cls-forum-dash-card--links nav a:hover { color:#0878e5 !important; }
body.cls-bbp-unified .cls-forum-dash-card--links nav i { font-size:7px; }
body.cls-bbp-unified .cls-forum-dashboard__empty { color:#71809d; font-size:10px; }

@media (max-width:1260px) {
  body.cls-bbp-unified .cls-forum-dashboard { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
  body.cls-bbp-unified .bbp-topic-stream { grid-template-columns:1fr !important; }
}
@media (max-width:640px) {
  body.cls-bbp-unified .cls-forum-dashboard { grid-template-columns:1fr; gap:10px; }
  body.cls-bbp-unified .bbp-hub-section { padding:10px !important; }
  body.cls-bbp-unified .bbp-topic-card__head { flex-direction:column !important; }
  body.cls-bbp-unified .bbp-topic-card__stats { width:auto !important; }
}
body.cls-bbp-unified .bbp-hub-section__actions .bbp-btn,
body.cls-bbp-unified .bbp-hub-section__actions .bbp-btn--primary {
  min-height: 30px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg,#1498ff 0%,#067be8 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(7,135,249,.14) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}
body.cls-bbp-unified .bbp-hub-section__actions .bbp-btn:hover {
  transform: none !important;
}


/* ========================================================================
   Nova 4.9.13 — restore the shared forum navigation on every bbPress page.
   The bbPress Display Page remains untouched. The vertical sidebar stays removed.
   ======================================================================== */
body.cls-bbp-unified .bbp-hub-toolbar--nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 18px !important;
  padding: 7px 8px 7px 14px !important;
  border: 1px solid var(--cls-bbp-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(14,55,92,.035) !important;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-hub-toolbar__left {
  flex: 1 1 auto;
  min-width: 0;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tabs-bar {
  width: 100%;
  min-width: 0;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tabs--inner {
  display: flex;
  align-items: center;
  gap: 26px;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #142448;
  font-weight: 600;
  text-decoration: none;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tab.is-active,
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tab.active {
  color: #176ee8;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tab.is-active::after,
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: #176ee8;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-account-toggle {
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid #cfe2f2;
  border-radius: 11px;
  background: #fff;
  color: #173353;
  box-shadow: none;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-hub-toolbar__right {
  flex: 0 0 auto;
}
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-hub-new-topic-btn,
body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-btn--primary {
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: #10192b;
  color: #fff;
  font-weight: 800;
}
@media (max-width: 767px) {
  body.cls-bbp-unified .bbp-hub-toolbar--nav {
    display: flex !important;
    padding: 7px !important;
  }
  body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-tabs--inner {
    gap: 0;
  }
  body.cls-bbp-unified .bbp-hub-toolbar--nav .bbp-hub-toolbar__right {
    margin-top: 0 !important;
    margin-left: 6px;
  }
}


/* Nova 4.9.38 — ultimo membro + utenti online con colore rank. */
body.cls-bbp-unified .cls-forum-dash-card--latest-member h2 > i {
  color:#7c4dff;
}

body.cls-bbp-unified .cls-forum-latest-member {
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-width:0;
}

body.cls-bbp-unified .cls-forum-latest-member__avatar img {
  display:block;
  width:36px!important;
  height:36px!important;
  border-radius:50%;
  object-fit:cover;
}

body.cls-bbp-unified .cls-forum-latest-member__body {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

body.cls-bbp-unified .cls-forum-latest-member__name {
  overflow:hidden;
  font-size:10px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.cls-bbp-unified .cls-forum-latest-member small {
  color:#7a899f;
  font-size:8px;
}

body.cls-bbp-unified .cls-forum-online-members {
  overflow:hidden;
  font-size:9px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body.cls-bbp-unified .cls-forum-online-members__name {
  font-weight:700;
  text-decoration:none!important;
}

body.cls-bbp-unified .cls-forum-online-members__sep {
  color:#8090a3;
}

body.cls-bbp-unified .cls-forum-dashboard a.cls-role-user-color[style] {
  color:var(--cls-user-role-color)!important;
}


/* ==========================================================================
   Nova 4.9.47 — bbPress topic/reply edit screens use the unified forum shell.
   ========================================================================== */
body.cls-bbp-unified .cls-edit-surface .cls-page-intro--edit{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
}
body.cls-bbp-unified .cls-edit-back-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex:0 0 auto;
  min-height:40px;
  padding:9px 12px;
  border:1px solid #cfe0eb;
  border-radius:10px;
  background:#fff;
  color:#145f98!important;
  font-size:12px;
  font-weight:800;
  text-decoration:none!important;
}
body.cls-bbp-unified .cls-edit-back-link:hover{
  background:#eef8ff;
}
body.cls-bbp-unified .cls-edit-form-section{
  overflow:visible;
}
body.cls-bbp-unified .cls-edit-form-wrap{
  margin-top:12px;
}
body.cls-bbp-unified .cls-edit-discussion-section{
  margin-top:18px;
}
body.cls-bbp-unified .cls-edit-replies{
  display:grid;
  gap:14px;
  margin-top:14px;
}
body.cls-bbp-unified .cls-edit-surface .cls-edit-replies .cls-post-card__reply-link{
  display:none!important;
}
body.cls-bbp-unified .cls-edit-more-replies{
  margin:14px 0 0;
  text-align:right;
}
body.cls-bbp-unified .cls-edit-more-replies a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#1175be;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
body.cls-bbp-unified .cls-edit-topic-context{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:12px;
  padding:15px 16px;
  border:1px solid #d9e8f1;
  border-radius:12px;
  background:#fbfdff;
}
body.cls-bbp-unified .cls-edit-topic-context>div{
  min-width:0;
}
body.cls-bbp-unified .cls-edit-topic-context__label{
  display:inline-flex;
  margin-bottom:4px;
  color:#6e8195;
  font-size:10px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.cls-bbp-unified .cls-edit-topic-context h3{
  margin:0;
  color:#172a48;
  font-size:17px;
}
body.cls-bbp-unified .cls-edit-topic-context p{
  margin:6px 0 0;
  color:#6e8195;
  font-size:12px;
  line-height:1.55;
}
body.cls-bbp-unified .cls-edit-topic-context>a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  color:#1175be;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}
@media(max-width:760px){
  body.cls-bbp-unified .cls-edit-surface .cls-page-intro--edit{
    flex-direction:column;
  }
  body.cls-bbp-unified .cls-edit-back-link{
    width:100%;
  }
  body.cls-bbp-unified .cls-edit-topic-context{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* ==========================================================================
   Nova 4.9.51 — Cancel button in new topic, reply and edit forms.
   ========================================================================== */
body.cls-bbp-unified #bbpress-forums .bbp-submit-wrapper{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
}
body.cls-bbp-unified #bbpress-forums .cls-bbp-cancel-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:40px!important;
  padding:9px 14px!important;
  border:1px solid #cfdde7!important;
  border-radius:9px!important;
  background:#fff!important;
  background-image:none!important;
  color:#52677b!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
body.cls-bbp-unified #bbpress-forums .cls-bbp-cancel-button:hover,
body.cls-bbp-unified #bbpress-forums .cls-bbp-cancel-button:focus-visible{
  border-color:#b7cbd9!important;
  background:#f4f8fb!important;
  color:#263e54!important;
}
body.cls-bbp-unified #bbpress-forums .cls-bbp-cancel-button i{
  color:#7b8d9d;
}
@media(max-width:600px){
  body.cls-bbp-unified #bbpress-forums .bbp-submit-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  body.cls-bbp-unified #bbpress-forums .bbp-submit-wrapper>button,
  body.cls-bbp-unified #bbpress-forums .bbp-submit-wrapper>input[type="submit"]{
    width:100%!important;
    min-height:44px!important;
  }
}
