/* لبغارديين — "install the app" invitation (phones & tablets only) */
.lgi { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); display: flex; justify-content: center;
       transform: translateY(110%); transition: transform .3s ease; pointer-events: none; font-family: inherit; }
.lgi.lgi-in { transform: none; }
.lgi-card { pointer-events: auto; position: relative; width: 100%; max-width: 440px; box-sizing: border-box; background: #fff; color: #1c1917;
            border-radius: 20px; padding: 18px 18px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06); }
.lgi-x { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #78716c;
         font-size: 26px; line-height: 1; cursor: pointer; }
.lgi-x:hover { background: #f5f5f4; }
.lgi-head { display: flex; gap: 14px; align-items: center; padding-inline-end: 30px; }
.lgi-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 2px 8px rgba(191,30,46,.35); }
.lgi-title { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.5; }
.lgi-sub { margin: 2px 0 0; font-size: 13.5px; line-height: 1.7; color: #57534e; }
.lgi-row { display: flex; gap: 8px; margin-top: 14px; }
.lgi-btn { flex: 1; height: 46px; border: 0; border-radius: 12px; background: #bf1e2e; color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.lgi-btn:hover { background: #a3192a; }
.lgi-ghost { background: #f5f5f4; color: #1c1917; }
.lgi-ghost:hover { background: #e7e5e4; }
.lgi-wide { width: 100%; margin-top: 12px; flex: none; }
.lgi-steps { list-style: none; margin: 14px 0 0; padding: 12px 14px; background: #fafaf9; border-radius: 14px; counter-reset: s; }
.lgi-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.7; padding: 4px 0; }
.lgi-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 999px; background: #bf1e2e; color: #fff;
                        display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.lgi-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lgi-menu { display: flex; align-items: center; gap: 12px; width: calc(100% - 32px); margin: 16px; padding: 12px 14px; border: 0; border-radius: 14px;
            background: #fef2f2; color: #991b1b; font: inherit; font-weight: 800; font-size: 14px; text-align: start; cursor: pointer; }
.lgi-menu img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.lgi-menu:hover { background: #fee2e2; }
html.dark .lgi-card { background: #1c1917; color: #f5f5f4; box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
html.dark .lgi-sub { color: #a8a29e; }
html.dark .lgi-x:hover, html.dark .lgi-ghost { background: #292524; color: #f5f5f4; }
html.dark .lgi-ghost:hover { background: #44403c; }
html.dark .lgi-steps { background: #292524; }
html.dark .lgi-menu { background: rgba(191,30,46,.18); color: #fca5a5; }
@media (prefers-reduced-motion: reduce) { .lgi { transition: none; } }
@media (min-width: 1024px) and (pointer: fine) { .lgi, .lgi-menu { display: none; } }
