* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body, #app {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease-out, visibility 0.4s;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.bouncing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 20px;
}

.bouncing-dots span {
    width: 6px;
    height: 6px;
    background-color: #f97316;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.bouncing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.bouncing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.bouncing-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #9ca3af;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    font-weight: 500;
}

.subtle-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.subtle-ring:nth-child(2) {
    width: 160px;
    height: 160px;
    animation-delay: 0.5s;
    opacity: 0.3;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .bouncing-dots span {
        width: 5px;
        height: 5px;
    }

    .loading-text {
        font-size: 12px;
    }
}
