/* pwa.css — install banner, iOS hint, and Settings "Install app" row.
   Dark trading-terminal theme; sits above the bottom mobile nav; safe-area aware. */

/* ── First-visit install banner (slim, bottom, dismissible) ── */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(15, 20, 32, 0.98);
  border: 1px solid var(--v3-border-strong, #223);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  animation: pwa-slide-up 0.22s ease;
}
/* On phones with the bottom mobile nav (<=820px), lift the banner above it. */
@media (max-width: 820px) {
  .pwa-install-banner { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@keyframes pwa-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-banner-icon img {
  display: block;
  border-radius: 8px;
}
.pwa-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pwa-banner-copy strong {
  color: var(--v3-text, #e8edf5);
  font-size: 13px;
  font-weight: 640;
}
.pwa-banner-copy span {
  color: var(--v3-muted, #8a97ab);
  font-size: 11px;
  line-height: 1.35;
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.pwa-banner-install {
  padding: 8px 14px;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--v3-teal, #00d4aa);
  color: #06221c;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}
.pwa-banner-install:hover { filter: brightness(1.06); }
.pwa-banner-dismiss {
  padding: 8px 6px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--v3-muted, #8a97ab);
  font-size: 12px;
  cursor: pointer;
}
.pwa-banner-dismiss:hover { color: var(--v3-text, #e8edf5); }

/* ── iOS / generic Add-to-Home-Screen coached hint ── */
.pwa-ios-hint {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 210;
  padding: 16px 16px 18px;
  background: rgba(15, 20, 32, 0.99);
  border: 1px solid var(--v3-border-strong, #223);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
  animation: pwa-slide-up 0.22s ease;
}
@media (max-width: 820px) {
  .pwa-ios-hint { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
.pwa-ios-hint strong {
  display: block;
  color: var(--v3-text, #e8edf5);
  font-size: 14px;
  font-weight: 640;
  margin-bottom: 4px;
}
.pwa-ios-hint p {
  color: var(--v3-muted, #8a97ab);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.pwa-ios-hint b { color: var(--v3-text, #e8edf5); font-weight: 640; }
.pwa-ios-hint-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-radius: 9px;
  color: var(--v3-text, #e8edf5);
  font-size: 12px;
}
.pwa-ios-share {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--v3-teal, #00d4aa);
  color: #06221c;
  font-weight: 800;
}
.pwa-ios-hint-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--v3-muted, #8a97ab);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pwa-ios-hint-close:hover { color: var(--v3-text, #e8edf5); }

/* ── Settings drawer "Install app" row ── */
.pwa-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.pwa-settings-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pwa-settings-row strong {
  color: var(--v3-text, #e8edf5);
  font-size: 13px;
  font-weight: 620;
}
.pwa-settings-row small {
  color: var(--v3-muted, #8a97ab);
  font-size: 11px;
  line-height: 1.35;
}
.pwa-settings-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  min-height: 40px;
  border: 1px solid var(--v3-teal, #00d4aa);
  border-radius: 9px;
  background: transparent;
  color: var(--v3-teal, #00d4aa);
  font-size: 12px;
  font-weight: 640;
  cursor: pointer;
}
.pwa-settings-btn:hover { background: rgba(0, 212, 170, 0.1); }
.pwa-settings-status {
  flex: 0 0 auto;
  color: var(--v3-teal, #00d4aa);
  font-size: 12px;
  font-weight: 640;
}
