@media (max-width: 1023px) {
  body.has-mobile-bottom-nav {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  /* Smart scroll: guests on search/category pages — no padding, nav floats as overlay */
  /* Excludes item pages (mobile-bnav-guest-item) where nav stays fixed */
  body.has-mobile-bottom-nav.bnav-guest:not(.mobile-bnav-guest-item) {
    padding-bottom: 0;
  }

  body.bnav-guest:not(.mobile-bnav-guest-item) .bnav {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  body.bnav-guest:not(.mobile-bnav-guest-item).bnav-revealed .bnav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.bnav-sheet-open {
    overflow: hidden;
  }

  .bnav {
    --color-bg: #0D0D11;
    --color-accent: #E8637A;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1150;
    width: 100%;
    transform: none;
    transition: opacity 0.22s ease, transform 0.3s ease;
  }

  .bnav--compact {
    width: 100%;
  }

  .bnav__shell {
    position: relative;
    border: 0;
    border-radius: 20px 20px 0 0;
    background: var(--color-bg);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding:
      10px
      max(8px, env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
  }

  .bnav__items {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
  }

  .bnav__item {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 4px;
    font-family: "Söhne", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-family: "CircularXXWeb-Regular", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .bnav__item:focus-visible {
    outline: none;
  }

  .bnav__item--compact {
    flex-basis: 33.33%;
  }

  .bnav__icon-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  .bnav__icon {
    width: 26px;
    height: 26px;
    display: block;
    shape-rendering: geometricPrecision;
    transform: translateZ(0);
    backface-visibility: hidden;
    overflow: visible;
  }

  .bnav__icon * {
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15px;
  }

  .bnav__label {
    width: 100%;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
  }

  .bnav__item--active,
  .bnav__item--open {
    color: #fff;
  }

  .bnav__item--active .bnav__icon-wrap,
  .bnav__item--open .bnav__icon-wrap {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .bnav__item[data-bnav-action="item-like"].bnav__item--liked {
    color: #fff;
  }

  .bnav__item[data-bnav-action="item-like"].bnav__item--liked .bnav__icon-wrap {
    background: rgba(232, 99, 122, 0.18);
    box-shadow: 0 0 0 1px rgba(232, 99, 122, 0.22), 0 0 14px rgba(232, 99, 122, 0.24);
  }

  .bnav__item[data-bnav-action="item-like"].bnav__item--liked .bnav__icon {
    color: #ff8ea0;
  }

  .bnav__item[data-bnav-action="item-like"].bnav__item--pulse .bnav__icon-wrap {
    animation: bnav-like-pop 0.72s cubic-bezier(0.2, 0.85, 0.2, 1);
  }

  .bnav__item[data-bnav-action="item-like"].bnav__item--pulse .bnav__label {
    animation: bnav-like-label-pop 0.56s ease;
  }

  .bnav__item--accent {
    color: #fff;
  }

  .bnav__item--accent .bnav__icon-wrap {
    width: 44px;
    height: 44px;
    margin-top: 0;
    background: rgba(232, 99, 122, 0.25);
    border: 1px solid rgba(232, 99, 122, 0.4);
    box-shadow: 0 0 12px rgba(232, 99, 122, 0.3);
  }

  .bnav__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 700;
    box-shadow: none;
  }

  .bnav__badge--dynamic[hidden] {
    display: none !important;
  }

  @keyframes bnav-like-pop {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(232, 99, 122, 0);
    }
    35% {
      transform: scale(1.16);
      box-shadow: 0 0 0 10px rgba(232, 99, 122, 0.12);
    }
    65% {
      transform: scale(0.96);
      box-shadow: 0 0 0 4px rgba(232, 99, 122, 0.08);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(232, 99, 122, 0);
    }
  }

  @keyframes bnav-like-label-pop {
    0%,
    100% {
      transform: translateY(0);
      opacity: 1;
    }
    50% {
      transform: translateY(-1px);
      opacity: 0.92;
    }
  }

  .bnav-popover {
    position: fixed;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    z-index: 9001;
    width: min(calc(100% - 24px), 360px);
    transform: translate(-50%, 12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    padding: 10px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(13, 13, 17, 0.98);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
  }

  .bnav-popover.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .bnav-popover__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .bnav-popover__item--active,
  .bnav-popover__item:active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .bnav-popover__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .bnav-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(4, 4, 6, 0.78);
    opacity: 0;
    transition: opacity 0.26s ease;
  }

  .bnav-sheet-backdrop.is-open {
    opacity: 1;
  }

  .bnav-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9001;
    max-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
      rgba(13, 13, 17, 0.98);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.48);
    transform: translateY(105%);
    transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }

  .bnav-sheet.is-open {
    transform: translateY(0);
  }

  .bnav-sheet__handle {
    width: 48px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
  }

  .bnav-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    color: #fff;
    flex-shrink: 0;
  }

  .bnav-sheet__header h3 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 700;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  .bnav-sheet__header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.45;
  }

  .bnav-sheet__credit-pill {
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    text-align: right;
  }

  .bnav-sheet__credit-label {
    display: block;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
  }

  .bnav-sheet__credit-pill strong {
    display: block;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
  }

  .bnav-sheet__body {
    overflow-y: auto;
    padding-bottom: 6px;
  }

  .bnav-sheet__option {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 22px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bnav-sheet__option + .bnav-sheet__option {
    margin-top: 10px;
  }

  .bnav-sheet__option-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .bnav-sheet__option-svg,
  .bnav-sheet__arrow {
    width: 20px;
    height: 20px;
  }

  .bnav-sheet__option-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .bnav-sheet__option-copy strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
  }

  .bnav-sheet__option-copy small {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.58);
  }

  .bnav-sheet__arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.58);
    flex-shrink: 0;
  }

  .bnav-sheet__body--boost {
    padding-top: 2px;
  }

  .bnav-sheet__boost-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .bnav-sheet__boost-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bnav-sheet__boost-profile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    color: #fff;
    text-decoration: none;
  }

  .bnav-sheet__boost-photo {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
  }

  .bnav-sheet__boost-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .bnav-sheet__boost-copy strong,
  .bnav-sheet__boost-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bnav-sheet__boost-copy strong {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
  }

  .bnav-sheet__boost-copy small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.3;
  }

  .bnav-sheet__boost-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 92px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
  }

  .bnav-sheet__boost-btn--active {
    background: rgba(255, 51, 102, 0.16);
    border-color: rgba(255, 51, 102, 0.32);
    box-shadow: 0 10px 24px rgba(255, 51, 102, 0.2);
  }

  .bnav-sheet__boost-btn--disabled {
    opacity: 0.56;
  }

  .bnav-sheet__boost-btn-icon {
    width: 16px;
    height: 16px;
  }

  .bnav-sheet__empty {
    text-align: center;
    padding: 18px 10px 8px;
    color: #fff;
  }

  .bnav-sheet__empty strong {
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
  }

  .bnav-sheet__empty p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.5;
  }

  .bnav-sheet__empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: #ff3366;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
  }

  .bnav-sheet__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.4;
    flex-shrink: 0;
  }

  .bnav-sheet__footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
  }

  body.mobile-menu-open .bnav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  body.mobile-menu-open .bnav-popover {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
  }

  body.mobile-menu-open .bnav-sheet,
  body.mobile-menu-open .bnav-sheet-backdrop {
    opacity: 0;
    pointer-events: none;
  }

  .fancybox__container {
    z-index: 9500 !important;
  }
}

@media (min-width: 1024px) {
  .bnav,
  .bnav-popover,
  .bnav-sheet,
  .bnav-sheet-backdrop {
    display: none !important;
  }
}
