.mobile-footer {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    display: none;
    background-color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mobile-footer--scrolled {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.12);
}

.mobile-footer__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.75rem 1.25rem calc(env(safe-area-inset-bottom) + 0.75rem);
}

.mobile-footer__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    background-color: transparent;
    color: #4a5568;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-footer__action:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 55, 140, 0.2);
}

.mobile-footer__action:focus-visible {
    outline: 2px solid #5a378c;
    outline-offset: 2px;
}

.mobile-footer__action-icon {
    font-size: 1.25rem;
}

.mobile-footer__action-label {
    color: inherit;
}

.mobile-footer__action[aria-expanded="true"] {
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
}

@media (max-width: 767.98px) {
    .mobile-footer {
        display: block;
    }

    .main-content {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)) !important;
    }
}
