.bb-pwa-bottom-nav {
    display: none;
}

.bb-pwa-install {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    z-index: 1400;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, .08), rgba(15, 23, 42, .02)),
        #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .20);
    color: #111827;
}

.bb-pwa-install.is-visible {
    display: flex;
}

.bb-pwa-install__text {
    flex: 1;
    min-width: 0;
}

.bb-pwa-install__text strong {
    display: block;
    font-size: 14px;
}

.bb-pwa-install__text span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.bb-pwa-install button {
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
}

.bb-pwa-install__accept {
    background: #dc2626;
    color: #fff;
}

.bb-pwa-install__close {
    background: #f1f5f9;
    color: #475569;
    min-width: 64px;
}

@media (max-width: 760px) {
    body {
        padding-bottom: max(86px, calc(72px + env(safe-area-inset-bottom)));
    }

    .bb-pwa-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1300;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(226, 232, 240, .95);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .12);
        backdrop-filter: blur(16px);
    }

    .bb-pwa-bottom-nav a {
        position: relative;
        display: flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        color: #475569;
        font-size: 11px;
        font-weight: 850;
        line-height: 1.15;
        text-align: center;
        text-decoration: none;
    }

    .bb-pwa-bottom-nav a.is-active {
        background: #111827;
        color: #fff;
    }

    .bb-pwa-bottom-nav strong {
        position: absolute;
        top: 4px;
        right: 8px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #dc2626;
        color: #fff;
        font-size: 11px;
        line-height: 18px;
    }
}
