/* Bottom nav */
.bottom-nav {
 position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 54px;
    padding: 0 8px;
    background: var(--nx-bg-card, #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 var(--nx-border-primary, #DDDEDF);
    z-index: 32;
}

body.is-standalone .bottom-nav {
  height: calc(54px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
}

.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: var(--nx-icon-secondary, #818588);
  padding: 0;
  height: 100%;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body.is-standalone .bottom-nav__item,
body.pwa .bottom-nav__item {
  transform: translateY(10px);
}

.bottom-nav__item.active {
  color: var(--nx-icon-primary, #2D3439);
  font-weight: 600;
}

.bottom-nav__item:not(.active):not(.bottom-nav__item--add) img {
  filter: invert(73%) sepia(7%) saturate(286%) hue-rotate(169deg) brightness(92%) contrast(86%);
}

.bottom-nav__item.active img {
  filter: none;
}

.bottom-nav__item--add {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nx-button-primary-bg, #171A1D);
  flex-direction: row;
  gap: 0;
  padding: 0;
  align-self: center;
  justify-self: center;
}

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

.add-menu {
  position: fixed;
  inset: auto 0 0 0;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 100%;
  max-width: 1040px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0ms linear 180ms;
  z-index: 34;
}

body.is-standalone .add-menu,
body.pwa .add-menu {
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

body.add-menu-open {
  overflow: hidden;
}

.add-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 33;
}

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

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

.add-menu__sheet {
  background: var(--nx-bg-card, #fff);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.add-menu__title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
  color: var(--nx-text-secondary, #818588);
  padding: 16px;
  border-bottom: 1px solid var(--nx-border-primary, #DDDEDF);
}

.add-menu__items {
  display: grid;
}

.add-menu__item {
  width: 100%;
  border: none;
  border-top: 1px solid var(--nx-border-primary, #DDDEDF);
  background: var(--nx-bg-card, #fff);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--nx-text-primary, #1B1B1B);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.add-menu__item:first-child {
  border-top: none;
}

.add-menu__item:active,
.add-menu__cancel:active {
  background: var(--nx-bg-card-muted, #EFEFF0);
}

.add-menu__cancel {
  border: none;
  background: var(--nx-bg-card, #fff);
  border-radius: 16px;
  min-height: 54px;
  width: 100%;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 600;
  color: var(--nx-danger, #CF1717);
  padding: 8px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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