.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030812;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 156, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(1, 104, 239, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: loaderBgPulse 3s ease-in-out infinite;
}

@keyframes loaderBgPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    text-align: center;
    z-index: 2;
    max-width: 90%;
}

.loader-logo-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.loader-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #009CFE;
    border-radius: 50%;
    opacity: 0;
    animation: loaderPulseRing 2s ease-out infinite;
}

.loader-pulse-ring-2 {
    animation-delay: 1s;
}

@keyframes loaderPulseRing {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    30% {
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.loader-logo-circle {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #009CFE 0%, #0168EF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px rgba(0, 156, 254, 0.6),
        0 0 60px rgba(0, 156, 254, 0.3);
    animation: loaderLogoPulse 1.5s ease-in-out infinite;
}

@keyframes loaderLogoPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(0, 156, 254, 0.6),
            0 0 60px rgba(0, 156, 254, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 40px rgba(0, 156, 254, 0.8),
            0 0 80px rgba(0, 156, 254, 0.4);
    }
}

.loader-logo-icon {
    width: 45px;
    height: 45px;
}

.loader-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.loader-blue {
    color: #009CFE;
}

.loader-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.loader-progress-wrap {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loader-progress-bar {
    width: 100%;
    height: 6px;
    background: #0a1930;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 156, 254, 0.2);
}

.loader-progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #009CFE 0%, #0168EF 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 156, 254, 0.6);
}

.loader-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: loaderShimmer 1.5s linear infinite;
}

@keyframes loaderShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loader-percent {
    font-size: 13px;
    color: #009CFE;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

.loader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: #009CFE;
    border-radius: 50%;
    animation: loaderDotBounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loaderDotBounce {

    0%,
    80%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .loader-logo-wrap {
        width: 90px;
        height: 90px;
    }

    .loader-logo-circle {
        width: 65px;
        height: 65px;
    }

    .loader-logo-icon {
        width: 38px;
        height: 38px;
    }

    .loader-title {
        font-size: 20px;
    }

    .loader-subtitle {
        font-size: 13px;
    }

    .loader-progress-wrap {
        width: 240px;
    }

    .loader-content {
        gap: 25px;
        padding: 30px 20px;
    }
}

@media (max-width: 380px) {
    .loader-title {
        font-size: 18px;
    }

    .loader-progress-wrap {
        width: 200px;
    }
}