
#page-loader-overlay, .page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(10, 16, 32, 0.92) 0%, rgba(4, 7, 16, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

#page-loader-overlay.active, .page-loader-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.samsung-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px 40px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 102, 255, 0.16);
    max-width: 90vw;
    animation: samsungPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes samsungPopIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.samsung-spinner-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.samsung-glow-aura {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.4) 0%, rgba(0, 229, 255, 0.12) 60%, transparent 80%);
    filter: blur(14px);
    animation: samsungAuraPulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes samsungAuraPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.45;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.95;
    }
}

.samsung-spinner {
    width: 60px;
    height: 60px;
    animation: samsungRotate 1.8s linear infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.6));
}

.samsung-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 4.5;
}

.samsung-circle {
    fill: none;
    stroke: url(#samsung-blue-gradient);
    stroke-width: 4.5;
    stroke-linecap: round;
    transform-origin: center;
    animation: samsungDash 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

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

@keyframes samsungDash {
    0% {
        stroke-dasharray: 1, 164;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 122, 164;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 1, 164;
        stroke-dashoffset: -163.4;
    }
}

.samsung-brand-title {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-shadow: 0 0 16px rgba(0, 162, 255, 0.4);
}

.samsung-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}

.samsung-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: samsungDotPulse 1.3s ease-in-out infinite;
}

.samsung-dots span:nth-child(1) {
    background: #0066ff;
    animation-delay: 0s;
}

.samsung-dots span:nth-child(2) {
    background: #00aaff;
    animation-delay: 0.22s;
}

.samsung-dots span:nth-child(3) {
    background: #00e5ff;
    animation-delay: 0.44s;
}

@keyframes samsungDotPulse {
    0%, 100% {
        transform: scale(0.65);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.85);
    }
}
