/* ── SignalOne Install Layer – fully isolated, all classes prefixed soInstallLayer- ── */

@keyframes soInstallLayerPulse {
  0%,  100% { opacity: 1; }
  50%        { opacity: 0.72; }
}

.soInstallLayer-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e2f4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.18),
    0 4px 20px rgba(34, 211, 238, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.55);
  animation: soInstallLayerPulse 3s ease-in-out infinite;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 180ms ease;
  user-select: none;
  -webkit-user-select: none;
}

.soInstallLayer-button:hover {
  animation: none;
  opacity: 1;
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.38),
    0 6px 28px rgba(34, 211, 238, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.65);
}

.soInstallLayer-button:active {
  transform: scale(0.97);
}

.soInstallLayer-button svg {
  flex-shrink: 0;
  color: #22d3ee;
}

/* ── Root & Backdrop ── */

.soInstallLayer-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}

.soInstallLayer-root--visible {
  pointer-events: auto;
  opacity: 1;
}

.soInstallLayer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Dialog ── */

.soInstallLayer-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 28px 24px 22px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(34, 211, 238, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, rgba(12, 20, 38, 0.98) 0%, rgba(7, 12, 24, 0.99) 100%);
  border: 1px solid rgba(34, 211, 238, 0.20);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 0 80px rgba(34, 211, 238, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 260ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.soInstallLayer-root--visible .soInstallLayer-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Close button ── */

.soInstallLayer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(148, 163, 184, 0.80);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  padding: 0;
}

.soInstallLayer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

/* ── Header ── */

.soInstallLayer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.soInstallLayer-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18) 0%, rgba(96, 165, 250, 0.14) 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  color: #22d3ee;
}

.soInstallLayer-title {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.soInstallLayer-subtitle {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.75);
  line-height: 1.4;
}

/* ── QR Block ── */

.soInstallLayer-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.soInstallLayer-qr svg {
  display: block;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.40);
  max-width: 180px;
  height: auto;
}

/* ── Steps ── */

.soInstallLayer-steps {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soInstallLayer-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.90);
  line-height: 1.4;
}

.soInstallLayer-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.20) 0%, rgba(96, 165, 250, 0.15) 100%);
  border: 1px solid rgba(34, 211, 238, 0.30);
  color: #22d3ee;
  font-size: 11px;
  font-weight: 700;
}

/* ── Footer note ── */

.soInstallLayer-footer-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(100, 116, 139, 0.75);
  letter-spacing: 0.01em;
}

/* ── Mobile compact (<400px) ── */

@media (max-width: 400px) {
  .soInstallLayer-button {
    bottom: 16px;
    right: 16px;
    padding: 8px 13px 8px 11px;
    font-size: 12px;
  }

  .soInstallLayer-dialog {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .soInstallLayer-header {
    margin-bottom: 16px;
    gap: 10px;
  }

  .soInstallLayer-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .soInstallLayer-title {
    font-size: 15px;
  }

  .soInstallLayer-qr {
    margin-bottom: 16px;
  }

  .soInstallLayer-qr svg {
    max-width: 152px;
    padding: 8px;
  }

  .soInstallLayer-steps {
    margin-bottom: 16px;
    gap: 8px;
  }

  .soInstallLayer-steps li {
    font-size: 12px;
  }
}

/* ── Mobile Install UX Overlay (Trust + Clarity) ── */

.soInstallUX-root {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.soInstallUX-root.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.soInstallUX-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.soInstallUX-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: auto;
  border-radius: 0;
  background: #0b1220;
  color: #f8fafc;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.soInstallUX-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.soInstallUX-subtext {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.5;
}

.soInstallUX-points,
.soInstallUX-steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e2e8f0;
}

.soInstallUX-stepsTitle {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.soInstallUX-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.soInstallUX-primary,
.soInstallUX-secondary {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.soInstallUX-primary {
  background: #f8fafc;
  color: #0f172a;
}

.soInstallUX-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
}

.soInstallUX-hint {
  min-height: 18px;
  margin: 0;
  color: #fbbf24;
  font-size: 12px;
}

.soInstallUX-trust {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #94a3b8;
  font-size: 12px;
}

/* Fallback direct link below QR */
.soInstallLayer-direct-link-wrap {
  text-align: center;
  margin: 8px 0 4px;
}

.soInstallLayer-direct-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(148,163,184,0.75);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(148,163,184,0.25);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}
.soInstallLayer-direct-link:hover {
  color: #e2e8f0;
  border-color: rgba(226,232,240,0.4);
}

/* Mobile-only CTA block (no QR) */
.soInstallLayer-mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 0 8px;
  text-align: center;
}

.soInstallLayer-mobile-hint {
  font-size: 13px;
  color: rgba(148,163,184,0.7);
  margin: 0;
  line-height: 1.5;
}

.soInstallLayer-mobile-cta .soInstallLayer-direct-link {
  font-size: 14px;
  font-weight: 700;
  color: #fb923c;
  border-color: rgba(251,146,60,0.35);
  padding: 10px 24px;
  border-radius: 10px;
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.25);
  border-bottom-width: 1px;
}
.soInstallLayer-mobile-cta .soInstallLayer-direct-link:hover {
  background: rgba(251,146,60,0.18);
  color: #fb923c;
}
