.site-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid #dbe7ff;
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 22px rgba(17, 40, 82, 0.06);
  z-index: 2;
}

.site-header .navbar {
  --bs-navbar-padding-y: 0.55rem;
}

.site-header .container {
  gap: 0.9rem;
}

.site-header .navbar-brand {
  font-size: 1.05rem;
  color: var(--brand-800);
  letter-spacing: 0.18px;
}

.site-header .navbar-toggler {
  border: 0;
  box-shadow: none;
}

.site-header .nav-link {
  color: var(--ink-700);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.16s ease;
}

.site-header .nav-link i {
  font-size: 0.85rem;
  line-height: 1;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--brand-700);
  background: linear-gradient(135deg, #edf4ff, #e6f0ff);
}

.site-header .site-nav-shell {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.site-header .site-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.site-header .btn-sm {
  border-radius: 0.65rem;
  padding-inline: 0.78rem;
  width: auto;
}

.site-header .site-nav-actions > * {
  flex: 0 0 auto;
}

.site-header .site-nav-actions .btn,
.site-header .site-nav-actions .dropdown-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-header .site-nav-actions .dropdown {
  flex: 0 0 auto;
}

.site-header .site-notifications-menu {
  right: 0;
  left: auto;
  min-width: 300px;
}

.site-header .site-notifications-menu .dropdown-item {
  white-space: normal;
}

.site-header .site-notifications-menu .text-muted.small,
.site-header .site-notifications-menu .small.mb-1 {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-header .site-nav-more .dropdown-menu {
  min-width: 220px;
  border: 1px solid #dce8ff;
  border-radius: 1rem;
  box-shadow: 0 18px 34px rgba(17, 40, 82, 0.14);
  padding: 0.45rem;
  z-index: 1300;
}

.site-header .site-nav-more .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
}

.site-header .site-nav-more .dropdown-item i {
  font-size: 0.95rem;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid #d9e6ff;
  background:
    radial-gradient(900px 260px at 100% 0, rgba(74, 134, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #f9fbff 0%, #f2f7ff 100%);
}

.site-footer .fw-semibold {
  color: var(--brand-800);
}

.footer-link {
  color: var(--ink-700);
  text-decoration: none;
  margin-inline-start: 1rem;
  font-size: 0.94rem;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--brand-600);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cddfff;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-social-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  border-color: transparent;
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .site-header .navbar {
    min-height: 80px;
  }

  .site-header .navbar-collapse {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .site-header .site-nav-shell {
    background: rgba(243, 247, 255, 0.92);
    border: 1px solid #dce7fb;
    border-radius: 999px;
    padding: 0.35rem 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: visible;
  }

  .site-header .site-nav-actions {
    padding: 0.25rem 0;
  }


  .site-header .site-nav-actions .btn {
    white-space: nowrap;
  }

  .site-header .nav-link {
    white-space: nowrap;
  }

  .site-header .site-nav-more {
    position: relative;
  }

  .site-header .site-nav-more .dropdown-menu {
    top: calc(100% + 0.7rem);
    bottom: auto;
    right: 0;
    left: auto;
    margin: 0;
  }
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    margin-top: 0.6rem;
    background: #ffffff;
    border: 1px solid #dce8ff;
    border-radius: 0.9rem;
    padding: 0.75rem;
    box-shadow: 0 16px 30px rgba(15, 31, 70, 0.13);
  }

  .site-header .site-nav-shell {
    width: 100%;
  }

  .site-header .site-nav-links {
    width: auto;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
  }

  .site-header .site-nav-actions {
    width: 100%;
    margin-top: 0.65rem;
    justify-content: stretch;
    gap: 0.55rem;
  }

  .site-header .site-nav-actions > * {
    min-width: 0;
  }

  .site-header .site-nav-actions .btn,
  .site-header .site-nav-actions .dropdown {
    width: auto;
  }

  .site-header .site-nav-actions .dropdown-toggle {
    width: 100%;
  }

  .site-header .site-nav-more .dropdown-menu {
    top: 100%;
    bottom: auto;
  }

  .site-header .nav-link {
    border-radius: 0.55rem;
    margin-bottom: 0.2rem;
    display: flex;
  }

  .site-header .site-notifications-menu {
    position: absolute;
    right: 0;
    left: auto;
    min-width: min(calc(100vw - 3rem), calc(100vw - 1.5rem)) !important;
    max-width: calc(100vw - 1.5rem) !important;
  }

  .site-header .site-nav-actions .site-notifications-menu {
    width: min(calc(100vw - 1.5rem), 360px);
  }

  .site-footer .text-md-end {
    text-align: right !important;
  }

  .footer-link {
    display: inline-block;
    margin-inline-start: 0;
    margin-inline-end: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .footer-socials {
    justify-content: flex-start;
  }
}
