/* === Нижняя навигация === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: var(--shadow-float);
  padding-bottom: calc(var(--bottom-nav-spacing) + constant(safe-area-inset-bottom));
  padding-bottom: calc(var(--bottom-nav-spacing) + env(safe-area-inset-bottom, 0px));
}

.bottom-nav__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max(56px, var(--bottom-nav-height));
  height: var(--bottom-nav-height);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

#nav-account.is-loading,
.nav-account.is-loading {
  visibility: hidden;
}

.bottom-nav__icon {
  display: block;
  width: var(--bottom-nav-icon-size);
  height: var(--bottom-nav-icon-size);
}

.bottom-nav__icon * {
  fill: transparent;
  stroke: var(--color-text-muted);
  transition: stroke 0.2s ease, fill 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bottom-nav__button:hover .bottom-nav__icon * {
    stroke: var(--color-primary-hover);
    fill: var(--color-primary-hover);
  }
}

.bottom-nav__button:focus-visible .bottom-nav__icon * {
  stroke: var(--color-primary);
  fill: var(--color-primary);
}

.bottom-nav__button.bottom-nav__button--active .bottom-nav__icon * {
  stroke: var(--color-primary);
  fill: var(--color-primary);
}

.bottom-nav__text-button {
  display: none;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0.75rem;
  height: var(--bottom-nav-height);
  align-items: center;
  justify-content: center;
}

.bottom-nav__text-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.bottom-nav__text-button--visible {
  display: inline-flex;
}

