.pdf-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 15, 31, 0.72);
  backdrop-filter: blur(5px);
}

.pdf-share-dialog {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 15, 31, 0.3);
  color: #0f1f35;
}

.pdf-share-header {
  position: relative;
  padding: 23px 64px 18px 24px;
  background: linear-gradient(135deg, #0b1d35, #163c69);
  color: #fff;
}

.pdf-share-kicker {
  color: #ff5a67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pdf-share-header h2 {
  margin: 5px 0 0;
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.15;
}

.pdf-share-close {
  position: absolute;
  top: 15px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 29px;
  cursor: pointer;
}

.pdf-share-body {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 24px 22px;
  text-align: center;
}

.pdf-share-icon {
  display: grid;
  width: 62px;
  height: 70px;
  place-items: center;
  border-radius: 9px 9px 15px 9px;
  background: #e32636;
  box-shadow: 0 8px 20px rgba(227, 38, 54, 0.24);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.pdf-share-body strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.pdf-share-body p {
  max-width: 430px;
  margin: 0;
  color: #5b6b80;
  font-size: 14px;
  line-height: 1.45;
}

.pdf-share-progress {
  width: min(280px, 80%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}

.pdf-share-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #1c64f2;
  animation: pdf-share-loading 1s ease-in-out infinite alternate;
}

.pdf-share-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 20px;
  border-top: 1px solid #e4eaf2;
  background: #f7f9fc;
}

.pdf-share-actions[hidden],
.pdf-share-actions button[hidden] {
  display: none;
}

.pdf-share-actions button {
  min-height: 48px;
  border: 1px solid #c9d4e3;
  border-radius: 12px;
  padding: 10px 13px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.pdf-share-primary {
  border-color: #0e9f55 !important;
  background: #0e9f55;
  color: #fff;
}

.pdf-share-secondary {
  background: #fff;
  color: #15243a;
}

@keyframes pdf-share-loading {
  from { transform: translateX(-5%); }
  to { transform: translateX(145%); }
}

@media (max-width: 560px) {
  .pdf-share-overlay {
    align-items: end;
    padding: 10px;
  }

  .pdf-share-dialog {
    border-radius: 22px 22px 15px 15px;
  }

  .pdf-share-header {
    padding: 20px 62px 16px 20px;
  }

  .pdf-share-body {
    padding: 24px 18px 18px;
  }

  .pdf-share-actions {
    grid-template-columns: 1fr;
    padding: 13px 16px calc(16px + env(safe-area-inset-bottom));
  }
}
