/* StoryPress — قصة ووردبريس */
.mstories-root{--mst-d:68px;direction:rtl;position:relative;z-index:50;font-family:inherit;margin:0 0 1em}
.mstories-root[data-auto],body>.mstories-root:first-child{margin:0}
.mstories-root.is-empty{display:none}
.mst-size-small{--mst-d:54px}.mst-size-large{--mst-d:86px}
.mst-title{font-weight:700;font-size:16px;padding:12px 16px 0}
.mst-nobg .mst-bar{background:transparent;border-bottom:0}
.mst-nobg .mst-title{padding-inline:0}.mst-nobg .mst-bar{padding-inline:0}
.mst-align-center .mst-bar{justify-content:safe center}
.mst-align-center .mst-title{text-align:center}
.mst-bar{min-height:calc(var(--mst-d) + 34px);box-sizing:border-box;display:flex;gap:14px;overflow-x:auto;padding:12px 16px;background:#fff;border-bottom:1px solid rgba(0,0,0,.07);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mst-bar::-webkit-scrollbar{display:none}
.mst-item{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:calc(var(--mst-d) + 4px);background:none;border:0;padding:0;margin:0;cursor:pointer;color:#222;font:inherit;box-shadow:none}
.mst-item:focus-visible{outline:2px solid #128c7e;outline-offset:3px;border-radius:12px}
.mst-ring{display:block;width:var(--mst-d);height:var(--mst-d);border-radius:50%;padding:3px;box-sizing:border-box;background:conic-gradient(#25d366,#128c7e,#34b7f1,#25d366)}
.mst-item.is-seen .mst-ring{background:#c8ccd0}
.mst-ring-add{background:#e6ebee}
.mst-avatar{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid #fff;box-sizing:border-box;background:#eef1f3}
.mst-plus{display:flex;align-items:center;justify-content:center;font-size:32px;line-height:1;color:#128c7e;background:#fff}
.mst-name{display:block;max-width:calc(var(--mst-d) + 8px);font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

html.mst-lock,html.mst-lock body{overflow:hidden!important}

.mst-viewer{position:fixed;inset:0;z-index:999990;display:flex;flex-direction:column;background:#000;color:#fff;direction:rtl;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.mst-progress{display:flex;flex-direction:row;direction:rtl;gap:4px;padding:calc(10px + env(safe-area-inset-top)) 12px 0;transition:opacity .2s}
.mst-seg{flex:1;height:3px;background:rgba(255,255,255,.35);border-radius:2px;overflow:hidden}
.mst-seg i{display:block;height:100%;width:100%;background:#fff;transform:scaleX(0);transform-origin:100% 50%;will-change:transform}
.mst-seg.is-done i{transform:scaleX(1)!important}
.mst-viewer .mst-head,.mst-viewer .mst-actions{transition:opacity .2s}
.mst-viewer.is-holding .mst-head,.mst-viewer.is-holding .mst-actions,.mst-viewer.is-holding .mst-progress{opacity:0;pointer-events:none}
.mst-head{display:flex;align-items:center;gap:10px;padding:10px 14px}
.mst-who{flex:1;min-width:0}
.mst-who strong{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mst-who small{font-size:12px;opacity:.75}
.mst-close{background:none;border:0;color:#fff;font-size:34px;line-height:1;cursor:pointer;padding:0 6px}
.mst-stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;touch-action:none;-webkit-touch-callout:none}
.mst-stage.mst-in-next img{animation:mst-in-next .28s ease}
.mst-stage.mst-in-prev img{animation:mst-in-prev .28s ease}
@keyframes mst-in-next{from{transform:translateX(-40%);opacity:0}to{transform:none;opacity:1}}
@keyframes mst-in-prev{from{transform:translateX(40%);opacity:0}to{transform:none;opacity:1}}
.mst-stage img{max-width:100%;max-height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.mst-actions{display:flex;gap:10px;justify-content:center;padding:12px 14px calc(14px + env(safe-area-inset-bottom))}
.mst-act{flex:1;max-width:240px;background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:11px 14px;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mst-act-wide{max-width:420px}
.mst-act:hover{background:rgba(255,255,255,.25)}

.mst-modal-bg{position:fixed;inset:0;z-index:999995;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.55);direction:rtl}
.mst-modal{width:100%;max-width:480px;max-height:92vh;overflow:auto;background:#fff;color:#1b1f23;border-radius:18px 18px 0 0;box-shadow:0 -6px 30px rgba(0,0,0,.25);padding-bottom:env(safe-area-inset-bottom)}
@media (min-width:640px){.mst-modal-bg{align-items:center}.mst-modal{border-radius:18px}}
.mst-modal-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border-bottom:1px solid #eef0f2}
.mst-modal-head strong{font-size:16px}
.mst-x{background:none;border:0;font-size:28px;line-height:1;color:#666;cursor:pointer;padding:0 4px}
.mst-modal-body{display:flex;flex-direction:column;gap:12px;padding:16px}
.mst-label{font-size:13px;font-weight:600;margin-bottom:-6px}
.mst-input,.mst-textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cfd5da;border-radius:12px;font:inherit;font-size:16px;background:#fff;color:#111}
.mst-input:focus,.mst-textarea:focus{outline:none;border-color:#128c7e;box-shadow:0 0 0 3px rgba(18,140,126,.15)}
.mst-otp{text-align:center;letter-spacing:.5em;font-size:22px}
.mst-btn{display:block;width:100%;box-sizing:border-box;text-align:center;text-decoration:none;background:#128c7e;color:#fff!important;border:0;border-radius:12px;padding:12px 16px;font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.mst-btn[disabled]{opacity:.45;cursor:not-allowed}
.mst-btn.is-busy{opacity:.7;pointer-events:none}
.mst-btn-ghost{background:#eef2f3;color:#123!important}
.mst-btn-sm{width:auto;padding:9px 12px;font-size:13px}
.mst-links{display:flex;justify-content:space-between}
.mst-link{background:none;border:0;padding:0;color:#128c7e;font:inherit;font-size:14px;cursor:pointer;text-decoration:underline}
.mst-link[disabled]{color:#999;text-decoration:none;cursor:default}
.mst-error{color:#c0392b;font-size:14px;line-height:1.6}
.mst-error:empty{display:none}
.mst-ok{color:#1e8449;font-size:15px;line-height:1.7;margin:0}
.mst-help{color:#555;font-size:14px;line-height:1.8;margin:0}
.mst-terms{max-height:220px;overflow:auto;padding:10px 14px;border:1px solid #e3e6e8;border-radius:12px;background:#fafbfb;font-size:14px;line-height:1.85}
.mst-terms ol,.mst-terms ul{margin:0;padding-inline-start:20px}
.mst-check{display:flex;gap:8px;align-items:flex-start;font-size:14px;cursor:pointer}
.mst-check input{margin-top:4px;width:18px;height:18px;flex:0 0 auto}
.mst-cam{position:relative;height:60vh;max-height:620px;background:#000;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.mst-cam video,.mst-cam img{width:100%;height:100%;object-fit:contain}
.mst-cam video.is-mirror{transform:scaleX(-1)}
.mst-cam.mst-cam-portrait{aspect-ratio:9/16;height:auto;width:min(100%,calc(62vh * 9 / 16));max-height:62vh;margin:0 auto}
.mst-cam.mst-cam-portrait video{object-fit:cover}
.mst-cam-bar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mst-shutter{width:72px;height:72px;flex:0 0 auto;border-radius:50%;border:5px solid #128c7e;background:#fff;cursor:pointer;box-shadow:0 0 0 3px #fff inset}
.mst-shutter:active{transform:scale(.94)}
.mst-row{display:flex;gap:10px}
.mst-row>*{flex:1}
.mst-share-prev{max-height:45vh;object-fit:contain;border-radius:12px;background:#000}
.mst-notice{background:#eef7f5;border:1px solid #cfe7e2;border-radius:12px;padding:10px 12px;font-size:13.5px;line-height:1.8;display:flex;flex-direction:column;gap:6px}
.mst-notice p{margin:0}
.mst-notice.is-warn{background:#fff7e6;border-color:#f3d9a4}
.mst-caption{padding:8px 16px 0;color:#fff;font-size:15px;line-height:1.7;white-space:pre-line;max-height:22vh;overflow:auto;text-align:start;transition:opacity .2s}
.mst-viewer.is-holding .mst-caption{opacity:0}
.mst-count{align-self:flex-end;color:#888;font-size:12px;margin-top:-8px}
.mst-cam.mst-cam-sm{height:42vh}
.mst-grid-root{direction:rtl;margin:0 0 1.5em}
.mst-grid-title{margin:0 0 12px;font-size:1.2em}
.mst-grid-empty{color:#777;margin:0}
.mst-grid{column-width:var(--mst-gw,220px);column-gap:var(--mst-gg,12px)}
.mst-tile{break-inside:avoid;-webkit-column-break-inside:avoid;position:relative;margin:0 0 var(--mst-gg,12px);border-radius:14px;overflow:hidden;background:#eef1f3;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.08);transition:transform .15s ease,box-shadow .15s ease;display:block}
.mst-tile:hover,.mst-tile:focus-visible{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.15);outline:none}
.mst-tile img{display:block;width:100%;height:auto}
.mst-tile figcaption{position:absolute;inset-inline:0;bottom:0;padding:36px 12px 10px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;line-height:1.5}
.mst-tile figcaption strong{display:inline-block;font-size:14px;margin-inline-end:6px}
.mst-tile figcaption small{font-size:11px;opacity:.75}
.mst-tile figcaption p{margin:4px 0 0;font-size:13px;display:-webkit-box;-webkit-line-clamp:var(--mst-gl,2);-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.mst-act.mst-act-danger{background:rgba(192,57,43,.35);border-color:rgba(255,140,120,.5)}
.mst-btn.mst-btn-danger{background:#c0392b}
@keyframes mst-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.mst-sk,.mst-sk-line{background:linear-gradient(90deg,#e9edef 25%,#f6f8f9 50%,#e9edef 75%);background-size:200% 100%;animation:mst-shimmer 1.3s ease-in-out infinite}
.mst-skel .mst-ring.mst-sk{padding:0;border:3px solid #fff;box-shadow:0 0 0 2px #e3e7ea}
.mst-sk-line{display:block;width:48px;height:9px;border-radius:5px}
.mst-skel .mst-item{cursor:default}
.mst-grid.mst-skel .mst-tile{box-shadow:none}
@media (prefers-reduced-motion:reduce){.mst-sk,.mst-sk-line{animation:none}}
.mst-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:999999;background:#222;color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;direction:rtl;max-width:90vw;text-align:center}
