/* KitUz premium navigation — TailAdmin-inspired, restrained and responsive. */
:root {
  --nav-ink: #101828;
  --nav-muted: #667085;
  --nav-line: #e4e7ec;
  --nav-blue: #465fff;
  --nav-blue-dark: #3641f5;
  --nav-blue-wash: #eef2ff;
  --nav-blue-line: #dbe4ff;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e7eaf1;
  box-shadow: 0 1px 2px rgba(16,24,40,.025);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,#3047ef 0%,#5d78ff 52%,#9db5ff 100%);
  opacity: .95;
}
.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1456px;
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 30px;
}
.site-header .logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-width: 174px;
  color: var(--nav-ink);
  text-decoration: none;
}
.site-header .brand-logo-icon {
  width: 39px;
  height: 39px;
  border: 1px solid #e3eaff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16,24,40,.07);
}
.brand-lockup-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.site-header .brand-wordmark { font-size: 22px; font-weight: 700; letter-spacing: -.065em; }
.brand-context { color: #98a2b3; font: 700 8px/1 'Inter',sans-serif; letter-spacing: .105em; white-space: nowrap; }
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  padding: 4px;
  border: 1px solid #eef0f5;
  border-radius: 13px;
  background: #f8f9fc;
}
.site-header .main-nav a.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #667085;
  background: transparent;
  font: 600 12px/1 'Inter',sans-serif;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.site-header .nav-link-icon { display: inline-flex; align-items: center; justify-content: center; color: #8a94a7; }
.site-header .nav-link-icon svg { display: block; width: 17px; height: 17px; stroke-width: 1.75; }
.site-header .main-nav a.nav-link:hover {
  color: #344054;
  background: #fff;
  border-color: #e9edf5;
}
.site-header .main-nav a.nav-link:hover .nav-link-icon { color: var(--nav-blue); }
.site-header .main-nav a.nav-link.active {
  color: var(--nav-blue-dark);
  background: #fff;
  border-color: #dfe6ff;
  box-shadow: 0 1px 2px rgba(16,24,40,.035), 0 0 0 1px rgba(70,95,255,.025);
}
.site-header .main-nav a.nav-link.active .nav-link-icon { color: var(--nav-blue); }
.site-header .main-nav a.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-blue);
}
.site-header .main-nav a.nav-link-premium.active .nav-link-icon { color: #465fff; }
.site-header .header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 176px;
  padding-left: 18px;
  border-left: 1px solid #e8ebf2;
}
.site-header .header-actions > .btn { min-height: 41px; padding: 0 15px; border-radius: 10px; font-size: 12px; text-transform: none; letter-spacing: 0; }
.site-header .header-actions .btn-outline { color: #344054; background: #fff; border: 1px solid #d9deea; }
.site-header .header-actions .btn-outline:hover { background: #f8faff; border-color: #bfcaff; }
.site-header .header-actions .btn-primary { color: #fff; background: var(--nav-blue); border: 1px solid var(--nav-blue); box-shadow: 0 1px 2px rgba(70,95,255,.16); }
.site-header .header-actions .btn-primary:hover { background: var(--nav-blue-dark); border-color: var(--nav-blue-dark); }
.site-header .user-chip-wrap { flex: 0 0 auto; }
.site-header .user-chip-btn { min-height: 46px; padding: 5px 10px 5px 6px; gap: 9px; border-color: #e0e5ef; border-radius: 12px; box-shadow: none; }
.site-header .profile-chip-avatar { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 10px; }
.site-header .profile-chip-copy { gap: 3px; max-width: 126px; }
.site-header .profile-chip-copy strong { font-size: 11px; font-weight: 700; color: #1d2939; }
.site-header .profile-chip-copy small { font-size: 8px; letter-spacing: .08em; }
.site-header .burger {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #e0e5ef;
  border-radius: 11px;
  color: #344054;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.site-header .burger:hover, .site-header .burger[aria-expanded="true"] { background: #f4f6ff; border-color: #cdd7ff; color: var(--nav-blue); }
.burger-icon { display: inline-flex; align-items: center; justify-content: center; }
.burger-icon-close { display: none; }
.site-header .header-inner.mobile-menu-open .burger-icon-menu { display: none; }
.site-header .header-inner.mobile-menu-open .burger-icon-close { display: inline-flex; }
.site-header .user-dropdown { top: calc(100% + 9px); }

@media (max-width: 1260px) {
  .site-header .header-inner { gap: 14px; padding-left: 22px; padding-right: 22px; }
  .site-header .logo { min-width: 145px; }
  .site-header .main-nav a.nav-link { gap: 6px; padding: 0 9px; font-size: 11.5px; }
  .site-header .header-actions { min-width: 150px; padding-left: 12px; }
  .site-header .profile-chip-copy { max-width: 105px; }
  .site-header .profile-chip-copy strong { max-width: 105px; }
}
@media (max-width: 1080px) {
  .site-header .header-inner { min-height: 70px; gap: 12px; flex-wrap: wrap; padding: 10px 20px; }
  .site-header .logo { margin-right: auto; min-width: 0; }
  .site-header .burger { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .main-nav, .site-header .header-actions { display: none; }
  .site-header .main-nav.open {
    display: flex;
    position: static;
    order: 3;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #e4e9f4;
    border-radius: 14px;
    background: #fbfcff;
    box-shadow: 0 8px 24px rgba(16,24,40,.055);
  }
  .site-header .main-nav.open a.nav-link { width: 100%; min-height: 44px; justify-content: flex-start; padding: 0 13px; font-size: 13px; }
  .site-header .main-nav.open a.nav-link.active::after { left: auto; right: 10px; bottom: 11px; top: 11px; width: 3px; height: auto; }
  .site-header .header-actions.open {
    display: flex;
    position: static;
    order: 4;
    flex: 0 0 100%;
    justify-content: stretch;
    align-items: stretch;
    min-width: 0;
    padding: 11px 0 2px;
    margin-top: -2px;
    border-left: 0;
    border-top: 1px solid #eaedf4;
    background: transparent;
  }
  .site-header .header-actions.open > .btn { flex: 1; justify-content: center; }
  .site-header .header-actions.open .user-chip-wrap { width: 100%; }
  .site-header .header-actions.open .user-chip-btn { width: 100%; justify-content: flex-start; }
  .site-header .header-actions.open .user-dropdown { top: calc(100% + 7px); right: 0; }
  .site-header .header-inner.mobile-menu-open { row-gap: 8px; }
}
@media (max-width: 480px) {
  .site-header .header-inner { padding: 9px 13px; }
  .site-header .brand-context { font-size: 7px; }
  .site-header .brand-logo-icon { width: 35px; height: 35px; }
  .site-header .brand-wordmark { font-size: 20px; }
  .site-header .main-nav.open { margin-top: 1px; }
  .site-header .header-actions.open { flex-wrap: wrap; }
  .site-header .header-actions.open > .btn { min-width: 0; padding: 0 10px; }
  .site-header .user-dropdown { width: calc(100vw - 26px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .main-nav a.nav-link, .site-header .burger { transition: none; }
}

.site-header .main-nav a.nav-link-balance.active .nav-link-icon { color: #465fff; }
