.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 {
    position: relative;
    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--active {
    background-color: rgba(90, 55, 140, 0.08);
    color: #3c366b;
}

.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;
}

.mobile-footer__state-dot {
    position: absolute;
    top: 0.35rem;
    right: 50%;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: -1.05rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #5a378c;
    box-shadow: 0 0 0 1px rgba(90, 55, 140, 0.24);
}

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

    .mobile-footer__nav {
        gap: 0.25rem;
        min-height: 3rem;
        padding: 0.25rem 0.75rem calc(env(safe-area-inset-bottom) + 0.25rem);
    }

    .mobile-footer__action {
        min-height: 2.75rem;
        gap: 0.125rem;
        padding: 0.25rem 0.125rem;
        border-radius: 0.625rem;
        font-size: 0.6875rem;
    }

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

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