.safe-download-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility .22s, opacity .22s;
}

.safe-download-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.safe-download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .84);
  backdrop-filter: blur(8px);
}

.safe-download-panel {
  position: relative;
  width: min(480px, 100%);
  padding: 34px;
  color: #f5f7f6;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 22px;
  background: #151817;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .75);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  transform: translateY(16px) scale(.98);
  transition: transform .22s;
}

.safe-download-modal.is-active .safe-download-panel { transform: none; }

.safe-download-close {
  position: absolute;
  top: 14px;
  right: 17px;
  padding: 0;
  color: #9aa19e;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.safe-download-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #04140f;
  border-radius: 17px;
  background: #34d399;
  font-family: "Syne", Arial, sans-serif;
  font-size: 27px;
  font-weight: 800;
}

.safe-download-kicker {
  margin: 0 0 12px;
  color: #34d399;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}

.safe-download-panel h2 {
  margin: 0 0 11px;
  color: #f5f7f6;
  font-family: "Syne", "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.safe-download-intro {
  margin: 0;
  color: #a0a8a4;
  font-size: 13px;
  line-height: 1.65;
}

.safe-download-panel ol {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: safe-download-step;
}

.safe-download-panel li {
  position: relative;
  margin: 12px 0;
  padding: 12px 12px 12px 48px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #0e1110;
  counter-increment: safe-download-step;
}

.safe-download-panel li::before {
  content: counter(safe-download-step);
  position: absolute;
  top: 14px;
  left: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #04140f;
  border-radius: 7px;
  background: #34d399;
  font-size: 11px;
  font-weight: 800;
}

.safe-download-panel li b,
.safe-download-panel li span { display: block; }
.safe-download-panel li b { color: #f1f5f3; font-size: 12px; }
.safe-download-panel li span { margin-top: 2px; color: #717b76; font-size: 10px; }

.safe-download-done {
  width: 100%;
  padding: 13px;
  color: #03150f;
  border: 0;
  border-radius: 9px;
  background: #34d399;
  font-weight: 800;
  cursor: pointer;
}

.safe-download-toast {
  position: fixed;
  z-index: 100000;
  left: 50%;
  bottom: 82px;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  color: #06120e;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 9px;
  background: #34d399;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}

.safe-download-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

a[data-safe-download="1"][aria-disabled="true"] {
  opacity: .62 !important;
  cursor: wait !important;
  pointer-events: auto !important;
}

body.safe-download-modal-open { overflow: hidden !important; }

@media (max-width: 520px) {
  .safe-download-modal { padding: 14px; }
  .safe-download-panel { padding: 25px 20px; border-radius: 18px; }
  .safe-download-panel h2 { font-size: 25px; }
  .safe-download-icon { width: 54px; height: 54px; margin-bottom: 17px; border-radius: 15px; font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .safe-download-modal,
  .safe-download-panel,
  .safe-download-toast { transition: none; }
}
