/* --- LOADING SCREEN WRAPPER --- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000; /* Dark Background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* --- THE GLOWING RING LOADER --- */
/* (Based on your provided design, adapted for Red Theme) */
.loader-ring {
    position: relative; /* Changed from absolute to work inside flexbox */
    width: 110px;
    height: 110px;
    border-radius: 50%;
    animation: rotate_3922 1.2s linear infinite;
    
    /* Base Red Color */
    background-color: #F41414; 
    /* Red Gradient */
    background-image: linear-gradient(#F41414, #D91818, #8B0000); 
}

.loader-ring span {
    position: absolute;
    border-radius: 50%;
    height: 100%;
    width: 100%;
    background-color: #F41414;
    background-image: linear-gradient(#F41414, #D91818, #8B0000);
}

/* Blur Effects for the Glow */
.loader-ring span:nth-of-type(1) { filter: blur(5px); }
.loader-ring span:nth-of-type(2) { filter: blur(10px); }
.loader-ring span:nth-of-type(3) { filter: blur(25px); }
.loader-ring span:nth-of-type(4) { filter: blur(50px); }

/* The Inner Dark Circle */
.loader-ring::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    
    /* Match your site's dark background */
    background-color: #020612; 
    
    /* Solid border to define the ring */
    border: solid 5px #020612; 
    border-radius: 50%;
}

@keyframes rotate_3922 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- HIDE CLASS --- */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}