/* ============================================================
   Mobile bottom navigation — floating glass tab bar (≤768px)
   ============================================================ */

.mob-nav { display: none; }

@media (max-width: 768px) {
    .mob-nav {
        display: block;
        position: fixed;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 440px;
        z-index: 1000;
        /* keep it clear of the iOS home indicator */
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mob-nav-menu {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 6px;
        margin: 0;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid var(--brand-primary-100, #d9ecf5);
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(4, 88, 129, 0.18);
    }

    .mob-nav-menu .mob-nav-link {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 16px;
        color: #6B7E95;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
        transition: color .2s ease, background-color .2s ease, transform .15s ease;
    }

    .mob-nav-menu .mob-nav-link span {
        font-size: 11.5px;
        line-height: 1;
    }

    /* normalise the injected SVG so every icon shares one optical box */
    .mob-nav-menu .mob-nav-link svg {
        width: 23px;
        height: 23px;
    }

    .mob-nav-menu .mob-nav-link:active {
        transform: scale(0.93);
    }

    /* active / current page — uses the site's primary brand blue */
    .mob-nav-menu .mob-nav-link.active {
        background: var(--brand-primary-600, #045881);
        color: #fff;
        box-shadow: 0 6px 14px rgba(4, 88, 129, 0.40);
    }

    /* pay-now stays a quiet dark accent until it is the active page */
    .mob-nav-menu .mob-nav-link--pay { color: var(--brand-primary-700, #033f5d); }
    .mob-nav-menu .mob-nav-link--pay.active {
        background: var(--brand-primary-600, #045881);
        color: #fff;
    }
}
