/* ── START PRELOADER CSS ───────────────────────────────── */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;

    /* Saída: fade + ligeiro scale */
    transition: opacity .5s ease, transform .5s ease;
}

/* Estado de saída — adicionado via JS */
#preloader.hide {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

/* ── Logo ─────────────────────────────────────────────── */
.pl-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    animation: plFadeIn .5s ease both;
}

.pl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #00b4fe, #0077cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 180, 254, .35);
    /* pulso suave */
    animation: plIconPulse 2s ease-in-out infinite;
}

.pl-icon svg {
    width: 22px;
    height: 22px;
}

.pl-logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -.3px;
}

.pl-logo-text span {
    color: #00b4fe;
}

.pl-tagline {
    font-family: 'Sora', sans-serif;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a0aec0;
}



/* ── Três pontos animados (loading dots) ─────────────── */
.pl-dots {
    display: flex;
    gap: 6px;
    animation: plFadeIn .5s .3s ease both;
}

.pl-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b3e8ff;
}

.pl-dot:nth-child(1) {
    animation: plDotBounce 1.2s .0s ease-in-out infinite;
}

.pl-dot:nth-child(2) {
    animation: plDotBounce 1.2s .2s ease-in-out infinite;
}

.pl-dot:nth-child(3) {
    animation: plDotBounce 1.2s .4s ease-in-out infinite;
}

/* ── Keyframes ────────────────────────────────────────── */

@keyframes plFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes plIconPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(0, 180, 254, .35);
    }

    50% {
        box-shadow: 0 6px 30px rgba(0, 180, 254, .6);
    }
}

@keyframes plDotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        background: #b3e8ff;
    }

    40% {
        transform: translateY(-8px);
        background: #00b4fe;
    }
}

/* ── END PRELOADER CSS ─────────────────────────────────── */