.bsf-community-popup {
    align-items: center;
    background: linear-gradient(145deg, rgba(24, 18, 31, 0.98), rgba(48, 20, 32, 0.98));
    border: 1px solid rgba(230, 189, 95, 0.55);
    border-radius: 12px;
    bottom: 18px;
    box-sizing: border-box;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    gap: 11px;
    left: 18px;
    max-width: min(390px, calc(100vw - 36px));
    min-height: 76px;
    opacity: 0;
    padding: 13px 42px 13px 14px;
    pointer-events: none;
    position: fixed;
    transform: translate3d(0, 18px, 0);
    transition: opacity 260ms ease, transform 260ms ease;
    width: max-content;
    z-index: 9990;
}

.bsf-community-popup[hidden] {
    display: none;
}

.bsf-community-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.bsf-community-popup__pulse {
    background: #e6bd5f;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(230, 189, 95, 0.55);
    flex: 0 0 10px;
    height: 10px;
    margin-left: 2px;
    width: 10px;
    animation: bsf-community-pulse 2.2s ease-out infinite;
}

.bsf-community-popup__link {
    color: #fff !important;
    display: block;
    min-width: 0;
    text-decoration: none !important;
}

.bsf-community-popup__link strong,
.bsf-community-popup__link span {
    display: block;
}

.bsf-community-popup__link strong {
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.bsf-community-popup__link span {
    color: #e6bd5f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.045em;
    margin-top: 5px;
    text-transform: uppercase;
}

.bsf-community-popup__close {
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    height: 40px;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 4px;
    top: 4px;
    width: 40px;
}

.bsf-community-popup__close:hover,
.bsf-community-popup__close:focus-visible {
    color: #fff;
}

.bsf-community-popup__link:focus-visible,
.bsf-community-popup__close:focus-visible {
    outline: 2px solid #e6bd5f;
    outline-offset: 2px;
}

@keyframes bsf-community-pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 189, 95, 0.5); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(230, 189, 95, 0); }
}

@media (max-width: 480px) {
    .bsf-community-popup {
        bottom: 12px;
        left: 12px;
        max-width: calc(100vw - 24px);
        min-height: 72px;
        width: calc(100vw - 24px);
    }
}

/* Mobile rendering performance */
@media (max-width: 719px) {
    .bsf-community-popup__pulse {
        animation: none;
        box-shadow: 0 0 0 4px rgba(230, 189, 95, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bsf-community-popup,
    .bsf-community-popup__pulse {
        animation: none;
        transition: none;
    }
}
