/* Chosen 2 Help — PWA Install Banner & Modal */

#pwa-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 2px solid #d4a017;
  padding: 14px 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  animation: slideUp 0.35s ease-out;
}

#pwa-banner.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pwa-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #d4a017;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.pwa-banner-text {
  min-width: 0;
}

.pwa-banner-title {
  color: #f8fafc;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-subtitle {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#pwa-install-btn {
  background: #d4a017;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

#pwa-install-btn:hover {
  background: #e8b820;
}

#pwa-dismiss-btn {
  background: transparent;
  color: #64748b;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.2s;
}

#pwa-dismiss-btn:hover {
  color: #94a3b8;
}

/* iOS Step-by-Step Modal */
#pwa-ios-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

#pwa-ios-modal.show {
  display: flex;
}

.pwa-ios-sheet {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 24px 20px;
  max-width: 380px;
  width: 100%;
  margin-bottom: env(safe-area-inset-bottom, 0);
}

.pwa-ios-sheet h3 {
  color: #f8fafc;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.pwa-ios-sheet p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 20px 0;
}

.pwa-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-ios-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
}

.pwa-ios-step-num {
  background: #d4a017;
  color: #0f172a;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-ios-close {
  width: 100%;
  background: #334155;
  color: #94a3b8;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pwa-ios-close:hover {
  background: #475569;
}
