/* shared completion popup */
.done-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 10, 20, 0.62);
  backdrop-filter: blur(4px);
}

.done-modal[hidden] {
  display: none !important;
}

.done-modal__card {
  width: min(420px, 100%);
  border-radius: 16px;
  padding: 1.4rem 1.2rem 1.2rem;
  background: #fff;
  color: #12151a;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.done-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 1.45rem;
  font-weight: 800;
}

.done-modal__card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.done-modal__card p {
  margin: 0 0 0.55rem;
  color: #5c6670;
  font-size: 0.9rem;
  line-height: 1.5;
}

.done-modal__pw {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f4f7fb;
  border: 1px dashed #c5d3e5;
  font-size: 0.88rem;
  color: #1a3a5c;
}

.done-modal__pw strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #0a162f;
}

.done-modal__actions {
  display: grid;
  gap: 0.5rem;
}

.done-modal__actions a,
.done-modal__actions button {
  appearance: none;
  border: none;
  border-radius: 12px;
  min-height: 46px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.done-modal__actions .primary {
  background: linear-gradient(180deg, #2b82ef 0%, #1a73e8 100%);
  color: #fff;
}

.done-modal__actions .ghost {
  background: #eef2f6;
  color: #345;
}
