:root { color-scheme: dark; --bg: #050b18; --card: #0e1a2f; --line: rgba(154, 181, 229, .18); --text: #f7f9ff; --muted: #9db0d0; --accent: #d4ff00; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: 'Vazirmatn', Tahoma, system-ui, sans-serif; line-height: 1.9; }
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.logo { display: block; margin: 0 auto; border-radius: 18px; }
h1, h2 { font-weight: 800; }
h1 { font-size: 24px; margin: 14px 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; margin-bottom: 16px; text-align: right; }
.card[data-show] { display: none; }
body[data-platform="ios"] .card[data-show="ios"],
body[data-platform="android"] .card[data-show="android"],
body[data-platform="desktop"] .card[data-show="desktop"],
body[data-platform="other"] .card { display: block; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.steps li > span { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(212, 255, 0, .14); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.btn { display: block; margin-top: 8px; padding: 12px 16px; border: 0; border-radius: 999px; background: var(--accent); color: #0a0d14; font: inherit; font-weight: 800; font-size: 14px; text-align: center; text-decoration: none; cursor: pointer; }
.btn.small { display: inline-block; margin: 0; padding: 8px 18px; }
.note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.note.warn { color: #ffd08a; }
.note a, .foot a { color: #8db0ff; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #08111f; color: var(--text); font-size: 13px; }
.foot { color: var(--muted); font-size: 12.5px; margin-top: 24px; }
/* a computer sees both phones' ways under the QR code (2026-09-26) */
body[data-platform="desktop"] .card[data-show="ios"],
body[data-platform="desktop"] .card[data-show="android"] { display: block; }
.qr { display: grid; place-items: center; margin: 4px 0 12px; }
.qr img { width: 180px; height: 180px; padding: 10px; border-radius: 16px; background: #fff; }

/* step-by-step with drawn screens (2026-09-26): the button to tap is ringed */
.intro { font-size: 13.5px; margin: 0 0 16px; color: var(--text); }
.steps li > div { min-width: 0; flex: 1; }
.k { display: inline; padding: 1px 7px; border-radius: 7px; background: rgba(212, 255, 0, .12); color: var(--accent); font-weight: 800; white-space: normal; }
.tip { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 12.5px; }
.mock { margin: 10px 0 4px; padding: 10px; border-radius: 16px; background: #1b2436; border: 1px solid var(--line); font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 12.5px; line-height: 1.5; color: #111; text-align: left; }
.mock .hl { position: relative; outline: 2.5px solid #ff9f0a; outline-offset: 2px; border-radius: 8px; animation: tapme 1.6s ease-in-out infinite; }
@keyframes tapme { 50% { outline-color: rgba(255, 159, 10, .35); } }
@media (prefers-reduced-motion: reduce) { .mock .hl { animation: none; } }
.mock em { display: block; font-style: normal; font-size: 11px; color: #6b7280; direction: rtl; text-align: left; font-family: 'Vazirmatn', Tahoma, sans-serif; }
.m-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 22px; background: #f2f2f7; }
.m-nav { color: #007aff; font-size: 20px; line-height: 1; }
.m-url { flex: 1; color: #3c3c43; text-align: center; }
.m-dots { padding: 2px 8px; color: #007aff; font-weight: 800; letter-spacing: 1px; }
.m-pop, .m-sheet { margin-bottom: 8px; border-radius: 14px; background: #fff; overflow: hidden; }
.m-pop { width: 70%; margin-left: auto; }
.m-li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid #e5e5ea; }
.m-li:last-child { border-bottom: 0; }
.m-li em { flex-basis: 100%; }
.m-li .i-plus { margin-left: auto; }
.i-share, .i-plus { display: inline-block; width: 16px; height: 16px; border: 1.8px solid #007aff; border-radius: 4px; position: relative; flex: none; }
.i-share::after { content: '↑'; position: absolute; left: 0; right: 0; top: -9px; text-align: center; color: #007aff; font-style: normal; font-size: 13px; font-weight: 900; line-height: 1; }
.i-share.inline { vertical-align: -3px; border-color: var(--accent); }
.i-share.inline::after { color: var(--accent); }
.i-plus::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: #007aff; font-style: normal; font-weight: 900; font-size: 13px; line-height: 1; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 12px 12px 0 0; background: #f2f2f7; color: #007aff; }
.m-head b { color: #111; font-size: 12px; }
.m-head .hl { padding: 0 6px; font-weight: 800; }
.m-app { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; }
.m-app img { border-radius: 9px; }
.m-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.m-head + .m-app { margin: 0; }
.m-head + .m-app + .m-row { margin-top: 0; border-radius: 0 0 12px 12px; border-top: 1px solid #e5e5ea; }
.m-tog { width: 36px; height: 20px; border-radius: 12px; background: #d1d1d6; position: relative; flex: none; }
.m-tog::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.m-tog.on { background: #34c759; }
.m-tog.on::after { left: 18px; }
.mock.and .m-tog.on { background: #1a73e8; }
.m-dlg { padding: 14px 14px 10px; border-radius: 20px; background: #f3f5fb; }
.m-dlg b { display: block; margin-bottom: 4px; font-size: 14px; }
.m-dlg p { margin: 0 0 10px; color: #444; }
.m-dlg .m-app { padding: 0 0 8px; background: none; }
.m-btns { display: flex; justify-content: flex-end; gap: 12px; color: #1a73e8; font-weight: 700; }
.m-btns span { padding: 4px 6px; }
.m-more { display: inline-block; margin: 0 0 10px; padding: 2px 6px; color: #1a73e8; font-weight: 700; }
.trouble { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.trouble summary { cursor: pointer; font-weight: 800; }
.trouble ul { margin: 10px 0 0; padding-right: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.trouble a { color: #8db0ff; }
.mock .m-li.hl { outline-offset: -3px; }
.k bdi, .tip bdi, .steps bdi { unicode-bidi: isolate; }
/* a label is one box: Persian, then the English as shown on an English phone */
.k { display: inline-block; max-width: 100%; margin: 2px 0; line-height: 1.7; }
.k bdi { display: inline-block; font-size: .92em; opacity: .85; }
/* switch between the iPhone and the Android steps (2026-10-02) */
.os-switch { display: flex; gap: 8px; justify-content: center; margin: 0 0 18px; }
.os-switch a { flex: 1; max-width: 160px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; text-align: center; }
.os-switch a.on { background: var(--accent); border-color: var(--accent); color: #0a0d14; }
