/* نسخه‌ی PWA نورا: راهنمای نصب روی گوشی و نوار هشدار قطع شبکه (پوسته‌ی آرام، بدون شیشه و گرادیان) */

/* ---------- جلوگیری از زوم خودکار آیفون روی فیلدها (فونت کمتر از ۱۶ پیکسل) ---------- */
@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

/* ---------- راهنمای نصب ---------- */
.pwa-splash { position: fixed; inset: 0; z-index: 3000; display: none; flex-direction: column; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); background: #e9ecf0; font-family: "iranSans", Tahoma, sans-serif; direction: rtl; overflow-y: auto; color: #1c2431; }
.pwa-splash.is-on { display: flex; animation: pwa-fade .3s ease both; }
.pwa-splash.is-out { animation: pwa-out .28s ease both; }
.pwa-splash-inner { width: 100%; max-width: 400px; text-align: center; }
.pwa-icon { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 24px; display: grid; place-items: center; background: #fff; border: 1px solid #d5dbe3; box-shadow: 0 14px 30px -18px rgba(20, 30, 45, .5); }
.pwa-icon img { width: 62px; height: auto; }
.pwa-name { font-size: 22px; font-weight: 900; color: #1b2452; }
.pwa-lead { margin: 6px 0 14px; font-size: 14.5px; line-height: 2; color: #364152; }
.pwa-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.pwa-perks span { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #d5dbe3; font-size: 12px; font-weight: 700; color: #364152; }
.pwa-box { padding: 16px; border-radius: 18px; background: #fbfbfc; border: 1px solid #d5dbe3; text-align: right; }
.pwa-steps { list-style: none; margin: 0 0 14px; padding: 0; }
.pwa-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 14px; line-height: 2; border-bottom: 1px dashed #d5dbe3; }
.pwa-steps li:last-child { border-bottom: 0; }
.pwa-steps li > b { flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: #1b2452; color: #fff; font-size: 13px; }
.pwa-en { direction: ltr; unicode-bidi: embed; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 700; color: #2655a3; }
.pwa-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 4px; vertical-align: middle; border-radius: 7px; background: #e3ecf8; color: #2f66c2; }
.pwa-ic svg { width: 17px; height: 17px; }
.pwa-btn { display: block; width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 12px; background: #2f66c2; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pwa-btn.is-ghost { background: #fff; color: #364152; border: 1px solid #c3cbd6; }
.pwa-btn[hidden] { display: none; }
.pwa-arrow { margin-top: 14px; color: #2f66c2; animation: pwa-bob 1.4s ease-in-out infinite; }
.pwa-arrow svg { width: 34px; height: 34px; }
@keyframes pwa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwa-out { to { opacity: 0; transform: translateY(10px); } }
@keyframes pwa-bob { 50% { transform: translateY(8px); } }

/* ---------- نوار هشدار قطع شبکه ---------- */
.pwa-net { position: fixed; z-index: 3100; left: 0; right: 0; margin: 0 auto; width: max-content; top: calc(10px + env(safe-area-inset-top)); transform: translateY(-160%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 10px 14px; border-radius: 14px; background: #b42318; color: #fff; font-family: "iranSans", Tahoma, sans-serif; font-size: 13.5px; font-weight: 700; direction: rtl; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pwa-net.is-on { transform: translateY(0); }
.pwa-net.is-ok { background: #15803d; }
.pwa-net-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-weight: 900; }
.pwa-net-ico.pulse { animation: pwa-pulse 1.2s ease-in-out infinite; }
.pwa-net button { flex: none; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: #fff; color: #b42318; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
@keyframes pwa-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .2); } }
@media (prefers-reduced-motion: reduce) { .pwa-splash.is-on, .pwa-arrow, .pwa-net-ico.pulse { animation: none; } }
