/* MPay — payment & activation UI (shared by جدوى العراق and محلّلي). Namespaced .mp-* */
.mp-modal { --mp-accent: #0f5e57; position: fixed; inset: 0; z-index: 9999; background: rgba(10, 20, 30, .55); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; overflow-y: auto; font-family: inherit; direction: rtl; text-align: right; }
.mp-modal[hidden] { display: none !important; }
html.mp-open { overflow: hidden; }
.mp-box { background: #fff; color: #1b2430; width: 100%; max-width: 640px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; }
.mp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; background: var(--mp-accent); color: #fff; }
.mp-head h3 { margin: 0; font-size: 1.1rem; color: #fff; }
.mp-x { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; }
.mp-body { padding: 16px 18px 20px; line-height: 1.8; font-size: 15px; }
.mp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 10px 0; }
.mp-card { border: 2px solid #e3e8ee; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.mp-card.mp-featured { border-color: var(--mp-accent); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.mp-card h4 { margin: 0; font-size: 1.05rem; }
.mp-card ul { margin: 4px 0; padding-inline-start: 18px; font-size: 13.5px; color: #4a5563; }
.mp-price { font-size: 1.5rem; font-weight: 800; color: var(--mp-accent); direction: rtl; }
.mp-what { font-size: 13.5px; color: #4a5563; }
.mp-card .mp-btn { margin-top: auto; }
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--mp-accent); color: #fff !important; border: 2px solid var(--mp-accent); border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; }
.mp-btn:hover { filter: brightness(1.08); }
.mp-btn:disabled, .mp-btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.mp-ghost { background: #fff; color: var(--mp-accent) !important; }
.mp-wa { background: #1fa855; border-color: #1fa855; margin-top: 6px; }
.mp-mini { background: #eef3f6; color: #1b2430; border: 1px solid #d5dde5; border-radius: 8px; padding: 2px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 30px; }
.mp-mini:hover { background: #e2eaef; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mp-reason { background: #fff6e0; border: 1px solid #f2c94c; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-weight: 600; }
.mp-status { margin: 0 0 6px; color: #33414f; font-weight: 600; }
.mp-small { font-size: 13px; color: #5b6673; margin: 8px 0 0; }
.mp-sum { display: flex; justify-content: space-between; align-items: center; background: #f3f7f9; border-radius: 10px; padding: 10px 14px; font-size: 1.05rem; }
.mp-sum b { color: var(--mp-accent); font-size: 1.25rem; }
.mp-req { margin: 10px 0; padding: 8px 12px; border: 1px dashed #b8c4cf; border-radius: 10px; }
.mp-req b { font-size: 1.15rem; letter-spacing: 2px; }
.mp-req small { display: block; color: #5b6673; font-size: 12.5px; }
.mp-steps { padding-inline-start: 20px; margin: 8px 0; }
.mp-steps > li { margin-bottom: 10px; }
.mp-methods { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.mp-methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #f7f9fb; border: 1px solid #e3e8ee; border-radius: 10px; padding: 6px 10px; }
.mp-methods small { width: 100%; color: #5b6673; }
.mp-mlabel { min-width: 140px; font-weight: 600; }
.mp-soon { background: #fff6e0; border: 1px solid #f2c94c; border-radius: 10px; padding: 10px 12px; margin: 6px 0; font-weight: 700; text-align: center; }
.mp-field { display: block; margin: 8px 0 4px; font-weight: 600; }
.mp-field select { font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid #c9d3dc; margin-inline-start: 6px; }
.mp-code { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .5px; padding: 10px; border: 2px solid #c9d3dc; border-radius: 10px; resize: vertical; text-align: left; }
.mp-code:focus { outline: none; border-color: var(--mp-accent); }
.mp-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.mp-ok { background: #e7f7ee; border: 1px solid #7cc79a; color: #145c34; }
.mp-err { background: #fdecec; border: 1px solid #ef9a9a; color: #8a1c1c; }
.mp-confirm { font-size: 1.05rem; font-weight: 700; }
.mp-ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.mp-offscreen { position: fixed; left: -9999px; top: 0; }
.mp-status-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; background: #f1f4f7; border: 1px solid #d9e0e7; border-radius: 999px; padding: 3px 6px 3px 12px; }
.mp-status-chip.mp-paid { background: #e7f7ee; border-color: #9fd6b4; }
.mp-status-chip .mp-mini { border-radius: 999px; }
@media (max-width: 520px) { .mp-body { padding: 12px; font-size: 14.5px; } .mp-modal { padding: 0; } .mp-box { border-radius: 0; min-height: 100%; } .mp-mlabel { min-width: 0; width: 100%; } }
@media print { .mp-modal, .mp-status-chip { display: none !important; } }
