.popup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup__backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(6, 16, 34, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.popup__box { position: relative; width: 100%; max-width: 420px; padding: 32px 26px 26px; text-align: center; background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: popup-in .22s ease-out; }
.popup__box:focus { outline: none; }
.popup__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.popup__icon svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.popup__icon .i-ok, .popup__icon .i-err { display: none; }
.popup--ok .popup__icon { background: var(--ok-soft); color: var(--ok); }
.popup--ok .i-ok { display: block; }
.popup--err .popup__icon { background: var(--err-soft); color: var(--err); }
.popup--err .i-err { display: block; }
.popup__title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 8px; }
.popup__text { color: var(--muted); margin-bottom: 22px; }
@keyframes popup-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .popup__box { animation: none; } }
