.ravand-bottom-navbar {
    display: none;
}

@media (max-width: 767.98px) {
    .ravand-bottom-navbar {
        --bottom-nav-accent: color-mix(in srgb, var(--primary-color, #434eb0) 72%, #182441);
        --bottom-nav-tint: color-mix(in srgb, var(--bottom-nav-accent) 12%, white);
        --bottom-nav-ease: cubic-bezier(.22, .8, .25, 1);
        position: fixed;
        inset: auto 0 0;
        z-index: 9999;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        align-items: center;
        height: auto;
        min-height: 70px;
        padding: 5px max(8px, env(safe-area-inset-right))
            calc(5px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        border-top: 1px solid #e9edf5;
        background: #fff;
        box-shadow: 0 -4px 20px rgb(15 23 42 / 8%);
        animation: bottomNavEnter 650ms var(--bottom-nav-ease);
    }

    .ravand-bottom-navbar .ravand-nav-item {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 3px;
        min-height: 58px;
        padding: 3px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #535c6c;
        font: inherit;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        touch-action: manipulation;
        transform: none;
        transition: color 180ms ease;
        animation: bottomNavItemEnter 560ms var(--bottom-nav-ease) var(--item-delay, 120ms) backwards;
    }

    .ravand-bottom-navbar .ravand-nav-item:nth-child(2) { --item-delay: 200ms; }
    .ravand-bottom-navbar .ravand-nav-item:nth-child(3) { --item-delay: 280ms; }
    .ravand-bottom-navbar .ravand-nav-item:nth-child(4) { --item-delay: 360ms; }

    .ravand-bottom-navbar .ravand-nav-item i {
        display: grid;
        place-items: center;
        width: 46px;
        height: 30px;
        margin: 0;
        border-radius: 9px;
        font-size: 18px;
        line-height: 1;
        transition: transform 240ms var(--bottom-nav-ease), background-color 200ms ease;
    }

    .ravand-bottom-navbar .ravand-nav-item:is([aria-current], [aria-expanded="true"]) {
        color: var(--bottom-nav-accent);
        font-weight: 700;
    }

    .ravand-bottom-navbar .ravand-nav-item:is([aria-current], [aria-expanded="true"]) i {
        background-color: var(--bottom-nav-tint);
        animation: bottomNavSelected 420ms var(--bottom-nav-ease);
    }

    .ravand-bottom-navbar .ravand-nav-item:is(:active, .is-touch-pressed) i {
        background-color: var(--bottom-nav-tint);
        transform: scale(.82);
        transition-duration: 110ms;
        animation: none;
    }

    .ravand-bottom-navbar .ravand-nav-item.is-touch-pressed i {
        transform: scale(.94);
    }

    .ravand-bottom-navbar .ravand-nav-item:focus-visible {
        outline: 2px solid var(--bottom-nav-accent);
        outline-offset: -2px;
        animation: none;
    }
}

@keyframes bottomNavEnter {
    from { opacity: .2; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bottomNavItemEnter {
    from { opacity: .25; translate: 0 20px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes bottomNavSelected {
    0% { transform: scale(.82); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
    .ravand-bottom-navbar .ravand-nav-item.is-nav-previewing i::before {
        animation: bottomNavPreviewJump 540ms ease-out;
    }
}

@keyframes bottomNavPreviewJump {
    0%, 100% { transform: translateY(0) scale(1); }
    27% { transform: translateY(-17px) scale(1.12); }
    62% { transform: translateY(1px) scale(1.06, .95); }
    79% { transform: translateY(-4px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .ravand-bottom-navbar,
    .ravand-bottom-navbar .ravand-nav-item,
    .ravand-bottom-navbar .ravand-nav-item i,
    .ravand-bottom-navbar .ravand-nav-item:is([aria-current], [aria-expanded="true"]) i,
    .ravand-bottom-navbar .ravand-nav-item:is(:active, .is-touch-pressed) i {
        animation: none;
        transform: none;
        transition: none;
    }
}
