/*
 * Baize header and footer skin for Zibll.
 * Keeps Zibll's dynamic logo, menus, search, login, user card, publish button,
 * footer widgets, contact links, QR codes and mobile tabbar logic intact.
 */

body:not(.dark-theme) {
  --baize-shell-max: 1180px;
  --baize-shell-blue: #2f80ff;
  --baize-shell-blue-deep: #1e63dc;
  --baize-shell-ink: #14213d;
  --baize-shell-text: #40536f;
  --baize-shell-muted: #71829c;
  --baize-shell-line: rgba(199, 216, 241, 0.76);
  --baize-shell-soft: rgba(244, 248, 255, 0.9);
  --baize-shell-card: rgba(255, 255, 255, 0.92);
  --baize-shell-shadow: 0 18px 46px rgba(35, 74, 132, 0.12);
}

/* User dropdown final skin: keep Zibll logic, restyle only the header popup. */
body:not(.dark-theme) .navbar-top .sub-user-box,
body:not(.dark-theme) .header .sub-user-box {
  width: 344px !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(195, 216, 247, 0.94) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 52px rgba(42, 91, 156, 0.14) !important;
  color: #203452 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box *,
body:not(.dark-theme) .navbar-top .sub-user-box *::before,
body:not(.dark-theme) .navbar-top .sub-user-box *::after,
body:not(.dark-theme) .header .sub-user-box *,
body:not(.dark-theme) .header .sub-user-box *::before,
body:not(.dark-theme) .header .sub-user-box *::after {
  transition: none !important;
  animation: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .user-info,
body:not(.dark-theme) .header .sub-user-box .user-info {
  min-height: 62px !important;
  padding: 0 44px 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(207, 224, 247, 0.86) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .avatar-img,
body:not(.dark-theme) .header .sub-user-box .avatar-img {
  --this-size: 48px;
  width: 48px !important;
  height: 48px !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 8px 18px rgba(47, 128, 255, 0.14) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .avatar,
body:not(.dark-theme) .navbar-top .sub-user-box .avatar-img img,
body:not(.dark-theme) .header .sub-user-box .avatar,
body:not(.dark-theme) .header .sub-user-box .avatar-img img {
  border-radius: 999px !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .user-info b,
body:not(.dark-theme) .header .sub-user-box .user-info b {
  color: #203452 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .user-info .muted-2-color,
body:not(.dark-theme) .header .sub-user-box .user-info .muted-2-color {
  color: #7b8ca5 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .msg-news-icon,
body:not(.dark-theme) .header .sub-user-box .msg-news-icon {
  top: 0 !important;
  right: 0 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .msg-news-icon .toggle-radius,
body:not(.dark-theme) .navbar-top .sub-user-box .user-info > .abs-right .toggle-radius,
body:not(.dark-theme) .header .sub-user-box .msg-news-icon .toggle-radius,
body:not(.dark-theme) .header .sub-user-box .user-info > .abs-right .toggle-radius {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(47, 128, 255, 0.18) !important;
  background: #f5f9ff !important;
  color: #2f80ff !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .payvip-icon.btn-block,
body:not(.dark-theme) .navbar-top .sub-user-box a.pay-vip.btn-block,
body:not(.dark-theme) .header .sub-user-box .payvip-icon.btn-block,
body:not(.dark-theme) .header .sub-user-box a.pay-vip.btn-block {
  min-height: 38px !important;
  margin: 14px 0 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #4aa0ff, #2f80ff) !important;
  box-shadow: 0 12px 22px rgba(47, 128, 255, 0.18) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .but.block,
body:not(.dark-theme) .header .sub-user-box .but.block {
  min-height: 32px !important;
  margin: 10px 0 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f3f8ff !important;
  color: #2f80ff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .c-blue,
body:not(.dark-theme) .navbar-top .sub-user-box .c-blue-2,
body:not(.dark-theme) .navbar-top .sub-user-box .c-purple,
body:not(.dark-theme) .navbar-top .sub-user-box .c-green,
body:not(.dark-theme) .navbar-top .sub-user-box .c-red,
body:not(.dark-theme) .navbar-top .sub-user-box .c-yellow,
body:not(.dark-theme) .header .sub-user-box .c-blue,
body:not(.dark-theme) .header .sub-user-box .c-blue-2,
body:not(.dark-theme) .header .sub-user-box .c-purple,
body:not(.dark-theme) .header .sub-user-box .c-green,
body:not(.dark-theme) .header .sub-user-box .c-red,
body:not(.dark-theme) .header .sub-user-box .c-yellow {
  color: #2f80ff !important;
  --this-color: #2f80ff !important;
  --this-bg: rgba(47, 128, 255, 0.08) !important;
  --main-color: #2f80ff !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .jb-red,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-yellow,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-green,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-purple,
body:not(.dark-theme) .navbar-top .sub-user-box .b-red,
body:not(.dark-theme) .navbar-top .sub-user-box .b-yellow,
body:not(.dark-theme) .navbar-top .sub-user-box .b-green,
body:not(.dark-theme) .navbar-top .sub-user-box .b-purple,
body:not(.dark-theme) .header .sub-user-box .jb-red,
body:not(.dark-theme) .header .sub-user-box .jb-yellow,
body:not(.dark-theme) .header .sub-user-box .jb-green,
body:not(.dark-theme) .header .sub-user-box .jb-purple,
body:not(.dark-theme) .header .sub-user-box .b-red,
body:not(.dark-theme) .header .sub-user-box .b-yellow,
body:not(.dark-theme) .header .sub-user-box .b-green,
body:not(.dark-theme) .header .sub-user-box .b-purple {
  --this-bg: #f3f8ff !important;
  --this-color: #2f80ff !important;
  background: #f3f8ff !important;
  color: #2f80ff !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .payvip-icon.btn-block *,
body:not(.dark-theme) .navbar-top .sub-user-box a.pay-vip.btn-block *,
body:not(.dark-theme) .header .sub-user-box .payvip-icon.btn-block *,
body:not(.dark-theme) .header .sub-user-box a.pay-vip.btn-block * {
  color: #ffffff !important;
  fill: currentColor !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .but:not(.payvip-icon) *,
body:not(.dark-theme) .navbar-top .sub-user-box .badg *,
body:not(.dark-theme) .navbar-top .sub-user-box .muted-box *,
body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href *,
body:not(.dark-theme) .header .sub-user-box .but:not(.payvip-icon) *,
body:not(.dark-theme) .header .sub-user-box .badg *,
body:not(.dark-theme) .header .sub-user-box .muted-box *,
body:not(.dark-theme) .header .sub-user-box .header-user-href * {
  color: currentColor !important;
  fill: currentColor !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .mt6 > .flex.ab.jsb,
body:not(.dark-theme) .navbar-top .sub-user-box .col-ml6,
body:not(.dark-theme) .header .sub-user-box .mt6 > .flex.ab.jsb,
body:not(.dark-theme) .header .sub-user-box .col-ml6 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-top: 12px !important;
  padding: 10px 0 !important;
  border-top: 1px solid rgba(207, 224, 247, 0.86) !important;
  border-bottom: 1px solid rgba(207, 224, 247, 0.86) !important;
  background: transparent !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6 {
  min-height: 48px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6 + .muted-box.padding-6,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6 + .muted-box.padding-6 {
  border-left: 1px solid rgba(207, 224, 247, 0.86) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6 .muted-2-color,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6 .muted-2-color {
  color: #6d7f99 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6 .font-bold,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6 .font-bold {
  color: #2f80ff !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .author-tag,
body:not(.dark-theme) .header .sub-user-box .author-tag {
  min-height: 0 !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .author-tag .badg,
body:not(.dark-theme) .navbar-top .sub-user-box .author-tag .but,
body:not(.dark-theme) .navbar-top .sub-user-box .author-tag > *,
body:not(.dark-theme) .header .sub-user-box .author-tag .badg,
body:not(.dark-theme) .header .sub-user-box .author-tag .but,
body:not(.dark-theme) .header .sub-user-box .author-tag > * {
  min-height: 22px !important;
  padding: 2px 7px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f3f8ff !important;
  color: #2f80ff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .line-form-line,
body:not(.dark-theme) .header .sub-user-box .line-form-line {
  height: 1px !important;
  margin: 12px 0 10px !important;
  background: rgba(207, 224, 247, 0.86) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href,
body:not(.dark-theme) .header .sub-user-box .header-user-href {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a,
body:not(.dark-theme) .header .sub-user-box .start-new-posts {
  min-width: 0 !important;
  min-height: 62px !important;
  padding: 7px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #2f80ff !important;
  box-shadow: none !important;
  text-align: center !important;
  text-decoration: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a + a,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts + a,
body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a + .start-new-posts,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a + a,
body:not(.dark-theme) .header .sub-user-box .start-new-posts + a,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a + .start-new-posts {
  border-left: 1px solid rgba(207, 224, 247, 0.82) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href .badg.toggle-radius,
body:not(.dark-theme) .header .sub-user-box .header-user-href .badg.toggle-radius {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  background: #f2f7ff !important;
  color: #2f80ff !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a div + div,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts div + div,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a div + div,
body:not(.dark-theme) .header .sub-user-box .start-new-posts div + div {
  color: #2f80ff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a:hover,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts:hover,
body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6:hover,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a:hover,
body:not(.dark-theme) .header .sub-user-box .start-new-posts:hover,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6:hover {
  background: transparent !important;
  color: #2f80ff !important;
  opacity: 1 !important;
  transform: none !important;
}

body:not(.dark-theme) .header {
  z-index: 996;
  border-bottom: 1px solid rgba(219, 230, 248, 0.82) !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 10px 30px rgba(34, 73, 130, 0.07) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}

body:not(.dark-theme) .navbar-top {
  min-height: 64px;
  margin: 0;
  border: 0;
  background: transparent !important;
}

body:not(.dark-theme) .container-header {
  width: min(var(--baize-shell-max), calc(100vw - 44px));
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 !important;
}

body:not(.dark-theme) .navbar-top .navbar-header {
  flex: 0 0 auto;
  min-width: 0;
}

body:not(.dark-theme) .navbar-top .navbar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 !important;
}

body:not(.dark-theme) .navbar-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body:not(.dark-theme) .navbar-logo > img {
  max-width: 128px;
  max-height: 38px;
  width: auto;
  height: auto;
  padding: 0 !important;
  object-fit: contain;
}

body:not(.dark-theme) .navbar-top .collapse.navbar-collapse {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 18px;
  padding: 0;
}

body:not(.dark-theme) .navbar-top .nav.navbar-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
}

body:not(.dark-theme) .navbar-top .nav > li {
  display: flex;
  align-items: center;
}

body:not(.dark-theme) .navbar-top .nav > li::before,
body:not(.dark-theme) .navbar-top .nav > li > a::before {
  display: none !important;
  content: none !important;
}

body:not(.dark-theme) .navbar-top .nav > li > a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--baize-shell-text) !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:not(.dark-theme) .navbar-top .nav > li:hover > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-item > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-parent > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-ancestor > a {
  color: var(--baize-shell-blue) !important;
  background: rgba(47, 128, 255, 0.1) !important;
}

body:not(.dark-theme) .navbar-top .nav > li:hover > a {
  transform: translateY(-1px);
}

body:not(.dark-theme) .navbar-top .sub-menu {
  min-width: 188px;
  padding: 8px !important;
  border: 1px solid rgba(203, 218, 242, 0.92) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 22px 48px rgba(34, 73, 130, 0.14) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body:not(.dark-theme) .navbar-top .sub-menu::before {
  display: none !important;
}

body:not(.dark-theme) .navbar-top .sub-menu li > a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px !important;
  border-radius: 12px !important;
  color: var(--baize-shell-text) !important;
  font-size: 13px;
  font-weight: 800;
}

body:not(.dark-theme) .navbar-top .sub-menu li > a:hover {
  color: var(--baize-shell-blue) !important;
  background: rgba(47, 128, 255, 0.09) !important;
}

body:not(.dark-theme) .navbar-top .navbar-form {
  height: 64px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

body:not(.dark-theme) .navbar-top .navbar-form.navbar-left {
  flex: 1 1 260px;
  max-width: 340px;
  margin-left: auto;
}

body:not(.dark-theme) .navbar-top .navbar-form.navbar-left .form-group {
  width: 100%;
}

body:not(.dark-theme) .navbar-top .search-input,
body:not(.dark-theme) .navbar-top .form-control.search-input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(203, 218, 242, 0.9) !important;
  border-radius: 999px !important;
  background: rgba(245, 249, 255, 0.95) !important;
  color: var(--baize-shell-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

body:not(.dark-theme) .navbar-top .search-input::placeholder {
  color: #91a0b8;
}

body:not(.dark-theme) .navbar-top .navbar-right {
  display: flex;
  align-items: center;
  margin-left: 0 !important;
}

body:not(.dark-theme) .navbar-top .navbar-right .list-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li {
  padding: 0;
}

body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li > a,
body:not(.dark-theme) .navbar-top .toggle-radius,
body:not(.dark-theme) .navbar-top .nav-search-btn,
body:not(.dark-theme) .navbar-top .navbar-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 1px solid rgba(203, 218, 242, 0.82) !important;
  border-radius: 999px !important;
  background: rgba(244, 248, 255, 0.9) !important;
  color: #55708f !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .navbar-avatar img,
body:not(.dark-theme) .navbar-top .navbar-avatar .avatar {
  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
}

body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li > a:hover,
body:not(.dark-theme) .navbar-top .toggle-radius:hover,
body:not(.dark-theme) .navbar-top .nav-search-btn:hover {
  border-color: rgba(47, 128, 255, 0.34) !important;
  color: var(--baize-shell-blue) !important;
  background: rgba(47, 128, 255, 0.1) !important;
}

body:not(.dark-theme) .navbar-top .navbar-but {
  gap: 8px;
  margin-left: auto !important;
}

body:not(.dark-theme) .navbar-top .navbar-but .but,
body:not(.dark-theme) .navbar-top .payvip-icon.but {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #42a5ff, #2f80ff) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(47, 128, 255, 0.22) !important;
  font-size: 13px;
  font-weight: 900;
}

body:not(.dark-theme) .navbar-top .navbar-but .but *,
body:not(.dark-theme) .navbar-top .payvip-icon.but * {
  color: #fff !important;
  fill: currentColor;
}

body:not(.dark-theme) .navbar-top .sub-user-box {
  width: 330px;
  padding: 16px !important;
  border: 1px solid rgba(203, 218, 242, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--baize-shell-shadow);
}

body:not(.dark-theme) .sub-user-box .user-info {
  padding: 12px;
  border: 1px solid rgba(213, 226, 246, 0.86);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

body:not(.dark-theme) .sub-user-box .header-user-href {
  gap: 8px;
}

body:not(.dark-theme) .sub-user-box .header-user-href > a,
body:not(.dark-theme) .sub-user-box .start-new-posts {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 16px;
  background: #f6f9ff;
  text-decoration: none !important;
}

body:not(.dark-theme) .mobile-header {
  position: relative;
  z-index: 997;
}

body:not(.dark-theme) .mobile-navbar {
  border: 1px solid rgba(203, 218, 242, 0.9);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 24px 64px rgba(23, 54, 107, 0.2);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

body:not(.dark-theme) .mobile-navbar.left,
body:not(.dark-theme) .mobile-navbar.right {
  width: min(326px, calc(100vw - 34px));
  padding: 18px 18px 84px;
}

body:not(.dark-theme) .mobile-navbar .mobile-menus.theme-box {
  display: grid;
  gap: 6px;
  padding: 0 !important;
  background: transparent !important;
}

body:not(.dark-theme) .mobile-menus li a {
  min-height: 42px;
  padding: 10px 12px !important;
  border-radius: 14px;
  color: var(--baize-shell-text);
  font-weight: 800;
}

body:not(.dark-theme) .mobile-menus li.current-menu-item > a,
body:not(.dark-theme) .mobile-menus li a:hover {
  color: var(--baize-shell-blue) !important;
  background: rgba(47, 128, 255, 0.1);
}

body:not(.dark-theme) .mobile-menus .sub-menu li > a {
  background: rgba(244, 248, 255, 0.95) !important;
}

body:not(.dark-theme) .footer {
  margin-top: 72px;
  padding: 0 !important;
  border-top: 1px solid rgba(211, 225, 246, 0.82) !important;
  background: rgba(248, 251, 255, 0.94) !important;
}

body:not(.dark-theme) .footer .container-footer {
  width: min(var(--baize-shell-max), calc(100vw - 44px));
  padding: 34px 0 32px !important;
}

body:not(.dark-theme) .footer .list-inline {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr) auto;
  align-items: start;
  gap: 42px;
  margin: 0;
}

body:not(.dark-theme) .footer .list-inline > li {
  display: block;
  max-width: none !important;
  padding: 0;
}

body:not(.dark-theme) .footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

body:not(.dark-theme) .footer-logo img {
  max-width: 132px;
  max-height: 42px;
  width: auto;
  height: auto !important;
  object-fit: contain;
}

body:not(.dark-theme) .footer .title-h-left {
  margin: 0 0 10px;
  color: var(--baize-shell-ink);
  font-size: 16px;
  font-weight: 900;
}

body:not(.dark-theme) .footer-muted {
  color: var(--baize-shell-muted) !important;
  font-size: 13px;
  line-height: 1.9;
}

body:not(.dark-theme) .footer .fcode-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 2px 0 12px;
}

body:not(.dark-theme) .footer .fcode-links a {
  color: var(--baize-shell-text) !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

body:not(.dark-theme) .footer .fcode-links a:hover {
  color: var(--baize-shell-blue) !important;
}

body:not(.dark-theme) .footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px !important;
}

body:not(.dark-theme) .footer-contact > a,
body:not(.dark-theme) .footer-contact .toggle-radius {
  width: 34px;
  height: 34px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 218, 242, 0.86);
  border-radius: 999px !important;
  background: #edf4ff;
  color: #607797;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

body:not(.dark-theme) .footer-contact > a:hover,
body:not(.dark-theme) .footer-contact .toggle-radius:hover {
  color: var(--baize-shell-blue);
  background: rgba(47, 128, 255, 0.12);
  transform: translateY(-1px);
}

body:not(.dark-theme) .footer-wechat-img,
body:not(.dark-theme) .footer-contact .hover-show-con {
  padding: 8px;
  border: 1px solid rgba(203, 218, 242, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--baize-shell-shadow);
}

body:not(.dark-theme) .footer-miniimg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
}

body:not(.dark-theme) .footer-miniimg:first-child {
  margin-left: 0;
}

body:not(.dark-theme) .footer-miniimg p {
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(203, 218, 242, 0.86);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 74, 132, 0.08);
}

body:not(.dark-theme) .footer-miniimg img {
  width: 84px;
  height: 84px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

body:not(.dark-theme) .footer-miniimg span {
  color: var(--baize-shell-muted);
  font-size: 12px;
  font-weight: 700;
}

body:not(.dark-theme) .footer-conter {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(211, 225, 246, 0.8);
  color: var(--baize-shell-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

body:not(.dark-theme) .footer-tabbar {
  border-top: 1px solid rgba(203, 218, 242, 0.86);
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 -12px 34px rgba(35, 74, 132, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body:not(.dark-theme) .footer-tabbar .tabbar-item,
body:not(.dark-theme) .footer-tabbar .tabbar-item a {
  color: var(--baize-shell-muted);
  font-weight: 800;
}

body:not(.dark-theme) .footer-tabbar .tabbar-item.active,
body:not(.dark-theme) .footer-tabbar .tabbar-item:hover,
body:not(.dark-theme) .footer-tabbar .tabbar-item a:hover {
  color: var(--baize-shell-blue);
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .container-header,
  body:not(.dark-theme) .footer .container-footer {
    width: calc(100vw - 32px);
  }

  body:not(.dark-theme) .navbar-top .navbar-form.navbar-left {
    display: none;
  }
}

/* Last override for the header user dropdown. This file is confirmed to affect the live popup. */
body:not(.dark-theme) .navbar-top .sub-user-box,
body:not(.dark-theme) .header .sub-user-box {
  width: 344px !important;
  padding: 18px 18px 16px !important;
  border: 1px solid rgba(195, 216, 247, 0.94) !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 52px rgba(42, 91, 156, 0.14) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .user-info,
body:not(.dark-theme) .header .sub-user-box .user-info {
  padding: 0 44px 14px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(207, 224, 247, 0.86) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .but.block,
body:not(.dark-theme) .header .sub-user-box .but.block,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-red,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-yellow,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-green,
body:not(.dark-theme) .navbar-top .sub-user-box .jb-purple,
body:not(.dark-theme) .header .sub-user-box .jb-red,
body:not(.dark-theme) .header .sub-user-box .jb-yellow,
body:not(.dark-theme) .header .sub-user-box .jb-green,
body:not(.dark-theme) .header .sub-user-box .jb-purple {
  border-color: transparent !important;
  background: #f3f8ff !important;
  color: #2f80ff !important;
  box-shadow: none !important;
  --this-bg: #f3f8ff !important;
  --this-color: #2f80ff !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .payvip-icon.btn-block,
body:not(.dark-theme) .navbar-top .sub-user-box a.pay-vip.btn-block,
body:not(.dark-theme) .header .sub-user-box .payvip-icon.btn-block,
body:not(.dark-theme) .header .sub-user-box a.pay-vip.btn-block {
  background: linear-gradient(135deg, #4aa0ff, #2f80ff) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(47, 128, 255, 0.18) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .c-blue,
body:not(.dark-theme) .navbar-top .sub-user-box .c-blue-2,
body:not(.dark-theme) .navbar-top .sub-user-box .c-purple,
body:not(.dark-theme) .navbar-top .sub-user-box .c-green,
body:not(.dark-theme) .navbar-top .sub-user-box .c-red,
body:not(.dark-theme) .navbar-top .sub-user-box .c-yellow,
body:not(.dark-theme) .header .sub-user-box .c-blue,
body:not(.dark-theme) .header .sub-user-box .c-blue-2,
body:not(.dark-theme) .header .sub-user-box .c-purple,
body:not(.dark-theme) .header .sub-user-box .c-green,
body:not(.dark-theme) .header .sub-user-box .c-red,
body:not(.dark-theme) .header .sub-user-box .c-yellow {
  color: #2f80ff !important;
  --this-color: #2f80ff !important;
  --this-bg: rgba(47, 128, 255, 0.08) !important;
}

/* Header search popup: CSS-only skin for Zibll dynamic search output. */
body:not(.dark-theme) .main-search.navbar-search {
  --baize-search-blue: #2f80ff;
  --baize-search-blue-2: #36b6f2;
  --baize-search-ink: #14243b;
  --baize-search-text: #39536f;
  --baize-search-muted: #7d91ad;
  --baize-search-line: #d6e5f8;
  --baize-search-soft: #f5f9ff;
  top: 0 !important;
  padding: 88px 18px 36px !important;
  background: rgba(246, 250, 255, 0.88) !important;
  color: var(--baize-search-ink) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.1) !important;
  backdrop-filter: blur(14px) saturate(1.1) !important;
}

body:not(.dark-theme) .main-search.navbar-search,
body:not(.dark-theme) .main-search.navbar-search * {
  transition: none !important;
  animation: none !important;
}

body:not(.dark-theme) .main-search.navbar-search > .container {
  width: min(760px, calc(100vw - 32px)) !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body:not(.dark-theme) .main-search.navbar-search .close {
  position: fixed !important;
  top: 72px !important;
  right: max(22px, calc((100vw - 1180px) / 2)) !important;
  z-index: 3 !important;
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #8aa0bd !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body:not(.dark-theme) .main-search.navbar-search .ajaxpager,
body:not(.dark-theme) .main-search.navbar-search .ajaxpager > .search-input,
body:not(.dark-theme) .main-search.navbar-search > .container > .search-input {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
}

body:not(.dark-theme) .main-search.navbar-search .ajaxpager > .search-input,
body:not(.dark-theme) .main-search.navbar-search > .container > .search-input {
  padding: 22px !important;
  border: 1px solid rgba(205, 224, 248, 0.95) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 24px 56px rgba(34, 86, 150, 0.14) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-form {
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.dark-theme) .main-search.navbar-search .line-form {
  display: flex !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 6px !important;
  border: 1px solid rgba(207, 224, 247, 0.96) !important;
  border-radius: 18px !important;
  background: var(--baize-search-soft) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-drop {
  flex: 0 0 auto !important;
  margin: 0 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-drop .dropdown > a,
body:not(.dark-theme) .main-search.navbar-search .search-drop > .dropdown > span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--baize-search-ink) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  box-shadow: inset 0 0 0 1px rgba(207, 224, 247, 0.85) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-drop .dropdown-menu {
  min-width: 132px !important;
  margin-top: 8px !important;
  padding: 8px !important;
  border: 1px solid var(--baize-search-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 36px rgba(34, 86, 150, 0.14) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-drop .dropdown-menu a {
  display: flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  color: var(--baize-search-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-drop .dropdown-menu a:hover {
  background: rgba(47, 128, 255, 0.08) !important;
  color: var(--baize-search-blue) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-type-but-average {
  margin: 0 0 12px !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-type-but-average .but-average {
  gap: 8px !important;
  padding: 4px !important;
  border: 1px solid var(--baize-search-line) !important;
  border-radius: 16px !important;
  background: var(--baize-search-soft) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-type-but-average .but {
  min-height: 34px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--baize-search-text) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-type-but-average .but.active {
  background: #fff !important;
  color: var(--baize-search-blue) !important;
  box-shadow: inset 0 0 0 1px rgba(47, 128, 255, 0.2) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-input-text {
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 0 44px 0 0 !important;
}

body:not(.dark-theme) .main-search.navbar-search .line-form-input {
  width: 100% !important;
  height: 40px !important;
  padding: 10px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--baize-search-ink) !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .line-form-input:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .scale-placeholder {
  top: 50% !important;
  left: 0 !important;
  color: #7390b4 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  transform: translateY(-50%) !important;
}

body:not(.dark-theme) .main-search.navbar-search .scale-placeholder.is-focus,
body:not(.dark-theme) .main-search.navbar-search .line-form-input:focus ~ .scale-placeholder {
  top: 4px !important;
  color: var(--baize-search-blue) !important;
  font-size: 11px !important;
  transform: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .line-form-line {
  display: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-input-text .abs-right {
  top: 50% !important;
  right: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--baize-search-blue), var(--baize-search-blue-2)) !important;
  color: #fff !important;
  transform: translateY(-50%) !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-input-text .abs-right button,
body:not(.dark-theme) .main-search.navbar-search .search-input-text .abs-right svg,
body:not(.dark-theme) .main-search.navbar-search .search-input-text .abs-right * {
  color: #fff !important;
  fill: currentColor !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-keywords,
body:not(.dark-theme) .main-search.navbar-search .relates.relates-thumb {
  margin: 16px 0 0 !important;
  padding: 0 !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-keywords > p,
body:not(.dark-theme) .main-search.navbar-search .relates.relates-thumb > p {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 10px !important;
  color: var(--baize-search-muted) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
}

body:not(.dark-theme) .main-search.navbar-search .search-keywords > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body:not(.dark-theme) .main-search.navbar-search a.search_keywords {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #d7e6f8 !important;
  border-radius: 999px !important;
  background: #f7fbff !important;
  color: var(--baize-search-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .main-search.navbar-search a.search_keywords:hover {
  border-color: rgba(47, 128, 255, 0.35) !important;
  background: #edf6ff !important;
  color: var(--baize-search-blue) !important;
}

body:not(.dark-theme) .main-search.navbar-search .trash-history-search {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #f4f8ff !important;
  color: #8aa0bd !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .swiper-container {
  overflow: hidden !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .swiper-wrapper {
  align-items: stretch !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .swiper-slide {
  width: 158px !important;
  margin-right: 10px !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .graphic,
body:not(.dark-theme) .main-search.navbar-search .relates-thumb .graphic-card,
body:not(.dark-theme) .main-search.navbar-search .relates-thumb .zib-widget {
  overflow: hidden !important;
  border: 1px solid #d9e7f8 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .img-box {
  border-radius: 14px !important;
  background: #edf4ff !important;
}

body:not(.dark-theme) .main-search.navbar-search .relates-thumb .title,
body:not(.dark-theme) .main-search.navbar-search .relates-thumb .text-ellipsis {
  color: var(--baize-search-ink) !important;
  font-weight: 850 !important;
}

body:not(.dark-theme) .main-search.navbar-search .swiper-button-prev,
body:not(.dark-theme) .main-search.navbar-search .swiper-button-next {
  width: 30px !important;
  height: 30px !important;
  border: 1px solid #d7e6f8 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--baize-search-blue) !important;
  box-shadow: 0 10px 20px rgba(34, 86, 150, 0.12) !important;
}

body:not(.dark-theme) .navbar-top .navbar-form.hover-show .dropdown-menu.hover-show-con {
  width: min(620px, calc(100vw - 32px)) !important;
  padding: 18px !important;
  border: 1px solid #d6e5f8 !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 22px 50px rgba(34, 86, 150, 0.14) !important;
}

body:not(.dark-theme) .navbar-top .navbar-form.hover-show .dropdown-menu.hover-show-con .search-input {
  max-width: none !important;
  margin: 0 !important;
}

@media (max-width: 768px) {
  body:not(.dark-theme) .main-search.navbar-search {
    padding: 72px 12px 24px !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .close {
    top: 24px !important;
    right: 18px !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .ajaxpager > .search-input,
  body:not(.dark-theme) .main-search.navbar-search > .container > .search-input {
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .line-form {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 10px !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .search-drop {
    width: 100% !important;
    margin: 0 !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .search-drop .dropdown > a {
    width: 100% !important;
    justify-content: center !important;
  }

  body:not(.dark-theme) .main-search.navbar-search .search-input-text {
    width: 100% !important;
    min-height: 44px !important;
  }
}

body:not(.dark-theme) .navbar-top .sub-user-box .mt6 > .flex.ab.jsb,
body:not(.dark-theme) .navbar-top .sub-user-box .col-ml6,
body:not(.dark-theme) .header .sub-user-box .mt6 > .flex.ab.jsb,
body:not(.dark-theme) .header .sub-user-box .col-ml6 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 10px 0 !important;
  border-top: 1px solid rgba(207, 224, 247, 0.86) !important;
  border-bottom: 1px solid rgba(207, 224, 247, 0.86) !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6,
body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a,
body:not(.dark-theme) .header .sub-user-box .start-new-posts {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href,
body:not(.dark-theme) .header .sub-user-box .header-user-href {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

@media (max-width: 991px) {
  body:not(.dark-theme) .navbar-top {
    min-height: 58px;
  }

  body:not(.dark-theme) .container-header {
    min-height: 58px;
  }

  body:not(.dark-theme) .navbar-top .navbar-brand {
    height: 58px;
  }

  body:not(.dark-theme) .navbar-top .collapse.navbar-collapse {
    flex: 0 0 auto;
    margin-left: auto;
  }

  body:not(.dark-theme) .nav.navbar-nav.show {
    top: 0;
    left: 16px;
    right: 16px;
    padding: 12px !important;
    border: 1px solid rgba(203, 218, 242, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--baize-shell-shadow);
  }

  body:not(.dark-theme) .footer .list-inline {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  body:not(.dark-theme) .footer .list-inline > li:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .header {
    padding: 0 !important;
  }

  body:not(.dark-theme) .container-header {
    width: calc(100vw - 22px);
  }

  body:not(.dark-theme) .navbar-logo > img {
    max-width: 112px;
    max-height: 34px;
  }

  body:not(.dark-theme) .navbar-top .navbar-right .list-inline {
    gap: 6px;
  }

  body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li > a,
  body:not(.dark-theme) .navbar-top .toggle-radius,
  body:not(.dark-theme) .navbar-top .nav-search-btn,
  body:not(.dark-theme) .navbar-top .navbar-avatar {
    width: 32px;
    height: 32px;
  }

  body:not(.dark-theme) .footer {
    margin-top: 46px;
  }

  body:not(.dark-theme) .footer .container-footer {
    width: calc(100vw - 28px);
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom)) !important;
    text-align: left !important;
  }

  body:not(.dark-theme) .footer .list-inline {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body:not(.dark-theme) .footer .fcode-links {
    gap: 8px 12px;
  }

  body:not(.dark-theme) .footer-miniimg {
    margin: 0 14px 14px 0;
  }
}

/*
 * Header compact product shell.
 * This block intentionally stays CSS-only: menus, logo, search, login/user
 * and publish/member buttons are still rendered by Zibll settings.
 */
body:not(.dark-theme) .header {
  border-bottom: 1px solid rgba(190, 214, 246, 0.72) !important;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(240, 248, 255, 0.96)) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 14px 36px rgba(58, 119, 205, 0.08) !important;
}

body:not(.dark-theme) .navbar-top,
body:not(.dark-theme) .container-header {
  min-height: 74px;
}

body:not(.dark-theme) .container-header {
  width: min(1200px, calc(100vw - 44px));
  gap: 28px;
}

body:not(.dark-theme) .navbar-top .navbar-header {
  min-width: 214px;
}

body:not(.dark-theme) .navbar-top .navbar-brand {
  height: 74px;
}

body:not(.dark-theme) .navbar-logo {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 0;
  border-radius: 18px;
}

body:not(.dark-theme) .navbar-logo > img {
  max-width: 156px;
  max-height: 46px;
}

body:not(.dark-theme) .navbar-top .collapse.navbar-collapse {
  gap: 18px;
}

body:not(.dark-theme) .navbar-top .nav.navbar-nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: 18px;
}

body:not(.dark-theme) .navbar-top .nav > li > a {
  height: 42px;
  min-width: 70px;
  padding: 0 15px;
  color: #31435f !important;
  font-size: 15px;
  font-weight: 900;
}

body:not(.dark-theme) .navbar-top .nav > li:hover > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-item > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-parent > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-ancestor > a {
  color: #176dff !important;
  background: #e9f4ff !important;
  box-shadow: inset 0 0 0 1px rgba(208, 228, 255, 0.65) !important;
}

body:not(.dark-theme) .navbar-top .navbar-form {
  height: 74px;
}

body:not(.dark-theme) .navbar-top .navbar-form.navbar-left {
  display: none;
}

body:not(.dark-theme) .navbar-top .navbar-but {
  flex: 0 0 auto;
  gap: 10px;
  margin-left: 0 !important;
}

body:not(.dark-theme) .navbar-top .navbar-but .but,
body:not(.dark-theme) .navbar-top .payvip-icon.but {
  min-width: 90px;
  min-height: 42px;
  padding: 0 20px !important;
  border: 1px solid rgba(47, 128, 255, 0.28) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2c72e8 !important;
  box-shadow: 0 8px 20px rgba(47, 128, 255, 0.08) !important;
  font-size: 14px;
  font-weight: 900;
}

body:not(.dark-theme) .navbar-top .navbar-but .but *,
body:not(.dark-theme) .navbar-top .payvip-icon.but * {
  color: currentColor !important;
  fill: currentColor;
}

body:not(.dark-theme) .navbar-top .navbar-but .but:hover,
body:not(.dark-theme) .navbar-top .payvip-icon.but:hover {
  border-color: rgba(47, 128, 255, 0.48) !important;
  background: #f5faff !important;
  transform: translateY(-1px);
}

body:not(.dark-theme) .navbar-top .navbar-but > .but:last-child:not(:first-child),
body:not(.dark-theme) .navbar-top .payvip-icon.but {
  border-color: transparent !important;
  background: linear-gradient(135deg, #3d8cff, #2f73ee) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(47, 128, 255, 0.24) !important;
}

body:not(.dark-theme) .navbar-top .navbar-but > .but:last-child:not(:first-child) *,
body:not(.dark-theme) .navbar-top .payvip-icon.but * {
  color: #fff !important;
  fill: currentColor;
}

body:not(.dark-theme) .navbar-top .navbar-right:not(.navbar-but) {
  flex: 0 0 auto;
}

body:not(.dark-theme) .navbar-top .navbar-right:not(.navbar-but) .list-inline {
  gap: 10px;
}

body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li > a,
body:not(.dark-theme) .navbar-top .toggle-radius,
body:not(.dark-theme) .navbar-top .nav-search-btn,
body:not(.dark-theme) .navbar-top .navbar-avatar {
  width: 42px;
  height: 42px;
  border-color: rgba(47, 128, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #476581 !important;
}

body:not(.dark-theme) .navbar-top .navbar-avatar img,
body:not(.dark-theme) .navbar-top .navbar-avatar .avatar {
  width: 36px !important;
  height: 36px !important;
}

body:not(.dark-theme) .navbar-top .show-nav-but .but {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0 !important;
  border: 1px solid rgba(47, 128, 255, 0.22) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #2f73ee !important;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .container-header {
    width: calc(100vw - 32px);
    gap: 18px;
  }

  body:not(.dark-theme) .navbar-top .nav.navbar-nav {
    gap: 8px;
  }

  body:not(.dark-theme) .navbar-top .nav > li > a {
    min-width: 0;
    padding: 0 12px;
  }

  body:not(.dark-theme) .navbar-top .navbar-but .but,
  body:not(.dark-theme) .navbar-top .payvip-icon.but {
    min-width: 82px;
    padding: 0 16px !important;
  }
}

@media (max-width: 991px) {
  body:not(.dark-theme) .navbar-top,
  body:not(.dark-theme) .container-header {
    min-height: 62px;
  }

  body:not(.dark-theme) .navbar-top .navbar-header {
    min-width: 0;
  }

  body:not(.dark-theme) .navbar-top .navbar-brand,
  body:not(.dark-theme) .navbar-top .navbar-form {
    height: 62px;
  }

  body:not(.dark-theme) .navbar-logo {
    min-height: 44px;
    padding-right: 6px;
  }

  body:not(.dark-theme) .navbar-logo > img {
    max-width: 136px;
    max-height: 40px;
  }

  body:not(.dark-theme) .navbar-top .collapse.navbar-collapse {
    margin-left: auto;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  body:not(.dark-theme) .container-header {
    width: calc(100vw - 22px);
  }

  body:not(.dark-theme) .navbar-top .navbar-right .list-inline > li > a,
  body:not(.dark-theme) .navbar-top .toggle-radius,
  body:not(.dark-theme) .navbar-top .nav-search-btn,
  body:not(.dark-theme) .navbar-top .navbar-avatar,
  body:not(.dark-theme) .navbar-top .show-nav-but .but {
    width: 36px;
    height: 36px;
  }

  body:not(.dark-theme) .navbar-top .navbar-avatar img,
  body:not(.dark-theme) .navbar-top .navbar-avatar .avatar {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Header navigation typography and active state refinement. */
body:not(.dark-theme) .navbar-top .nav.navbar-nav {
  gap: 12px;
}

body:not(.dark-theme) .navbar-top .nav > li > a {
  height: 34px;
  min-width: 0;
  padding: 0 10px;
  border-radius: 999px;
  color: #253957 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 34px;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .nav > li:hover > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-item > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-parent > a,
body:not(.dark-theme) .navbar-top .nav > li.current-menu-ancestor > a {
  padding: 0 13px;
  color: #2f80ff !important;
  background: #eaf3ff !important;
  box-shadow: none !important;
  font-weight: 800;
}

body:not(.dark-theme) .navbar-top .nav > li:hover > a {
  transform: none;
}

@media (max-width: 1199px) {
  body:not(.dark-theme) .navbar-top .nav.navbar-nav {
    gap: 8px;
  }

  body:not(.dark-theme) .navbar-top .nav > li > a {
    padding: 0 8px;
    font-size: 13px;
  }

  body:not(.dark-theme) .navbar-top .nav > li:hover > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-item > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-parent > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-ancestor > a {
    padding: 0 11px;
  }
}

/* Static header state guard: keep earlier header trials from adding hover motion. */
body:not(.dark-theme) .header .navbar-top,
body:not(.dark-theme) .header .navbar-top *,
body:not(.dark-theme) .header .navbar-top *::before,
body:not(.dark-theme) .header .navbar-top *::after {
  transition: none !important;
  animation: none !important;
}

body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li,
body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li > a,
body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover,
body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover > a,
body:not(.dark-theme) .header .navbar-top .navbar-but .but:hover,
body:not(.dark-theme) .header .navbar-top .payvip-icon.but:hover,
body:not(.dark-theme) .header .navbar-top .toggle-radius:hover,
body:not(.dark-theme) .header .navbar-top .nav-search-btn:hover,
body:not(.dark-theme) .header .navbar-top .navbar-avatar:hover {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* Final visual override for the desktop header menu. */
@media (min-width: 992px) {
  body:not(.dark-theme) .navbar-top .nav.navbar-nav {
    gap: 16px !important;
  }

  body:not(.dark-theme) .navbar-top .nav > li > a {
    height: 32px !important;
    min-width: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    color: #263a59 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 32px !important;
  }

  body:not(.dark-theme) .navbar-top .nav > li:hover > a,
  body:not(.dark-theme) .navbar-top .nav > li.active > a,
  body:not(.dark-theme) .navbar-top .nav > li.current > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-item > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-parent > a,
  body:not(.dark-theme) .navbar-top .nav > li.current-menu-ancestor > a {
    padding: 0 14px !important;
    background: #eef6ff !important;
    color: #2f80ff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
  }

  body:not(.dark-theme) .navbar-top .nav > li > a > span,
  body:not(.dark-theme) .navbar-top .nav > li > a > i {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }
}

/* Absolute static lock for header hover states. Keep this after all header trials. */
@media (min-width: 992px) {
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li *,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li::after,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li *::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li *::after {
    transition: none !important;
    animation: none !important;
  }

  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:not(.active):not(.current):not(.current-menu-item):not(.current-menu-parent):not(.current-menu-ancestor):hover > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:not(.active):not(.current):not(.current-menu-item):not(.current-menu-parent):not(.current-menu-ancestor) > a:hover {
    height: 34px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: #2c3d59 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 34px !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.active > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-item > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-parent > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-ancestor > a,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.active > a:hover,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current > a:hover,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-item > a:hover,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-parent > a:hover,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li.current-menu-ancestor > a:hover {
    padding: 0 16px !important;
    background: #e9f3ff !important;
    color: #2f80ff !important;
    box-shadow: none !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li::after,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li > a::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li > a::after,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover::after,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover > a::before,
  body:not(.dark-theme) .header .navbar-top .nav.navbar-nav > li:hover > a::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* EOF guard: user dropdown popup must stay blue-white and single-card. */
body:not(.dark-theme) .navbar-top .sub-user-box .user-info,
body:not(.dark-theme) .header .sub-user-box .user-info {
  border: 0 !important;
  border-bottom: 1px solid rgba(207, 224, 247, 0.86) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .header-user-href > a,
body:not(.dark-theme) .navbar-top .sub-user-box .start-new-posts,
body:not(.dark-theme) .navbar-top .sub-user-box .muted-box.padding-6,
body:not(.dark-theme) .header .sub-user-box .header-user-href > a,
body:not(.dark-theme) .header .sub-user-box .start-new-posts,
body:not(.dark-theme) .header .sub-user-box .muted-box.padding-6 {
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.dark-theme) .navbar-top .sub-user-box .but.block,
body:not(.dark-theme) .navbar-top .sub-user-box .c-blue,
body:not(.dark-theme) .navbar-top .sub-user-box .c-blue-2,
body:not(.dark-theme) .navbar-top .sub-user-box .c-purple,
body:not(.dark-theme) .navbar-top .sub-user-box .c-green,
body:not(.dark-theme) .navbar-top .sub-user-box .c-red,
body:not(.dark-theme) .navbar-top .sub-user-box .c-yellow,
body:not(.dark-theme) .header .sub-user-box .but.block,
body:not(.dark-theme) .header .sub-user-box .c-blue,
body:not(.dark-theme) .header .sub-user-box .c-blue-2,
body:not(.dark-theme) .header .sub-user-box .c-purple,
body:not(.dark-theme) .header .sub-user-box .c-green,
body:not(.dark-theme) .header .sub-user-box .c-red,
body:not(.dark-theme) .header .sub-user-box .c-yellow {
  color: #2f80ff !important;
  --this-color: #2f80ff !important;
  --this-bg: rgba(47, 128, 255, 0.08) !important;
}
