*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

:root {
    --blue: #0693c4;
    --dark-blue: #005889;
}


.loader-wrapper {
    font-family: "Open Sans", sans-serif;
}

/* ── Background orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .07;
    animation: drift 12s ease-in-out infinite alternate;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: var(--blue);
    top: -120px;
    left: -80px;
    animation-duration: 14s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--dark-blue);
    bottom: -60px;
    right: -60px;
    animation-duration: 10s;
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #06c4b8;
    top: 55%;
    left: 60%;
    animation-duration: 16s;
    animation-delay: -8s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(40px, 30px) scale(1.15);
    }
}

/* ── Card ── */
.loader-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: card-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Ring container ── */
.ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Dashed outer ring — static, no rotation */
.ring-dashed {
    fill: none;
    stroke: rgba(6, 147, 196, .35);
    stroke-width: 2;
    stroke-dasharray: 10 8;
    stroke-linecap: round;
}

/* Inner spinning ring */
.ring-inner {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 471;
    stroke-dashoffset: 471;
    animation:
        spin-ccw 3s linear infinite,
        draw-ring 1.2s .3s cubic-bezier(.65, 0, .35, 1) forwards;
    filter: drop-shadow(0 0 6px var(--blue));
}

@keyframes spin-ccw {
    to {
        transform: rotate(-360deg);
        transform-origin: 100px 100px;
    }
}

@keyframes draw-ring {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── Logo ── */
.logo-wrap {
    position: relative;
    width: 130px;
    height: 108px;
    overflow: hidden;
    border-radius: 12px;
    animation: logo-pulse 3s ease-in-out infinite;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: logo-in .9s .2s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes logo-in {
    from {
        opacity: 0;
        transform: scale(.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(6, 147, 196, .4));
    }

    50% {
        filter: drop-shadow(0 0 22px rgba(6, 147, 196, .9));
    }
}

.logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    animation: shine 3.5s 1.2s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    35% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* ── Progress bar ── */
.progress-track {
    position: relative;
    width: 220px;
    height: 4px;
    background: rgba(6, 147, 196, .15);
    border-radius: 99px;
    overflow: visible;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--dark-blue), var(--blue), #06c4d8);
    background-size: 200% 100%;
    width: 0%;
    animation:
        progress-grow 2.4s .6s cubic-bezier(.65, 0, .35, 1) forwards,
        shimmer 2s 1s linear infinite;
}

.progress-glow {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translate(50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 8px 4px rgba(6, 147, 196, .7);
    animation: progress-grow-glow 2.4s .6s cubic-bezier(.65, 0, .35, 1) forwards;
}

@keyframes progress-grow {
    to {
        width: 100%;
    }
}

@keyframes progress-grow-glow {
    from {
        right: 100%;
    }

    to {
        right: 0%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Dots ── */
.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    opacity: .2;
    animation: dot-blink 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: .18s;
}

.dot:nth-child(3) {
    animation-delay: .36s;
}

.dot:nth-child(4) {
    animation-delay: .54s;
}

.dot:nth-child(5) {
    animation-delay: .72s;
}

@keyframes dot-blink {

    0%,
    100% {
        opacity: .18;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.45);
        box-shadow: 0 0 8px var(--blue);
    }
}


