.aviantly-navbar {
  --nav-purple: #7c3aed;
  --nav-purple-light: #8b5cf6;
  --nav-cyan: #38bdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 9, 14, 0.88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}

.navbar-row {
  min-height: 4.25rem;
}

.navbar-brand {
  color: #fff;
}

.navbar-logo-wrap {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}

.navbar-logo-wrap::after {
  position: absolute;
  z-index: -1;
  inset: 18%;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.48);
  content: "";
  filter: blur(11px);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 320ms ease,
    transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-logo {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transform-origin: 50% 60%;
  transition:
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
}

.navbar-brand:hover .navbar-logo,
.navbar-brand:focus-visible .navbar-logo {
  filter: brightness(1.08);
  transform: rotate(-3deg) scale(1.045);
}

.navbar-brand:hover .navbar-logo-wrap::after,
.navbar-brand:focus-visible .navbar-logo-wrap::after {
  opacity: 0.72;
  transform: scale(1.08);
}

.navbar-brand-copy,
.navbar-title,
.navbar-subtitle {
  display: block;
}

.navbar-title {
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

.navbar-subtitle {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6875rem;
  line-height: 1.15;
}

.navbar-links {
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-pill {
  position: relative;
  display: inline-flex;
  min-height: 2.375rem;
  align-items: center;
  gap: 0.45rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
  color: rgba(236, 234, 244, 0.7);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 280ms ease,
    border-color 280ms ease,
    box-shadow 320ms ease,
    background-color 280ms ease;
}

.nav-pill::before {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -0.25rem;
  width: 155%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--nav-purple),
    var(--nav-purple-light) 72%,
    #7468e8
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(124, 58, 237, 0.2);
  content: "";
  opacity: 0;
  transform: translate3d(-50%, 78%, 0) scale(0.58);
  transition:
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform;
}

.nav-pill > * {
  position: relative;
  z-index: 1;
}

.nav-pill > i {
  width: 0.95rem;
  color: rgba(213, 207, 229, 0.72);
  font-size: 0.6875rem;
  text-align: center;
  transition:
    color 280ms ease,
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-pill:hover,
.nav-pill:focus-visible {
  border-color: rgba(167, 139, 250, 0.32);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.16);
}

.nav-pill:hover::before,
.nav-pill:focus-visible::before {
  opacity: 1;
  transform: translate3d(-50%, 35%, 0) scale(1.06);
}

.nav-pill:hover > i,
.nav-pill:focus-visible > i {
  color: #fff;
  transform: translateY(-1.5px);
}

.nav-pill.is-active {
  border-color: rgba(167, 139, 250, 0.25);
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.2),
    rgba(124, 58, 237, 0.1)
  );
  color: #f7f4ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 22px rgba(70, 36, 150, 0.11);
}

.nav-pill.is-active::after {
  content: none;
  display: none;
}

.nav-pill.is-active > i {
  color: #c4b5fd;
}

.nav-pill.has-update:not(.is-active) {
  border-color: rgba(139, 92, 246, 0.25);
}

.navbar-actions {
  gap: 0.5rem;
}

.nav-action,
.mobile-nav-action,
.nav-profile-trigger,
.nav-login {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.78);
  transition:
    color 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-action {
  position: relative;
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.nav-notifications {
  width: 2.5rem;
}

.nav-cart {
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.nav-cart > i,
.mobile-nav-action > i {
  color: #a78bfa;
}

.nav-action:hover,
.nav-action:focus-visible,
.nav-action.is-active {
  border-color: rgba(139, 92, 246, 0.44);
  background: rgba(124, 58, 237, 0.13);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.14);
}

.nav-notifications:hover > i,
.nav-notifications:focus-visible > i {
  animation: nav-bell 520ms ease;
}

.nav-profile-trigger {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.875rem;
  padding: 0.3rem 0.55rem;
}

.nav-profile-trigger:hover,
.nav-profile-trigger:focus-visible,
.nav-profile-trigger[aria-expanded="true"] {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 9px 26px rgba(23, 13, 51, 0.3);
}

.nav-profile-chevron {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.6875rem;
  transition:
    color 260ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-profile-trigger[aria-expanded="true"] .nav-profile-chevron {
  color: #c4b5fd;
  transform: rotate(180deg);
}

.nav-profile-menu {
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(10, 13, 21, 0.97);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(124, 58, 237, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-color: rgba(139, 92, 246, 0.4);
  border-radius: 0.75rem;
  background: rgba(124, 58, 237, 0.13);
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.nav-login:hover,
.nav-login:focus-visible {
  border-color: rgba(167, 139, 250, 0.62);
  background: rgba(124, 58, 237, 0.23);
  box-shadow: 0 9px 25px rgba(124, 58, 237, 0.16);
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-action {
  position: relative;
  display: inline-flex;
  width: 2.625rem;
  height: 2.625rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.mobile-nav-action:hover,
.mobile-nav-action:focus-visible,
.mobile-menu-button[aria-expanded="true"] {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(124, 58, 237, 0.15);
  color: #fff;
}

.nav-count-badge {
  display: inline-flex;
  min-width: 1.25rem;
  min-height: 1.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 181, 253, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  padding: 0.12rem 0.34rem;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
}

.mobile-nav-action .nav-count-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  box-shadow: 0 0 0 2px #090b11;
}

.nav-count-badge.hidden {
  display: none;
}

.mobile-menu-icon {
  display: grid;
  width: 1.1rem;
  gap: 0.22rem;
}

.mobile-menu-icon > span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon > span:first-child {
  transform: translateY(0.44rem) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"]
  .mobile-menu-icon
  > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.3);
}

.mobile-menu-button[aria-expanded="true"] .mobile-menu-icon > span:last-child {
  transform: translateY(-0.44rem) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}

.aviantly-navbar.mobile-menu-open .mobile-menu {
  grid-template-rows: 1fr;
  opacity: 1;
}

.mobile-menu-clip {
  min-height: 0;
  overflow: hidden;
}

.mobile-menu-panel {
  display: grid;
  gap: 0.3rem;
  max-height: calc(100svh - 5.25rem);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0.35rem 0 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(19, 21, 31, 0.97),
    rgba(9, 11, 18, 0.98)
  );
  padding: 0.55rem;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mobile-nav-link {
  display: flex;
  min-height: 2.875rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.7rem 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 650;
  transition:
    color 240ms ease,
    border-color 240ms ease,
    background-color 240ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav-link > i,
.mobile-nav-link > span:first-child > i {
  width: 1rem;
  color: #a99aea;
  text-align: center;
}

.mobile-nav-link > .nav-count-badge {
  margin-left: auto;
}

.mobile-nav-link.has-update:not(.is-active) {
  border-color: rgba(139, 92, 246, 0.24);
  background: rgba(124, 58, 237, 0.08);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(124, 58, 237, 0.1);
  color: #fff;
  transform: translateX(2px);
}

.mobile-nav-link.is-active {
  border-color: rgba(167, 139, 250, 0.3);
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.24),
    rgba(56, 189, 248, 0.05)
  );
  color: #fff;
  box-shadow: inset 3px 0 0 #8b5cf6;
}

.mobile-login {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(124, 58, 237, 0.13);
  color: #fff;
}

.mobile-nav-logout button {
  display: flex;
  width: 100%;
  min-height: 2.875rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  padding: 0.7rem 0.8rem;
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 650;
  text-align: left;
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    color 240ms ease;
}

.mobile-nav-logout button:hover,
.mobile-nav-logout button:focus-visible {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(239, 68, 68, 0.14);
  color: #fff;
}

@keyframes nav-bell {
  0%,
  100% {
    transform: rotate(0deg);
  }
  28% {
    transform: rotate(10deg) translateY(-1px);
  }
  58% {
    transform: rotate(-8deg) translateY(-1px);
  }
  78% {
    transform: rotate(4deg);
  }
}

@media (max-width: 79.999rem) {
  .navbar-row {
    min-height: 4rem;
  }
  .navbar-subtitle {
    display: block;
  }
}

@media (max-width: 35rem) {
  .navbar-container {
    padding-inline: 0.75rem !important;
  }
  .navbar-title {
    font-size: 0.9375rem;
  }
  .navbar-subtitle {
    font-size: 0.625rem;
  }
  .navbar-logo {
    width: 2.25rem !important;
    height: 2.25rem !important;
    border-radius: 0.75rem !important;
  }
  .navbar-row {
    gap: 0.5rem;
  }
  .mobile-nav-actions {
    gap: 0.35rem;
  }
}

@media (max-width: 23rem) {
  .navbar-subtitle {
    display: none;
  }
  .navbar-title {
    font-size: 0.875rem;
  }
}

@media (min-width: 80rem) and (max-width: 95.999rem) {
  .navbar-container {
    padding-inline: 1rem !important;
  }
  .navbar-title {
    font-size: 0.9375rem;
  }
  .nav-pill {
    gap: 0.35rem;
    padding-inline: 0.55rem;
    font-size: 0.75rem;
  }
  .navbar-actions {
    gap: 0.35rem;
  }
  .nav-cart {
    padding-inline: 0.62rem;
  }
  .nav-profile-trigger {
    gap: 0.4rem;
    padding-inline: 0.4rem;
  }
  .nav-profile-trigger img {
    width: 2.125rem !important;
    height: 2.125rem !important;
  }
  .nav-profile-trigger .max-w-\[7rem\] {
    max-width: 5rem;
  }
}

@media (min-width: 80rem) and (max-width: 85.312rem) {
  .navbar-subtitle {
    display: none;
  }
}

@media (min-width: 80rem) and (max-width: 85.374rem) {
  .navbar-links,
  .navbar-actions {
    display: none !important;
  }
  .mobile-menu {
    display: grid !important;
  }
  .mobile-nav-actions {
    display: flex !important;
  }
}

@media (min-width: 85.375rem) {
  .mobile-menu,
  .mobile-nav-actions {
    display: none;
  }
}

@media (prefers-contrast: more) {
  .aviantly-navbar {
    border-bottom-color: rgba(255, 255, 255, 0.3);
  }
  .nav-pill,
  .nav-action,
  .mobile-nav-action,
  .nav-profile-trigger {
    border-color: rgba(255, 255, 255, 0.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-pill::before {
    display: none;
  }
  .nav-notifications:hover > i,
  .nav-notifications:focus-visible > i {
    animation: none;
  }
  .navbar-logo,
  .navbar-logo-wrap::after,
  .nav-pill,
  .nav-pill > i,
  .nav-action,
  .mobile-nav-action,
  .nav-profile-trigger,
  .nav-profile-chevron,
  .mobile-menu,
  .mobile-menu-icon > span,
  .mobile-nav-link {
    transition: none;
  }
  .navbar-brand:hover .navbar-logo,
  .navbar-brand:focus-visible .navbar-logo,
  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible {
    transform: none;
  }
}
