* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    overflow: hidden;
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #e8e8e8;
    background: #0a0a0a;
    z-index: 9999;
}

/* Logo com brilho suave */
.loading-logo {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Container do loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 200px;
}

/* Barra de progresso elegante */
.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(140, 0, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: #8c00ff;
    border-radius: 2px;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

/* Texto de loading */
.loading-text {
    font-size: 13px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.01em;
    text-align: center;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* Fade out suave */
.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}