.mobile {
  padding-bottom: 116px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 480px);
  transform: translateX(-50%);
  padding: 6px;
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid rgba(116, 36, 141, 0.14);
  border-radius: 24px;
  box-shadow:
    0 16px 40px rgba(60, 28, 70, 0.18),
    0 3px 12px rgba(60, 28, 70, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 20;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.78), transparent 44%);
}

.bottom-nav ul {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  list-style: none;
}

.bottom-nav li {
  min-width: 0;
}

.bottom-nav a {
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 6px;
  border-radius: 18px;
  color: #746273;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.bottom-nav a:active {
  transform: scale(0.96);
}

.nav-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-label {
  white-space: nowrap;
}

.bottom-nav a.active {
  color: #fff;
  background: linear-gradient(145deg, #862a9f, var(--primary-dark));
  font-weight: 800;
  transform: translateY(-3px);
  box-shadow: 0 9px 20px rgba(116, 36, 141, 0.31);
}

.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4b94c;
  box-shadow: 0 0 0 3px rgba(244, 185, 76, 0.18);
}

.bottom-nav a.active .nav-icon {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
}

.toast {
  bottom: 110px;
}

@media (max-width: 370px) {
  .bottom-nav {
    width: calc(100% - 12px);
    padding: 5px;
  }

  .bottom-nav a {
    min-height: 54px;
    font-size: 9px;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
  }
}
