#pwa-install-modal {
  position: fixed;
  top: 20px;
  right: 40px;
  max-width: 360px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  z-index: 10000;
  display: none;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#pwa-install-modal.show {
  display: block;
}

.pwa-modal-header {
  padding: 20px 20px 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwa-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pwa-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.pwa-modal-close:hover {
  background: #f0f0f0;
}

.pwa-modal-body {
  padding: 20px;
}

.pwa-install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pwa-install-step {
  padding: 12px 0;
  display: flex;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.pwa-install-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pwa-step-number {
  min-width: 28px;
  height: 28px;
  background: #69C1A1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.pwa-step-content {
  flex: 1;
  padding-top: 2px;
}

.pwa-step-text {
  color: #333;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

.pwa-step-icon {
  color: #666;
  font-size: 18px;
  margin-left: 4px;
}

.pwa-platform-badge {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}


#pwa-install-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  padding: 14px 28px;
  background: #1EA273;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,115,170,0.3);
  z-index: 9999;
  transition: all 0.3s ease;
  display: none;
}

#pwa-install-btn.show {
  display: block;
}

#pwa-install-btn:hover {
  background: #5E2BB8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,115,170,0.4);
}

#pwa-install-btn:active {
  transform: translateY(0);
}


@media (max-width: 480px) {
  #pwa-install-modal {
    left: 20px;
    right: 20px;
    top: 20px;
    max-width: none;
  }

  #pwa-install-btn {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 40px;
  }

  #pwa-install-btn:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}


.pwa-install-button a {
  color: #1EA273 !important;
  font-weight: 500;
}

.pwa-install-button a:hover {
  color: #5E2BB8 !important;
}

@media (display-mode: standalone) {
  .pwa-install-button {
    display: none !important;
  }
}