﻿/* Neo lab chrome — site-wide navbar + sidebar */

/* Homepage Lab — cyan mock theme (does not affect live /home) */
:root {
  --hl-bg: var(--bg, #070b10);
  --hl-panel: var(--card, #0c1219);
  --hl-panel-2: var(--bg-table, #101820);
  --hl-line: rgba(255, 255, 255, 0.07);
  --hl-text: var(--text-default, #f3f7fb);
  --hl-muted: #8b97a8;
  --hl-accent: var(--accent, #00e5ff);
  --hl-accent-2: var(--accent-2, #00b8d4);
  --hl-good: var(--green, #3ddc97);
  --hl-bad: var(--red, #ff5d6c);
  --hl-radius: 12px;
  --hl-side-cyan: var(--accent, #00e5ff);
}

/* —— Stats pill (navbar left / shared) —— */
.hl-stats {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 10px 8px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(8, 12, 18, 0.52);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hl-stat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
}

.hl-stat + .hl-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.hl-stat::before {
  display: none;
}

.hl-stat__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--hl-accent);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.14);
  flex-shrink: 0;
}

.hl-stat__icon svg {
  width: 16px;
  height: 16px;
}

.hl-stat__body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hl-stat__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.hl-stat__value {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hl-stat__trend {
  font-size: 0.7rem;
  font-weight: 800;
}

.hl-stat__trend.is-up { color: var(--hl-good); }
.hl-stat__trend.is-down { color: var(--hl-bad); }

.hl-stat__label {
  display: block;
  color: rgba(180, 194, 210, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.hl-stat__spark {
  display: none;
}

/* —— Homelab mock sidebar: fixed left rail, character visible in lower half —— */
.top-navbar_brand {
  display: none;
}

.app-layout {
  max-width: none;
  padding-left: 0;
  padding-right: 1.25rem;
}

/* Keep bottom blocks on the content rail; servers panel bleeds full width */
.hl-home > .hl-bottom {
  margin-right: 0;
}

.main-content {
  padding-top: 0.35rem !important;
}

.top-navbar {
  margin-left: 236px;
  padding: 0.75rem 1rem;
  background: transparent !important;
  border-bottom: 0 !important;
  position: relative;
  z-index: 50;
}

/* —— Homelab mock top navbar (centered search + right actions) —— */
.top-navbar--lab {
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
  padding: 0 0 0 1rem !important;
  background: rgba(6, 10, 16, 0.72) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.top-navbar--lab .top-navbar_inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  width: 100%;
  position: relative;
}

.top-navbar--lab .top-navbar_left {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  z-index: 3;
  /* Bleed past navbar left padding to the content rail edge */
  margin-left: -1rem;
  align-self: stretch;
  min-height: 56px;
  overflow: hidden;
  grid-column: 1;
  justify-self: stretch;
}

.top-navbar--lab .top-navbar_left .sidebar_toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 0.35rem 0 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 18, 0.72);
  z-index: 3;
}

.top-navbar--lab .top-navbar_left .top-navbar_brand,
.top-navbar--lab .top-navbar_left .top-navbar_crumbs,
.top-navbar--lab .top-navbar_left .top-navbar_online_pill {
  display: none !important;
}

/* Single stats panel — exact mirror of the actions slash (right side) */
.top-navbar--lab .top-navbar_left .hl-stats.hl-nav-stats-slash {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  /* Mirror of actions padding: large inset on the slash side (right) */
  padding: 0.7rem 3.75rem 0.7rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  align-self: stretch;
  min-height: 56px;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

/*
  Decoration layer uses the SAME slash geometry as actions,
  then scaleX(-1) so the cut lands on the right — perfect symmetry.
*/
.top-navbar--lab .hl-nav-stats-slash__deco {
  --hl-slash-skew: -20deg;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: scaleX(-1);
  transform-origin: center;
}

.top-navbar--lab .hl-nav-stats-slash__deco::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 1.55rem;
  z-index: -1;
  background: #05080d;
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
}

.top-navbar--lab .hl-nav-stats-slash__deco::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.15rem;
  width: 1.15rem;
  z-index: -2;
  pointer-events: none;
  background: rgba(16, 32, 48, 0.38);
  border-left: 1px solid rgba(160, 200, 230, 0.08);
  border-right: 1px solid rgba(8, 14, 22, 0.2);
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-navbar--lab .hl-nav-stats-slash__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.4rem;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: rgba(170, 205, 230, 0.38);
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
  box-shadow: 0 0 8px 1px rgba(120, 180, 210, 0.12);
}

/* Kill old direct ::before/::after on stats (decoration is on __deco now) */
.top-navbar--lab .hl-nav-stats-slash::before,
.top-navbar--lab .hl-nav-stats-slash::after {
  content: none;
  display: none;
}

.top-navbar--lab .top-navbar_left .hl-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 12px;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.top-navbar--lab .top-navbar_left .hl-stat + .hl-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.top-navbar--lab .top-navbar_left .hl-stat__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--hl-accent);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.16);
}

.top-navbar--lab .top-navbar_left .hl-stat__icon svg {
  width: 13px;
  height: 13px;
}

.top-navbar--lab .top-navbar_left .hl-stat__body {
  gap: 1px;
  min-width: 0;
}

.top-navbar--lab .top-navbar_left .hl-stat__row {
  gap: 5px;
  align-items: center;
}

.top-navbar--lab .top-navbar_left .hl-stat__value {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.top-navbar--lab .top-navbar_left .hl-stat__trend {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.top-navbar--lab .top-navbar_left .hl-stat__trend.is-up {
  color: #3dff9a;
  background: rgba(61, 255, 154, 0.12);
}

.top-navbar--lab .top-navbar_left .hl-stat__trend.is-down {
  color: #ff6b7a;
  background: rgba(255, 107, 122, 0.12);
}

.top-navbar--lab .top-navbar_left .hl-stat__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(170, 184, 200, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-navbar--lab .top-navbar_actions {
  position: relative;
  width: 100%;
  max-width: 100%;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0.65rem;
  min-height: 56px;
  min-width: 0;
  z-index: 3;
  grid-column: 3;
  justify-self: stretch;
}

.top-navbar--lab .hl-nav-actions-slash {
  --hl-slash-skew: -20deg;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  /* Bleed past .app-layout padding-right (1.25rem) to the page edge */
  margin-right: -1.25rem;
  padding: 0.7rem 1.35rem 0.7rem 3.75rem;
  align-self: stretch;
  min-height: 56px;
  height: 100%;
  z-index: 2;
  overflow: visible;
  box-sizing: border-box;
}

/* Solid black actions panel — diagonal cut on the left */
.top-navbar--lab .hl-nav-actions-slash::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 1.55rem;
  z-index: -1;
  background: #05080d;
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
}

/*
  Design (L→R): wide frosted slash → thin cyan line → black panel.
*/
.top-navbar--lab .hl-nav-actions-slash::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.15rem;
  width: 1.15rem;
  z-index: -2;
  pointer-events: none;
  background: rgba(16, 32, 48, 0.38);
  border-left: 1px solid rgba(160, 200, 230, 0.08);
  border-right: 1px solid rgba(8, 14, 22, 0.2);
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Thin soft line between frosted slash and black panel */
.top-navbar--lab .hl-nav-actions-slash__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.4rem;
  width: 1px;
  z-index: 0;
  pointer-events: none;
  background: rgba(170, 205, 230, 0.38);
  transform: skewX(var(--hl-slash-skew));
  transform-origin: bottom left;
  box-shadow: 0 0 8px 1px rgba(120, 180, 210, 0.12);
}

.top-navbar--lab .search_players {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: clamp(220px, 28vw, 400px);
  max-width: 400px;
  min-width: 180px;
  margin: 0 !important;
  z-index: 4;
  pointer-events: auto;
  display: block !important;
  grid-column: 2;
  justify-self: center;
}

.top-navbar--lab .modal_users_container {
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translate(0, 10px);
  width: max(100%, 320px);
  max-width: min(440px, 92vw);
  z-index: 20;
}

.top-navbar--lab .users_found .modal_users_container {
  transform: translate(-50%, 0);
  left: 50%;
}

.top-navbar--lab .modal-searchcontent,
.top-navbar--lab .modal-searchcontent form {
  width: 100%;
  margin: 0;
}

.top-navbar--lab .modal-searchcontent form {
  position: relative;
  display: flex;
  align-items: center;
}

.top-navbar--lab .search-input-block {
  width: 100% !important;
  min-height: 44px;
  padding: 0.7rem 4.6rem 0.7rem 2.65rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(4, 8, 14, 0.72) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.92rem !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.top-navbar--lab .search-input-block:focus,
.top-navbar--lab .search-input-block:not(:placeholder-shown) {
  padding-right: 1rem !important;
}

.top-navbar--lab .search-input-block::placeholder {
  color: rgba(210, 220, 230, 0.48);
}

.top-navbar--lab .search-input-block:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.18) !important;
}

.top-navbar--lab .modal-searchcontent svg {
  position: absolute;
  left: 1rem;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  opacity: 0.55;
  fill: rgba(255, 255, 255, 0.78);
  pointer-events: none;
  z-index: 1;
}

.top-navbar--lab .modal-searchcontent input:focus ~ svg {
  opacity: 0.85;
  fill: var(--hl-accent);
}

.top-navbar--lab .hl-nav-kbd {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(210, 220, 230, 0.62);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* Hide shortcut chip while typing so the caret isn't jammed against it */
.top-navbar--lab .search-input-block:focus ~ .hl-nav-kbd,
.top-navbar--lab .search-input-block:not(:placeholder-shown) ~ .hl-nav-kbd {
  display: none !important;
}

.top-navbar--lab .top-navbar_discord {
  width: auto;
  height: auto;
  min-height: 44px;
  flex: 0 0 auto;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 28, 38, 0.72);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 3;
  box-shadow: none;
}

.top-navbar--lab .top-navbar_discord:hover {
  background: rgba(32, 40, 54, 0.86);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: none;
}

.top-navbar--lab .top-navbar_discord svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  opacity: 0.9;
}

.top-navbar--lab .top-navbar_discord .hl-nav-discord-label {
  line-height: 1;
  color: inherit;
}

.top-navbar--lab .top-navbar_login {
  min-height: 44px;
  gap: 0.55rem;
  padding: 0.55rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 230, 0.45);
  background: linear-gradient(180deg, #5eefff 0%, #22d4e8 100%);
  color: #071218 !important;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  z-index: 3;
  box-shadow: 0 4px 16px rgba(0, 200, 220, 0.18);
}

.top-navbar--lab .top-navbar_login:hover {
  opacity: 1;
  background: linear-gradient(180deg, #7af3ff 0%, #3addf0 100%);
  border-color: rgba(0, 220, 235, 0.55);
  color: #071218 !important;
  box-shadow: 0 6px 18px rgba(0, 200, 220, 0.24);
}

.top-navbar--lab .top-navbar_login span,
.top-navbar--lab .top-navbar_login svg,
.top-navbar--lab .top-navbar_login svg use {
  color: #071218 !important;
  fill: #071218 !important;
}

.top-navbar--lab .top-navbar_login svg {
  width: 1.05rem;
  height: 1.05rem;
}

.top-navbar--lab .pay_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1rem !important;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 230, 0.45);
  background: linear-gradient(180deg, #5eefff 0%, #22d4e8 100%) !important;
  color: #071218;
  font-size: 0.88rem;
  font-weight: 700;
  position: relative;
  z-index: 3;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 200, 220, 0.18);
}

.top-navbar--lab .pay_button.hl-nav-hide,
.top-navbar--lab .pay_button[hidden] {
  display: none !important;
}

.top-navbar--lab .pay_button:hover {
  background: linear-gradient(180deg, #7af3ff 0%, #3addf0 100%) !important;
  border-color: rgba(0, 220, 235, 0.55);
  box-shadow: 0 6px 18px rgba(0, 200, 220, 0.24);
}

.top-navbar--lab .pay_button svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  fill: #0a1218 !important;
}

.top-navbar--lab .pay_button .hide_balance_text {
  display: inline;
  color: #0a1218 !important;
  line-height: 1;
}

.top-navbar--lab .language,
.top-navbar--lab .language__modal {
  display: none !important;
}

.top-navbar--lab .user__notifications,
.top-navbar--lab .top-navbar_avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 20, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.top-navbar--lab .top-navbar_avatar .user__avatar,
.top-navbar--lab .top-navbar_avatar img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.layout-body {
  margin-left: 236px;
}

.homelab-chrome {
  display: none;
}

/* flash-hide omitted */

.main-sidebar--lab {
  --hl-side-cyan: var(--accent, #00e5ff);
  position: fixed !important;
  left: 0;
  top: 0;
  bottom: 0;
  width: 236px;
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  align-self: auto;
  z-index: 120;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  background: #05080c;
}

.main-sidebar--lab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      #05080c 0%,
      #05080c 48%,
      rgba(5, 8, 12, 0.97) 56%,
      rgba(5, 8, 12, 0.88) 62%,
      rgba(5, 8, 12, 0.45) 70%,
      rgba(5, 8, 12, 0.12) 80%,
      rgba(5, 8, 12, 0.28) 100%
    ),
    url("/app/modules/module_block_main_statistics/assets/img/home/sidebar-rail-bg.jpg?v=1") 16% 100% / 145% auto no-repeat;
  pointer-events: none;
}

.main-sidebar--lab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(5, 8, 12, 0.2) 0%, transparent 35%, transparent 70%, rgba(5, 8, 12, 0.25) 100%);
  pointer-events: none;
}

.main-sidebar--lab > [data-hl-sidebar-hidden] {
  display: none !important;
}

.sidebar-lab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  padding: 1.15rem 0 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.sidebar-lab::before {
  display: none;
}

.sidebar-lab-brand,
.sidebar-lab-nav,
.sidebar-lab-foot {
  position: relative;
  z-index: 1;
}

.sidebar-lab-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.85rem 0.55rem;
  padding: 0.15rem 0.35rem 0.55rem;
  text-decoration: none;
  border-bottom: 0;
}

.sidebar-lab-brand__logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.45));
}

.sidebar-lab-brand__sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
}

.sidebar-lab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.sidebar-lab-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 40px;
  padding: 0.52rem 0.8rem 0.52rem 0.95rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background 0.18s ease;
}

.sidebar-lab-link__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.92;
}

.sidebar-lab-link__icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
  fill: currentColor !important;
  stroke: none !important;
  color: inherit;
}

.sidebar-lab-link__icon svg *,
.sidebar-lab-link__icon svg path,
.sidebar-lab-link__icon svg g,
.sidebar-lab-link__icon svg .st0,
.sidebar-lab-link__icon svg use {
  fill: currentColor !important;
  stroke: none !important;
  color: inherit;
}

.sidebar-lab-link__text {
  line-height: 1.2;
}

.sidebar-lab-link:hover {
  color: #fff;
  background: rgba(0, 234, 255, 0.06);
}

.sidebar-lab-link:hover .sidebar-lab-link__icon {
  color: inherit;
  opacity: 1;
}

.sidebar-lab-link.is-active {
  color: var(--hl-side-cyan);
  font-weight: 700;
  background: linear-gradient(90deg, rgba(0, 234, 255, 0.22) 0%, rgba(0, 234, 255, 0.08) 55%, rgba(0, 234, 255, 0.02) 100%);
  box-shadow:
    0 0 18px rgba(0, 234, 255, 0.12),
    inset 0 0 0 1px rgba(0, 234, 255, 0.08);
}

.sidebar-lab-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 999px;
  background: var(--hl-side-cyan);
  box-shadow:
    0 0 8px rgba(0, 234, 255, 0.95),
    0 0 18px rgba(0, 234, 255, 0.55);
}

.sidebar-lab-link.is-active .sidebar-lab-link__icon {
  color: var(--hl-side-cyan);
  opacity: 1;
}

.sidebar-lab-foot {
  margin-top: auto;
  padding: 1.1rem 0.75rem 0.2rem;
}

.sidebar-lab-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.8rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 234, 255, 0.28);
  background: rgba(6, 10, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.08);
  text-align: center;
}

.sidebar-lab-cta__text {
  margin: 0 0 0.55rem;
  color: rgba(230, 240, 250, 0.72);
  font-size: 0.7rem;
  line-height: 1.35;
}

.sidebar-lab-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 24, 0.88);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-lab-cta__btn:hover {
  border-color: rgba(0, 234, 255, 0.55);
  background: rgba(0, 234, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.18);
}

.top-navbar_online_pill_dot {
  background: var(--hl-accent) !important;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7) !important;
}

/* —— Responsive navbar: keep search, prevent overlap —— */
@media (max-width: 1400px) {
  .top-navbar--lab .top-navbar_inner {
    gap: 0.55rem;
  }

  .top-navbar--lab .search_players {
    width: clamp(200px, 26vw, 340px);
    max-width: 340px;
  }

  .top-navbar--lab .hl-nav-kbd {
    display: none;
  }

  .top-navbar--lab .search-input-block {
    padding-right: 1rem !important;
  }

  .top-navbar--lab .top-navbar_discord .hl-nav-discord-label {
    display: none;
  }

  .top-navbar--lab .top-navbar_discord {
    min-width: 44px;
    padding: 0.55rem 0.75rem;
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .top-navbar--lab .search_players {
    width: clamp(180px, 24vw, 280px);
    max-width: 280px;
  }

  /* Drop the third stat (Өнөөдөр) — deco is child 1 */
  .top-navbar--lab .top-navbar_left .hl-stat:nth-child(4) {
    display: none;
  }

  .top-navbar--lab .top-navbar_left .hl-stats.hl-nav-stats-slash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 2.75rem;
  }

  .top-navbar--lab .pay_button .hide_balance_text {
    display: none !important;
  }

  .top-navbar--lab .pay_button {
    min-width: 44px;
    padding: 0.55rem 0.75rem !important;
  }

  .top-navbar--lab .top-navbar_login span {
    display: none;
  }

  .top-navbar--lab .top-navbar_login {
    min-width: 44px;
    padding: 0.55rem 0.75rem;
  }
}

@media (max-width: 992px) {
  .top-navbar--lab .top-navbar_inner {
    display: flex !important;
    gap: 0.5rem;
  }

  .top-navbar--lab .top-navbar_left {
    flex: 0 0 auto;
    margin-left: 0;
    overflow: visible;
    grid-column: auto;
  }

  .top-navbar--lab .top-navbar_left .sidebar_toggle {
    display: inline-flex;
  }

  .top-navbar--lab .top-navbar_left .hl-stats {
    display: none !important;
  }

  .top-navbar--lab .search_players {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
    grid-column: auto;
    justify-self: auto;
  }

  .top-navbar--lab .top-navbar_actions {
    flex: 0 0 auto;
    width: auto;
    grid-column: auto;
  }

  .top-navbar--lab .hl-nav-actions-slash {
    margin-right: -0.75rem;
    padding-left: 2.5rem;
    gap: 0.45rem;
  }

  .top-navbar--lab .top-navbar_discord {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .top-navbar,
  .top-navbar--lab,
  .layout-body {
    margin-left: 0 !important;
  }

  .app-layout {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .main-sidebar--lab {
    top: 0 !important;
    bottom: 0 !important;
    width: min(280px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    min-height: 0 !important;
    z-index: 260 !important;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
  }

  .main-sidebar--lab.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    z-index: 250;
    top: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .top-navbar--lab {
    padding: 0 0.5rem !important;
  }

  .top-navbar--lab .top-navbar_inner {
    display: flex !important;
    gap: 0.45rem;
    min-height: 52px;
    padding: 0.35rem 0;
  }

  .top-navbar--lab .top-navbar_left {
    flex: 0 0 auto;
    margin-left: 0;
    overflow: visible;
  }

  .top-navbar--lab .top-navbar_left .sidebar_toggle {
    display: inline-flex !important;
    margin: 0;
    width: 40px;
    height: 40px;
  }

  .top-navbar--lab .top-navbar_left .hl-stats {
    display: none !important;
  }

  /* Beat global style.css which hides .search_players under 768px */
  .top-navbar--lab .search_players {
    display: block !important;
    flex: 1 1 auto !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .top-navbar--lab .search-input-block {
    min-height: 40px;
    font-size: 0.84rem !important;
    padding: 0.55rem 0.85rem 0.55rem 2.35rem !important;
  }

  .top-navbar--lab .modal-searchcontent svg {
    left: 0.8rem;
  }

  .top-navbar--lab .top-navbar_actions {
    flex: 0 0 auto;
    min-height: 0;
    gap: 0.35rem;
  }

  .top-navbar--lab .hl-nav-actions-slash {
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    min-height: 0;
    gap: 0.35rem;
  }

  .top-navbar--lab .hl-nav-actions-slash::before,
  .top-navbar--lab .hl-nav-actions-slash::after,
  .top-navbar--lab .hl-nav-actions-slash__line {
    display: none !important;
  }

  .top-navbar--lab .top-navbar_discord {
    display: none !important;
  }

  .top-navbar--lab .pay_button,
  .top-navbar--lab .user__notifications,
  .top-navbar--lab .top-navbar_avatar,
  .top-navbar--lab .top-navbar_login {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
  }

  .top-navbar--lab .pay_button .hide_balance_text,
  .top-navbar--lab .top-navbar_login span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .top-navbar--lab .search-input-block {
    font-size: 0.78rem !important;
    padding-left: 2.1rem !important;
  }

  .top-navbar--lab .search-input-block::placeholder {
    font-size: 0.78rem;
  }

  .top-navbar--lab .pay_button {
    display: none !important;
  }
}

/* —— Site-wide chrome harden (beat layout-sidebar.css) —— */
.app-layout.app-layout--lab-chrome {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 1.25rem !important;
  width: 100%;
}

.app-layout--lab-chrome > .top-navbar--lab {
  margin-left: 236px !important;
}

.app-layout--lab-chrome > .layout-body {
  display: block !important;
  margin-left: 236px !important;
  min-width: 0;
}

.app-layout--lab-chrome .main-sidebar--lab {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 236px !important;
  flex: none !important;
  align-self: auto !important;
}

.app-layout--lab-chrome .main-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.top-navbar--lab .top-navbar_actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.top-navbar--lab .hl-nav-actions-slash {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  margin-left: 0 !important;
  justify-content: flex-end !important;
}

@media (min-width: 993px) {
  .top-navbar--lab .top-navbar_inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  }

  .top-navbar--lab .search_players {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    grid-column: 2 !important;
    justify-self: center !important;
  }

  .top-navbar--lab .top-navbar_actions {
    grid-column: 3 !important;
  }
}

.top-navbar--lab .notification-wrapper,
.top-navbar--lab .user__menu,
.top-navbar--lab .language__modal {
  position: absolute !important;
}

.top-navbar--lab .top-navbar_discord {
  display: inline-flex;
  width: auto !important;
  height: auto !important;
  min-height: 44px !important;
  flex: 0 0 auto !important;
}

@media (min-width: 993px) {
  .top-navbar--lab .top-navbar_discord {
    display: inline-flex !important;
  }
}

.top-navbar--lab .language,
.top-navbar--lab .language__modal {
  display: none !important;
}

.sidebar-lab-link__icon svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  max-width: 1.15rem !important;
  max-height: 1.15rem !important;
  fill: currentColor !important;
  stroke: none !important;
}

.sidebar-lab-link__icon svg *,
.sidebar-lab-link__icon svg path,
.sidebar-lab-link__icon svg use {
  fill: currentColor !important;
  stroke: none !important;
}

.top-navbar--lab .pay_button.hl-nav-hide,
.top-navbar--lab .pay_button[hidden] {
  display: none !important;
}

@media (max-width: 992px) {
  .app-layout--lab-chrome > .top-navbar--lab,
  .app-layout--lab-chrome > .layout-body {
    margin-left: 0 !important;
  }

  .app-layout--lab-chrome .main-sidebar--lab {
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 260 !important;
    width: min(280px, 86vw) !important;
  }

  .app-layout--lab-chrome .main-sidebar--lab.open {
    transform: translateX(0);
  }

  .top-navbar--lab .top-navbar_discord {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .app-layout--lab-chrome > .top-navbar--lab,
  .app-layout--lab-chrome > .layout-body {
    margin-left: 0 !important;
  }
  .app-layout.app-layout--lab-chrome {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
  }

  /* Final mobile button lock — must stay after harden rules */
  .top-navbar--lab .top-navbar_discord {
    display: none !important;
  }

  .top-navbar--lab .pay_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .top-navbar--lab .pay_button .hide_balance_text,
  .top-navbar--lab .pay_button span {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  .top-navbar--lab .pay_button svg {
    width: 1.05rem !important;
    height: 1.05rem !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .top-navbar--lab .user__notifications,
  .top-navbar--lab .top-navbar_avatar,
  .top-navbar--lab .top-navbar_login {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .top-navbar--lab .top-navbar_login span {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .top-navbar--lab .pay_button {
    display: none !important;
  }
}
