
/* Mobile bottom nav: single row, always includes Logout, no wrap/overlap */
@media (max-width: 767px) {
  .bottom-nav.bottom-nav--single {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    min-height: 58px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    overflow: hidden;
    z-index: 40;
  }
  .bottom-nav.bottom-nav--single > a {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    margin: 0;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,.72);
    white-space: nowrap;
    overflow: hidden;
    border-radius: 12px;
    transition: color .2s ease, background .2s ease, transform .15s ease;
  }
  .bottom-nav.bottom-nav--single > a .bn-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bottom-nav.bottom-nav--single > a .ico {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
  }
  .bottom-nav.bottom-nav--single > a.active,
  .bottom-nav.bottom-nav--single > a:hover {
    color: #f5d0fe;
    background: rgba(192,38,211,.12);
  }
  .bottom-nav.bottom-nav--single > a:active {
    transform: scale(0.94);
  }

  /* Logout tab — distinct, animated */
  .bottom-nav.bottom-nav--single > a.bn-logout {
    color: #fda4af;
    position: relative;
  }
  .bottom-nav.bottom-nav--single > a.bn-logout .bn-logout-ico {
    display: flex;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  }
  .bottom-nav.bottom-nav--single > a.bn-logout:hover,
  .bottom-nav.bottom-nav--single > a.bn-logout:focus-visible {
    color: #fecdd3;
    background: rgba(244,63,94,.14);
  }
  .bottom-nav.bottom-nav--single > a.bn-logout:hover .bn-logout-ico,
  .bottom-nav.bottom-nav--single > a.bn-logout:active .bn-logout-ico {
    transform: translateX(3px);
  }
  .bottom-nav.bottom-nav--single > a.bn-logout::before {
    content: "";
    position: absolute;
    inset: 4px 2px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 30%, rgba(244,63,94,.18), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
  }
  .bottom-nav.bottom-nav--single > a.bn-logout:hover::before {
    opacity: 1;
  }
  @keyframes bn-logout-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,63,94,.0); }
    50% { box-shadow: 0 0 0 4px rgba(244,63,94,.12); }
  }
  .bottom-nav.bottom-nav--single > a.bn-logout {
    border-radius: 12px;
    animation: bn-logout-pulse 2.8s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .bottom-nav.bottom-nav--single > a.bn-logout { animation: none; }
    .bottom-nav.bottom-nav--single > a.bn-logout .bn-logout-ico { transition: none; }
  }

  /* Keep badge from breaking layout */
  .bottom-nav.bottom-nav--single .badge {
    position: absolute;
    top: 2px;
    right: 12%;
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
  }
  .bottom-nav.bottom-nav--single > a { position: relative; }
}

/* Desktop: bottom nav stays hidden; logout remains in top header */
@media (min-width: 768px) {
  .bottom-nav.bottom-nav--single { display: none !important; }
}
