.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(2, 7, 19, 0.92), rgba(2, 7, 19, 0.62));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(91, 154, 255, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7fbff;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(44, 227, 255, 0.95), rgba(24, 103, 255, 0.92) 52%, rgba(120, 72, 255, 0.95)),
    #0d62ff;
  color: #fff;
  box-shadow: 0 0 30px rgba(37, 132, 255, 0.72);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 50px);
  color: #dce7ff;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #28d9ff;
}

.nav-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.nav-locale {
  position: relative;
  min-width: 168px;
}

.nav-locale::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #dce8ff;
  border-bottom: 2px solid #dce8ff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.nav-locale select {
  appearance: none;
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(182, 209, 255, 0.42);
  border-radius: 13px;
  background: rgba(5, 14, 34, 0.5);
  color: #f7fbff;
  padding: 12px 42px 12px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.nav-locale select:focus {
  border-color: #28d9ff;
  box-shadow: 0 0 0 4px rgba(40, 217, 255, 0.12);
  outline: none;
}

.nav-locale select option {
  color: #071225;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(94, 156, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 30, 68, 0.74);
  color: #f7fbff;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
}

.site-header .banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 12px 19px;
  color: #f7fbff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.site-header .banner-button:hover {
  transform: translateY(-1px);
}

.site-header .banner-button-primary {
  background: linear-gradient(135deg, #1d7bff 0%, #3a6dff 48%, #794cff 100%);
  box-shadow: 0 16px 36px rgba(33, 117, 255, 0.34);
}

.site-header .banner-button-primary:hover {
  box-shadow: 0 18px 46px rgba(33, 117, 255, 0.52);
}

.site-header .banner-button-ghost {
  border-color: rgba(182, 209, 255, 0.42);
  background: rgba(5, 14, 34, 0.5);
}

.site-header .banner-button-secondary {
  border-color: rgba(40, 217, 255, 0.34);
  background: linear-gradient(135deg, rgba(15, 83, 158, 0.72), rgba(12, 34, 86, 0.82));
  box-shadow: 0 14px 34px rgba(18, 97, 180, 0.24);
}

.site-header .nav-login,
.site-header .nav-dashboard,
.site-header .nav-logout {
  min-height: 42px;
  padding: 10px 15px;
}

.site-header .nav-logout {
  color: #aab9d7;
}

.site-header [hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-shell {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-links.is-open,
  .nav-actions.is-open {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 26px, 1180px);
    min-height: 72px;
  }

  .nav-locale {
    min-width: 0;
    width: 100%;
  }

  .nav-actions.is-open {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header .banner-button {
    width: 100%;
  }
}
