.nb-header-root {
  --nb-header-text: #f3fbf7;
  --nb-header-muted: #9aada5;
  --nb-header-accent: #68f7b3;
  --nb-header-line: rgba(194, 255, 228, .12);
  --nb-header-line-bright: rgba(110, 255, 193, .34);
  --nb-header-ease: cubic-bezier(.2, .75, .25, 1);
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  color: var(--nb-header-text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: padding .25s var(--nb-header-ease);
}

.nb-header-root,
.nb-header-root *,
.nb-header-mobile,
.nb-header-mobile * {
  box-sizing: border-box;
}

.nb-header-root a,
.nb-header-mobile a {
  color: inherit;
  text-decoration: none;
}

.nb-header-root button,
.nb-header-mobile button {
  color: inherit;
  font: inherit;
}

.nb-header-root.is-scrolled {
  padding-block: 6px;
}

.nb-header-shell {
  position: relative;
  display: grid;
  width: min(1380px, calc(100vw - 80px));
  min-height: 66px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-inline: auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--nb-header-line);
  border-radius: 22px;
  background: rgba(4, 12, 10, .82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
  backdrop-filter: blur(22px) saturate(130%);
}

.nb-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: #f4fff9;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.04em;
}

.nb-header-brand-mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(104, 247, 179, .14), rgba(161, 140, 255, .12));
}

.nb-header-brand-mark img {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.nb-header-desktop {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nb-header-nav-item {
  position: relative;
}

.nb-header-trigger,
.nb-header-direct {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  padding: 0 15px;
  border: 0;
  border-radius: 13px;
  color: #b9c8c1;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease;
}

.nb-header-trigger::after {
  width: 5px;
  height: 5px;
  margin: -3px 0 0 8px;
  content: "";
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.nb-header-nav-item.is-open .nb-header-trigger,
.nb-header-trigger:hover,
.nb-header-direct:hover,
.nb-header-trigger:focus-visible,
.nb-header-direct:focus-visible {
  color: var(--nb-header-text);
  background: rgba(255, 255, 255, .06);
}

.nb-header-nav-item.is-open .nb-header-trigger::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.nb-header-mega {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  width: 500px;
  padding: 12px;
  visibility: hidden;
  border: 1px solid var(--nb-header-line);
  border-radius: 22px;
  background: rgba(7, 20, 17, .98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.nb-header-nav-item.is-open .nb-header-mega {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nb-header-mega::before {
  position: absolute;
  top: -21px;
  left: 0;
  width: 100%;
  height: 22px;
  content: "";
}

.nb-header-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nb-header-mega-link {
  display: grid;
  min-height: 78px;
  gap: 4px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: border-color .2s ease, background .2s ease;
}

.nb-header-mega-link:hover,
.nb-header-mega-link:focus-visible {
  border-color: rgba(104, 247, 179, .16);
  background: rgba(104, 247, 179, .06);
  outline: 0;
}

.nb-header-mega-link strong {
  font-size: 14px;
}

.nb-header-mega-link small {
  color: var(--nb-header-muted);
  font-size: 11px;
  line-height: 1.45;
}

.nb-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nb-header-account {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px 0 8px;
  border: 1px solid rgba(194,255,228,.14);
  border-radius: 15px;
  color: #effff7;
  background:
    radial-gradient(circle at 18% 0%, rgba(104,247,179,.1), transparent 42%),
    linear-gradient(145deg, rgba(12,27,23,.94), rgba(5,14,12,.9));
  box-shadow:
    0 14px 34px rgba(0,0,0,.24),
    inset 0 1px rgba(255,255,255,.07);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform .25s var(--nb-header-ease), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.nb-header-account:hover {
  border-color: rgba(104,247,179,.36);
  background:
    radial-gradient(circle at 18% 0%, rgba(104,247,179,.16), transparent 44%),
    linear-gradient(145deg, rgba(15,35,29,.96), rgba(6,18,15,.92));
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(0,0,0,.3),
    0 0 24px rgba(40,225,145,.08),
    inset 0 1px rgba(255,255,255,.09);
}

.nb-header-account-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(104,247,179,.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 20%, rgba(104,247,179,.16), transparent 48%),
    rgba(255,255,255,.035);
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}

.nb-header-account-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nb-header-mobile-toggle {
  position: relative;
  display: none;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(194,255,228,.18);
  border-radius: 15px;
  color: #dffff0;
  background:
    radial-gradient(circle at 30% 10%, rgba(104,247,179,.15), transparent 48%),
    linear-gradient(145deg, rgba(18,36,30,.98), rgba(4,13,11,.94));
  box-shadow: 0 16px 32px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.09);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s var(--nb-header-ease);
}

.nb-header-mobile-toggle:hover,
.nb-header-mobile-toggle[aria-expanded="true"] {
  border-color: rgba(104,247,179,.42);
  background:
    radial-gradient(circle at 30% 10%, rgba(104,247,179,.2), transparent 50%),
    linear-gradient(145deg, rgba(22,44,36,.98), rgba(5,16,13,.95));
  box-shadow: 0 18px 34px rgba(0,0,0,.3), 0 0 22px rgba(104,247,179,.12), inset 0 1px rgba(255,255,255,.11);
}

.nb-header-mobile-toggle:focus-visible {
  outline: 2px solid var(--nb-header-accent);
  outline-offset: 3px;
}

.nb-header-mobile-toggle span,
.nb-header-mobile-toggle::before,
.nb-header-mobile-toggle::after {
  grid-area: 1 / 1;
  width: 20px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #7dffc5, #5edcff);
  box-shadow: 0 0 8px rgba(104,247,179,.2);
  transform-origin: center;
  transition: transform .25s var(--nb-header-ease), opacity .2s ease;
}

.nb-header-mobile-toggle::before { transform: translateY(-7px); }
.nb-header-mobile-toggle::after { transform: translateY(7px); }
.nb-header-mobile-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nb-header-mobile-toggle[aria-expanded="true"]::after { transform: rotate(-45deg); }
.nb-header-mobile-toggle[aria-expanded="true"] span { opacity: 0; }

.nb-header-backdrop {
  position: fixed;
  z-index: 148;
  inset: 0;
  visibility: hidden;
  border: 0;
  background: rgba(0, 5, 4, .66);
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(4px);
}

.nb-header-backdrop.is-open {
  visibility: visible;
  opacity: 1;
}

.nb-header-mobile {
  position: fixed;
  z-index: 149;
  top: 0;
  right: 0;
  display: none;
  width: min(460px, 100%);
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  flex-direction: column;
  padding: 105px 24px 30px;
  color: var(--nb-header-text);
  background: rgba(4, 14, 11, .98);
  opacity: 0;
  transform: translateX(100%);
  transition: transform .3s var(--nb-header-ease), opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(24px);
  font-family: "Manrope", system-ui, sans-serif;
}

.nb-header-mobile.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nb-header-mobile-group {
  padding: 17px 0;
  border-bottom: 1px solid var(--nb-header-line);
}

.nb-header-mobile-label {
  color: var(--nb-header-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nb-header-mobile-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.nb-header-mobile-links a {
  padding: 12px;
  border-radius: 12px;
  color: #bdcdc5;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
}

.nb-header-mobile-links a:hover,
.nb-header-mobile-links a:focus-visible {
  color: #07140e;
  background: var(--nb-header-accent);
  outline: 0;
}

.nb-header-mobile-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.nb-header-mobile-actions .nb-header-account {
  display: inline-flex;
  width: 100%;
}

html.nb-header-menu-open,
html.nb-header-menu-open body {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .nb-header-shell { width: min(100% - 48px, 1080px); grid-template-columns: 1fr auto; }
  .nb-header-desktop { display: none; }
  .nb-header-account { display: none; }
  .nb-header-mobile-toggle { display: grid; }
  .nb-header-mobile { display: flex; }
}

@media (max-width: 600px) {
  .nb-header-root { padding-top: max(8px, env(safe-area-inset-top)); }
  .nb-header-shell { width: calc(100% - 28px); min-height: 61px; padding-left: 13px; border-radius: 19px; }
  .nb-header-brand { font-size: 16px; }
  .nb-header-brand-mark { width: 32px; height: 32px; }
  .nb-header-mobile {
    padding-right: calc(14px + env(safe-area-inset-right));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    padding-left: calc(14px + env(safe-area-inset-left));
  }
  .nb-header-mobile-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nb-header-root *, .nb-header-root *::before, .nb-header-root *::after,
  .nb-header-mobile, .nb-header-backdrop { transition-duration: .01ms !important; }
}
