.sl-open { overflow: hidden; }
.sl-overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; direction: rtl; font-family: 'Yekan Bakh FaNum', 'Yekan Bakh', Tahoma, sans-serif; }
.sl-overlay[hidden] { display: none; }
.sl-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(17, 17, 17, 0); transition: background .22s; cursor: pointer; }
.sl-overlay.open .sl-backdrop { background: rgba(17, 17, 17, .5); backdrop-filter: blur(3px); }
.sl-dialog { position: relative; width: min(420px, calc(100% - 32px)); padding: 28px 24px 22px; border-radius: 24px; background: #fff; color: #111; box-shadow: 0 30px 80px rgba(17, 17, 17, .3); opacity: 0; transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .25, 1.05), opacity .2s; }
.sl-overlay.open .sl-dialog { opacity: 1; transform: none; }
.sl-dialog h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.sl-lead { margin: 0 0 18px; color: #6d7178; font-size: 14px; line-height: 1.9; }
.sl-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f3f5; color: #111; font-size: 20px; line-height: 1; cursor: pointer; }
.sl-field { display: grid; gap: 6px; margin-bottom: 14px; }
.sl-field span { font-size: 12px; font-weight: 700; color: #4b5563; }
.sl-field input { width: 100%; padding: 13px 14px; border: 1px solid #dbe4f3; border-radius: 14px; background: #f6f8fc; font: inherit; font-size: 18px; font-weight: 800; text-align: center; letter-spacing: .12em; }
.sl-field input:focus { outline: 2px solid #1769e0; background: #fff; }
.sl-primary { width: 100%; padding: 13px 16px; border: 0; border-radius: 999px; background: #111; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.sl-primary:disabled { opacity: .55; cursor: default; }
.sl-row { display: grid; gap: 8px; margin-top: 12px; }
.sl-resend { --p: 0%; position: relative; padding: 10px 14px; border: 1px solid #dbe4f3; border-radius: 12px; background: #fff; color: #1769e0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums; }
.sl-resend:disabled { color: #64748b; cursor: default; background: linear-gradient(to left, #e8eefb var(--p), #f6f8fc var(--p)); transition: background .9s linear; }
.sl-link { border: 0; background: transparent; color: #4b5563; font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sl-error { min-height: 1.4em; margin: 12px 0 0; color: #dc2626; font-size: 13px; font-weight: 700; line-height: 1.8; }
.sl-help { margin: 6px 0 0; font-size: 13px; color: #4b5563; }
.sl-help a { color: #1769e0; font-weight: 800; }
@media (max-width: 768px) {
    .sl-overlay { place-items: end center; }
    .sl-dialog { width: 100%; max-width: 600px; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); opacity: 1; transition: transform .35s cubic-bezier(.2, .9, .25, 1); }
}
@media (prefers-reduced-motion: reduce) { .sl-dialog, .sl-backdrop, .sl-resend { transition: none !important; } }

.sl-newuser { display: flex; flex-direction: column; gap: 12px; }
.sl-newuser-text { margin: 0; font-size: 13px; line-height: 2; color: inherit; }
a.sl-primary { display: block; text-align: center; text-decoration: none; }
.sl-secondary { min-height: 44px; border: 1px solid var(--border-subtle, #dfe2e2); border-radius: 12px; background: #fff; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.sl-secondary:hover { background: #f4f6f6; }
.sl-note { margin: 0; font-size: 11px; line-height: 1.9; opacity: .75; }

.sl-lottie { width: 220px; height: 220px; max-width: 60vw; max-height: 60vw; margin: 0 auto 4px; }
.sl-lottie svg { width: 100% !important; height: 100% !important; }
@media (max-height: 640px) { .sl-lottie { width: 150px; height: 150px; } }
