/* ============================================ */
/* WalletIN - Premium Page Loader              */
/* ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 30%, #2c5364 60%, #1e3c72 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader .loader-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-loader .loader-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(240, 192, 64, 0.08);
    animation: loaderParticleFloat 6s ease-in-out infinite;
}

.page-loader .loader-particle:nth-child(1) {
    width: 150px; height: 150px;
    top: 20%; left: 15%;
    animation-delay: 0s;
}
.page-loader .loader-particle:nth-child(2) {
    width: 100px; height: 100px;
    top: 60%; left: 70%;
    animation-delay: 1.5s;
    background: rgba(44, 95, 138, 0.12);
}
.page-loader .loader-particle:nth-child(3) {
    width: 80px; height: 80px;
    top: 40%; left: 50%;
    animation-delay: 3s;
}
.page-loader .loader-particle:nth-child(4) {
    width: 120px; height: 120px;
    top: 75%; left: 25%;
    animation-delay: 4.5s;
    background: rgba(255, 255, 255, 0.05);
}

@keyframes loaderParticleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(25px, -15px) scale(1.15); opacity: 0.8; }
    50% { transform: translate(-15px, -35px) scale(0.9); opacity: 0.4; }
    75% { transform: translate(-25px, 15px) scale(1.1); opacity: 0.7; }
}

.page-loader .loader-logo-wrapper {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
}

.page-loader .loader-logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(240, 192, 64, 0.2);
    border-radius: 50%;
    animation: loaderRingPulse 2s ease-in-out infinite;
}

.page-loader .loader-logo-ring:nth-child(2) {
    width: 130px;
    height: 130px;
    animation-delay: 0.4s;
    border-color: rgba(240, 192, 64, 0.1);
}

.page-loader .loader-logo-ring:nth-child(3) {
    width: 160px;
    height: 160px;
    animation-delay: 0.8s;
    border-color: rgba(240, 192, 64, 0.05);
}

.page-loader .loader-logo-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #f0c040 0%, #e0a800 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
    font-size: 28px;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.4);
    animation: loaderIconBounce 2s ease-in-out infinite;
}

@keyframes loaderRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

@keyframes loaderIconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.page-loader .loader-progress-wrapper {
    position: relative;
    z-index: 2;
    width: 200px;
    margin-top: 40px;
}

.page-loader .loader-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.page-loader .loader-progress-bar {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e0a800, #f0c040);
    border-radius: 10px;
    animation: loaderProgressMove 1.5s ease-in-out infinite;
    width: 30%;
}

@keyframes loaderProgressMove {
    0% {
        left: -60%;
    }
    100% {
        left: 100%;
    }
}

.page-loader .loader-text {
    position: relative;
    z-index: 2;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    letter-spacing: 0.5px;
}

.page-loader .loader-text span {
    animation: loaderDots 1.5s infinite;
}

.page-loader .loader-text span:nth-child(2) { animation-delay: 0.3s; }
.page-loader .loader-text span:nth-child(3) { animation-delay: 0.6s; }

@keyframes loaderDots {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}