/* ==========================================================================
   CLM Global Full-Screen Scanning & Loading Overlay Component
   ========================================================================== */

.clm-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.clm-overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.clm-overlay-card {
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
    transform: scale(0.92);
    transition: transform 0.25s ease-in-out;
}

.clm-overlay-backdrop.active .clm-overlay-card {
    transform: scale(1);
}

.clm-radar-spinner {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clm-radar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #22c55e;
    border-right-color: #3b82f6;
    animation: clm-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.clm-radar-ring.delay-1 {
    width: 72%;
    height: 72%;
    border-top-color: #38bdf8;
    border-right-color: #a855f7;
    animation-duration: 0.85s;
    animation-direction: reverse;
}

.clm-radar-icon {
    font-size: 1.75rem;
    color: #38bdf8;
    z-index: 2;
    animation: clm-pulse 1.5s ease-in-out infinite;
}

@keyframes clm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes clm-pulse {
    0%, 100% { opacity: 0.7; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.1); }
}

.clm-dots-loader span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background-color: #38bdf8;
    border-radius: 50%;
    animation: clm-dots 1.4s infinite ease-in-out both;
}

.clm-dots-loader span:nth-child(1) { animation-delay: -0.32s; }
.clm-dots-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes clm-dots {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}
