.yc-connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateY(0);
    opacity: 1;
    pointer-events: none;
}

.yc-connection-banner--hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.yc-connection-banner--connecting {
    background: linear-gradient(90deg, #e67e22, #f39c12);
}

.yc-connection-banner--disconnected {
    background: linear-gradient(90deg, #c0392b, #e74c3c);
}

.yc-connection-banner--reconnected {
    background: linear-gradient(90deg, #1e8449, #27ae60);
}

.yc-connection-toast {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%) translateY(120%);
    z-index: 100001;
    min-width: 260px;
    max-width: calc(100vw - 2rem);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(20, 28, 36, 0.94);
    color: #fff;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: none;
}

.yc-connection-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.yc-connection-toast--success {
    border: 1px solid rgba(39, 174, 96, 0.55);
}

.yc-connection-toast--info {
    border: 1px solid rgba(52, 152, 219, 0.45);
}

@media (max-width: 480px) {
    .yc-connection-banner {
        font-size: 0.85rem;
        padding: 0.55rem 0.75rem;
    }

    .yc-connection-toast {
        font-size: 0.85rem;
        bottom: 0.85rem;
    }
}
