/* Floating mobile bottom nav — home page only, hidden above 768px */
.mobile-nav { display: none; }

@media (max-width: 767px) {
  body.home .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 150;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 8px 24px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255,255,255,0.05) inset;
    width: calc(100vw - 24px);
    max-width: 440px;
    justify-content: space-around;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  body.home.is-scrolled .mobile-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  body.home .mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 16px;
    transition: color .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }
  body.home .mobile-nav__item.is-active,
  body.home .mobile-nav__item:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  body.home .mobile-nav__item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    flex-shrink: 0;
  }
  body.home .mobile-nav__badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
  }

  /* Push home page content above the nav */
  body.home { padding-bottom: 80px; }
}
