html.eg-offline #components-reconnect-modal {
    display: none !important;
}

.eg-connection-lost {
    --eg-cl-primary: #F39318;
    --eg-cl-primary-soft: #ffb347;
    --eg-cl-deep: #2a1424;
    --eg-cl-wine: #461E38;
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
    color: #fff;
    font-family: 'Cairo', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(243, 147, 24, 0.22), transparent 55%),
        linear-gradient(165deg, #1a0c14 0%, var(--eg-cl-wine) 48%, #12080e 100%);
    animation: eg-cl-fade-in 0.45s ease both;
}

.eg-connection-lost[hidden] {
    display: none !important;
}

.eg-cl-aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.eg-cl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation: eg-cl-float 10s ease-in-out infinite;
}

.eg-cl-orb-1 {
    width: 22rem;
    height: 22rem;
    top: -6rem;
    right: -4rem;
    background: rgba(243, 147, 24, 0.45);
}

.eg-cl-orb-2 {
    width: 18rem;
    height: 18rem;
    bottom: -5rem;
    left: -4rem;
    background: rgba(120, 70, 160, 0.4);
    animation-delay: -3s;
}

.eg-cl-orb-3 {
    width: 12rem;
    height: 12rem;
    top: 42%;
    left: 55%;
    background: rgba(255, 255, 255, 0.12);
    animation-delay: -6s;
    animation-duration: 14s;
}

.eg-connection-lost-card {
    position: relative;
    width: min(30rem, 100%);
    text-align: center;
    padding: 2.4rem 1.8rem 1.9rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    animation: eg-cl-card-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eg-cl-visual {
    position: relative;
    width: 8.5rem;
    height: 8.5rem;
    margin: 0 auto 1.35rem;
}

.eg-cl-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(243, 147, 24, 0.28);
    border-radius: 50%;
    animation: eg-cl-pulse 2.6s ease-out infinite;
}

.eg-cl-ring:nth-child(2) {
    inset: 0.7rem;
    animation-delay: 0.35s;
}

.eg-cl-ring:nth-child(3) {
    inset: 1.4rem;
    animation-delay: 0.7s;
}

.eg-cl-icon {
    position: absolute;
    inset: 1.7rem;
    display: grid;
    place-items: center;
    color: var(--eg-cl-primary);
    background: rgba(18, 8, 14, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(243, 147, 24, 0.12);
}

.eg-cl-icon svg {
    width: 3.4rem;
    height: 3.4rem;
}

.eg-cl-wave {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: eg-cl-draw 2.4s ease infinite;
}

.eg-cl-wave-2 { animation-delay: 0.18s; }
.eg-cl-wave-3 { animation-delay: 0.36s; }

.eg-cl-dot {
    fill: currentColor;
    animation: eg-cl-dot-blink 2.4s ease infinite;
}

.eg-cl-slash {
    stroke: #ff6b6b;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-dasharray: 28;
    stroke-dashoffset: 28;
    animation: eg-cl-slash 2.4s ease infinite;
}

.eg-cl-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffd7a3;
    background: rgba(243, 147, 24, 0.16);
    border: 1px solid rgba(243, 147, 24, 0.28);
    animation: eg-cl-fade-up 0.7s 0.15s both;
}

.eg-cl-badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #ff6b6b;
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    animation: eg-cl-live 1.6s ease-out infinite;
}

.eg-connection-lost-card h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.35;
    animation: eg-cl-fade-up 0.7s 0.22s both;
}

.eg-cl-copy {
    margin: 0 auto 1.35rem;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
    animation: eg-cl-fade-up 0.7s 0.3s both;
}

.eg-cl-status {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    animation: eg-cl-fade-up 0.7s 0.38s both;
}

.eg-cl-status b {
    display: flex;
    gap: 0.28rem;
}

.eg-cl-status b i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--eg-cl-primary-soft);
    animation: eg-cl-bounce 1.1s ease-in-out infinite;
}

.eg-cl-status b i:nth-child(2) { animation-delay: 0.15s; }
.eg-cl-status b i:nth-child(3) { animation-delay: 0.3s; }

.eg-connection-lost-retry {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-weight: 800;
    color: var(--eg-cl-wine);
    background: linear-gradient(180deg, #ffc56a, var(--eg-cl-primary));
    box-shadow: 0 10px 24px rgba(243, 147, 24, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: eg-cl-fade-up 0.7s 0.46s both;
}

.eg-connection-lost-retry::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.45) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: eg-cl-shine 2.8s ease-in-out infinite;
}

.eg-connection-lost-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(243, 147, 24, 0.45);
}

.eg-connection-lost-retry:active {
    transform: translateY(0);
}

@keyframes eg-cl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes eg-cl-card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes eg-cl-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes eg-cl-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

@keyframes eg-cl-pulse {
    0% { transform: scale(0.86); opacity: 0.7; }
    100% { transform: scale(1.18); opacity: 0; }
}

@keyframes eg-cl-draw {
    0%, 18% { stroke-dashoffset: 36; opacity: 0.35; }
    40%, 58% { stroke-dashoffset: 0; opacity: 1; }
    78%, 100% { stroke-dashoffset: -36; opacity: 0.2; }
}

@keyframes eg-cl-slash {
    0%, 40% { stroke-dashoffset: 28; }
    55%, 100% { stroke-dashoffset: 0; }
}

@keyframes eg-cl-dot-blink {
    0%, 45% { opacity: 1; }
    70%, 100% { opacity: 0.25; }
}

@keyframes eg-cl-live {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.65); }
    100% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
}

@keyframes eg-cl-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes eg-cl-shine {
    0%, 45% { transform: translateX(-120%); }
    70%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
    .eg-connection-lost,
    .eg-connection-lost-card,
    .eg-cl-orb,
    .eg-cl-ring,
    .eg-cl-wave,
    .eg-cl-slash,
    .eg-cl-dot,
    .eg-cl-badge,
    .eg-cl-badge::before,
    .eg-cl-copy,
    .eg-cl-status,
    .eg-cl-status b i,
    .eg-connection-lost-retry,
    .eg-connection-lost-retry::after {
        animation: none !important;
    }
}
