/* ─── KAHWINHUB PROGRESSIVE WEB APP (PWA) STYLES ─── */
.pwa-install-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  width: calc(100% - 32px);
  max-width: 480px;
  background: linear-gradient(135deg, #042F2E 0%, #064E3B 70%, #0D9488 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(4, 47, 46, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.pwa-install-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pib-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pib-text-col {
  flex: 1;
  min-width: 0;
}

.pib-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0 0 2px;
  letter-spacing: -0.2px;
}

.pib-sub {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #A7F3D0;
  margin: 0;
  line-height: 1.25;
}

.pib-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-pwa-install {
  background: #10B981;
  color: #042F2E;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pwa-install:hover {
  background: #34D399;
  transform: scale(1.04);
}

.btn-pwa-close {
  background: rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-pwa-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ─── IOS SAFARI INSTALL INSTRUCTION MODAL ─── */
.pwa-ios-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 47, 46, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pwa-ios-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.pwa-ios-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 22px 20px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-50px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #E2E8F0;
  margin-top: 10px;
}

.pwa-ios-modal.show .pwa-ios-sheet {
  transform: translateY(0);
}

.pis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pis-title {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #042F2E;
  margin: 0;
}

.pis-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}

.pis-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0D9488;
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pis-text {
  font-size: 12.5px;
  color: #334155;
  margin: 0;
  line-height: 1.35;
}

/* ─── OFFLINE TOAST NOTIFICATION ─── */
.pwa-offline-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.pwa-offline-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
