.bbf-bottom-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    padding: 0 12px 14px;
    pointer-events: none;
    box-sizing: border-box;
}

.bbf-bottom-bar,
.bbf-bottom-bar * {
    box-sizing: border-box;
}

.bbf-bottom-bar__inner {
    width: 768px;
    max-width: 100%;
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(183, 27, 29, 0.1);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.bbf-bottom-bar__item {
    min-width: 0;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #536174;
    text-decoration: none;
    border-radius: 14px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    position: relative;
    isolation: isolate;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bbf-bottom-bar__item:hover,
.bbf-bottom-bar__item:focus-visible {
    color: #b71b1d;
    background: rgba(183, 27, 29, 0.07);
    text-decoration: none;
}

.bbf-bottom-bar__item:focus-visible {
    outline: 2px solid #b71b1d;
    outline-offset: 3px;
}

.bbf-bottom-bar__item.is-active {
    min-height: 76px;
    color: #ffffff;
    background: #b71b1d;
    box-shadow: 0 10px 22px rgba(183, 27, 29, 0.3);
    transform: translateY(-4px);
}

.bbf-bottom-bar__item.is-active:hover,
.bbf-bottom-bar__item.is-active:focus-visible {
    color: #ffffff;
    background: #9f1719;
}

.bbf-bottom-bar__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bbf-bottom-bar__item:not(.is-active) .bbf-bottom-bar__icon {
    width: 34px;
    height: 34px;
    padding: 5px;
    color: #536174;
    background: #f4f6f8;
    border-radius: 12px;
}

.bbf-bottom-bar__item:not(.is-active):hover .bbf-bottom-bar__icon,
.bbf-bottom-bar__item:not(.is-active):focus-visible .bbf-bottom-bar__icon {
    color: #b71b1d;
    background: rgba(183, 27, 29, 0.11);
}

.bbf-bottom-bar__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.bbf-bottom-bar__label {
    max-width: 100%;
    display: block;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

body {
    padding-bottom: 112px;
}

@media (max-width: 520px) {
    .bbf-bottom-bar {
        padding: 0 8px 8px;
    }

    .bbf-bottom-bar__inner {
        min-height: 78px;
        gap: 4px;
        padding: 7px 6px;
        border-radius: 16px;
    }

    .bbf-bottom-bar__item {
        min-height: 62px;
        gap: 4px;
        font-size: 12px;
        border-radius: 12px;
    }

    .bbf-bottom-bar__item.is-active {
        min-height: 66px;
        transform: translateY(-2px);
    }

    .bbf-bottom-bar__icon {
        width: 29px;
        height: 29px;
    }

    .bbf-bottom-bar__item:not(.is-active) .bbf-bottom-bar__icon {
        width: 28px;
        height: 28px;
        padding: 4px;
        border-radius: 10px;
    }

    body {
        padding-bottom: 92px;
    }
}
