

/* ---------- نوار پیشرفت ---------- */
.wmoi-progress {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-family: inherit;
}
.wmoi-progress-head {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 14px; color: #374151; margin-bottom: 10px; flex-wrap: wrap;
}
.wmoi-bar {
    height: 12px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.wmoi-bar-fill {
    display: block;
    height: 100%;
    width: 0;
    background: #E51937; /* قرمز */
    border-radius: 999px;
    transition: width .45s ease, background-color .3s ease;
    min-width: 0;
    max-width: 100%;
}
.wmoi-bar-fill.is-complete {
    background: #047857; /* همچنان قرمز در حالت تکمیل */
}
.wmoi-progress-msg { margin-top: 10px; font-size: 13px; color: #b45309; }
.wmoi-progress-msg.is-complete { color: #047857; }

/* ---------- پاپ‌آپ مستقل ---------- */
.wmoi-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    direction: rtl;
    font-family: inherit;
    padding: 16px;
    box-sizing: border-box;
}
.wmoi-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.wmoi-popup-box {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px 22px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(10px) scale(.98);
    transition: transform .25s ease;
    box-sizing: border-box;
}
.wmoi-popup-overlay.is-open .wmoi-popup-box {
    transform: translateY(0) scale(1);
}
.wmoi-popup-close {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 50%;
    transition: background .15s ease, color .15s ease;
}
.wmoi-popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.wmoi-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.wmoi-popup-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.wmoi-popup-text {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}
.wmoi-popup-ok {
    display: inline-block;
    padding: 10px 26px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}
.wmoi-popup-ok:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
body.wmoi-popup-open {
    overflow: hidden;
}