/* NAV BAR CSS */

.user-dropdown-toggle::after {
  display: none !important;
}

.nav-search-wrapper {
  margin-left: auto;
}

.navbar-logo {
  max-width: 45px;
  max-height: 45px;
  filter: drop-shadow(0 3px 7px rgba(255, 223, 0, 0.25));
}

/* Desktop/tablet left navigation shell */
:root {
  --gh-sidebar-expanded-width: 248px;
  --gh-sidebar-collapsed-width: 78px;
}

.gh-desktop-sidebar {
  position: fixed;
  inset: 0 auto var(--gh-fixed-footer-space, 0px) 0;
  z-index: 1070;
  width: var(--gh-sidebar-expanded-width);
  min-width: 0;
  flex-direction: column;
  padding: 0.85rem 0.75rem;
  overflow: visible;
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 223, 0, 0.055), transparent 19rem),
    linear-gradient(180deg, #111114 0%, #0d0d10 100%);
  border-right: 1px solid rgba(255, 223, 0, 0.12);
  box-shadow: 14px 0 34px rgba(0, 0, 0, 0.32);
  transition: width 180ms ease;
}

.gh-sidebar-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.2rem 0.9rem;
  border-bottom: 1px solid rgba(255, 223, 0, 0.10);
}

.gh-sidebar-brand {
  min-width: 0;
  height: 48px;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0 0.2rem;
  border-radius: 14px;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.gh-sidebar-brand:hover {
  color: #ffdf00;
  transform: translateY(-1px);
}

.gh-sidebar-brand-name {
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sidebar-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 0, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: #c9c9c9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease, transform 180ms ease;
}

.gh-sidebar-toggle:hover,
.gh-sidebar-toggle:focus-visible {
  background: rgba(255, 223, 0, 0.10);
  border-color: rgba(255, 223, 0, 0.32);
  color: #ffdf00;
  outline: none;
}

.gh-sidebar-nav {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.45rem 0.55rem;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  /* background: rgba(255, 255, 255, 0.018); */
  background: #171718;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.gh-sidebar-section-label {
  padding: 0.1rem 0.7rem 0.45rem;
  color: #73737c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.gh-sidebar-nav-link {
  position: relative;
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 0.68rem;
  padding: 0.45rem 0.55rem;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #c9c9c9;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.gh-sidebar-nav-link i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.gh-sidebar-label {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 1;
  transition: opacity 100ms ease;
}

.gh-sidebar-nav-link:hover,
.gh-sidebar-nav-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateX(2px);
}

.gh-sidebar-nav-link:hover i,
.gh-sidebar-nav-link:focus-visible i {
  border-color: rgba(255, 223, 0, 0.16);
  background: rgba(255, 223, 0, 0.07);
  color: #ffdf00;
}

.gh-sidebar-nav-link.active {
  border-color: rgba(255, 223, 0, 0.16);
  background: linear-gradient(90deg, rgba(255, 223, 0, 0.16), rgba(255, 223, 0, 0.09));
  color: #ffdf00;
  box-shadow: inset 3px 0 0 #ffdf00, 0 10px 22px rgba(0, 0, 0, 0.28);
}

.gh-sidebar-nav-link.active i {
  border-color: rgba(255, 223, 0, 0.25);
  background: rgba(255, 223, 0, 0.12);
  color: #ffdf00;
}

.gh-sidebar-widgets {
  min-height: 0;
  max-height: calc(100dvh - 525px);
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0;
  padding: 1rem 0.1rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(255, 223, 0, 0.48) transparent;
  scrollbar-width: thin;
}

.gh-sidebar-widgets::-webkit-scrollbar {
  width: 4px;
}

.gh-sidebar-widgets::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 223, 0, 0.48);
}

.gh-sidebar-widget {
  position: relative;
  flex: 0 0 auto;
  min-height: 118px;
  padding: 0.85rem 0.8rem 0.8rem 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 15px;
  /* background: linear-gradient(145deg, rgba(29, 29, 34, 0.96), rgba(17, 17, 21, 0.98)); */
  background: #171718;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.gh-sidebar-staff-card {
  width: 100%;
  min-height: 108px;
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: auto;
}

/* Keep the full sidebar usable on shorter desktop screens. */
@media (min-width: 992px) and (max-height: 1050px) {
  .gh-desktop-sidebar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .gh-sidebar-header {
    min-height: 54px;
    padding-bottom: 0.55rem;
  }

  .gh-sidebar-nav {
    gap: 0.15rem;
    margin-top: 0.55rem;
    padding: 0.4rem 0.35rem;
  }

  .gh-sidebar-section-label {
    padding-bottom: 0.25rem;
  }

  .gh-sidebar-nav-link {
    min-height: 42px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .gh-sidebar-nav-link i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .gh-sidebar-staff-card {
    min-height: 96px;
    margin-top: 0.65rem;
    margin-bottom: 0;
  }

  .gh-sidebar-widgets {
    max-height: calc(100dvh - 525px);
    gap: 0.55rem;
    padding-top: 0.65rem;
  }

  .gh-sidebar-widget {
    min-height: 100px;
    padding: 0.7rem 0.7rem 0.65rem 0.85rem;
  }
}

.gh-sidebar-widget::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #ffdf00;
  opacity: 1;
}

.gh-sidebar-widget-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.gh-sidebar-widget-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffdf00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.gh-sidebar-widget-badge {
  max-width: 86px;
  padding: 0.22rem 0.42rem;
  overflow: hidden;
  border: 1px solid rgba(255, 223, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 223, 0, 0.07);
  color: #d8d8dc;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sidebar-widget-link {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: #f5f5f5;
  text-decoration: none;
}

.gh-sidebar-widget-link:hover,
.gh-sidebar-widget-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.gh-sidebar-widget-link>strong {
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sidebar-widget-link>span:not(.gh-sidebar-versus):not(.gh-sidebar-bracket-route):not(.gh-sidebar-result) {
  overflow: hidden;
  color: #aaaab2;
  font-size: 0.76rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sidebar-widget-link>small,
.gh-sidebar-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f7f89;
  font-size: 0.69rem;
  font-weight: 600;
}

.gh-sidebar-widget-link:hover>small {
  color: #ffdf00;
}

.gh-sidebar-match-tournament {
  color: #92929c !important;
  font-size: 0.71rem !important;
  font-weight: 650;
}

.gh-sidebar-versus {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-height: 24px;
}

.gh-sidebar-versus strong {
  overflow: hidden;
  font-size: 0.8rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-sidebar-versus strong:last-child {
  text-align: right;
}

.gh-sidebar-versus strong.is-pending {
  color: #b4b4bc;
  font-size: 0.71rem;
  white-space: normal;
}

.gh-sidebar-versus em {
  color: #686872;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.gh-sidebar-bracket-route {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.48rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #a5a5ae;
  font-size: 0.67rem;
  font-weight: 650;
  line-height: 1.2;
}

.gh-sidebar-bracket-route i {
  color: #ffdf00;
  font-size: 0.55rem;
}

.gh-sidebar-widget-empty,
.gh-sidebar-staff-message {
  margin: 0;
  color: #a4a4ad;
  font-size: 0.76rem;
  line-height: 1.42;
}

.gh-sidebar-staff-message {
  color: #dedee2;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.gh-sidebar-widget-foot {
  margin-top: 0.6rem;
}

.gh-sidebar-result {
  align-self: flex-start;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gh-sidebar-result--won {
  background: rgba(66, 190, 101, 0.12);
  color: #62ca7f;
}

.gh-sidebar-result--lost {
  background: rgba(220, 77, 77, 0.12);
  color: #dc6b6b;
}

.gh-sidebar-staff-editor {
  margin-left: auto;
}

.gh-sidebar-staff-editor summary {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 223, 0, 0.15);
  border-radius: 8px;
  background: rgba(255, 223, 0, 0.055);
  color: #ffdf00;
  cursor: pointer;
  list-style: none;
}

.gh-sidebar-staff-editor summary::-webkit-details-marker {
  display: none;
}

.gh-sidebar-staff-editor[open] {
  width: 100%;
  margin-top: 0.25rem;
}

.gh-sidebar-staff-editor[open] summary {
  margin-left: auto;
  margin-bottom: 0.45rem;
}

.gh-sidebar-staff-editor form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gh-sidebar-staff-editor label {
  color: #a8a8b0;
  font-size: 0.63rem;
  font-weight: 700;
}

.gh-sidebar-staff-editor textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 0.5rem;
  border: 1px solid rgba(255, 223, 0, 0.2);
  border-radius: 9px;
  background: #0b0b0e;
  color: #f5f5f5;
  font: inherit;
  font-size: 0.7rem;
  line-height: 1.3;
}

.gh-sidebar-staff-editor textarea:focus {
  border-color: rgba(255, 223, 0, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 223, 0, 0.08);
  outline: none;
}

.gh-sidebar-staff-actions {
  display: flex;
  gap: 0.35rem;
}

.gh-sidebar-staff-actions button {
  flex: 1 1 0;
  padding: 0.35rem 0.45rem;
  border: 1px solid #ffdf00;
  border-radius: 8px;
  background: #ffdf00;
  color: #0b0b0d;
  font-size: 0.65rem;
  font-weight: 800;
}

.gh-sidebar-staff-actions button.is-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #b8b8c0;
}

@media (min-width: 768px) {
  body[data-auth="true"] .gh-page-shell {
    padding-left: var(--gh-sidebar-expanded-width);
    transition: padding-left 180ms ease;
  }

  body[data-auth="true"] .gh-content-frame,
  body[data-auth="true"] .gh-footer-inner {
    width: 100%;
    max-width: none !important;
  }

  body[data-auth="true"] .gh-content-frame {
    padding-right: clamp(1rem, 2vw, 2rem);
    padding-left: clamp(1rem, 2vw, 2rem);
  }

  html.gh-sidebar-collapsed body[data-auth="true"] .gh-page-shell {
    padding-left: var(--gh-sidebar-collapsed-width);
  }

  html.gh-sidebar-collapsed .gh-desktop-sidebar {
    width: var(--gh-sidebar-collapsed-width);
  }

  html.gh-sidebar-collapsed .gh-sidebar-label {
    width: 0;
    opacity: 0;
  }

  html.gh-sidebar-collapsed .gh-sidebar-section-label {
    display: none;
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav {
    gap: 0.55rem;
    padding: 0.75rem 0.3rem;
  }

  html.gh-sidebar-collapsed .gh-sidebar-widgets {
    display: none;
  }

  html.gh-sidebar-collapsed .gh-sidebar-staff-card {
    display: none;
  }

  html.gh-sidebar-collapsed .gh-sidebar-header {
    justify-content: center;
    padding-inline: 0;
  }

  html.gh-sidebar-collapsed .gh-sidebar-brand {
    display: none;
  }

  html.gh-sidebar-collapsed .gh-sidebar-toggle {
    transform: rotate(180deg);
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav-link {
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav-link i {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav-link:hover,
  html.gh-sidebar-collapsed .gh-sidebar-nav-link:focus-visible {
    transform: none;
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav-link::after {
    content: attr(data-sidebar-tooltip);
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 2200;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 223, 0, 0.22);
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.97);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    color: #ffdf00;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(4px, -50%);
    transition: opacity 120ms ease, transform 120ms ease;
  }

  html.gh-sidebar-collapsed .gh-sidebar-nav-link:hover::after,
  html.gh-sidebar-collapsed .gh-sidebar-nav-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body[data-auth="true"] .gh-page-shell {
    padding-left: var(--gh-sidebar-collapsed-width);
  }

  .gh-desktop-sidebar {
    width: var(--gh-sidebar-collapsed-width);
  }

  .gh-sidebar-header {
    justify-content: center;
    padding-inline: 0;
  }

  .gh-sidebar-toggle {
    display: none;
  }

  .gh-sidebar-brand {
    width: 48px;
    flex: 0 0 48px;
    justify-content: center;
    padding: 0;
  }

  .gh-sidebar-brand-name {
    display: none;
  }

  .gh-sidebar-label {
    width: 0;
    opacity: 0;
  }

  .gh-sidebar-section-label {
    display: none;
  }

  .gh-sidebar-nav {
    gap: 0.55rem;
    padding: 0.75rem 0.3rem;
  }

  .gh-sidebar-widgets {
    display: none;
  }

  .gh-sidebar-staff-card {
    display: none;
  }

  .gh-sidebar-nav-link {
    min-height: 42px;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .gh-sidebar-nav-link i {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
  }

  .gh-sidebar-nav-link:hover,
  .gh-sidebar-nav-link:focus-visible {
    transform: none;
  }

  .gh-sidebar-nav-link::after {
    content: attr(data-sidebar-tooltip);
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 2200;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 223, 0, 0.22);
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.97);
    color: #ffdf00;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translate(4px, -50%);
    transition: opacity 120ms ease, transform 120ms ease;
  }

  .gh-sidebar-nav-link:hover::after,
  .gh-sidebar-nav-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

.bg-body-tertiary {
  border-radius: 12px;
  border-top: none !important;
}

.dm-badge {
  position: absolute;
  bottom: 0;
  left: 100%;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.70rem;
  line-height: 1;
  transform: translate(-70%, 5%);
  font-weight: 700;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: rgba(255, 223, 0, 0.15);
  color: #ffdf00;
}

#nav-search-input:focus,
#nav-search-input-mobile:focus {
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(255, 223, 0, 0.15);
  outline: none;
}

/* Desktop navbar */
@media (min-width: 768px) {
  nav.navbar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1060;
  }

  .navbar,
  .navbar .container-fluid,
  .gh-navbar-desktop,
  .gh-desktop-actions {
    overflow: visible !important;
  }

  .gh-utility-navbar .container-fluid {
    position: relative;
  }

  .gh-navbar-desktop {
    display: flex !important;
    align-items: center;
    gap: 0.9rem;
    justify-content: flex-end;
    width: 100%;
  }

  .gh-desktop-nav,
  .gh-desktop-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: rgba(15, 15, 18, 0.55);
    border: 1px solid rgba(255, 223, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
  }

  .gh-desktop-actions {
    background: rgba(15, 15, 18, 0.45);
    border-color: rgba(255, 223, 0, 0.10);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.40);
  }

  .gh-desktop-nav-link,
  .gh-action-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #c9c9c9;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  }

  .gh-desktop-nav-link i,
  .gh-action-icon i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .gh-desktop-nav-link:hover,
  .gh-action-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  }

  .gh-desktop-nav-link.active,
  .gh-action-icon.active {
    background: rgba(255, 223, 0, 0.14);
    color: #ffdf00;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  }

  .gh-desktop-search {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 42vw);
    flex: 0 1 auto;
    justify-content: center;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .gh-desktop-search .nav-search-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .gh-user-pill {
    padding: 0.25rem 0.55rem;
    border-radius: 14px;
    transition: background-color 120ms ease, box-shadow 120ms ease;
  }

  .gh-user-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.30);
  }

  .notif-dropdown-menu,
  .profile-dropdown-menu {
    min-width: 280px;
    background: rgba(11, 11, 12, 0.96);
    border: 1px solid rgba(255, 223, 0, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 0;
  }

  .notif-dropdown-menu {
    z-index: 2000 !important;
    position: absolute;
  }

  .gh-desktop-actions .dropdown {
    position: relative;
    z-index: 2001;
  }

  .profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.70rem 0.85rem;
    color: #e6e6e6;
    font-weight: 600;
  }

  .profile-dropdown-menu .dropdown-item i {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.95;
  }

  .profile-dropdown-menu .dropdown-item:hover {
    background-color: transparent !important;
    color: #ffdf00;
  }

  .profile-dropdown-menu .dropdown-divider {
    margin: 0;
    border-top: 1px solid rgba(255, 223, 0, 0.10);
  }

  .gh-has-tip {
    position: relative;
  }

  .gh-has-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 223, 0, 0.22);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    color: #ffdf00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    transition: opacity 120ms ease, transform 120ms ease;
  }

  .gh-has-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    width: 8px;
    height: 8px;
    background: rgba(15, 15, 18, 0.95);
    border-left: 1px solid rgba(255, 223, 0, 0.22);
    border-top: 1px solid rgba(255, 223, 0, 0.22);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    transition: opacity 120ms ease;
  }

  .gh-has-tip:hover::after,
  .gh-has-tip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .gh-has-tip:hover::before,
  .gh-has-tip:focus-visible::before {
    opacity: 1;
  }

  .dropdown.show>.gh-has-tip::after,
  .dropdown.show>.gh-has-tip::before {
    opacity: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 92%;
  }

  .gh-desktop-search {
    width: clamp(180px, 32vw, 300px);
  }
}

/* Mobile top navbar */
@media (max-width: 767.98px) {
  nav.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  nav.navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .navbar-logo {
    width: 30px !important;
    height: 30px !important;
    max-width: none !important;
    max-height: none !important;
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0.4rem;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .gh-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .gh-mobile-search-wrap form,
  .gh-mobile-search-wrap .nav-search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  #nav-search-input-mobile {
    width: 100%;
    min-width: 0;
    height: 34px;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }

  .gh-mobile-pm,
  .gh-mobile-profile {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0 !important;
    color: #c9c9c9;
  }

  .gh-mobile-pm:active,
  .gh-mobile-profile:active {
    transform: translateY(1px);
  }

  .gh-mobile-pm .dm-badge,
  #notifBellMobile .notif-badge {
    font-size: 0.70rem;
    line-height: 1;
  }

  .dm-badge,
  .notif-badge,
  #dmBadgeMobile,
  #notifBadgeMobile {
    border: 1px dashed #2a2b31 !important;
    color: #b89c01 !important;
    box-shadow: none !important;
  }

  .gh-mobile-top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 223, 0, 0.18);
  }

  html,
  body {
    height: auto;
    overflow-y: auto;
  }
}

/* Mobile bottom nav */
.gh-mobile-bottom-shell {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 0 8px 0.75rem;
  pointer-events: none;
}

.gh-mobile-bottom-shell>* {
  pointer-events: auto;
}

.gh-mobile-bottom-nav {
  width: 100%;
  max-width: 560px;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 62px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.gh-mobile-nav-item {
  min-width: 0;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.03rem;
  color: #b8b8b8;
  text-align: center;
  text-decoration: none;
  font-size: 0.58rem;
  line-height: 1.05;
}

.gh-mobile-nav-item:nth-child(4) {
  grid-column: 5;
}

.gh-mobile-nav-item:nth-child(5) {
  grid-column: 6;
}

.gh-mobile-nav-item:nth-child(6) {
  grid-column: 7;
}

.gh-mobile-nav-item i {
  font-size: 1.02rem;
  line-height: 1;
}

.gh-mobile-nav-item span {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-mobile-nav-item.active,
.gh-mobile-nav-item.active i {
  color: #ffdf00;
}

.gh-mobile-center-fab {
  position: absolute;
  bottom: 1.72rem;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffdf00;
  color: #000;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.9);
}

.gh-mobile-center-fab i {
  font-size: 1.4rem;
  line-height: 1;
}





@media (max-width: 767.98px) {
  .gh-mobile-bottom-shell {
    display: flex;
  }
}

@media (max-width: 390px) {
  .gh-mobile-bottom-shell {
    padding-inline: 5px;
  }

  .gh-mobile-bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 58px repeat(3, minmax(0, 1fr));
    min-height: 56px;
    padding-inline: 0.45rem;
  }

  .gh-mobile-nav-item {
    font-size: 0.52rem;
  }

  .gh-mobile-nav-item i {
    font-size: 0.94rem;
  }

  .gh-mobile-nav-item span {
    max-width: 40px;
  }

  .gh-mobile-center-fab {
    width: 51px;
    height: 51px;
    bottom: 1.72rem;
  }
}

.gh-mobile-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}
