/* ═══════════════════════════════════════════════════════════
   CV Dost — Add to Home Screen (A2HS) Prompt Modal
   Matches native mobile app installation card
   ═══════════════════════════════════════════════════════════ */

.cvdost-a2hs-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 13, 20, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.cvdost-a2hs-overlay.cvdost-a2hs-visible {
  opacity: 1;
  pointer-events: auto;
}

.cvdost-a2hs-card {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px 22px 22px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
}

.cvdost-a2hs-overlay.cvdost-a2hs-visible .cvdost-a2hs-card {
  transform: translateY(0) scale(1);
}

/* Close Button (X) */
.cvdost-a2hs-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.15s, color 0.15s;
}

.cvdost-a2hs-close:hover,
.cvdost-a2hs-close:active {
  background: #F3F4F6;
  color: #111827;
}

.cvdost-a2hs-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Header Content: Icon + Text + Phone Illustration */
.cvdost-a2hs-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding-right: 20px;
}

.cvdost-a2hs-main-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

/* Royal Blue App Icon */
.cvdost-a2hs-app-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1D64F2 0%, #1551D0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 18px -4px rgba(29, 100, 242, 0.45);
}

.cvdost-a2hs-app-icon svg {
  width: 30px;
  height: 30px;
}

/* Titles */
.cvdost-a2hs-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cvdost-a2hs-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.cvdost-a2hs-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.4;
  font-weight: 500;
}

/* Phone Graphic Illustration */
.cvdost-a2hs-art-wrap {
  width: 110px;
  height: 100px;
  min-width: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cvdost-a2hs-art-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Actions Row */
.cvdost-a2hs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cvdost-a2hs-btn-later {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid #D1D5DB;
  color: #1F2937;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  outline: none;
}

.cvdost-a2hs-btn-later:active {
  background: #F3F4F6;
  border-color: #9CA3AF;
  transform: scale(0.98);
}

.cvdost-a2hs-btn-install {
  flex: 1.35;
  padding: 13px 18px;
  border-radius: 12px;
  background: #1D64F2;
  background: linear-gradient(180deg, #256EF7 0%, #1752D5 100%);
  border: none;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px -2px rgba(29, 100, 242, 0.42);
  transition: all 0.15s ease;
  outline: none;
}

.cvdost-a2hs-btn-install:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px -1px rgba(29, 100, 242, 0.35);
}

/* Manual Guide Step View (iOS Safari or when beforeinstallprompt is unavailable) */
.cvdost-a2hs-guide {
  display: none;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.cvdost-a2hs-guide-steps {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cvdost-a2hs-guide-steps li strong {
  color: #0F172A;
}

@media (max-width: 440px) {
  .cvdost-a2hs-card {
    padding: 20px 18px 18px;
    border-radius: 20px;
  }

  .cvdost-a2hs-app-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .cvdost-a2hs-app-icon svg {
    width: 26px;
    height: 26px;
  }

  .cvdost-a2hs-title {
    font-size: 1.08rem;
  }

  .cvdost-a2hs-subtitle {
    font-size: 0.82rem;
  }

  .cvdost-a2hs-art-wrap {
    width: 90px;
    min-width: 90px;
    height: 90px;
  }

  .cvdost-a2hs-btn-later,
  .cvdost-a2hs-btn-install {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}
