.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border-c);
  height: var(--bottomnav-h);
  padding-bottom: var(--safe-b);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1rem;
  padding-top: 0;
  border-top-left-radius: 1.875rem;
  border-top-right-radius: 1.875rem;
  z-index: var(--z-nav);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 768px) {
  .bottom-nav {
    position: static;
    height: 3.5rem;
    border-radius: 0;
    border-top: none;
    border-bottom: 1px solid var(--border-c);
    background: var(--surface);
    justify-content: center;
    gap: 2rem;
    padding-block: 0;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
  height: 100%;
  cursor: pointer;
  border-radius: var(--r-md);
}

@media (min-width: 768px) {
  .nav-item {
    flex-direction: row;
    flex: 0;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    font-size: 0.875rem;
    height: auto;
  }
}

.nav-item:not(.active):hover { color: var(--text); }

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.25rem;
}
@media (min-width: 768px) {
  .icon-container { width: auto; height: auto; }
  .icon-container svg { width: 18px; height: 18px; }
}

.nav-item.active {
  background-color: var(--primary-tint);
  color: var(--primary-ink);
  font-weight: 600;
  opacity: 1;
  box-shadow: none;
}
