/* ========================================
   Add to Home Screen — Prompt Sheet
   ======================================== */

/* Backdrop overlay */
.a2hs-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: a2hs-fade-in 0.3s ease-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

@keyframes a2hs-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bottom sheet card */
.a2hs-sheet {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 28px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: a2hs-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@keyframes a2hs-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Drag handle */
.a2hs-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 0 auto 24px;
}

/* App icon */
.a2hs-sheet-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  background: #f3f4f6;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Title */
.a2hs-sheet-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Description */
.a2hs-sheet-desc {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 28px;
  line-height: 1.5;
  padding: 0 8px;
}

/* Install button — big CTA */
.a2hs-sheet-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s;
}

.a2hs-sheet-btn:active {
  background: #333;
}

/* Dismiss link */
.a2hs-sheet-dismiss {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 4px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.a2hs-sheet-dismiss:active {
  color: #6b7280;
}

/* ========================================
   Guide Overlay (iOS / Android steps)
   ======================================== */

.a2hs-guide-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: a2hs-fade-in 0.2s ease-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.a2hs-guide {
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 24px 36px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: a2hs-slide-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.a2hs-guide-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #d1d5db;
  margin: 0 auto 20px;
}

.a2hs-guide-close {
  background: none;
  border: none;
  font-size: 26px;
  color: #9ca3af;
  cursor: pointer;
  float: right;
  line-height: 1;
  padding: 0 4px;
}

.a2hs-guide-content h3 {
  margin: 0 0 24px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.a2hs-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.a2hs-guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a2hs-guide-step-text {
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
  padding-top: 5px;
}

.a2hs-guide-step-text strong {
  color: #111;
}

.a2hs-guide-icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}
