.cosmic-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cosmos {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 40px rgba(255, 81, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(255, 81, 0, 0.2);
}

.orbit:nth-child(1) {
    width: 330px;
    height: 330px;
    animation: rotate 12s linear infinite;
}

.orbit:nth-child(2) {
    width: 390px;
    height: 390px;
    animation: rotate 20s linear infinite reverse;
}

.planet {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ff5100;
    box-shadow: 0 0 15px rgba(255, 81, 0, 0.8);
}

.orbit:nth-child(1) .planet {
    top: -15px;
    left: calc(50% - 15px);
}

.orbit:nth-child(2) .planet {
    bottom: -15px;
    left: calc(50% - 15px);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ff5100;
    opacity: 0;
    animation: twinkle 3s infinite;
}

.zodiac-symbol {
    font-size: 60px;
    color: #ff5100;
    position: absolute;
    animation: fadeInOut 3s infinite;
    opacity: 0;
}

.loading-text {
    position: absolute;
    bottom: -28px;
    color: #ff5100;
    font-size: 20px;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
    font-family: 'Poppins', sans-serif;
}

.center-circle {
    width: 80px;
    height: 80px;
    background-color: #ff5100;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

.spinner {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #ff5100;
    border-right: 4px solid #ff5100;
    animation: spin 1.5s linear infinite;
}

.progress-ring {
    position: absolute;
    width: 150px;
    height: 150px;
}

.progress-ring circle {
    fill: transparent;
    stroke: #ff5100;
    stroke-width: 5;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.3s;
}

.progress-ring .bg {
    stroke: rgba(255, 81, 0, 0.2);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .loader-container {
        width: 300px;
        height: 300px;
    }
    
    .cosmos {
        width: 220px;
        height: 220px;
    }
    
    .orbit:nth-child(1) {
        width: 250px;
        height: 250px;
    }
    
    .orbit:nth-child(2) {
        width: 290px;
        height: 290px;
    }
    
    .planet {
        width: 20px;
        height: 20px;
    }
    
    .orbit:nth-child(1) .planet {
        top: -10px;
        left: calc(50% - 10px);
    }
    
    .orbit:nth-child(2) .planet {
        bottom: -10px;
        left: calc(50% - 10px);
    }
    
    .zodiac-symbol {
        font-size: 40px;
    }
    
    .loading-text {
        font-size: 16px;
    }
    
    .center-circle {
        width: 60px;
        height: 60px;
    }
    
    .spinner {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .loader-container {
        width: 250px;
        height: 250px;
    }
    
    .cosmos {
        width: 180px;
        height: 180px;
    }
    
    .orbit:nth-child(1) {
        width: 200px;
        height: 200px;
    }
    
    .orbit:nth-child(2) {
        width: 240px;
        height: 240px;
    }
    
    .planet {
        width: 16px;
        height: 16px;
    }
    
    .orbit:nth-child(1) .planet {
        top: -8px;
        left: calc(50% - 8px);
    }
    
    .orbit:nth-child(2) .planet {
        bottom: -8px;
        left: calc(50% - 8px);
    }
    
    .zodiac-symbol {
        font-size: 32px;
    }
    
    .loading-text {
        font-size: 14px;
        letter-spacing: 2px;
        bottom: -20px;
    }
    
    .center-circle {
        width: 50px;
        height: 50px;
    }
    
    .spinner {
        width: 110px;
        height: 110px;
    }
}