/* ================================================================
   PWA Installation & Mobile App Enhancements
   ================================================================ */

.pwa-header-btn {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #ffffff !important;
  border: 0;
  padding: 7px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.pwa-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.pwa-header-btn:active {
  transform: translateY(0);
}

/* Home Banner */
.pwa-home-banner {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #ddd6fe;
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0 26px;
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.06);
  position: relative;
  overflow: hidden;
}
.pwa-home-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pwa-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15);
  flex-shrink: 0;
}
.pwa-banner-left strong {
  display: block;
  font-size: 16px;
  color: #3b0764;
  margin-bottom: 3px;
}
.pwa-banner-left p {
  margin: 0;
  font-size: 13px;
  color: #6b21a8;
  line-height: 1.45;
}
.pwa-install-action-btn {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #ffffff;
  border: 0;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pwa-install-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* Modal Guide */
.pwa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pwaFadeIn 0.2s ease-out;
}
.pwa-modal-overlay[hidden],
.pwa-modal-overlay.hidden {
  display: none !important;
}

.pwa-modal-card {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  padding: 24px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.pwa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.pwa-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}
.pwa-close-btn {
  background: #f1f5f9;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.pwa-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Tabs */
.pwa-os-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.pwa-os-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.pwa-os-tab.active {
  background: #ffffff;
  color: #7c3aed;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Steps */
.pwa-step-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.pwa-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pwa-step-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.pwa-step-text strong {
  color: #1e1b4b;
}
.pwa-step-highlight {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #475569;
  font-size: 13px;
  margin: 2px 0;
}

.pwa-benefit-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 18px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

@keyframes pwaFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .pwa-home-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .pwa-install-action-btn {
    width: 100%;
    text-align: center;
  }
  .pwa-banner-right {
    width: 100%;
  }
}

