/* Install / PWA modal */
.pwa-overlay{
  position:fixed; inset:0; background:rgba(15,17,21,.55);
  display:flex; align-items:flex-end; justify-content:center;
  z-index:9999; backdrop-filter: blur(6px);
  animation: pwaFade .18s ease-out;
}
@keyframes pwaFade { from{opacity:0} to{opacity:1} }
.pwa-sheet{
  position:relative; width:100%; max-width:560px;
  background:#fff; color:#0f1115;
  border-radius:24px 24px 0 0;
  padding:20px 20px 28px; box-shadow:0 -20px 60px rgba(0,0,0,.25);
  max-height:90vh; overflow-y:auto;
  animation: pwaUp .26s cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 640px){
  .pwa-overlay{ align-items:center; }
  .pwa-sheet{ border-radius:24px; }
}
@keyframes pwaUp { from{transform:translateY(40px); opacity:.6} to{transform:none; opacity:1} }
.pwa-close{
  position:absolute; top:10px; right:12px;
  width:36px; height:36px; border-radius:999px;
  border:0; background:#f3f4f6; color:#111; font-size:22px; line-height:1;
  cursor:pointer;
}
.pwa-hero{ display:flex; gap:14px; align-items:flex-start; padding-right:30px; }
.pwa-icon{
  width:72px; height:72px; border-radius:18px; flex:0 0 auto;
  box-shadow:0 6px 22px rgba(229,57,53,.25);
}
.pwa-eyebrow{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:#e53935;
  background:#ffecec; padding:4px 10px; border-radius:999px;
}
.pwa-title{ margin:6px 0 4px; font-size:22px; font-weight:800; letter-spacing:-.02em; }
.pwa-sub{ margin:0; color:#4b5563; font-size:14px; line-height:1.45; }

.pwa-body{ margin-top:18px; }
.pwa-steps{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.pwa-steps li{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px 14px; background:#f9fafb; border:1px solid #eef0f3; border-radius:14px;
}
.pwa-steps strong{ font-size:14.5px; color:#0f1115; }
.pwa-steps p{ margin:2px 0 0; font-size:13px; color:#4b5563; line-height:1.4; }
.pwa-step-n{
  width:26px; height:26px; border-radius:8px; flex:0 0 auto;
  background:#0f1115; color:#fff; display:grid; place-items:center;
  font-size:13px; font-weight:700;
}

.pwa-actions{ margin-top:18px; display:flex; gap:10px; }
.pwa-btn{
  flex:1; height:48px; border-radius:14px; border:0; cursor:pointer;
  font-size:15px; font-weight:700;
}
.pwa-btn.primary{
  background:linear-gradient(135deg,#e53935,#ff6b3d); color:#fff;
  box-shadow:0 8px 24px rgba(229,57,53,.35);
}
.pwa-btn.primary:disabled{ opacity:.6; cursor:wait; }

.pwa-foot{
  margin-top:14px; font-size:12px; color:#6b7280; display:flex; align-items:center; gap:8px;
  justify-content:center;
}
.pwa-dot{ width:6px; height:6px; border-radius:50%; background:#10b981; }

.pwa-success{
  margin-top:16px; padding:14px; border-radius:14px;
  background:#ecfdf5; color:#065f46; font-weight:600; border:1px solid #a7f3d0;
}

/* Android ready card */
.pwa-android-ready{
  display:flex; gap:14px; align-items:center;
  padding:16px; border-radius:16px;
  background:linear-gradient(135deg,#fff4e6,#fff);
  border:1px solid #ffd5b3;
}
.pwa-android-ready strong{ display:block; font-size:15px; }
.pwa-android-ready p{ margin:2px 0 0; font-size:13px; color:#4b5563; }
.pwa-pulse{
  width:54px; height:54px; border-radius:14px; flex:0 0 auto;
  background:#0f1115; color:#fff; display:grid; place-items:center;
  position:relative;
  animation: pwaPulse 1.6s ease-out infinite;
}
@keyframes pwaPulse{
  0%{ box-shadow:0 0 0 0 rgba(229,57,53,.55); }
  100%{ box-shadow:0 0 0 18px rgba(229,57,53,0); }
}

/* iOS animation */
.pwa-ios-anim{
  display:flex; justify-content:center; padding:8px 0 18px;
}
.pwa-phone{
  position:relative;
  width:200px; height:330px; border-radius:34px;
  background:#111; padding:10px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.pwa-phone-screen{
  position:relative; width:100%; height:100%; border-radius:24px;
  background:#fff; overflow:hidden; display:flex; flex-direction:column;
}
.pwa-phone-bar{
  font-size:10px; color:#6b7280; text-align:center; padding:8px 0;
  border-bottom:1px solid #f1f3f5;
}
.pwa-phone-content{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
}
.pwa-phone-content img{ width:56px; height:56px; border-radius:14px; }
.pwa-phone-name{ font-size:12px; font-weight:600; color:#0f1115; }
.pwa-phone-toolbar{
  height:42px; border-top:1px solid #f1f3f5;
  display:flex; align-items:center; justify-content:center;
  color:#0a84ff;
}
.pwa-share-icon{
  display:inline-grid; place-items:center;
  width:32px; height:32px; border-radius:8px;
  background:#eaf4ff;
  animation: pwaBlink 1.4s ease-in-out infinite;
}
@keyframes pwaBlink {
  0%,100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(10,132,255,.5); }
  50%{ transform:scale(1.12); box-shadow:0 0 0 10px rgba(10,132,255,0); }
}
.pwa-finger{
  position:absolute; left:50%; bottom:10px;
  width:22px; height:22px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, #fff, #cfd4dc);
  border:2px solid #0f1115; transform:translateX(-50%);
  animation: pwaFinger 1.8s ease-in-out infinite;
}
@keyframes pwaFinger{
  0%,100%{ transform:translate(-50%, -28px); opacity:1; }
  50%{ transform:translate(-50%, -44px); opacity:.5; }
}
.pwa-bubble{
  position:absolute; right:-8px; top:60%;
  background:#0f1115; color:#fff; font-size:11px; font-weight:600;
  padding:6px 10px; border-radius:10px;
  transform:translateX(100%);
  white-space:nowrap;
}
.pwa-bubble::before{
  content:""; position:absolute; left:-5px; top:50%; transform:translateY(-50%);
  border:5px solid transparent; border-right-color:#0f1115;
}

/* "Install app" tile in More sheet */
.mt-more-item.install-tile{
  background:linear-gradient(135deg,#fff1ec,#fff);
  border:1px solid #ffd0bc;
  color:#9a1f1c;
  font-weight:700;
}
.mt-more-item.install-tile .mt-more-ic{ color:#e53935; }
