/*
 * Xiuno Light 4.0 — modern interface layer
 * Loaded after the original theme to preserve hooks and third-party plugin compatibility.
 */

:root {
  --zl-primary: #1769e0;
  --zl-primary-hover: #0f56be;
  --zl-primary-soft: #eaf2ff;
  --zl-primary-border: #cbdcff;
  --zl-canvas: #f3f6fb;
  --zl-surface: #ffffff;
  --zl-surface-muted: #f8fafd;
  --zl-border: #e1e7f0;
  --zl-divider: #edf1f6;
  --zl-text: #182230;
  --zl-text-secondary: #566277;
  --zl-text-muted: #8490a3;
  --zl-danger: #d92d20;
  --zl-danger-soft: #fff0ee;
  --zl-success: #16845b;
  --zl-radius-sm: 6px;
  --zl-radius: 10px;
  --zl-radius-lg: 14px;
  --zl-shadow-sm: 0 1px 2px rgba(23, 43, 77, .05);
  --zl-shadow: 0 10px 28px rgba(25, 42, 70, .07);
  --zl-shadow-float: 0 14px 34px rgba(23, 105, 224, .22);
}

html {
  background: var(--zl-canvas);
  color-scheme: light;
}

body {
  background: var(--zl-canvas) !important;
  color: var(--zl-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--zl-primary);
}

a:hover {
  color: var(--zl-primary-hover);
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(23, 105, 224, .24);
  outline-offset: 2px;
}

.text-primary { color: var(--zl-primary) !important; }
.text-muted,
.text-grey,
.text-gray { color: var(--zl-text-muted) !important; }

.btn {
  min-height: 38px;
  border-radius: var(--zl-radius-sm);
  font-weight: 600;
  box-shadow: none !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
.jb-blue.btn,
.btn.jb-blue {
  background: var(--zl-primary) !important;
  border-color: var(--zl-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.jb-blue.btn:hover,
.btn.jb-blue:hover {
  background: var(--zl-primary-hover) !important;
  border-color: var(--zl-primary-hover) !important;
}

.btn-outline-primary {
  color: var(--zl-primary);
  border-color: var(--zl-primary-border);
  background: #fff;
}

.btn-outline-primary:hover {
  color: var(--zl-primary-hover);
  border-color: var(--zl-primary);
  background: var(--zl-primary-soft);
}

.form-control,
.custom-select {
  min-height: 42px;
  color: var(--zl-text);
  border-color: var(--zl-border);
  border-radius: var(--zl-radius-sm);
  background: var(--zl-surface);
  box-shadow: 0 1px 1px rgba(23, 43, 77, .02) inset;
}

.form-control:focus,
.custom-select:focus {
  border-color: var(--zl-primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .12);
}

.input-group-text {
  color: var(--zl-text-secondary);
  border-color: var(--zl-border);
  background: var(--zl-surface-muted);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .01em;
}

.badge-primary,
.jb-blue {
  background: var(--zl-primary) !important;
}

.card,
.modal-content,
.dropdown-menu {
  border: 1px solid var(--zl-border) !important;
  border-radius: var(--zl-radius) !important;
  box-shadow: var(--zl-shadow-sm);
}

.card {
  background: var(--zl-surface);
  overflow: hidden;
}

.card-header,
.card-footer {
  background: var(--zl-surface) !important;
  border-color: var(--zl-divider) !important;
}

/* Header and global frame */
#header {
  position: fixed;
  z-index: 1040;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid rgba(215, 224, 237, .9);
  box-shadow: 0 6px 18px rgba(22, 40, 67, .045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

#header .navbar {
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent !important;
}

#header .container { max-width: 1180px; }

#body {
  width: 100%;
  padding-top: 88px !important;
  padding-bottom: 32px;
}

#body > .container { max-width: 1180px; }

.zl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 230px;
  margin-right: 28px;
}

.zl-brand-mark {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--zl-primary-border);
  border-radius: 10px;
  background: var(--zl-primary-soft);
  box-shadow: 0 4px 12px rgba(23, 105, 224, .12), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.zl-brand-mark .logo-2 {
  width: 22px;
  height: 22px;
  margin: 0;
  object-fit: contain;
}

.zl-brand-name {
  overflow: hidden;
  color: var(--zl-text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
}

#pc_nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0 2px;
  padding: 8px 12px;
  color: var(--zl-text-secondary);
  border-radius: var(--zl-radius-sm);
  font-size: 14px;
  font-weight: 560;
}

#pc_nav .nav-link:hover {
  color: var(--zl-primary);
  background: var(--zl-primary-soft);
}

#pc_nav .nav-item.active > .nav-link,
#pc_nav .nav-item.current > .nav-link {
  color: var(--zl-primary);
  background: var(--zl-primary-soft);
  font-weight: 700;
}

#pc_nav .header-right > .nav-item:first-child .nav-link,
#pc_nav .header-right > li:first-child .nav-link {
  justify-content: center;
  color: #fff;
  background: var(--zl-primary);
  padding-right: 16px;
  padding-left: 16px;
}

.zl-nav-create {
  width: 40px;
  justify-content: center;
  color: var(--zl-primary) !important;
  background: var(--zl-primary-soft);
}

.header_dropdown {
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--zl-primary-border);
}

.dropdown-menu {
  padding: 8px;
  box-shadow: var(--zl-shadow);
}

.dropdown-item {
  border-radius: var(--zl-radius-sm);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--zl-primary-soft);
}

.js-sidebar {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
}

.js-sidebar.is-visible { pointer-events: auto; }

.js-sidebar--background {
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 31, 48, .32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.js-sidebar--container {
  height: 100%;
  background: var(--zl-canvas) !important;
  box-shadow: 12px 0 32px rgba(20, 31, 48, .18);
}

.js-sidebar--container > .card {
  flex: 0 0 auto;
  overflow: visible;
  border: 0 !important;
  border-radius: 0 !important;
}

.js-sidebar .my_option:not(:has(a, button, input)) { display: none; }

.js-sidebar .sidebar_forumList .forumlist-bg {
  color: var(--zl-text-secondary);
  background: var(--zl-surface-muted);
  border: 1px solid var(--zl-divider);
}

.js-sidebar .sidebar_forumList .zl-forum-icon {
  display: grid;
  margin: 0 auto 5px;
}

/* Content cards and index */
.main > .card,
.aside > .card,
.thread-main > .card {
  margin-bottom: 16px;
}

.card-threadlist .card-header {
  min-height: 56px;
  padding: 0 18px;
}

.card-threadlist .card-header-tabs {
  height: 56px;
  margin: 0;
  align-items: stretch;
  border: 0;
}

.card-threadlist .nav-tabs .nav-link {
  position: relative;
  display: flex;
  height: 56px;
  align-items: center;
  padding: 0 4px;
  margin-right: 28px;
  color: var(--zl-text-secondary);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
}

.card-threadlist .nav-tabs .nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--zl-primary);
  content: "";
  opacity: 0;
  transform: scaleX(.5);
  transition: opacity .18s ease, transform .18s ease;
}

.card-threadlist .nav-tabs .nav-link.active {
  color: var(--zl-primary);
  font-weight: 750;
}

.card-threadlist .nav-tabs .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.card-threadlist > .card-body { padding: 0 18px; }

.threadlist > .thread {
  position: relative;
  margin: 0 !important;
  padding: 20px 4px !important;
  border-bottom: 1px solid var(--zl-divider) !important;
  background: transparent;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.threadlist > .thread:last-child { border-bottom: 0 !important; }

.threadlist > .thread:hover {
  background: var(--zl-surface-muted);
  box-shadow: 18px 0 0 var(--zl-surface-muted), -18px 0 0 var(--zl-surface-muted);
}

.threadlist .avatar-3 {
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 11px !important;
  background: var(--zl-primary-soft);
  box-shadow: 0 0 0 1px var(--zl-border), 0 4px 10px rgba(27, 47, 79, .08);
}

.threadlist .username {
  color: var(--zl-text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.threadlist .style1_subject_body .subject {
  margin: 6px 0 7px !important;
  color: var(--zl-text);
  font-size: 16px !important;
  line-height: 1.48;
}

.threadlist .style1_subject_body .subject a { color: var(--zl-text); }
.threadlist .style1_subject_body .subject a:hover { color: var(--zl-primary); }

.threadlist .brief,
.threadlist .brief a {
  color: var(--zl-text-secondary) !important;
  font-size: 13px !important;
  line-height: 1.72;
}

.threadlist .brief { margin-bottom: 10px; }

.threadlist .date,
.threadlist .style1_subject_body > .d-flex:last-child {
  color: var(--zl-text-muted);
  font-size: 12px;
}

.threadlist .style1_subject_body > .d-flex:last-child i,
.threadlist .style1_subject_body > .d-flex:last-child .iconfont {
  color: #9aa6b7;
  font-size: 13px;
}

.threadlist .badge {
  padding: 4px 7px;
  border: 1px solid var(--zl-primary-border);
  color: var(--zl-primary) !important;
  background: var(--zl-primary-soft) !important;
}

.left_img_box { margin-top: 10px !important; }
.subject_body_img { border: 1px solid var(--zl-border); object-fit: cover; }

.card-site-info {
  position: sticky;
  top: 80px;
}

.card-site-info .site-info-logo {
  width: 48px;
  height: 48px;
  margin-top: 18px;
  border: 1px solid var(--zl-border);
  border-radius: 12px !important;
  object-fit: contain;
}

.card-site-info .card-footer {
  padding: 12px !important;
  background: var(--zl-surface-muted) !important;
}

.card-site-info table td + td { border-left: 1px solid var(--zl-divider); }

.thread-left-nav .nav-link,
.forumList .nav-link {
  display: flex;
  min-height: 40px;
  align-items: center;
  color: var(--zl-text-secondary);
  border-radius: 7px;
  font-size: 13px;
}

.thread-left-nav .nav-link:hover,
.forumList .nav-link:hover {
  color: var(--zl-primary);
  background: var(--zl-primary-soft);
}

.zl-forum-icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 9px;
  place-items: center;
  color: var(--zl-primary);
  border: 1px solid var(--zl-primary-border);
  border-radius: 8px;
  background: var(--zl-primary-soft);
  font-size: 12px;
}

.zl-forum-hero-icon {
  display: grid;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--zl-primary);
  border: 1px solid var(--zl-primary-border);
  border-radius: 18px;
  background: var(--zl-primary-soft);
  box-shadow: 0 8px 18px rgba(23, 105, 224, .12), inset 0 1px 0 #fff;
  font-size: 24px;
}

.zl-forum-hero-icon-sm {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 11px;
  font-size: 15px;
  vertical-align: middle;
}

/* Thread reading and replies */
.breadcrumb {
  padding: 10px 14px;
  border: 1px solid var(--zl-border);
  border-radius: var(--zl-radius);
  background: var(--zl-surface) !important;
  box-shadow: var(--zl-shadow-sm);
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--zl-text-muted);
  font-size: 12px;
}

.card-thread .card-header { padding: 24px 26px 18px; }

.card-thread .card-header h4 {
  margin-bottom: 13px;
  color: var(--zl-text);
  font-size: 23px;
  line-height: 1.42;
  letter-spacing: -.015em;
}

.card-thread > .card-body {
  min-height: 210px;
  padding: 26px;
}

.card-thread .message {
  color: #273347;
  font-size: 15px;
  line-height: 1.9;
}

.card-thread .message img {
  max-width: 100%;
  height: auto;
  border-radius: var(--zl-radius);
}

.card-thread > .card-footer {
  min-height: 12px;
  padding: 8px 26px;
}

.card-postlist .card-header {
  padding: 16px 20px;
}

.card-postlist .postlist > .post,
.postlist > li {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  border-color: var(--zl-divider) !important;
}

.card-postlist .badge-secondary {
  color: var(--zl-text-secondary);
  background: var(--zl-surface-muted);
  border: 1px solid var(--zl-border);
}

.thread-nav {
  border-top: 1px solid var(--zl-border);
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 -8px 22px rgba(26, 42, 70, .07);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.thread_comment_input {
  min-height: 38px;
  padding: 9px 13px !important;
  border: 1px solid var(--zl-border);
  border-radius: 10px;
  background: var(--zl-surface-muted);
}

/* Moderation controls */
.thread_mod_func {
  position: sticky;
  z-index: 7;
  bottom: 74px;
  pointer-events: none;
}

.thread_mod_func .mod-button {
  padding: 5px;
  border: 1px solid var(--zl-border);
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--zl-shadow);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.thread_mod_func .btn-secondary {
  min-height: 34px;
  color: var(--zl-text-secondary);
  border: 0;
  background: transparent;
  font-size: 12px;
}

.thread_mod_func .btn-secondary:hover {
  color: var(--zl-primary);
  background: var(--zl-primary-soft);
}

.thread_mod_func .btn-secondary.delete:hover {
  color: var(--zl-danger) !important;
  background: var(--zl-danger-soft);
}

.thread_checkbox { accent-color: var(--zl-primary); }

/* Empty state and premium 3D visual accents. */
.zl-empty-state .col-6 { min-width: 280px; }

.zl-empty-state .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--zl-text);
}

.zl-empty-icon {
  position: relative;
  display: grid;
  width: 112px;
  height: 98px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--zl-primary-border);
  border-radius: 28px;
  background: linear-gradient(145deg, #365fd2, #769be9);
  box-shadow: 0 16px 30px rgba(48, 86, 178, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: perspective(300px) rotateX(4deg) rotateY(-4deg);
}

.zl-empty-icon::after {
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 36px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23, 105, 224, .16);
  filter: blur(7px);
  content: "";
}

.zl-empty-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(27, 43, 89, .18));
}
.zl-empty-state strong { font-size: 16px; }
.zl-empty-state small { margin-top: 7px; color: var(--zl-text-muted); }

/* User and account surfaces */
.user_header .mp-background,
.user-page-background {
  position: relative;
  overflow: hidden;
  height: 142px !important;
  background-color: #334f80 !important;
  background-blend-mode: soft-light;
}

.user_header .mp-background::after,
.user-page-background::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(19, 43, 77, .42), rgba(76, 111, 184, .12) 62%, rgba(95, 129, 205, .32));
  content: "";
}

.zl-user-profile-3d {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: -46px;
  width: 176px;
  height: 176px;
  object-fit: contain;
  opacity: .92;
  filter: drop-shadow(0 14px 18px rgba(18, 31, 55, .2));
  pointer-events: none;
}

.user_header .card-body { padding: 22px 26px; }

.user_header .avatar-6,
.user-page-background + .card-body .avatar-5 {
  border: 4px solid #fff !important;
  border-radius: 16px !important;
  background: var(--zl-primary-soft);
  box-shadow: var(--zl-shadow);
}

.my-mobile-btn-group {
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--zl-border);
  border-radius: 10px;
  background: #fff;
}

.my-mobile-btn-group .btn-secondary {
  border: 0;
  color: var(--zl-text-secondary);
  background: transparent;
}

.my-mobile-btn-group .btn-secondary.active {
  color: var(--zl-primary);
  background: var(--zl-primary-soft);
}

/* Login/register forms */
#form .form-group { margin-bottom: 16px; }

.zl-auth-heading {
  position: relative;
  margin-top: 12px;
}

.zl-auth-visual {
  display: grid;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid var(--zl-primary-border);
  border-radius: 30px;
  background: linear-gradient(145deg, #f7faff, #e7efff);
  box-shadow: 0 18px 34px rgba(32, 70, 138, .15), inset 0 1px 0 #fff;
  transform: perspective(340px) rotateX(3deg) rotateY(-4deg);
}

.zl-auth-visual img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 12px 13px rgba(28, 42, 94, .16));
}

.zl-auth-visual-plus {
  background: linear-gradient(145deg, #f7f5ff, #eae7ff);
}

.zl-auth-heading .h2 {
  margin-top: 15px !important;
}

.zl-search-hero {
  position: relative;
  display: flex;
  min-height: 142px;
  margin-bottom: 16px;
  padding: 24px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--zl-primary-border);
  border-radius: var(--zl-radius-lg);
  background: linear-gradient(120deg, #f8faff 0%, #edf3ff 58%, #e4edff 100%);
  box-shadow: var(--zl-shadow-sm);
}

.zl-search-hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(74, 109, 211, .12);
  content: "";
}

.zl-search-hero-copy { position: relative; z-index: 2; }

.zl-search-eyebrow {
  color: var(--zl-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.zl-search-hero h1 {
  margin: 7px 0 5px;
  color: var(--zl-text);
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -.02em;
}

.zl-search-hero p { margin: 0; color: var(--zl-text-secondary); }

.zl-search-hero > img {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: -24px;
  width: 168px;
  height: 168px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(35, 48, 107, .16));
  pointer-events: none;
}

.col-lg-5.mx-auto > .text-center .h2 {
  margin-top: 28px !important;
  margin-bottom: 24px !important;
  color: var(--zl-text);
  font-size: 24px;
  font-weight: 750;
}

.col-lg-5.mx-auto > .text-center .h2 i {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  color: var(--zl-primary);
  border: 1px solid var(--zl-primary-border);
  border-radius: 17px;
  background: var(--zl-primary-soft);
  font-size: 28px;
  line-height: 58px;
  box-shadow: 0 9px 20px rgba(23, 105, 224, .12);
}

.col-lg-5.mx-auto > .card { max-width: 460px; margin-right: auto; margin-left: auto; }
.col-lg-5.mx-auto > .card .card-header { padding: 18px 22px; }
.col-lg-5.mx-auto > .card .card-body { padding: 24px; }

#body > .container > .row > .col-lg-5.mx-auto {
  display: flex;
  min-height: calc(100vh - 205px);
  flex-direction: column;
  justify-content: center;
}

/* Footer */
#footer {
  padding-top: 24px !important;
  padding-bottom: 28px !important;
  color: var(--zl-text-muted) !important;
  border-top: 1px solid var(--zl-divider);
  background: transparent !important;
}

/* Mobile information strip and dock */
.zl-mobile-stats-wrap { margin-bottom: 12px; }

.zl-mobile-stats {
  min-height: 54px;
  margin: 0;
  padding: 8px 12px;
  align-items: center;
  border: 1px solid var(--zl-border);
  border-radius: var(--zl-radius);
  background: var(--zl-surface) !important;
}

.zl-stats-grid {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zl-stats-grid > span {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0 5px;
  align-items: center;
  color: var(--zl-primary);
}

.zl-stats-grid > span i { grid-row: 1 / 3; }
.zl-stats-grid > span .text-muted { font-size: 10px; line-height: 1.1; }
.zl-stats-grid > span b { color: var(--zl-text); font-size: 13px; line-height: 1.1; }

.zl-info-button,
.zl-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--zl-text-secondary);
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.zl-info-button:hover,
.zl-icon-button:hover { color: var(--zl-primary); background: var(--zl-primary-soft); }

.bottom-nav {
  z-index: 1030;
  bottom: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgba(215, 224, 237, .95);
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 -10px 28px rgba(26, 42, 70, .08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.bottom-nav .row { height: 64px !important; }

.bottom-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--zl-text-muted);
}

.bottom-nav .zl-nav-icon-wrap {
  position: relative;
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  line-height: 0;
}

.bottom-nav .zl-nav-3d {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  opacity: .82;
  filter: saturate(.82) brightness(1.02);
  transform: translateY(1px) scale(.94);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.bottom-nav a.active .zl-nav-3d,
.bottom-nav a.current .zl-nav-3d,
.bottom-nav a:hover .zl-nav-3d {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1.06);
}

.bottom-nav .zl-nav-icon-wrap .badge {
  top: -3px;
  right: -7px;
}

.bottom-nav .nav_font { font-size: 10px; line-height: 1; }

.bottom-nav a.active,
.bottom-nav a.current,
.bottom-nav a:hover { color: var(--zl-primary); }

.bottom-nav .zl-dock-create { overflow: visible; }

.zl-create-button {
  display: grid;
  width: 52px;
  height: 52px;
  margin-top: -25px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 17px;
  background: #f2f4ff;
  box-shadow: 0 10px 24px rgba(59, 72, 183, .24), inset 0 1px 0 rgba(255, 255, 255, .75);
}

.bottom-nav .zl-create-button .zl-nav-3d-create {
  width: 43px;
  height: 43px;
  opacity: 1;
  filter: none;
  transform: none;
}

.bottom-nav .zl-dock-create:hover .zl-nav-3d-create { transform: scale(1.06); }

@media (max-width: 991.98px) {
  #header,
  #header .navbar { height: 56px; min-height: 56px; }

  #body {
    padding-top: 68px !important;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  #body > .container { padding-right: 12px; padding-left: 12px; }

  #body > .container > .row {
    margin-right: 0;
    margin-left: 0;
  }

  #body > .container > .row > .main,
  #body > .container > .row > .thread-main {
    padding-right: 0;
    padding-left: 0;
  }

  .thread-main > .row {
    margin-right: 0;
    margin-left: 0;
  }

  #mobile_nav {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0 12px;
  }

  #mobile_nav .MobilemenuBtn { justify-self: start; }

  #mobile_nav .zl-mobile-brand {
    display: flex;
    max-width: 200px;
    height: 44px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--zl-text);
    font-size: 15px;
    font-weight: 750;
  }

  #mobile_nav .zl-mobile-brand .logo-2 {
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 1px solid var(--zl-primary-border);
    border-radius: 9px;
    background: var(--zl-primary-soft);
  }

  #mobile_nav > :last-child { justify-self: end; }

  .main > .card,
  .thread-main > .card { margin-bottom: 12px; }

  .card-threadlist > .card-body { padding: 0 14px; }

  .threadlist > .thread {
    padding: 16px 0 !important;
  }

  .threadlist > .thread:hover {
    box-shadow: 14px 0 0 var(--zl-surface-muted), -14px 0 0 var(--zl-surface-muted);
  }

  .threadlist > .thread > a { margin-right: 11px !important; }

  .threadlist .avatar-3 {
    width: 38px;
    height: 38px;
    border-radius: 10px !important;
  }

  .threadlist .style1_subject_body .subject {
    font-size: 15px !important;
    line-height: 1.5;
  }

  .threadlist .brief {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .threadlist .style1_subject_body > .d-flex:last-child > div:last-child {
    overflow: hidden;
    max-width: 56%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-thread .card-header { padding: 19px 18px 15px; }

  .card-thread .card-header h4 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.46;
  }

  .card-thread > .card-body {
    min-height: 150px;
    padding: 20px 18px;
  }

  .card-thread .message {
    font-size: 15px;
    line-height: 1.82;
  }

  .card-postlist .card-body { padding-right: 14px; padding-left: 14px; }

  .user-page-background { height: 116px !important; }

  .zl-user-profile-3d {
    right: 12px;
    bottom: -32px;
    width: 124px;
    height: 124px;
    opacity: .88;
  }

  .user-page-background + .card-body { padding: 18px; }

  .user-page-background + .card-body > div { margin-top: -52px !important; }

  .user-page-background + .card-body .avatar-5 {
    width: 76px;
    height: 76px;
  }

  .modal-dialog { margin: 12px; }
}

@media (max-width: 575.98px) {
  #body > .container { padding-right: 8px; padding-left: 8px; }

  .card,
  .breadcrumb,
  .zl-mobile-stats {
    border-radius: 9px !important;
  }

  .zl-mobile-stats { min-height: 52px; padding: 7px 9px; }
  .zl-stats-grid { gap: 9px; }
  .zl-stats-grid > span { gap: 0 4px; }

  .card-threadlist .card-header { min-height: 52px; padding: 0 14px; }
  .card-threadlist .card-header-tabs,
  .card-threadlist .nav-tabs .nav-link { height: 52px; }

  .threadlist .style1_subject_body > .d-flex:last-child > div:last-child { display: none; }

  .thread_mod_func { bottom: 68px; }

  .thread_mod_func .mod-button {
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    white-space: nowrap;
  }

  .thread_mod_func .btn-secondary { padding-right: 9px; padding-left: 9px; }

  .col-lg-5.mx-auto > .text-center .h2 {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    font-size: 21px;
  }

  .zl-auth-visual {
    width: 92px;
    height: 92px;
    border-radius: 25px;
  }

  .zl-auth-visual img {
    width: 86px;
    height: 86px;
  }

  .zl-search-hero {
    min-height: 118px;
    padding: 18px 20px;
    border-radius: 11px;
  }

  .zl-search-hero h1 { font-size: 20px; }
  .zl-search-hero p { max-width: 60%; font-size: 12px; }
  .zl-search-hero > img { right: -2px; bottom: -16px; width: 126px; height: 126px; }

  .col-lg-5.mx-auto > .card .card-body { padding: 20px 17px; }

  #body > .container > .row > .col-lg-5.mx-auto {
    min-height: calc(100vh - 188px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
