/* TPS_TOOLS_HEADER_FIX_V1 */

body header.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  background: rgba(5,8,17,.82) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  backdrop-filter: blur(18px) !important;
}

body header.nav .nav-inner {
  width: min(100%, 1680px) !important;
  max-width: 1680px !important;
  min-height: 96px !important;
  margin: 0 auto !important;
  padding: 16px clamp(28px,4.5vw,76px) !important;
  display: grid !important;
  grid-template-columns: minmax(320px, auto) minmax(520px, 1fr) minmax(250px, auto) !important;
  align-items: center !important;
  gap: 34px !important;
}

body header.nav .brand {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

body header.nav .brand-badge {
  width: 58px !important;
  height: 58px !important;
  flex: 0 0 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
}

body header.nav .brand-badge img {
  width: 58px !important;
  height: 58px !important;
  display: block !important;
  object-fit: contain !important;
}

body header.nav .brand-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

body header.nav .brand-copy strong {
  display: block !important;
  font-size: 22px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  color: #f7f9ff !important;
  letter-spacing: -0.035em !important;
}

body header.nav .brand-copy span {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  color: #aeb8d5 !important;
  font-weight: 650 !important;
}

body header.nav .nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(20px, 2vw, 34px) !important;
  min-width: 0 !important;
}

body header.nav .nav-links a,
body header.nav .nav-links a:visited {
  color: #dfe6ff !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  opacity: .94 !important;
}

body header.nav .nav-links a:hover {
  color: #fff !important;
  opacity: 1 !important;
}

body header.nav .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  min-width: 0 !important;
}

body header.nav .nav-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 14px 28px !important;
  border-radius: 17px !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body header.nav .nav-actions .btn.ghost,
body header.nav .nav-actions .btn.secondary {
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #f4f7ff !important;
  box-shadow: none !important;
}

body header.nav .nav-actions .btn.primary {
  background: linear-gradient(135deg,#8b3dff,#7c3aed) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(124,58,237,.34) !important;
}

@media (max-width: 1100px) {
  body header.nav .nav-inner {
    grid-template-columns: 1fr auto !important;
    gap: 18px !important;
  }

  body header.nav .nav-links {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body header.nav .nav-inner {
    min-height: 82px !important;
    padding: 14px 16px !important;
  }

  body header.nav .brand-badge,
  body header.nav .brand-badge img {
    width: 46px !important;
    height: 46px !important;
    flex-basis: 46px !important;
  }

  body header.nav .brand-copy strong {
    font-size: 18px !important;
  }

  body header.nav .brand-copy span {
    display: none !important;
  }

  body header.nav .nav-actions .btn {
    min-height: 46px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}
