/* Shared mobile app navigation for the AiMore product family. */
.mobile-app-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .mobile-app-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1010;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        min-height: 70px;
        padding: 7px 10px max(7px, env(safe-area-inset-bottom));
        border-top: 1px solid #e5e7eb;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .1);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .mobile-app-nav__item {
        display: inline-flex;
        min-width: 0;
        min-height: 58px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 3px 2px;
        border-radius: 12px;
        color: #737783;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
        transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .mobile-app-nav__item:hover,
    .mobile-app-nav__item:focus-visible {
        color: #6953d6;
        background: #f6f3ff;
    }

    .mobile-app-nav__item:active {
        transform: translateY(1px);
    }

    .mobile-app-nav__item.is-active {
        color: #7054dc;
    }

    .mobile-app-nav__icon {
        width: 27px;
        height: 27px;
        flex: 0 0 auto;
    }

    .mobile-app-nav__item:focus-visible {
        outline: 3px solid rgba(112, 84, 220, .25);
        outline-offset: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-app-nav__item {
        transition: none;
    }
}
