/* ------------------------------ Modal / toasts / veil ------------------------------ */
.modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 6, 5, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
  animation: fadeIn 0.2s both;
  z-index: 20;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
}
.modal-card {
  width: min(100%, 380px);
  background: var(--panel-solid);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1.5px var(--line);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
}
.modal-card h2 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
}
.modal-card h3 {
  margin: 0;
  font-size: 19px;
}
.modal-card p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.4;
}
.ch-result {
  align-items: center;
}
.ch-result small {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ch-result.ok h2 {
  color: var(--primary);
}
.ch-result.fail h2 {
  color: #ff8a7e;
}
.res-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.res-btns .btn {
  flex: 1;
}
.res-btns.col {
  flex-direction: column;
}
.toasts {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(80px + var(--sat));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 30;
}
.toast {
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(20, 12, 10, 0.92);
  box-shadow:
    inset 0 0 0 1.5px var(--line),
    0 10px 30px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  font-size: 14px;
  animation: pop 0.3s both;
  max-width: 90vw;
  text-align: center;
}
.toast.ach {
  box-shadow:
    inset 0 0 0 2px var(--primary),
    0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--primary);
}
.toast.out {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s;
}
.veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 5, 0.75);
  display: grid;
  place-items: center;
  z-index: 40;
  pointer-events: auto;
}
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* End of css/modals.css (complete file). */
