/* FizikDND PWA guide V3.7 — static installation images, unchanged V3.5.1 layout */
@font-face{font-family:'FizikGuideIranSans';src:url('/fonts/IRANSans.ttf') format('truetype');font-display:swap}
.fd-pwa-launcher,.fd-pwa-menu{font-family:inherit;cursor:pointer}
.fd-pwa-launcher{position:fixed;bottom:18px;left:18px;z-index:1900;padding:10px 17px;border-radius:999px;background:linear-gradient(140deg,#215dcc,#143e91);color:white;border:1px solid #628fec;box-shadow:0 7px 25px #061e4280;font-weight:700;font-size:13px;line-height:1.8}
.fd-pwa-launcher.fd-pwa-with-nav{bottom:78px}
.fd-pwa-menu{display:block;width:100%;text-align:right;background:transparent;color:inherit;border:0;padding:10px 14px}
.fd-pwa-overlay[hidden],.fd-pwa-actions button[hidden]{display:none!important}
.fd-pwa-overlay,.fd-pwa-overlay *{box-sizing:border-box}
.fd-pwa-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(8,13,27,.78);color:#101828;font-family:'FizikGuideIranSans',Tahoma,sans-serif;direction:rtl}
.fd-pwa-dialog{width:min(1040px,100%);max-height:min(94vh,970px);max-height:min(94dvh,970px);overflow:hidden;display:flex;flex-direction:column;border:1px solid #e1e5ec;background:linear-gradient(180deg,#fff,#f7f9fd);border-radius:25px;box-shadow:0 28px 80px #0007;color:#142135;min-height:0}
.fd-pwa-header{padding:19px 24px 12px;display:flex;align-items:flex-start;justify-content:space-between;flex:none;gap:16px;border-bottom:1px solid #e7ecf2}
.fd-pwa-heading h2{font-size:21px;line-height:1.7;font-weight:800;margin:0}.fd-pwa-heading p{font-size:12px;color:#66758b;line-height:1.6;margin:0}
.fd-pwa-close{border:0;color:#3e5169;background:#eaf0f7;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font:28px/1 system-ui;cursor:pointer;flex:none}
.fd-pwa-stage{padding:18px 25px 10px;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;display:block;text-align:center;direction:ltr}
.fd-pwa-stage-layout{display:flex;justify-content:center;align-items:center;gap:28px;min-height:100%;max-width:920px;margin:auto}
.fd-pwa-device{position:relative;display:block;flex:0 0 auto;width:272px;height:auto;aspect-ratio:0.49;padding:7px;border:2px solid #727980;border-radius:46px;box-shadow:inset 0 0 0 2px #202124,0 4px 6px #13151d22,0 20px 34px #13192929;background:linear-gradient(115deg,#4b4e55 0%,#0b0d12 10%,#11151c 55%,#6f727a 90%,#171a20 100%);isolation:isolate;overflow:hidden}
.fd-pwa-device::before{content:'';position:absolute;top:18%;right:-3px;width:3px;height:15%;border-radius:3px;background:#696d74}
.fd-pwa-device::after{content:'';position:absolute;top:27%;left:-3px;width:3px;height:10%;border-radius:3px;background:#696d74}
.fd-pwa-phone-screen{position:relative;width:100%;height:100%;border-radius:38px;overflow:hidden;background:#0e1729;border:1px solid #11151d;text-align:left}
.fd-pwa-phone-screen>img{display:block;width:100%;height:100%;object-fit:fill}
.fd-pwa-phone-pill{position:absolute;z-index:2;top:12px;left:50%;transform:translateX(-50%);width:82px;height:18px;background:#05070a;border-radius:999px;box-shadow:0 0 0 1px #12171d6c;pointer-events:none}
.fd-pwa-closeups,.fd-pwa-android-assist{flex:1 1 0;min-width:0;max-width:425px;direction:rtl;text-align:center;display:flex;flex-direction:column;align-items:stretch;gap:15px}
.fd-pwa-zoom-head{font-size:14px;font-weight:800;color:#42536d;text-align:center}
.fd-pwa-focus-item{display:flex;align-items:center;justify-content:center;width:100%;padding:13px;border-radius:19px;border:1px solid #dbe3ec;background:white;box-shadow:0 7px 22px #0d233612}
.fd-pwa-focus-item img{display:block;width:100%;max-height:138px;object-fit:contain;image-rendering:auto;border-radius:9px}
.fd-pwa-instruction{border-top:1px solid #edf0f5;padding:10px 24px 8px;flex:none;text-align:right;display:grid;grid-template-columns:1fr auto;gap:2px 16px}
.fd-pwa-step-title{grid-column:1;margin:0;font-size:16px;font-weight:800;line-height:1.9}
.fd-pwa-step-desc{grid-column:1;margin:0;font-size:13px;line-height:1.95;color:#53647b}
.fd-pwa-step-number{grid-column:2;grid-row:1/3;align-self:center;white-space:nowrap;color:#657c9a;background:#eff3fa;border-radius:999px;padding:8px 11px;font-size:12px}
.fd-pwa-actions{padding:10px 24px 17px;display:flex;gap:11px;flex-wrap:wrap;flex:none}
.fd-pwa-actions button{font-family:inherit;font-size:13px;font-weight:700;line-height:1.8;border:0;cursor:pointer;padding:9px 17px;border-radius:12px}
.fd-pwa-next,.fd-pwa-install{background:#185fc6;color:white}.fd-pwa-prev,.fd-pwa-copy{background:#eaf0f9;color:#204570}
.fd-pwa-actions button:disabled{opacity:.35;cursor:default}
.fd-pwa-status{min-height:0;padding:0 24px 4px;color:#205ab0;font-size:12px}
.fd-pwa-status:empty{display:none}
body.fd-pwa-modal-open{overflow:hidden}
/* Android installation-only imagery: approved three-stage handset guide. */
.fd-pwa-android-art{flex:0 0 auto;display:block;width:min(410px,48%);padding:0;margin:0;border:0;background:transparent;border-radius:19px;overflow:hidden;box-shadow:0 8px 30px #09254b16}
.fd-pwa-android-art img{display:block;width:100%;height:auto;object-fit:contain}
.fd-pwa-android-closeups .fd-pwa-focus-item img{max-height:210px;object-fit:contain}
.fd-pwa-android-closeups{min-width:0}
.fd-pwa-external{direction:rtl;max-width:480px;margin:35px auto;background:#f4f7fc;border:1px solid #e3ebf6;border-radius:25px;padding:45px 25px;text-align:center}
.fd-pwa-external-icons{width:68px;height:68px;border-radius:50%;background:#2267c5;color:white;font-size:40px;margin:auto;display:grid;place-items:center}
.fd-pwa-external h3{font-size:16px;margin:17px 0 10px}.fd-pwa-external p{color:#476889;font-size:16px;direction:ltr}
.fd-pwa-overlay button:focus-visible{outline:3px solid #3e9fff;outline-offset:3px}
/* Step 3 on iPhone: full device first, close-ups underneath. No impact on Android. */
.fd-pwa-stage.fd-pwa-ios-confirm-layout .fd-pwa-stage-layout{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:14px}
.fd-pwa-stage.fd-pwa-ios-confirm-layout .fd-pwa-device{order:1}
.fd-pwa-stage.fd-pwa-ios-confirm-layout .fd-pwa-closeups{order:2;width:min(500px,96%);max-width:100%;flex:none;gap:10px}

@media(max-width:650px){
 .fd-pwa-overlay{padding:0;align-items:stretch}
 .fd-pwa-dialog{width:100%;max-height:100vh;height:100vh;max-height:100dvh;height:100dvh;border-radius:0;border:0}
 .fd-pwa-header{padding:12px 18px 10px}
 .fd-pwa-heading h2{font-size:17px}.fd-pwa-heading p{font-size:11px}
 .fd-pwa-stage{padding:14px 10px;flex:1;min-height:0}
 .fd-pwa-stage-layout{display:flex;flex-direction:column;justify-content:flex-start;gap:18px;min-height:0}
 .fd-pwa-device{width:min(340px,82vw);flex:none;border-radius:52px}
 .fd-pwa-phone-screen{border-radius:43px}
 .fd-pwa-closeups,.fd-pwa-android-assist{width:min(500px,96%);max-width:none;flex:none;gap:10px}
 /* Keep the actual Add to Home Screen / Add control visible without scrolling. */
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-closeups{order:-1;gap:7px;width:min(500px,96%)}
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-zoom-head{font-size:13px}
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-focus-item{padding:7px}
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-focus-item img{max-height:90px}
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-stage-layout{gap:11px}
 .fd-pwa-focus-item{padding:9px}.fd-pwa-focus-item img{max-height:180px}
 .fd-pwa-instruction{padding:8px 16px;display:block}.fd-pwa-step-title{font-size:15px}.fd-pwa-step-desc{font-size:12px;line-height:1.8}
 .fd-pwa-step-number{display:inline-block;margin-top:4px;font-size:11px;padding:4px 8px}
 .fd-pwa-actions{padding:9px 15px 12px;gap:8px}.fd-pwa-actions button{font-size:12px;padding:9px 13px}
 .fd-pwa-android-art{width:min(420px,94vw);max-width:100%;border-radius:13px}
 .fd-pwa-android-closeups .fd-pwa-focus-item img{max-height:116px}
 .fd-pwa-stage.fd-pwa-focus-first .fd-pwa-android-closeups .fd-pwa-focus-item img{max-height:115px}
 .fd-pwa-launcher{bottom:14px;left:10px}
}
@media(max-height:680px) and (min-width:651px){.fd-pwa-device{width:215px}.fd-pwa-stage{padding:7px 15px}}
@media(prefers-reduced-motion:reduce){.fd-pwa-overlay *{scroll-behavior:auto!important}}

/* Android guide: prioritize close-up affordances above long phone artwork on mobile. */
@media(max-width:650px){.fd-pwa-android-layout .fd-pwa-android-closeups{order:-1}.fd-pwa-android-layout{gap:12px}}
