/* ── Loading Overlay（公版） ── */

#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

#loading-overlay.active {
    display: flex;
}

.loading-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18),
        0 4px 16px rgba(0, 0, 0, 0.10);
    min-width: 200px;
    max-width: 320px;
    animation: loading-card-in 0.2s ease;
}

@keyframes loading-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* 三顆彈跳點 */
.loading-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    height: 36px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    animation: loading-bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s;    background: #10b981; }
.loading-dots span:nth-child(2) { animation-delay: 0.18s; background: #059669; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; background: #047857; }

@keyframes loading-bounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.6; }
    30%            { transform: translateY(-12px); opacity: 1;   }
}

.loading-card-text {
    font-size: 0.925rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
    text-align: center;
}
