/* صفحه / بخش نصب PWA */
.spi-root {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 20px 32px;
}

.spi-hero {
  text-align: center;
  padding: 28px 0 24px;
}

.spi-icon-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
}

.spi-icon-glow {
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.35), transparent 70%);
  animation: spi-glow 3s ease-in-out infinite;
}

@keyframes spi-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.spi-icon {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.spi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.spi-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: spi-pulse 2s ease-out infinite;
}

@keyframes spi-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.spi-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.spi-lead {
  margin: 0 auto 24px;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.85;
  color: #64748b;
}

.spi-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

.spi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.spi-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.spi-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4);
}

.spi-btn--ghost {
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.spi-status {
  min-height: 1.4em;
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
}

.spi-steps-card {
  margin-top: 8px;
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.spi-steps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.spi-steps-title {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.spi-platform-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.spi-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spi-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.spi-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
}

.spi-step__body strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.spi-step__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #64748b;
}

.spi-step.is-highlight {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.06));
}

.spi-browser-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: #fffbeb;
  color: #78350f;
}

.spi-browser-card > i {
  font-size: 22px;
  margin-top: 2px;
  opacity: 0.85;
}

.spi-browser-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.spi-browser-card p {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.7;
}

.spi-link {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}

.sd-install-block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 8px;
}

.sd-install-block .spi-root {
  max-width: 720px;
  padding-top: 12px;
}

.sd-page--install .spi-root {
  max-width: 680px;
}

.spi-success {
  text-align: center;
  padding: 32px 8px 24px;
  animation: crm-offline-banner-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.spi-success__badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.35);
}

.spi-success__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.spi-success__lead {
  margin: 0 auto 22px;
  max-width: 26rem;
  font-size: 14px;
  line-height: 1.85;
  color: #64748b;
}

.spi-success__hint {
  margin-top: 22px;
  text-align: right;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.85;
  color: #475569;
}

.spi-success__hint strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #0f172a;
}

.spi-success__hint ol {
  margin: 8px 0 0;
  padding-right: 18px;
}

@media (prefers-reduced-motion: reduce) {
  .spi-icon-glow,
  .spi-live-dot {
    animation: none;
  }
}
