/* YesOnline — network-busy / slow-load overlay (not maintenance) */
#yesonline-busy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 55%),
        color-mix(in srgb, var(--bg, #0f172a) 72%, transparent);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    animation: yo-busy-fade-in 0.28s ease-out;
}

#yesonline-busy-overlay[hidden] {
    display: none !important;
}

@keyframes yo-busy-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.yo-busy-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 2.15rem 1.6rem 1.5rem;
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border, #e2e8f0));
    box-shadow:
        0 28px 56px color-mix(in srgb, var(--bg, #0f172a) 28%, transparent),
        inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
    animation: yo-busy-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes yo-busy-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.yo-busy-orb {
    position: relative;
    width: 5.25rem;
    height: 5.25rem;
    margin: 0 auto 1.15rem;
}

.yo-busy-orb__core {
    position: absolute;
    inset: 18%;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark, #4f46e5));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 40%, transparent);
    animation: yo-busy-breathe 1.8s ease-in-out infinite;
}

.yo-busy-orb__ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
    animation: yo-busy-spin 2.4s linear infinite;
}

.yo-busy-orb__ring::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 70%, transparent);
}

.yo-busy-orb__ring--delay {
    inset: 8%;
    border-color: color-mix(in srgb, var(--primary-light, #818cf8) 28%, transparent);
    animation-duration: 3.2s;
    animation-direction: reverse;
}

@keyframes yo-busy-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes yo-busy-breathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.92); opacity: 0.88; }
}

.yo-busy-title {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text, #1e293b);
}

.yo-busy-lead {
    margin: 0 0 1.1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--text, #334155) 72%, transparent);
}

.yo-busy-track {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface-alt, #f1f5f9));
    margin: 0 0 0.85rem;
}

.yo-busy-track__bar {
    height: 100%;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-light, #818cf8), var(--primary), var(--primary-dark, #4f46e5));
    animation: yo-busy-slide 1.35s ease-in-out infinite;
}

@keyframes yo-busy-slide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

.yo-busy-status {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary);
    min-height: 1.2em;
}

.yo-busy-status.is-pulse {
    animation: yo-busy-status-pulse 1.4s ease-in-out infinite;
}

@keyframes yo-busy-status-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

[data-theme="dark"] .yo-busy-card,
[data-theme="dim"] .yo-busy-card {
    background: color-mix(in srgb, var(--surface, #1e293b) 88%, transparent);
    border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

[data-theme="dark"] .yo-busy-title,
[data-theme="dim"] .yo-busy-title {
    color: #f1f5f9;
}

[data-theme="dark"] .yo-busy-lead,
[data-theme="dim"] .yo-busy-lead {
    color: #94a3b8;
}
