#nxi-site-nav {
  position: sticky;
  isolation: isolate;
  overflow: visible;
  --nav-accent: #83edb1;
  --nav-glow: rgba(69, 204, 131, .16);
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  width: calc(100% + var(--nxi-page-padding-left, 0px) + var(--nxi-page-padding-right, 0px));
  flex: 0 0 auto;
  margin-left: calc(-1 * var(--nxi-page-padding-left, 0px));
  align-self: flex-start;
  box-sizing: border-box;
  padding: 12px max(22px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid rgba(131, 237, 177, .2);
  background:
    radial-gradient(ellipse at 16% 0%, rgba(63, 166, 103, .17), transparent 38%),
    linear-gradient(105deg, rgba(14, 25, 20, .97), rgba(9, 13, 14, .96) 55%, rgba(14, 22, 19, .98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32), 0 1px 0 rgba(255, 255, 255, .035);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}

#nxi-site-nav::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131, 237, 177, .78) 17%, rgba(60, 146, 115, .58) 58%, transparent);
  box-shadow: 0 0 12px rgba(131, 237, 177, .3);
  content: "";
  pointer-events: none;
}

.nxi-site-brand {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #f0f5f1;
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}

.nxi-site-nav-toggle,
.nxi-site-nav-backdrop {
  display: none;
}

.nxi-site-brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 14px rgba(89, 218, 138, .2));
}

.nxi-site-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(146, 246, 183, .62);
  border-radius: 13px;
  background:
    radial-gradient(circle at 28% 20%, rgba(201, 255, 219, .24), transparent 42%),
    linear-gradient(145deg, #2d6945, #14271d 76%);
  color: #d5ffe2;
  font-size: 19px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 0 0 4px rgba(90, 200, 128, .07), 0 7px 20px rgba(31, 117, 66, .25);
}

.nxi-site-brand-copy {
  display: grid;
  gap: 2px;
}

.nxi-site-brand-name {
  color: #f4faf5;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.nxi-site-brand-tagline {
  color: #9fb9a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nxi-site-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
  padding: 4px;
  border: 1px solid rgba(175, 211, 188, .09);
  border-radius: 15px;
  background: rgba(3, 9, 6, .26);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.nxi-site-tab {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b9c9be;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nxi-site-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 219, 167, .18);
  background: rgba(83, 147, 108, .13);
  color: #fff;
}

.nxi-site-tab[aria-current="page"] {
  border-color: rgba(131, 237, 177, .32);
  background: linear-gradient(135deg, rgba(46, 104, 65, .72), rgba(26, 54, 36, .86));
  color: #ddffe8;
  box-shadow: inset 0 1px rgba(255, 255, 255, .09), 0 3px 14px var(--nav-glow);
}

.nxi-site-menu {
  position: relative;
  flex: 0 0 auto;
}

.nxi-site-menu > summary {
  list-style: none;
  cursor: pointer;
  gap: 10px;
}

.nxi-site-menu > summary::-webkit-details-marker { display: none; }

.nxi-site-menu > summary::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--nav-accent);
  content: "";
  opacity: .58;
  box-shadow: 0 0 8px rgba(131, 237, 177, .42);
}

.nxi-site-menu > summary::after {
  width: 7px;
  height: 7px;
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transition: transform .16s ease;
}

.nxi-site-menu[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.nxi-site-menu[open] > summary,
.nxi-site-menu > summary[aria-current="page"] {
  border-color: #75c792;
  background: #203b2a;
  color: #d3f5dd;
}

.nxi-site-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1001;
  width: min(320px, calc(100vw - 36px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid rgba(131, 237, 177, .22);
  border-radius: 13px;
  background: rgba(11, 18, 14, .98);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .58), 0 0 28px rgba(74, 154, 98, .1), inset 0 1px rgba(255, 255, 255, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nxi-site-dropdown-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #d0ddd4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.nxi-site-dropdown-link:hover,
.nxi-site-dropdown-link:focus-visible {
  outline: none;
  border-color: rgba(119, 194, 151, .32);
  background: rgba(83, 147, 108, .14);
  color: #f2faf4;
}

.nxi-site-dropdown-link[aria-current="page"] {
  border-color: rgba(117, 199, 146, .32);
  background: #203b2a;
  color: #d3f5dd;
}

.nxi-site-tab-admin {
  margin-left: 3px;
  border-color: rgba(189, 158, 100, .3);
  background: linear-gradient(135deg, rgba(161, 123, 49, .16), rgba(101, 74, 31, .12));
  color: #ead29e;
}

.nxi-site-tab-admin:hover,
.nxi-site-tab-admin[aria-current="page"] {
  border-color: rgba(232, 194, 115, .62);
  background: linear-gradient(135deg, rgba(126, 93, 37, .48), rgba(70, 54, 29, .72));
  color: #fff0c9;
  box-shadow: 0 4px 16px rgba(171, 126, 49, .13);
}

.nxi-site-brand:focus-visible,
.nxi-site-nav-toggle:focus-visible,
.nxi-site-tab:focus-visible,
.nxi-site-dropdown-link:focus-visible {
  outline: 2px solid #a8edbb;
  outline-offset: 2px;
}

body.nxi-site-nav-enabled {
  justify-content: flex-start;
  padding-top: 0;
}

body.clans-page .clans-sidebar {
  top: 96px;
  height: calc(100vh - 96px);
}

@media (max-width: 1040px) {
  #nxi-site-nav {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .nxi-site-tabs {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #nxi-site-nav {
    --nxi-mobile-header-height: 64px;
    height: var(--nxi-mobile-header-height);
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 8px 12px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nxi-site-mark {
    width: 38px;
    height: 38px;
  }

  .nxi-site-brand-name { font-size: 15px; }
  .nxi-site-brand-tagline { font-size: 8px; }

  .nxi-site-nav-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(131, 237, 177, .25);
    border-radius: 12px;
    background: rgba(3, 9, 6, .42);
    cursor: pointer;
  }

  .nxi-site-nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #d5ffe2;
    transition: transform .18s ease, opacity .18s ease;
  }

  .nxi-site-nav-toggle:hover,
  .nxi-site-nav-toggle:focus-visible {
    outline: 2px solid #a8edbb;
    outline-offset: 2px;
    background: rgba(83, 147, 108, .2);
  }

  .nxi-site-nav-open .nxi-site-nav-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .nxi-site-nav-open .nxi-site-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nxi-site-nav-open .nxi-site-nav-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nxi-site-tabs {
    position: fixed;
    top: var(--nxi-mobile-header-height);
    bottom: 0;
    left: 0;
    z-index: 1002;
    display: flex;
    width: min(340px, calc(100vw - 48px));
    max-height: calc(100vh - var(--nxi-mobile-header-height));
    max-height: calc(100dvh - var(--nxi-mobile-header-height));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(131, 237, 177, .2);
    border-top: 0;
    border-left: 0;
    border-radius: 0 16px 0 0;
    background:
      radial-gradient(ellipse at 0 0, rgba(63, 166, 103, .13), transparent 48%),
      rgba(10, 17, 13, .99);
    box-shadow: 18px 18px 44px rgba(0, 0, 0, .42);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .2s ease, visibility .2s ease;
  }

  .nxi-site-nav-open .nxi-site-tabs {
    transform: translateX(0);
    visibility: visible;
  }

  .nxi-site-nav-backdrop {
    position: fixed;
    inset: var(--nxi-mobile-header-height) 0 0;
    z-index: 1001;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .nxi-site-nav-open .nxi-site-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  body.nxi-site-menu-open {
    overflow: hidden;
  }

  html.nxi-site-menu-open {
    overflow: hidden;
  }

  .nxi-site-tab {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 12px;
    font-size: 13px;
  }

  .nxi-site-menu {
    width: 100%;
  }

  .nxi-site-menu > summary {
    justify-content: space-between;
  }

  .nxi-site-dropdown {
    position: static;
    display: none;
    width: auto;
    max-height: none;
    margin: 5px 0 2px 9px;
    padding: 4px;
    border: 0;
    border-left: 1px solid rgba(131, 237, 177, .24);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nxi-site-menu[open] > .nxi-site-dropdown {
    display: grid;
  }

  .nxi-site-dropdown-link {
    min-height: 42px;
  }

  .nxi-site-tab-admin {
    margin: 6px 0 0;
  }

  .nxi-site-dropdown {
    width: auto;
  }

  body.clans-page .clans-sidebar {
    top: 72px;
    height: auto;
  }
}

@media (max-width: 420px) {
  #nxi-site-nav { padding-right: 9px; padding-left: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .nxi-site-brand, .nxi-site-tab, .nxi-site-menu > summary::after,
  .nxi-site-nav-toggle span, .nxi-site-tabs, .nxi-site-nav-backdrop { transition: none; }
}