/* Bottom navigation */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(8,8,16,0.76);
  backdrop-filter: blur(42px) saturate(1.85);
  -webkit-backdrop-filter: blur(42px) saturate(1.85);
  border-top: 1px solid rgba(255,255,255,0.10);
  z-index: 100; display: flex; align-items: center; justify-content: space-around;
  padding-left: 10px; padding-right: 10px;
  box-shadow: 0 -5px 22px rgba(0,0,0,0.36);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.nav-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  width: 84px;
  height: 46px;
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.032));
  border: 1px solid rgba(232,244,77,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 0 18px rgba(232,244,77,0.10);
  transform: translateX(0);
  transition: transform .42s var(--spring), width .42s var(--spring);
  pointer-events: none;
  opacity: .74;
}
.nav-indicator.dragging {
  transition: width .18s ease;
  opacity: .86;
  cursor: grabbing;
}
.nav-indicator::after {
  content: '';
  position: absolute;
  inset: -35% -70%;
  background: linear-gradient(105deg, transparent 35%, rgba(232,244,77,0.30) 48%, rgba(96,212,244,0.18) 56%, transparent 70%);
  transform: translateX(-42%);
  opacity: 0;
}
.nav-indicator.flow::after {
  animation: navIndicatorFlow .72s ease-out both;
}
@keyframes navIndicatorFlow {
  0% { transform: translateX(-45%); opacity: 0; }
  35% { opacity: .76; }
  100% { transform: translateX(45%); opacity: 0; }
}
.nav-item {
  position: relative;
  z-index: 1;
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; padding: 4px 2px; cursor: pointer; border: none; background: none;
  color: rgba(255,255,255,0.35); transition: color 0.3s var(--spring), transform 0.2s var(--spring);
  border-radius: 15px; min-height: 50px; -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.nav-item.active { color: var(--accent); }
.nav-item:active { transform: scale(0.88); }
.bottom-nav.nav-dragging .nav-item:active { transform: none; }
.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  line-height: 1;
  transition: .28s var(--spring);
}
.nav-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  shape-rendering: auto;
  overflow: visible;
}
.nav-icon svg * {
  vector-effect: non-scaling-stroke;
}
.nav-label { font-size: 7px; font-weight: 800; letter-spacing: .36px; text-transform: uppercase; white-space: nowrap; }
.nav-item.active .nav-icon {
  position: relative;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 5px rgba(232,244,77,0.22));
}

body.workout-mode #bottom-nav {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
