/* Trial wizard (details -> e-mail code -> live build animation). Self-contained: no dependency on the utility CSS. */
.tw { --tw-brand: #2456f5; --tw-brand-2: #5b86ff; --tw-ink: #0c1a45; --tw-muted: #5b6688; --tw-line: #e3e8f5; --tw-ok: #12a05c; --tw-soft: #f4f7ff;
  position: relative; background: #fff; border: 1px solid var(--tw-line); border-radius: 22px; padding: 28px; box-shadow: 0 18px 50px -24px rgba(20, 40, 120, .28); overflow: hidden; }
@media (max-width: 560px) { .tw { padding: 20px 16px; border-radius: 18px; } }
.tw [hidden] { display: none !important; }

/* step indicator */
.tw-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.tw-steps li { flex: 1; display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; color: var(--tw-muted); position: relative; }
.tw-steps li b { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--tw-soft); color: var(--tw-muted); font-size: .8rem; transition: all .35s; }
.tw-steps li::after { content: ""; flex: 1; height: 2px; background: var(--tw-line); border-radius: 2px; margin-inline-start: 4px; }
.tw-steps li:last-child::after { display: none; }
.tw-steps li.on { color: var(--tw-ink); }
.tw-steps li.on b { background: var(--tw-brand); color: #fff; box-shadow: 0 0 0 5px rgba(36, 86, 245, .14); }
.tw-steps li.done b { background: var(--tw-ok); color: #fff; }
.tw-steps li.done::after { background: var(--tw-ok); }
@media (max-width: 560px) { .tw-steps li span { display: none; } .tw-steps li.on span { display: inline; } }

.tw-view { animation: tw-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes tw-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.tw-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff0f0; color: #b42318; font-size: .9rem; font-weight: 600; }
.tw-msg.warn { background: #fff7e6; color: #8a5a00; }
.tw .field input.bad { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .12); }
.tw .field .err { display: block; margin-top: 4px; color: #b42318; font-size: .82rem; }
.tw .btn[disabled] { opacity: .65; cursor: wait; }

/* OTP */
.tw-otp { text-align: center; max-width: 440px; margin: 0 auto; }
.tw-otp h2 { margin: 12px 0 6px; font-size: 1.45rem; color: var(--tw-ink); }
.tw-mail { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tw-soft); color: var(--tw-brand); animation: tw-float 3.2s ease-in-out infinite; }
@keyframes tw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tw-lead { margin: 0 0 18px; color: var(--tw-muted); line-height: 1.55; }
.tw-code { display: flex; justify-content: center; gap: 9px; margin: 6px 0 18px; direction: ltr; }
.tw-code input { width: 48px; height: 58px; text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--tw-ink); border: 2px solid var(--tw-line); border-radius: 14px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tw-code input:focus { border-color: var(--tw-brand); box-shadow: 0 0 0 4px rgba(36, 86, 245, .14); transform: translateY(-2px); }
.tw-code input.filled { border-color: var(--tw-brand-2); background: var(--tw-soft); }
.tw-code.shake { animation: tw-shake .45s; }
@keyframes tw-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (max-width: 400px) { .tw-code { gap: 6px; } .tw-code input { width: 42px; height: 52px; } }
.tw-sub { margin: 16px 0 0; font-size: .88rem; color: var(--tw-muted); }
.tw-link { background: none; border: 0; padding: 0; color: var(--tw-brand); font: inherit; font-weight: 600; cursor: pointer; }
.tw-link[disabled] { color: var(--tw-muted); cursor: default; font-weight: 500; }

/* build screen */
.tw-build { text-align: center; max-width: 520px; margin: 0 auto; }
.tw-build h2 { margin: 6px 0 6px; font-size: 1.5rem; color: var(--tw-ink); }
.tw-stage { position: relative; width: 210px; height: 210px; margin: 0 auto 12px; display: grid; place-items: center; }
.tw-glow { position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle, rgba(91, 134, 255, .35), rgba(91, 134, 255, 0) 70%); animation: tw-pulse 2.4s ease-in-out infinite; }
@keyframes tw-pulse { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.12); opacity: 1; } }
.tw-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tw-ring circle { fill: none; stroke-width: 6; }
.tw-ring .bg { stroke: var(--tw-soft); }
.tw-ring .fg { stroke: var(--tw-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke .5s; filter: drop-shadow(0 0 5px rgba(36, 86, 245, .45)); }
.tw-pct { position: relative; font-weight: 800; color: var(--tw-ink); display: flex; align-items: baseline; gap: 2px; transition: opacity .3s, transform .3s; }
.tw-pct b { font-size: 2.6rem; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tw-pct small { font-size: 1.1rem; color: var(--tw-muted); }
.tw-orbit { position: absolute; inset: -8px; border-radius: 50%; animation: tw-spin 7s linear infinite; }
.tw-orbit i { position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--tw-brand-2); box-shadow: 0 0 12px var(--tw-brand-2); }
.tw-orbit.o2 { inset: 8px; animation-duration: 5s; animation-direction: reverse; } .tw-orbit.o2 i { width: 8px; height: 8px; margin-left: -4px; background: #ff9a3d; box-shadow: 0 0 10px #ff9a3d; }
.tw-orbit.o3 { inset: -20px; animation-duration: 11s; } .tw-orbit.o3 i { width: 6px; height: 6px; margin-left: -3px; background: #7be0b0; box-shadow: 0 0 8px #7be0b0; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
.tw-check { position: absolute; width: 96px; height: 96px; opacity: 0; transform: scale(.4); }
.tw-check path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }

.tw-tasks { list-style: none; margin: 18px auto 14px; padding: 0; text-align: start; max-width: 380px; display: grid; gap: 7px; }
.tw-tasks li { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 12px; font-size: .92rem; color: #98a2c0; transition: background .3s, color .3s, transform .3s; }
.tw-tasks li .dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #d5dcf0; display: grid; place-items: center; transition: all .3s; }
.tw-tasks li.active { background: var(--tw-soft); color: var(--tw-ink); font-weight: 600; transform: translateX(3px); }
[dir=rtl] .tw-tasks li.active { transform: translateX(-3px); }
.tw-tasks li.active .dot { border-color: var(--tw-brand) transparent var(--tw-brand) var(--tw-brand); animation: tw-spin .8s linear infinite; }
.tw-tasks li.done { color: var(--tw-ink); }
.tw-tasks li.done .dot { background: var(--tw-ok); border-color: var(--tw-ok); animation: tw-pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.tw-tasks li.done .dot::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes tw-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }

.tw-tip { min-height: 2.8em; margin: 6px 0 0; font-size: .86rem; color: var(--tw-muted); transition: opacity .4s; }
.tw-tip.out { opacity: 0; }

/* finished state */
.tw-build.has-error .tw-ring .fg { stroke: #e08a00; }
.tw-build.has-error .tw-orbit { animation-play-state: paused; opacity: .35; }
.tw-build.has-error .tw-tip { display: none; }
.tw-build.is-done .tw-ring .fg { stroke: var(--tw-ok); }
.tw-build.is-done .tw-glow { background: radial-gradient(circle, rgba(18, 160, 92, .35), rgba(18, 160, 92, 0) 70%); }
.tw-build.is-done .tw-orbit { animation-play-state: paused; opacity: 0; transition: opacity .5s; }
.tw-build.is-done .tw-pct { opacity: 0; transform: scale(.6); }
.tw-build.is-done .tw-check { opacity: 1; transform: scale(1); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s; background: var(--tw-ok); border-radius: 50%; padding: 22px; box-sizing: border-box; box-shadow: 0 10px 30px -6px rgba(18, 160, 92, .55); }
.tw-build.is-done .tw-check path { animation: tw-draw .55s .25s ease forwards; }
@keyframes tw-draw { to { stroke-dashoffset: 0; } }
.tw-build.is-done .tw-tip { display: none; }

.tw-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tw-confetti span { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: tw-fall var(--d, 2.6s) var(--l, 0s) cubic-bezier(.3, .2, .7, 1) forwards; }
@keyframes tw-fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x, 0), 520px, 0) rotate(var(--r, 540deg)); } }

@media (prefers-reduced-motion: reduce) {
  .tw *, .tw *::before, .tw *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .tw-orbit { display: none; }
}

/* phone field with country picker (intl-tel-input, assets/vendor/intl-tel-input) */
.tw .tw-phone { margin-bottom: 1rem; font-size: .875rem; font-weight: 600; }
.tw .tw-phone > label { margin-bottom: .25rem; }
.tw .iti { display: block; width: 100%; }
.tw .iti__selected-country { border-radius: 12px 0 0 12px; }
.tw .iti__selected-country-primary { padding: 0 6px 0 14px; }
.tw .iti__selected-dial-code { color: #475569; font-weight: 500; }
.iti--container .iti__dropdown-content, .tw .iti__dropdown-content { border-radius: 12px; box-shadow: 0 16px 40px -16px rgba(20, 40, 120, .35); z-index: 60; font-size: .9rem; font-weight: 400; }
.iti__search-input { padding: 10px 12px; font: inherit; }
