/* ── PWA install + notification card ─────────────────────────────────────── */

.pwa-card {
  background: linear-gradient(145deg, rgba(10,14,26,.96), rgba(6,10,20,.98));
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 10px;
}

.pwa-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
}

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

.pwa-text {
  flex: 1;
  min-width: 0;
}

.pwa-label {
  font-size: .73rem;
  font-weight: 700;
  color: rgba(220,230,255,.88);
  line-height: 1.2;
}

.pwa-sub {
  font-size: .63rem;
  color: rgba(165,180,252,.5);
  margin-top: 1px;
  line-height: 1.3;
}

.pwa-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(99,102,241,.9), rgba(79,70,229,.95));
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}

.pwa-btn:hover    { opacity: .85; }
.pwa-btn:disabled { opacity: .45; cursor: not-allowed; }

.pwa-btn-off {
  background: transparent;
  border: 1px solid rgba(239,68,68,.35);
  color: rgba(239,68,68,.7);
  font-size: .67rem;
}

.pwa-btn-off:hover { border-color: rgba(239,68,68,.6); color: rgba(239,68,68,.9); }

.pwa-divider {
  height: 1px;
  background: rgba(255,255,255,.05);
  margin: 2px 0;
}

/* ── Global install bar (fixed bottom, pre-auth) ──────────────────────────── */

.pwa-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 14px;
  background: linear-gradient(135deg, rgba(10,14,26,.97) 0%, rgba(20,16,40,.98) 100%);
  border-top: 1px solid rgba(99,102,241,.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 24px rgba(0,0,0,.55);
  /* slide-in handled by JS */
  will-change: transform;
}

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

.pwa-bar-text {
  flex: 1;
  min-width: 0;
}

.pwa-bar-title {
  font-size: .8rem;
  font-weight: 800;
  color: rgba(220,230,255,.95);
  line-height: 1.2;
}

.pwa-bar-sub {
  font-size: .67rem;
  color: rgba(165,180,252,.55);
  margin-top: 2px;
  line-height: 1.3;
}

.pwa-bar-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(79,70,229,1));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(99,102,241,.4);
  transition: opacity .15s, transform .1s;
}

.pwa-bar-btn:hover  { opacity: .88; transform: translateY(-1px); }
.pwa-bar-btn:active { transform: translateY(0); }

.pwa-bar-x {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(226,182,104,.20);
  border-radius: 50%;
  color: rgba(165,180,252,.5);
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}

.pwa-bar-x:hover { border-color: rgba(255,255,255,.3); color: rgba(165,180,252,.9); }
