.network-status-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 99990;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    pointer-events: none;
    box-sizing: border-box;
}

.network-status-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    border-top: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.35);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.45;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.network-status-bar.is-reconnected .network-status-bar__inner {
    background: linear-gradient(180deg, #064e3b 0%, #065f46 100%);
    border-top-color: rgba(167, 243, 208, 0.35);
    box-shadow: 0 -8px 24px rgba(6, 78, 59, 0.45);
}

.network-status-bar__icon {
    flex-shrink: 0;
    display: flex;
    opacity: 0.9;
}

.network-status-bar__icon--offline {
    color: #fbbf24;
}

.network-status-bar__icon--ok {
    color: #a7f3d0;
}

.network-status-bar__text {
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.network-status-bar[hidden] {
    display: none !important;
}
