.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay .loading-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    animation: fadeInUp 0.4s ease;
}

.loading-overlay .loading-gif {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
    display: block;
}

.loading-overlay .loading-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.loading-overlay .loading-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loading-overlay .loading-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.loading-overlay .loading-steps li {
    padding: 10px 0 10px 36px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>') left center no-repeat;
    background-size: 22px;
    color: #9ca3af;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    border-bottom: 1px solid #f3f4f6;
}

.loading-overlay .loading-steps li:last-child {
    border-bottom: none;
}

.loading-overlay .loading-steps li.active {
    color: #1a1a2e;
    font-weight: 500;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
}

.loading-overlay .loading-steps li.done {
    color: #16a34a;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%2316a34a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>');
}

.loading-overlay .loading-steps li.error {
    color: #dc2626;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%23dc2626" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>');
}

.loading-overlay .loading-progress-bar {
    width: 100%;
    max-width: 400px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 20px auto 0 auto;
    overflow: hidden;
}

.loading-overlay .loading-progress-bar .progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .loading-overlay .loading-gif {
        width: 80px;
        height: 80px;
    }
    .loading-overlay .loading-title {
        font-size: 1.2rem;
    }
    .loading-overlay .loading-subtitle {
        font-size: 0.9rem;
    }
    .loading-overlay .loading-steps li {
        font-size: 0.85rem;
        padding: 8px 0 8px 30px;
        background-size: 18px;
    }
}