#app-bottom-nav {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 52px);
  z-index: 100;
  display: flex;
  visibility: hidden;
}

#app-bottom-nav.visible {
  visibility: visible;
}

.bottom-nav {
  background: var(--secondary);
  border-radius: var(--radius-full);
  height: 54px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}

.bottom-nav-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 6px;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  transition: all 150ms ease;
}

.bottom-nav-item svg {
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,0.45);
  transition: color 150ms ease;
}

.bottom-nav-label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52px;
  transition: color 150ms ease;
}

.bottom-nav-item.active svg { color: var(--primary); }
.bottom-nav-item.active .bottom-nav-label {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav-center {
  position: relative;
  transform: translateY(-18px);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.30);
  transition: transform 150ms ease, box-shadow 150ms ease;
  overflow: hidden;
}

.bottom-nav-center:active {
  transform: translateY(-18px) scale(0.93);
}

.bottom-nav-center.active {
  box-shadow: 0 0 0 3px var(--primary), 0 6px 16px rgba(0,0,0,0.30);
}

.bottom-nav-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bottom-nav-center-label {
  display: none;
}
