/* Result card, processing overlay and toast messages. */

/* =========================================================
   11. Error view, overlay, toast
   ========================================================= */
.result { padding: 36px 28px; text-align: center; }
.result__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-bg); color: var(--danger); }
.result__icon svg { width: 26px; height: 26px; }
.result__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--navy); outline: none; }
.result__text { max-width: 44ch; margin: 0 auto 20px; color: var(--muted); font-size: 15px; }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.overlay {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(11, 22, 37, .72);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.overlay__box { width: 100%; max-width: 400px; padding: 34px 28px; border-radius: var(--radius-lg); background: var(--surface); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.overlay__title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--navy); }
.overlay__text { margin: 0; color: var(--muted); font-size: 15px; }
.loader { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid #EDE5D3; border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: max-content; max-width: min(92vw, 460px);
  padding: 13px 18px; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 14.5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
