/* ==========================================================================
   SwarCraft Luxury Global Loader & Modal Animations
   ========================================================================== */

.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(38, 20, 13, 0.94) 0%, rgba(16, 8, 5, 0.98) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-card {
    background: linear-gradient(145deg, rgba(45, 24, 16, 0.96), rgba(22, 12, 8, 0.98));
    border: 1.5px solid rgba(212, 175, 55, 0.45);
    border-radius: 26px;
    padding: 36px 42px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.22);
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    animation: loaderPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loaderPopIn {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.luxury-spinner-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 3.5px solid transparent;
}

.spinner-ring.outer-ring {
    width: 82px;
    height: 82px;
    border-top-color: #d4af37;
    border-right-color: rgba(212, 175, 55, 0.25);
    animation: spinClockwise 1.25s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.65));
}

.spinner-ring.inner-ring {
    width: 58px;
    height: 58px;
    border-bottom-color: #f59e0b;
    border-left-color: rgba(245, 158, 11, 0.3);
    animation: spinCounterClockwise 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-center-icon {
    font-size: 1.55rem;
    color: #fbbf24;
    animation: pulseIcon 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(0.9); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 1; }
}

.loader-title {
    font-size: 1.2rem;
    color: #fbbf24;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.loader-subtitle {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.spinner-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.spinner-dots .dot {
    width: 8px;
    height: 8px;
    background-color: #d4af37;
    border-radius: 50%;
    animation: dotPulse 1.2s infinite ease-in-out;
}

.spinner-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.35;
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
        background-color: #fbbf24;
    }
}

/* Success Modal Styles */
.success-icon-wrap {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
    animation: successPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% { transform: scale(0.3) rotate(-35deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Star Box Shake on Missing Rating */
@keyframes starBoxShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.star-box-shake {
    animation: starBoxShake 0.5s ease-in-out;
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4) !important;
}
