/* راهنمای تصویری نصب روی آیفون — شبیه‌سازی صفحهٔ سافاری با HTML/CSS */
.ig-body{ min-height:100vh; background:var(--paper); font-family:var(--font); padding:24px 16px 48px; }
.ig-wrap{ max-width:880px; margin:0 auto; }
.ig-head{ text-align:center; margin-bottom:26px; }
.ig-head h1{ font-size:24px; font-weight:800; margin-bottom:8px; }
.ig-head p{ color:var(--ink-2); font-size:14.5px; line-height:2; }
.ig-safari{ display:inline-flex; align-items:center; gap:10px; margin-top:14px; padding:10px 16px; border-radius:12px; background:var(--surface); border:1px solid var(--line-2); font-size:14px; }
.ig-safari-ico{ display:inline-flex; width:30px; height:30px; border-radius:8px; background:linear-gradient(160deg,#2F9BFF,#0A5BD8); align-items:center; justify-content:center; }
.ig-safari-ico svg{ width:20px; height:20px; }

.ig-step{ display:grid; grid-template-columns:1fr 290px; gap:26px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:20px; padding:24px; margin-bottom:18px; }
.ig-text{ display:flex; flex-direction:column; gap:10px; }
.ig-num{ width:44px; height:44px; border-radius:50%; background:#E5252A; color:#fff; font-weight:800; font-size:21px; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px -8px rgba(229,37,42,.7); }
.ig-text h2{ font-size:19px; font-weight:800; }
.ig-text p{ color:var(--ink-2); font-size:14.5px; line-height:2.1; }
.ig-text b{ color:var(--ink); }

/* قاب گوشی */
.ig-phone{ justify-self:center; width:262px; height:520px; padding:11px; border-radius:42px; background:#14161B; box-shadow:0 28px 50px -22px rgba(0,0,0,.65), inset 0 0 0 2px #2B2F38; direction:ltr; }
.ig-screen{ position:relative; width:100%; height:100%; border-radius:32px; overflow:hidden; background:#F2F3F7; color:#111; font-family:-apple-system,'Vazir',Tahoma,sans-serif; display:flex; flex-direction:column; }
.ig-screen::before{ content:""; position:absolute; top:8px; left:50%; width:78px; height:22px; margin-left:-39px; border-radius:20px; background:#0B0C10; z-index:5; }

/* کادر قرمز + شمارهٔ هدف */
.ig-target{ position:relative; outline:3px solid #E5252A; outline-offset:3px; border-radius:12px; animation:ring 1.6s ease-in-out infinite; }
@keyframes ring{ 0%,100%{ box-shadow:0 0 0 0 rgba(229,37,42,.45); } 50%{ box-shadow:0 0 0 10px rgba(229,37,42,0); } }
.ig-badge{ position:absolute; top:-15px; right:-15px; width:26px; height:26px; border-radius:50%; background:#E5252A; color:#fff; font:700 14px/26px Vazir,sans-serif; text-align:center; font-style:normal; box-shadow:0 2px 6px rgba(0,0,0,.35); }
@media (prefers-reduced-motion:reduce){ .ig-target{ animation:none; } }

.ig-sf-logo{ width:58px; height:58px; border-radius:14px; background:#1a2142; display:flex; align-items:center; justify-content:center; }
.ig-sf-logo svg{ width:60%; height:60%; }
.ig-sf-logo.sm{ width:44px; height:44px; border-radius:10px; }
.ig-sf-logo.md{ width:62px; height:62px; border-radius:15px; }
.ig-sf-logo.ic{ width:52px; height:52px; border-radius:13px; }

/* قدم ۱: سافاری */
.ig-sf-url{ margin:44px 14px 0; height:34px; border-radius:11px; background:#E3E5EC; display:flex; align-items:center; justify-content:space-between; padding:0 12px; font-size:13px; color:#333; }
.ig-sf-url b{ font-weight:600; font-size:12.5px; }
.ig-sf-page{ flex:1; margin:14px 14px 0; border-radius:14px 14px 0 0; background:#fff; padding:26px 18px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.ig-sf-page i{ display:block; width:100%; height:12px; border-radius:6px; background:#E6E8EE; }
.ig-sf-page i.s{ width:70%; } .ig-sf-page i.m{ width:85%; }
.ig-sf-page .ig-sf-logo{ margin-bottom:10px; }
.ig-sf-bar{ height:74px; background:#F7F7FA; border-top:1px solid #D9DBE2; display:flex; align-items:flex-start; justify-content:space-around; padding:12px 6px 0; }
.ig-sf-bar span{ width:42px; height:36px; color:#1A74F2; display:flex; align-items:center; justify-content:center; }
.ig-sf-bar span.dim{ color:#B3C7EE; }
.ig-sf-bar svg{ width:25px; height:25px; }

/* قدم ۲: برگهٔ اشتراک‌گذاری */
.ig-sheet-bg{ background:linear-gradient(#8C8F99,#6B6E78); }
.ig-sheet{ position:absolute; left:0; right:0; bottom:0; top:96px; border-radius:20px 20px 0 0; background:#EFEFF4; padding:8px 12px; }
.ig-sheet-grab{ width:38px; height:5px; border-radius:3px; background:#C3C5CC; margin:0 auto 10px; }
.ig-sheet-title{ display:flex; align-items:center; gap:10px; padding:6px 4px 12px; border-bottom:1px solid #D7D8DE; margin-bottom:10px; }
.ig-sheet-title b{ display:block; font-size:14px; } .ig-sheet-title small{ color:#7B7E88; font-size:11.5px; }
.ig-sheet-row{ position:relative; display:flex; align-items:center; justify-content:space-between; height:44px; margin-bottom:6px; padding:0 14px; border-radius:11px; background:#fff; font-size:14px; }
.ig-sheet-row u{ text-decoration:none; width:20px; height:20px; border:1.6px solid #4A4D57; border-radius:5px; font-size:14px; line-height:17px; text-align:center; }
.ig-sheet-row.target{ outline-offset:2px; }

/* قدم ۳: صفحهٔ افزودن */
.ig-add-bg{ background:#EFEFF4; }
.ig-add-top{ margin-top:38px; height:46px; display:flex; align-items:center; justify-content:space-between; padding:0 16px; font-size:15px; color:#1A74F2; }
.ig-add-top b{ color:#111; font-size:14px; font-weight:600; }
.ig-add-top .ig-target{ padding:4px 12px; font-weight:700; border-radius:10px; }
.ig-add-card{ margin:14px; padding:14px; border-radius:14px; background:#fff; display:flex; align-items:center; gap:14px; }
.ig-add-name{ flex:1; font-size:15px; } .ig-add-name b{ display:block; padding-bottom:6px; } .ig-add-name hr{ border:0; border-top:1px solid #DADBE1; }
.ig-add-note{ margin:0 22px; text-align:center; font-size:11.5px; line-height:1.9; color:#7B7E88; }

/* قدم ۴: صفحهٔ اصلی گوشی */
.ig-home-bg{ background:linear-gradient(160deg,#27407A,#7B4FA6 55%,#E07A5F); }
.ig-home-grid{ margin-top:70px; padding:0 14px; display:grid; grid-template-columns:repeat(4,1fr); gap:22px 6px; }
.ig-hsapp{ position:relative; display:flex; flex-direction:column; align-items:center; gap:5px; }
.ig-hsapp i{ display:block; width:46px; height:46px; border-radius:12px; background:rgba(255,255,255,.28); }
.ig-hsapp small{ color:#fff; font-size:10px; text-shadow:0 1px 3px rgba(0,0,0,.4); white-space:nowrap; }
.ig-hsapp.target{ outline-offset:5px; }
.ig-hsapp .ig-sf-logo.ic{ width:46px; height:46px; border-radius:12px; }

.ig-foot{ text-align:center; margin-top:26px; }
.ig-foot p{ color:var(--muted); font-size:13px; line-height:2; margin-top:14px; }

@media (max-width:720px){
  .ig-step{ grid-template-columns:1fr; padding:18px 16px; }
  .ig-head h1{ font-size:20px; }
}

/* اصلاح چیدمان */
.ig-home-grid{ flex:none; align-content:start; }
.ig-add-top{ font-size:13px; padding:0 12px; }
.ig-add-top b{ font-size:12px; white-space:nowrap; }
.ig-add-top .ig-target{ padding:3px 10px; }
