.qj-site-nav {
  position: sticky;
  top: 0;
  z-index: 10040;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.qj-site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 72rem;
  min-height: 58px;
  margin: 0 auto;
}

.qj-site-nav a {
  text-decoration: none;
}

.qj-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.qj-site-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.qj-site-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.qj-site-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.qj-site-link {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#qj-site-dashboard-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

#qj-site-dashboard-link[hidden] {
  display: none;
}

#qj-site-dashboard-link:hover,
#qj-site-dashboard-link[aria-current="page"] {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}

.qj-site-link:hover,
.qj-site-link[aria-current="page"] {
  color: #2563eb;
}

.qj-site-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.qj-site-dropdown.is-active .qj-site-link,
.qj-site-dropdown.is-active .qj-site-dropdown-toggle {
  color: #2563eb;
}

.qj-site-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1;
}

.qj-site-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1;
  display: none;
  min-width: 230px;
  padding: 6px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.qj-site-dropdown.is-open .qj-site-dropdown-menu {
  display: block;
}

.qj-site-dropdown-link {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.qj-site-dropdown-link:hover,
.qj-site-dropdown-link[aria-current="page"] {
  background: #eff6ff;
  color: #2563eb;
}

.qj-site-dropdown-new {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border-radius: 999px;
  background: #dc2626;
  padding: 2px 6px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.qj-site-dropdown-toggle:focus-visible,
.qj-site-dropdown-link:focus-visible,
.qj-site-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.qj-site-auth {
  display: inline-flex;
  align-items: center;
  min-width: 36px;
  min-height: 36px;
}

@media (max-width: 640px) {
  .qj-site-nav {
    padding: 0 14px;
  }

  .qj-site-brand span {
    display: none;
  }

  .qj-site-right {
    gap: 12px;
  }

  .qj-site-links {
    gap: 12px;
  }

  .qj-site-dropdown {
    gap: 0;
  }

  .qj-site-dropdown-menu {
    max-width: calc(100vw - 28px);
  }
}
