/* NeuroBios Universal App Nav v1.0
   Parent-owned application shell.
   NeuroChill is Reference App 01.
*/

:root {
  --nb-appnav-height: 52px;
}

.nb-appnav {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nb-appnav-height);
  border-bottom: 1px solid rgba(164, 181, 255, 0.16);
  background: rgba(3, 7, 18, 0.94);
  color: #eef3ff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

@supports ((-webkit-backdrop-filter: blur(18px)) or (backdrop-filter: blur(18px))) {
  .nb-appnav {
    background: rgba(3, 7, 18, 0.76);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
  }
}

.nb-appnav__inner {
  width: min(calc(100% - 32px), 1180px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.nb-appnav a {
  color: inherit;
  text-decoration: none;
}

.nb-appnav__home {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 0;
}

.nb-appnav__home-lockup {
  display: block;
max-height: 31px;
  object-fit: contain;
}

.nb-appnav__home-orb {
  display: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nb-appnav__rail {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.nb-appnav__rail::-webkit-scrollbar {
  display: none;
}

.nb-appnav__app {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(233, 238, 255, 0.68);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.nb-appnav__app--current {
  border-color: rgba(154, 184, 255, 0.25);
  background: rgba(112, 145, 255, 0.10);
  color: #f4f7ff;
}

.nb-appnav__app--future {
  opacity: 0.62;
}

.nb-appnav__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(200, 185, 255, 0.24);
  border-radius: 999px;
  background: rgba(200, 185, 255, 0.07);
  color: #dad3ff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.nb-appnav__status-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c8b9ff;
  box-shadow: 0 0 10px rgba(200, 185, 255, 0.62);
}

@media (max-width: 800px) {
  :root {
    --nb-appnav-height: 48px;
  }

  .nb-appnav__inner {
    width: calc(100% - 22px);
    gap: 10px;
  }
.nb-appnav__rail {
    justify-content: flex-start;
    gap: 5px;
  }

  .nb-appnav__app {
    padding: 6px 8px;
    font-size: 11px;
  }

  .nb-appnav__status {
    padding: 6px 8px;
    gap: 5px;
    font-size: 9px;
    letter-spacing: 0.055em;
  }
}

@media (max-width: 600px) {
  .nb-appnav__home-lockup {
    display: none;
  }

  .nb-appnav__home-orb {
    display: block;
  }

  .nb-appnav__app--future {
    display: none;
  }

  .nb-appnav__rail {
    overflow: visible;
  }
}

@media (max-width: 380px) {
  .nb-appnav__inner {
    width: calc(100% - 16px);
    gap: 7px;
  }

  .nb-appnav__home-orb {
    width: 27px;
    height: 27px;
  }

  .nb-appnav__app {
    padding-inline: 7px;
    font-size: 10.5px;
  }

  .nb-appnav__status {
    padding-inline: 7px;
    font-size: 8.25px;
    letter-spacing: 0.035em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-appnav__rail {
    scroll-behavior: auto;
  }
}

/* === NEUROBIOS UNIVERSAL APP NAV v2 === */
.nb-appnav__home-lockup { width: 144px; }

.nb-appnav__switcher {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.nb-appnav__apps { position: relative; flex: 0 0 auto; }
.nb-appnav__apps-trigger {
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(154, 184, 255, 0.30);
  border-radius: 999px;
  background: rgba(112, 145, 255, 0.08);
  color: #f0f3ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.nb-appnav__apps-trigger::-webkit-details-marker { display: none; }
.nb-appnav__apps-trigger:hover {
  border-color: rgba(154, 184, 255, 0.48);
  background: rgba(112, 145, 255, 0.13);
}
.nb-appnav__apps-chevron {
  display: inline-block;
  color: #cbc8ec;
  font-size: 15px;
  line-height: 1;
  transition: transform 160ms ease;
}
.nb-appnav__apps[open] .nb-appnav__apps-chevron { transform: rotate(180deg); }
.nb-appnav__menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  left: 0;
  width: 286px;
  padding: 8px;
  border: 1px solid rgba(164, 181, 255, 0.20);
  border-radius: 16px;
  background: rgba(7, 12, 31, 0.97);
  box-shadow: 0 24px 64px rgba(0,0,0,.48), 0 0 0 1px rgba(90,120,210,.04);
}
@supports ((-webkit-backdrop-filter: blur(22px)) or (backdrop-filter: blur(22px))) {
  .nb-appnav__menu {
    background: rgba(7,12,31,.88);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
  }
}
.nb-appnav__menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(235,239,255,.76);
}
a.nb-appnav__menu-item:hover { background: rgba(112,145,255,.07); color: #fff; }
.nb-appnav__menu-item + .nb-appnav__menu-item { margin-top: 2px; }
.nb-appnav__menu-item--current {
  background: rgba(132,151,226,.14);
  color: #f7f8ff;
  box-shadow: inset 0 0 0 1px rgba(176,187,255,.08);
}
.nb-appnav__menu-item--future { opacity: .70; }
.nb-appnav__menu-copy { display: grid; gap: 3px; }
.nb-appnav__menu-copy strong { font-size: 13px; font-weight: 680; line-height: 1.15; }
.nb-appnav__menu-copy small {
  color: rgba(198,207,235,.56);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .10em;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (max-width: 800px) {
.nb-appnav__switcher { gap: 7px; }
  .nb-appnav__apps-trigger { min-height: 32px; padding-inline: 10px; font-size: 11px; }
  .nb-appnav__menu { width: 268px; }
}
@media (max-width: 600px) {
  .nb-appnav__rail { display: none; }
  .nb-appnav__switcher { justify-content: flex-start; }
  .nb-appnav__status > span:last-child { display: none; }
  .nb-appnav__status::after { content: "Coming soon"; }
  .nb-appnav__menu {
    position: fixed;
    top: calc(var(--nb-appnav-height) + 8px);
    right: 11px;
    left: 11px;
    width: auto;
    max-height: calc(100svh - var(--nb-appnav-height) - 16px);
    overflow-y: auto;
    background: #070c1f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 24px 64px rgba(0,0,0,.58), 0 0 0 1px rgba(154,184,255,.07);
  }
  .nb-appnav__menu-item { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-appnav__apps-chevron { transition: none; }
}
