/* ================================================================
   PWA — Install banner (Android) & iOS install modal
   ================================================================ */

/* ── Android install banner ──────────────────────────────── */

.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  z-index: 200;
  border-top: 1px solid #334155;
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}

.pwa-banner-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pwa-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.pwa-banner-text strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pwa-banner-text span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.pwa-btn-install:hover { background: #2563eb; }

.pwa-btn-dismiss {
  background: transparent;
  color: #64748b;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color .15s;
}

.pwa-btn-dismiss:hover { color: #e2e8f0; }

/* Lift the AI FAB above the banner */
body.has-pwa-banner .ai-fab {
  bottom: calc(1.5rem + 68px);
}

/* ── iOS install modal ───────────────────────────────────── */

.ios-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0.75rem 1.25rem;
  z-index: 500;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.ios-modal {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
  text-align: center;
}

.ios-modal-app {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ios-modal-app-icon {
  width: 52px;
  height: 52px;
  background: #0f172a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.ios-modal-app-name {
  text-align: left;
}

.ios-modal-app-name strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.ios-modal-app-name span {
  font-size: 0.78rem;
  color: #64748b;
}

.ios-modal-sub {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ios-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.45;
}

.ios-step-num {
  width: 26px;
  height: 26px;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ios-share-icon {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 2px;
  color: #007AFF;
}

.ios-modal-close {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
}

.ios-modal-close:hover { background: #1e293b; }
