/* 🆕 (Update 31 — A1) پنجره‌ی فعال‌سازیِ اعلان — پیشوندِ fdp- (بدونِ تداخل با ماژول‌ها). روی موبایل Bottom Sheet. */
:root {
    --fdp-c-primary: #2563eb;
    --fdp-c-primary-2: #1d4ed8;
    --fdp-c-text: #111827;
    --fdp-c-text-2: #4b5563;
    --fdp-c-surface: #ffffff;
    --fdp-c-border: #e5e7eb;
    --fdp-c-warn: #d97706;
}
.fdp-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
    z-index: 100000; animation: fdp-fade .2s ease;
}
.fdp-dialog {
    position: fixed; z-index: 100001; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
    background: var(--fdp-c-surface); color: var(--fdp-c-text); border-radius: 20px;
    padding: 26px 22px 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
    font-family: 'Vazirmatn', system-ui, sans-serif; text-align: center; outline: none;
    animation: fdp-pop .25s cubic-bezier(.2, .8, .2, 1);
}
.fdp-close {
    position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: #f3f4f6; color: #6b7280; cursor: pointer; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
}
.fdp-close:hover { background: #e5e7eb; color: #111827; }
.fdp-icon {
    width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; font-size: 32px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 10px 24px rgba(59, 130, 246, .35);
}
.fdp-icon.warn { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 10px 24px rgba(245, 158, 11, .35); }
.fdp-icon i { animation: fdp-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.fdp-title { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.fdp-desc { font-size: 13px; line-height: 2; color: var(--fdp-c-text-2); margin: 0 0 12px; }
.fdp-benefits, .fdp-steps {
    text-align: right; margin: 0 0 14px; padding: 12px 14px; list-style: none;
    background: #f8fafc; border: 1px solid var(--fdp-c-border); border-radius: 14px;
    font-size: 12.5px; line-height: 2.1; color: #374151;
}
.fdp-steps { list-style: decimal inside; }
.fdp-benefits li i { color: var(--fdp-c-primary); margin-left: 6px; }
.fdp-alert { font-size: 12px; line-height: 1.9; padding: 8px 12px; border-radius: 10px; margin-bottom: 12px; text-align: right; }
.fdp-alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fdp-alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.fdp-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fdp-btn {
    min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--fdp-c-border);
    background: #fff; color: var(--fdp-c-text); font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, transform .1s;
}
.fdp-btn:hover:not(:disabled) { background: #f9fafb; }
.fdp-btn:active:not(:disabled) { transform: scale(.98); }
.fdp-btn:disabled, .fdp-btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.fdp-btn-primary { background: var(--fdp-c-primary); border-color: var(--fdp-c-primary); color: #fff; flex: 1 1 auto; justify-content: center; }
.fdp-btn-primary:hover:not(:disabled) { background: var(--fdp-c-primary-2); }
.fdp-btn:focus-visible, .fdp-close:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.fdp-toast {
    position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
    z-index: 100002; background: #065f46; color: #fff; padding: 10px 18px; border-radius: 14px;
    font-family: 'Vazirmatn', system-ui, sans-serif; font-size: 13px; font-weight: 700;
    box-shadow: 0 12px 28px rgba(6, 95, 70, .3); display: flex; align-items: center; gap: 8px; animation: fdp-fade .2s ease;
}
@media (max-width: 560px) {
    .fdp-dialog {
        top: auto; bottom: 0; left: 0; right: 0; transform: none; width: 100%;
        border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        animation: fdp-sheet .28s cubic-bezier(.2, .8, .2, 1);
    }
    .fdp-actions { flex-direction: column-reverse; }
    .fdp-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .fdp-dialog, .fdp-backdrop, .fdp-toast, .fdp-icon i { animation: none !important; }
}
@keyframes fdp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fdp-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fdp-sheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fdp-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(12deg); } 80% { transform: rotate(-10deg); } 85% { transform: rotate(6deg); } 90% { transform: rotate(-4deg); } }
