/* ── BIT2025 Connectivity Toast ─────────────────────── */
.bit-toast-container {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    pointer-events: none;
    width: max-content;
    max-width: min(340px, calc(100vw - 2.4rem));
    box-sizing: border-box;
}

.bit-toast {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 220px;
    max-width: 340px;
    padding: .8rem 1.2rem;
    border-radius: 12px;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
    transform: translateY(-1rem);
    opacity: 0;
    animation: bitToastIn .45s cubic-bezier(.22, .61, .36, 1) forwards;
}

.bit-toast.dismiss {
    animation: bitToastOut .35s cubic-bezier(.55, .06, .68, .19) forwards;
}

.bit-toast i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.bit-toast-label {
    flex: 1;
}

.bit-toast-brand {
    font-size: .65rem;
    font-weight: 500;
    opacity: .7;
    margin-top: 2px;
    letter-spacing: .4px;
}

.bit-toast-brand .by {
    font-weight: 700;
    color: #ffe4ef;
    opacity: 1;
}

/* ── Online / Success ────────────────────────── */
.bit-toast.online, .bit-toast.success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    border: 1px solid rgba(255, 255, 255, .2);
}

/* ── Offline / Error ─────────────────────────── */
.bit-toast.offline, .bit-toast.error {
    background: linear-gradient(135deg, #d63031, #e17055);
    border: 1px solid rgba(255, 255, 255, .2);
}

/* ── Info / Neutral ──────────────────────────── */
.bit-toast.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 1px solid rgba(255, 255, 255, .2);
}

/* ── Online but no real internet (probe failed) ── */
.bit-toast.nointernet {
    background: linear-gradient(135deg, #e17055, #f39c12);
    border: 1px solid rgba(255, 255, 255, .2);
}

.bit-toast-sub {
    font-size: .72rem;
    font-weight: 500;
    opacity: .88;
    margin-top: 4px;
    line-height: 1.35;
}

/* ── Animations ──────────────────────────────────── */
@keyframes bitToastIn {
    from {
        transform: translateY(-1.25rem);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bitToastOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-1.25rem);
        opacity: 0;
    }
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
    .bit-toast-container {
        top: .6rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 1.2rem);
    }

    .bit-toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        font-size: .82rem;
        padding: .7rem 1rem;
    }
}