/* Mobile app-style bottom navigation bar */

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

@media only screen and (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 99997;
  }

  .mobile-bottom-nav .bottom-nav-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0 6px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
  }

  .mobile-bottom-nav .bottom-nav-item i {
    position: relative;
    display: block;
    font-size: 20px;
    line-height: 1;
    color: var(--text-color);
  }

  .mobile-bottom-nav .bottom-nav-item span {
    display: block;
  }

  .mobile-bottom-nav .bottom-nav-item.active,
  .mobile-bottom-nav .bottom-nav-item.active i {
    color: var(--theme-color);
  }

  .mobile-bottom-nav .bottom-nav-item.active:before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--theme-color);
  }

  .scroll-to-top {
    bottom: 84px;
  }
}
