/* Loader Styles */
#app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color, #0a0a0a);
    z-index: var(--z-loader, 9999);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#app-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.loader-dot {
    width: 12px;
    height: 12px;
    background-color: var(--loader-dot-bg, #333);
    border-radius: 50%;
    animation: loaderPulse 1.5s infinite ease-in-out;
}

.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.1s; }
.loader-dot:nth-child(3) { animation-delay: 0.2s; }
.loader-dot:nth-child(4) { animation-delay: 0.1s; }
.loader-dot:nth-child(5) { animation-delay: 0.2s; }
.loader-dot:nth-child(6) { animation-delay: 0.3s; }
.loader-dot:nth-child(7) { animation-delay: 0.2s; }
.loader-dot:nth-child(8) { animation-delay: 0.3s; }
.loader-dot:nth-child(9) { animation-delay: 0.4s; }

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 1; background-color: var(--loader-dot-active, #fff); box-shadow: 0 0 10px rgba(255,255,255,0.5); }
}

.loader-text {
    font-family: var(--font-main, 'Inter', sans-serif);
    color: var(--loader-text, #666);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: textFade 2s infinite;
    font-weight: 300;
}

@keyframes textFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}