/* Shared navigation — kitsune portal */
.navbar-dashboard {
  position: relative;
  z-index: 1030;
  min-height: 72px;
  padding: .7rem 1.15rem;
  background: rgba(8,8,9,.86) !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.navbar-dashboard::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226,29,63,.52), transparent);
  pointer-events: none;
}
.navbar-dashboard > .container-fluid { width: min(1380px, 100%); gap: 1rem; }
.navbar-dashboard .navbar-brand {
  min-width: 176px;
  gap: .7rem;
  color: #fff !important;
  text-decoration: none;
}
.navbar-dashboard .navbar-brand > img {
  width: 36px !important;
  height: 36px !important;
  padding: 5px;
  border: 1px solid rgba(226,29,63,.28);
  border-radius: 11px;
  background: rgba(226,29,63,.07);
  filter: drop-shadow(0 4px 12px rgba(226,29,63,.16));
}
.sw-brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.sw-brand-name { color: #f7f7f8; font-family: var(--font-display, Inter, sans-serif); font-size: 1.02rem; font-weight: 800; letter-spacing: -.04em; }
.sw-brand-name::first-letter { color: #e21d3f; }
.sw-brand-page { color: #777780; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.navbar-dashboard .navbar-toggler {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  padding: .45rem .58rem;
  background: rgba(255,255,255,.03);
}
.navbar-dashboard .navbar-toggler:hover { border-color: rgba(226,29,63,.45); background: rgba(226,29,63,.08); }
.navbar-dashboard .navbar-toggler-icon { width: 1.15em; height: 1.15em; filter: invert(1) brightness(1.6); }
.navbar-dashboard .navbar-collapse { gap: 1rem; }
.navbar-dashboard .sw-nav-links {
  padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}
.navbar-dashboard .sw-nav-links .nav-item { margin: 0 !important; }
.navbar-dashboard .sw-nav-link {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 34px;
  padding: .42rem .72rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #9999a1;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.navbar-dashboard .sw-nav-link:hover {
  color: #f6f6f7;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
.navbar-dashboard .sw-nav-link:focus-visible { outline: 2px solid #e21d3f; outline-offset: 2px; }
.sw-nav-icon { display: inline-grid; width: 19px; height: 19px; place-items: center; color: #e21d3f; font-size: .7rem; }
.sw-nav-label { white-space: nowrap; }
.navbar-dashboard .sw-nav-logout-item { margin-left: 4px !important; padding-left: 7px; border-left: 1px solid rgba(255,255,255,.10); }
.navbar-dashboard .sw-logout-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .42rem .7rem;
  border: 1px solid rgba(226,29,63,.28);
  border-radius: 9px;
  color: #ff9bac;
  background: rgba(226,29,63,.07);
  cursor: pointer;
  font: 650 .72rem/1 var(--font-body, Inter, sans-serif);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.navbar-dashboard .sw-logout-button:hover { color: #fff; border-color: rgba(226,29,63,.58); background: #e21d3f; transform: translateY(-1px); }
.navbar-dashboard .sw-logout-button:focus-visible { outline: 2px solid #e21d3f; outline-offset: 2px; }
.sw-header-profile {
  display: flex !important;
  align-items: center;
  gap: .62rem;
  min-width: 138px;
  padding-left: .95rem;
  border-left: 1px solid rgba(255,255,255,.10);
  color: #d5d5da;
}
.sw-header-user-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: right; line-height: 1; }
.sw-header-user-caption { color: #676770; font-size: .56rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.sw-header-user-name { max-width: 116px; overflow: hidden; color: #dedee2; font-size: .76rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.sw-header-avatar-link { position: relative; display: inline-flex; padding: 2px; border: 1px solid rgba(226,29,63,.38); border-radius: 50%; background: rgba(226,29,63,.08); line-height: 0; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.sw-header-avatar-link::after { content: ""; position: absolute; right: 0; bottom: 0; width: 7px; height: 7px; border: 2px solid #0a0a0b; border-radius: 50%; background: #7ce2ae; }
.sw-header-avatar-link:hover { border-color: #e21d3f; box-shadow: 0 0 0 4px rgba(226,29,63,.10); transform: translateY(-1px); }
.sw-header-avatar { width: 32px !important; height: 32px !important; border: 0 !important; box-shadow: none !important; }
.sw-header-avatar-link:focus-visible { outline: 2px solid #e21d3f; outline-offset: 3px; }

@media (max-width: 991.98px) {
  .navbar-dashboard { padding: .72rem .9rem; }
  .navbar-dashboard > .container-fluid { align-items: center; }
  .navbar-dashboard .navbar-collapse { padding-top: .9rem; }
  .navbar-dashboard .sw-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: .25rem; }
  .navbar-dashboard .sw-nav-link { width: 100%; justify-content: center; }
  .navbar-dashboard .sw-nav-logout-item { grid-column: 1 / -1; margin: 4px 0 0 !important; padding: 5px 0 0; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .navbar-dashboard .sw-logout-button { width: 100%; justify-content: center; }
  .sw-header-profile { justify-content: center; min-width: 0; margin-top: .8rem !important; padding: .8rem 0 0; border-top: 1px solid rgba(255,255,255,.08); border-left: 0; }
  .sw-header-user-meta { text-align: center; }
}
@media (max-width: 420px) {
  .navbar-dashboard .navbar-brand { min-width: 0; }
  .sw-brand-page { display: none; }
  .navbar-dashboard .sw-nav-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .navbar-dashboard .sw-nav-link:hover, .navbar-dashboard .sw-logout-button:hover, .sw-header-avatar-link:hover { transform: none; }
}
