.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-nav strong {
  font-size: 18px;
}

.top-nav a {
  text-decoration: none;
  color: #555;
}

.top-nav a.active {
  color: #000;
  font-weight: 600;
}

.top-nav button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

/* Bottom nav */
.bottom-nav {
 position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 54px;
    padding: 0 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    border-top: 1px solid #E5E5E5;
    z-index: 32;
}

.bottom-nav--hidden {
  display: none;
}

.bottom-nav__item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: #111827;
  padding: 0;
  height: 100%;
}

.bottom-nav__item img {
  width: 24px;
  height: 24px;
  display: block;
}

.bottom-nav__item.active {
  color: #0f172a;
  font-weight: 700;
}

.add-menu {
  position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    width: 100%;
    background: #fff;
    /* border-radius: 24px; */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 16px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
    z-index: 21;

}

.add-menu__overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 20;
}

.add-menu__overlay--show {
  opacity: 1;
  pointer-events: auto;
}

.add-menu--show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition-delay: 0ms;
}

.add-menu__header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 12px;
}

.add-menu__title {
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  color: #111827;
}

.add-menu__close {
  border: none;
  background: transparent;
  padding: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.add-menu__close img {
  width: 24px;
  height: 24px;
  display: block;
}

.add-menu__items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  text-align: center;
}

.add-menu__item {
  border: none;
  background: transparent;
  padding: 6px 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #111827;
  cursor: pointer;
}

.add-menu__item img {
  width: 24px;
  height: 24px;
  display: block;
}

/*  @media (min-width: 900px) {
  .bottom-nav {
    display: none;
  }
  .add-menu {
    display: none;
  }
}*/

/* More sheet overlay */
.more-sheet {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 30; /* нижче за bottom-nav, щоб меню не перекривало його */
  padding: 24px 12px 0px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.more-sheet__content {
  width: 100%;
  background:#FFFFFF;
  border-radius: 24px 24px 0 0;
  padding: 20px 16px 120px 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  transform: translateY(100%);
  transition: transform 200ms ease;
}

.more-sheet__header {
  text-align: center;
  margin-bottom: 32px;
}

.more-sheet__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.more-sheet__subtitle {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.more-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #F7F9FB;
  cursor: pointer;

}

.more-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.more-item__icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.more-item__text {
  display: grid;
  gap: 4px;
}

.more-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.more-item__desc {
  margin: 0;
  font-size: 12px;
  color: #4b5563;
}

.more-sheet.show {
  opacity: 1;
  pointer-events: auto;
}

.more-sheet.show .more-sheet__content {
  transform: translateY(0);
}
