:root {
    --ac-bc-panel: rgba(15, 23, 42, 0.92);
    --ac-bc-border: rgba(255, 255, 255, 0.08);
    --ac-bc-text: rgba(226, 232, 240, 0.92);
    --ac-bc-muted: rgba(148, 163, 184, 0.88);
    --ac-bc-accent: rgba(16, 185, 129, 0.92);
}

.ac-bc-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99990;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.ac-bc-float.ac-bc-open {
    opacity: 1;
    pointer-events: auto;
}

.ac-bc-card {
    position: relative;
    width: min(360px, calc(100vw - 44px));
    border-radius: 12px;
    border: 1px solid var(--ac-bc-border);
    background: var(--ac-bc-panel);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
    padding: 12px;
    color: var(--ac-bc-text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ac-bc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ac-bc-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    background: rgba(16, 185, 129, 0.08);
    color: rgba(167, 243, 208, 0.92);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.ac-bc-time {
    font-size: 11px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.78);
}

.ac-bc-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 0;
    background: transparent;
    color: rgba(226, 232, 240, 0.70);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
    opacity: 0.9;
}

.ac-bc-close:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.92);
}

.ac-bc-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ac-bc-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(70% 70% at 30% 20%, rgba(16,185,129,0.18), rgba(255,255,255,0.02));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(110, 231, 183, 0.92);
}

.ac-bc-icon-svg {
    display: block;
}

.ac-bc-body {
    min-width: 0;
    flex: 1;
}

.ac-bc-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 6px 0;
}

.ac-bc-message {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ac-bc-muted);
    margin: 0 0 10px 0;
}

.ac-bc-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 10px;
}

.ac-bc-cta {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.92);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: background 160ms ease, border-color 160ms ease;
}

.ac-bc-cta:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.ac-bc-accent {
    margin-top: 0;
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    background: rgba(16, 185, 129, 0.12);
    color: rgba(167, 243, 208, 0.92);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.ac-bc-accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.95);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
    flex: none;
}

@media (max-width: 640px) {
    .ac-bc-float {
        right: 12px;
    }
    .ac-bc-card {
        width: min(360px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-bc-float,
    .ac-bc-close,
    .ac-bc-cta {
        transition: none !important;
    }
}

html.ac-lowend .ac-bc-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
