.hnsp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
}

.hnsp-popup {
  background: #ffffff;
  max-width: 380px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  padding: 18px 18px 12px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.hnsp-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.hnsp-message {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 14px;
}

.hnsp-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #2563EB;
  color: #ffffff;
  box-sizing: border-box;
  margin-top: 4px;
}

.hnsp-button:active {
  transform: scale(0.97);
}

.hnsp-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6B7280;
}

.hnsp-close:focus {
  outline: none;
}

.hnsp-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.hnsp-link-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #6B7280;
  text-decoration: underline;
  cursor: pointer;
}

.hnsp-link-btn:focus {
  outline: none;
}

@media (max-width: 480px) {
  .hnsp-popup {
    max-width: 100%;
    border-radius: 10px;
    padding: 16px 16px 10px;
  }

  .hnsp-title {
    font-size: 17px;
  }

  .hnsp-message {
    font-size: 14px;
  }

  .hnsp-footer {
    justify-content: space-between;
  }
}
