.pd-post-success-modal[hidden] {
  display: none !important;
}

.pd-post-success-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pd-post-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.18), transparent 35%),
    rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(6px);
}

.pd-post-success-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  border-radius: 28px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(255, 255, 255, 0.98) 32%),
    #fff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  overflow: hidden;
}

.pd-post-success-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 50%, #86efac 100%);
}

.pd-post-success-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.95);
  color: #0f172a;
  font-size: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pd-post-success-modal__close:hover {
  transform: scale(1.05);
  background: #e2e8f0;
}

.pd-post-success-modal__hero {
  margin-bottom: 20px;
}

.pd-post-success-modal__icon-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
}

.pd-post-success-modal__icon-ring,
.pd-post-success-modal__icon-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.pd-post-success-modal__icon-ring {
  background:
    radial-gradient(circle, rgba(134, 239, 172, 0.4) 0%, rgba(74, 222, 128, 0.16) 55%, transparent 72%);
  transform: scale(1.08);
}

.pd-post-success-modal__icon-core {
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
  color: #fff;
  font-size: 2.35rem;
}

.pd-post-success-modal__eyebrow {
  margin: 0 0 8px;
  color: #16a34a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pd-post-success-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}

.pd-post-success-modal__message {
  margin: 16px auto 0;
  max-width: 420px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.pd-post-success-modal__timer {
  margin: 18px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.pd-post-success-modal__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pd-post-success-modal__btn {
  min-width: 190px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 0;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pd-post-success-modal__btn:hover {
  transform: translateY(-1px);
}

.pd-post-success-modal__btn--primary {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(34, 197, 94, 0.28);
}

.pd-post-success-modal__btn--secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

body.pd-post-success-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .pd-post-success-modal {
    padding: 16px;
  }

  .pd-post-success-modal__dialog {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .pd-post-success-modal__btn {
    width: 100%;
    min-width: 0;
  }
}
