/* Install-the-app prompt — bottom sheet on phones, floating card on desktops. Accent comes from --pwa-accent. */
.pwa { --pwa-accent: #E11D48; --pwa-accent-2: #7C3AED; --pwa-bg: #fff; --pwa-ink: #111827; --pwa-mut: #6B7280; --pwa-line: rgba(17,24,39,.1);
  position: fixed; z-index: 140; font-family: inherit; color: var(--pwa-ink); }
[data-mode="dark"] .pwa { --pwa-bg: #141A2E; --pwa-ink: #F3F4F6; --pwa-mut: #A3AABB; --pwa-line: rgba(255,255,255,.12); }
.pwa__box { position: relative; background: var(--pwa-bg); border: 1px solid var(--pwa-line); box-shadow: 0 30px 80px -24px rgba(10,12,30,.55); padding: 20px; }
.pwa--sheet { inset-inline: 0; bottom: 0; padding: 0 10px max(10px, env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.pwa--sheet .pwa__box { border-radius: 26px; padding-top: 26px; }
.pwa--sheet .pwa__box::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 5px; background: var(--pwa-line); }
.pwa--card { bottom: 24px; inset-inline-end: 24px; width: 380px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s ease, transform .5s cubic-bezier(.22,1,.36,1); }
.pwa--card .pwa__box { border-radius: 22px; }
.pwa.is-open { transform: none; opacity: 1; }
.pwa__x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--pwa-ink) 7%, transparent); color: var(--pwa-mut); cursor: pointer; }
.pwa__x svg { width: 17px; height: 17px; }
.pwa__head { display: flex; align-items: center; gap: 14px; padding-inline-end: 34px; }
.pwa__head img { flex: none; width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 10px 24px -10px var(--pwa-accent), 0 0 0 1px var(--pwa-line); }
.pwa__head div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pwa__head strong { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.pwa__head span { font-size: .86rem; color: var(--pwa-mut); line-height: 1.5; }
.pwa__perks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; padding: 0; }
.pwa__perks li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pwa-accent) 10%, transparent); color: color-mix(in srgb, var(--pwa-accent) 80%, var(--pwa-ink)); font-size: .76rem; font-weight: 700; }
.pwa__perks svg { width: 14px; height: 14px; }
.pwa__go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 16px; cursor: pointer; color: #fff; font: 800 1rem/1 inherit; font-family: inherit;
  background: linear-gradient(120deg, var(--pwa-accent), var(--pwa-accent-2)); box-shadow: 0 14px 30px -12px var(--pwa-accent); transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .2s; }
.pwa__go:hover { transform: translateY(-2px); filter: brightness(1.06); }
.pwa__go svg { width: 20px; height: 20px; }
.pwa__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pwa__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--pwa-ink) 4%, transparent); font-size: .9rem; font-weight: 600; line-height: 1.45; }
.pwa.is-open .pwa__steps li { animation: pwa-in .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(150ms + var(--i) * 90ms); }
.pwa__n { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--pwa-accent); color: #fff; font-size: .78rem; font-weight: 800; }
.pwa__si { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--pwa-bg); border: 1px solid var(--pwa-line); color: #0A84FF; }
.pwa__si svg { width: 19px; height: 19px; }
.pwa__later { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 0; background: none; color: var(--pwa-mut); font: 700 .88rem inherit; font-family: inherit; cursor: pointer; }
.pwa__arrow { display: none; }
.pwa--ios .pwa__arrow { display: grid; place-items: center; position: absolute; left: 50%; bottom: max(2px, env(safe-area-inset-bottom)); width: 0; height: 0; }
.pwa--ios.is-open .pwa__arrow svg { position: absolute; top: 4px; left: -13px; width: 26px; height: 26px; color: #0A84FF; animation: pwa-bob 1.2s ease-in-out infinite; }
.pwa--ios .pwa__box { margin-bottom: 30px; }
@keyframes pwa-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pwa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pwa, .pwa__steps li, .pwa__arrow svg { transition: none !important; animation: none !important; } }
