.ahp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ahp-overlay[hidden] {
  display: none !important;
}

.ahp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 30, 0.46);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ahp-modal {
  position: relative;
  width: min(calc(100vw - 48px), 1200px);
  max-width: 1200px;
  background: #ffffff;
  border: 1px solid rgba(219, 228, 236, 0.95);
  border-radius: 22px;
  padding: clamp(34px, 4.4vw, 58px);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  color: #0d2538;
  animation: ahpIn 0.22s ease-out;
  box-sizing: border-box;
  overflow: hidden;
}

@keyframes ahpIn {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.ahp-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #eef4f8;
  color: #0d2538;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.ahp-close:hover {
  background: #ddebf3;
  transform: rotate(90deg);
}

.ahp-icon {
  font-size: 66px;
  line-height: 1;
  margin-bottom: 14px;
}

.ahp-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 11px 26px;
  background: #eef6fb;
  border-radius: 999px;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.15;
}

.ahp-modal h2 {
  margin: 0 0 18px;
  color: #0d2538;
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 900;
}

.ahp-message {
  margin: 0 auto;
  max-width: 1120px;
  color: #32455c;
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: normal;
  word-break: normal;
}

.ahp-message p {
  margin: 0 0 12px;
  white-space: normal !important;
}

.ahp-message p:last-child {
  margin-bottom: 0;
}

.ahp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  padding: 13px 25px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(31, 91, 136, 0.24);
}

body.ahp-lock-scroll {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ahp-overlay {
    padding: 14px;
    align-items: flex-end;
  }

  .ahp-modal {
    border-radius: 18px;
    padding: 30px 22px 26px;
    width: min(100%, 1200px);
    max-width: 1200px;
  }

  .ahp-icon {
    font-size: 50px;
  }

  .ahp-date {
    font-size: 20px;
    padding: 8px 16px;
  }

  .ahp-modal h2 {
    font-size: 34px;
  }

  .ahp-message {
    max-width: 100%;
    font-size: 16px;
  }

  .ahp-message p {
    white-space: normal !important;
  }
}
