/* Modfolio Modal - Reusable modal system */
.mf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.mf-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: mfModalSlideIn 0.25s ease-out;
}

@keyframes mfModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mf-modal-body {
    padding: 32px 28px 20px;
    text-align: center;
}

.mf-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mf-modal-icon--success {
    background: #d1fae5;
    color: #10b981;
}

.mf-modal-icon--error {
    background: #fee2e2;
    color: #ef4444;
}

.mf-modal-icon--confirm {
    background: #fef3c7;
    color: #f59e0b;
}

.mf-modal-icon--warning {
    background: #fff3cd;
    color: #e67e22;
}

.mf-modal-icon--info {
    background: #dbeafe;
    color: #3b82f6;
}

.mf-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.mf-modal-text {
    color: #555;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.mf-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 28px 24px;
    justify-content: center;
}

.mf-modal-btn {
    flex: 1;
    max-width: 160px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    line-height: 1.4;
}

.mf-modal-btn--ok,
.mf-modal-btn--confirm {
    background: #00c4aa;
    color: #fff;
}

.mf-modal-btn--ok:hover,
.mf-modal-btn--confirm:hover {
    background: #00b09a;
}

.mf-modal-btn--cancel {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
}

.mf-modal-btn--cancel:hover {
    background: #eee;
}

/* ================= Full-screen loader ================= */
.mf-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000001; /* above the modal overlay (999999) */
}

.mf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.mf-loader-spinner {
    animation: mfLoaderSpin 0.9s linear infinite;
}

@keyframes mfLoaderSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mf-loader-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: center;
    min-height: 1em;
}

