/* AI 분석 로딩 오버레이 공통 컴포넌트 */
.ai-loading_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 30, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.ai-loading_overlay.is_open { display: flex; }
.ai-loading_card {
    background: var(--card, #fff);
    border-radius: var(--r-4xl, 24px);
    padding: var(--sp-10, 40px) var(--sp-8, 32px) var(--sp-8, 32px);
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.ai-loading_spinner {
    width: 56px; height: 56px;
    margin: 0 auto var(--sp-6, 24px);
    border: 4px solid var(--purple-soft, #e9e5ff);
    border-top: 4px solid var(--purple, #6d28d9);
    border-radius: var(--r-full, 50%);
    animation: aiSpin 0.8s linear infinite;
}
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-loading_title {
    font-size: var(--fs-modal-title, 18px); font-weight: 700; color: #222; margin-bottom: var(--sp-7, 28px);
}
.ai-loading_steps { text-align: left; padding: 0 8px; }
.ai-loading_step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}
.ai-loading_step.done { color: #222; }
.ai-loading_step_icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f3f4f6;
    transition: background 0.3s, color 0.3s;
}
.ai-loading_step.done .ai-loading_step_icon {
    background: var(--purple, #6d28d9);
    color: #fff;
}
.ai-loading_step_icon svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.ai-loading_bar {
    margin-top: 24px;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.ai-loading_bar_fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple, #6d28d9), #4f46e5);
    border-radius: 3px;
    transition: width 0.5s ease;
}
@media (max-width: 640px) {
    .ai-loading_card {
        padding: var(--sp-7, 28px) var(--sp-5, 20px) var(--sp-6, 24px);
        border-radius: var(--r-2xl, 16px);
        max-width: 300px;
        width: 90%;
    }
    .ai-loading_spinner {
        width: 40px; height: 40px;
        margin-bottom: 16px;
        border-width: 3px;
    }
    .ai-loading_title {
        font-size: 15px;
        margin-bottom: 18px;
    }
    .ai-loading_step {
        gap: 8px;
        padding: 7px 0;
        font-size: 12px;
    }
    .ai-loading_step_icon {
        width: 20px; height: 20px;
    }
    .ai-loading_step_icon svg {
        width: 11px; height: 11px;
    }
    .ai-loading_bar {
        margin-top: 16px;
        height: 5px;
    }
}

