/* Guide installation PWA — iOS + Android */
.pv-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 8px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(18, 24, 50, 0.98), rgba(30, 20, 60, 0.98));
  border: 1px solid rgba(124, 92, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: pvInstallSlide 0.45s ease;
}

.pv-install-bar.is-app {
  bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 8px);
}

.pv-install-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, #22d3ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

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

.pv-install-bar-text strong {
  display: block;
  font-size: 0.88rem;
}

.pv-install-bar-text span {
  font-size: 0.75rem;
  opacity: 0.65;
}

.pv-install-bar-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff, #a78bfa);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.pv-install-bar-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@keyframes pvInstallSlide {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal iOS */
.pv-ios-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}

.pv-ios-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pv-ios-sheet {
  width: 100%;
  max-width: 400px;
  background: #121832;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px 20px 16px 16px;
  padding: 20px 18px 24px;
  transform: translateY(40px);
  transition: transform 0.32s ease;
  position: relative;
}

.pv-ios-modal.is-open .pv-ios-sheet {
  transform: translateY(0);
}

.pv-ios-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.pv-ios-sheet h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  padding-right: 36px;
}

.pv-ios-sheet > p {
  margin: 0 0 18px;
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.45;
}

.pv-ios-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pv-ios-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.pv-ios-step-body {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pv-ios-step-body strong {
  color: #c4b5fd;
}

.pv-ios-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  vertical-align: middle;
  margin: 0 2px;
}

.pv-ios-share-icon svg {
  width: 16px;
  height: 16px;
  fill: #22d3ee;
}

.pv-ios-arrow {
  text-align: center;
  padding: 8px 0 4px;
  animation: pvArrowBounce 1.2s ease infinite;
}

.pv-ios-arrow svg {
  width: 28px;
  height: 28px;
  fill: #7c5cff;
}

@keyframes pvArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(6px); opacity: 1; }
}

.pv-ios-safari-warn {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  font-size: 0.85rem;
  line-height: 1.45;
}

.pv-ios-safari-warn a {
  color: #fbbf24;
  font-weight: 600;
}

.pv-ios-done {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
