/* Client portal setup (public/welcome.html) — an iPhone-style first-run: "Hello" in every portal language, then one
   question per screen on clear glass over a soft, drifting sky glow. Tokens copied from customerGlobe.css (Outfit,
   ink #14181d / #3d4550 / #5f6873, near-black pill accent #191c21, link blue #006096, rust / indigo / amber accents,
   white→sky radials, glass r26-30 with blur 22px and inset white highlight). Light only, like the portal. */
:root {
  --ink:#14181d; --ink2:#3d4550; --ink3:#5f6873; --pill:#191c21; --pill2:#2b2f36; --blue:#006096; --sky:#5ba3d9;
  --rust:#a8481a; --indigo:#4a4aa6; --amber:#a86f16;
  --sep:rgba(20,32,48,.1); --sep2:rgba(20,32,48,.07); --out:rgba(20,32,48,.16); --hover:rgba(20,32,48,.05);
  --glass:linear-gradient(150deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,.52) 52%, rgba(255,255,255,.68) 100%);
  --bf:blur(22px) saturate(1.8);
  --shadow:inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255,255,255,.5), inset 0 -14px 28px rgba(255,255,255,.18), 0 24px 60px rgba(18,40,66,.12), 0 2px 6px rgba(18,40,66,.06);
  --ease:cubic-bezier(.2,.75,.2,1); --ease-out:cubic-bezier(.16,1,.3,1);
  --font:'Outfit', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'PingFang SC', 'Hiragino Sans', 'Microsoft YaHei', sans-serif;
  --dur:.62s;
  color-scheme:light;
}
*, *::before, *::after { box-sizing:border-box; }
html, body { height:100%; }
body.wl {
  margin:0; min-height:100%; overflow:hidden; color:var(--ink); font:400 15px/1.5 var(--font);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; -webkit-tap-highlight-color:transparent;
  background:
    radial-gradient(52% 62% at 70% 30%, rgba(170,208,238,.42) 0%, rgba(170,208,238,0) 72%),
    radial-gradient(40% 40% at 0% 100%, rgba(214,232,247,.7) 0%, rgba(214,232,247,0) 70%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
}
[hidden] { display:none !important; }
button, input { font:inherit; color:inherit; }
a { color:var(--blue); }
:focus-visible { outline:2px solid var(--pill); outline-offset:3px; }
.wl-sr { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; padding:0; opacity:0; pointer-events:none; }
.wl-ico { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

/* ── drifting sky glow ─────────────────────────────────────────────────── */
.wl-aurora { position:fixed; inset:-20vmax; z-index:0; pointer-events:none; filter:blur(40px); }
.wl-aurora i { position:absolute; border-radius:50%; mix-blend-mode:multiply; will-change:transform; }
.wl-aurora i:nth-child(1) { width:70vmax; height:70vmax; left:48%; top:-6%; background:radial-gradient(circle, rgba(140,196,238,.55) 0%, rgba(140,196,238,0) 66%); animation:wl-drift1 26s ease-in-out infinite alternate; }
.wl-aurora i:nth-child(2) { width:60vmax; height:60vmax; left:-6%; top:46%; background:radial-gradient(circle, rgba(186,190,238,.42) 0%, rgba(186,190,238,0) 66%); animation:wl-drift2 32s ease-in-out infinite alternate; }
.wl-aurora i:nth-child(3) { width:48vmax; height:48vmax; left:62%; top:62%; background:radial-gradient(circle, rgba(246,222,192,.42) 0%, rgba(246,222,192,0) 66%); animation:wl-drift3 29s ease-in-out infinite alternate; }
@keyframes wl-drift1 { to { transform:translate(-14vmax, 10vmax) scale(1.12); } }
@keyframes wl-drift2 { to { transform:translate(16vmax, -12vmax) scale(.92); } }
@keyframes wl-drift3 { to { transform:translate(-18vmax, -8vmax) scale(1.18); } }

/* ── top bar: back + progress ──────────────────────────────────────────── */
.wl-top { position:fixed; z-index:5; left:0; right:0; top:0; height:64px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:max(10px, env(safe-area-inset-top)) 18px 0; pointer-events:none; }
.wl-top > * { pointer-events:auto; }
.wl-backbtn { justify-self:start; display:inline-flex; align-items:center; gap:4px; height:38px; padding:0 14px 0 8px; border:1px solid rgba(255,255,255,.8); border-radius:99px; background:rgba(255,255,255,.55); -webkit-backdrop-filter:blur(14px) saturate(1.7); backdrop-filter:blur(14px) saturate(1.7); color:var(--ink); cursor:pointer; font-size:14px; box-shadow:0 4px 14px rgba(18,40,66,.06); transition:background .2s, transform .2s var(--ease), opacity .3s; }
.wl-backbtn:hover { background:rgba(255,255,255,.85); }
.wl-backbtn:active { transform:scale(.96); }
[dir=rtl] .wl-backbtn .wl-ico { transform:scaleX(-1); }
.wl-dots { grid-column:2; justify-self:center; display:flex; gap:7px; margin:0; padding:0; list-style:none; opacity:0; transform:translateY(-6px); transition:opacity .5s, transform .5s var(--ease); }
.wl-dots.is-on { opacity:1; transform:none; }
.wl-dots li { width:7px; height:7px; border-radius:99px; background:rgba(20,32,48,.16); transition:width .5s var(--ease-out), background .4s; }
.wl-dots li.is-done { background:rgba(20,32,48,.42); }
.wl-dots li.is-cur { width:26px; background:var(--pill); }
.wl-steptext { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ── stage + screens ───────────────────────────────────────────────────── */
/* clip: the hidden screens sit ±48px off to the side; unclipped, phones widen the layout viewport to fit them
   (and in RTL everything slides over) */
.wl-stage { position:relative; z-index:1; height:100vh; height:100dvh; overflow:hidden; overflow:clip; }
.wl-screen { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:76px 16px 64px; overflow-y:auto; overscroll-behavior:contain;
  opacity:0; visibility:hidden; transform:translate3d(var(--wl-from, 48px), 0, 0) scale(.985); filter:blur(8px);
  transition:opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out), filter var(--dur) var(--ease), visibility 0s linear var(--dur); }
.wl-screen.is-on { opacity:1; visibility:visible; transform:none; filter:none; transition:opacity var(--dur) var(--ease) .06s, transform var(--dur) var(--ease-out) .06s, filter var(--dur) var(--ease) .06s, visibility 0s; }
.wl-screen.is-out { --wl-from:-48px; }
.wl-screen.is-back { --wl-from:-48px; }
.wl-screen.is-back.is-out { --wl-from:48px; }
[dir=rtl] .wl-screen { --wl-from:-48px; }
[dir=rtl] .wl-screen.is-out, [dir=rtl] .wl-screen.is-back { --wl-from:48px; }
[dir=rtl] .wl-screen.is-back.is-out { --wl-from:-48px; }

/* staggered entrance of a screen's parts */
.wl-screen .wl-head > *, .wl-screen .wl-card > :not(.wl-head) { opacity:0; transform:translateY(10px); transition:opacity .5s var(--ease), transform .6s var(--ease-out); }
.wl-screen.is-on .wl-head > *, .wl-screen.is-on .wl-card > :not(.wl-head) { opacity:1; transform:none; }
.wl-screen.is-on .wl-head > :nth-child(1) { transition-delay:.12s; }
.wl-screen.is-on .wl-head > :nth-child(2) { transition-delay:.18s; }
.wl-screen.is-on .wl-head > :nth-child(3) { transition-delay:.24s; }
.wl-screen.is-on .wl-card > :nth-child(2) { transition-delay:.3s; }
.wl-screen.is-on .wl-card > :nth-child(3) { transition-delay:.36s; }
.wl-screen.is-on .wl-card > :nth-child(4) { transition-delay:.42s; }
.wl-screen.is-on .wl-card > :nth-child(5) { transition-delay:.48s; }
.wl-screen.is-on .wl-card > :nth-child(n+6) { transition-delay:.54s; }

/* ── glass card ────────────────────────────────────────────────────────── */
.wl-card { position:relative; display:flex; flex-direction:column; width:min(500px, 100%); margin:auto; padding:34px 34px 28px; border-radius:30px;
  border:1px solid rgba(255,255,255,.85); border-top-color:#fff; background:var(--glass); -webkit-backdrop-filter:var(--bf); backdrop-filter:var(--bf); box-shadow:var(--shadow); }
.wl-head { display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; margin-bottom:22px; }
.wl-head-tight { margin-bottom:14px; }
.wl-head h2 { margin:6px 0 0; font:500 28px/1.15 var(--font); letter-spacing:-.012em; color:var(--ink); text-wrap:balance; }
.wl-head p { margin:0; max-width:400px; font-size:15px; line-height:1.5; color:var(--ink2); text-wrap:pretty; }
.wl-badge { display:grid; place-items:center; width:64px; height:64px; border-radius:22px; color:var(--blue);
  background:linear-gradient(160deg, #ffffff 0%, #eaf3fb 100%); border:1px solid rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 #fff, 0 10px 26px rgba(0,96,150,.14), 0 1px 3px rgba(18,40,66,.08); animation:wl-float 6s ease-in-out infinite; }
.wl-badge .wl-ico { width:30px; height:30px; stroke-width:1.5; }
.wl-badge-co { font:500 24px/1 var(--font); color:#fff; letter-spacing:.02em; background:linear-gradient(150deg, #2a7fbd 0%, var(--blue) 60%, #0b4e78 100%); border-color:rgba(255,255,255,.4); }
.wl-badge-warn { color:var(--amber); background:linear-gradient(160deg, #fff 0%, #fbf1df 100%); box-shadow:inset 0 1px 0 #fff, 0 10px 26px rgba(168,111,22,.16); }
@keyframes wl-float { 50% { transform:translateY(-4px); } }

.wl-foot { margin-top:22px; display:flex; flex-direction:column; gap:10px; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.wl-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:54px; padding:0 26px; border:0; border-radius:99px;
  background:var(--pill); color:#fff; font:500 16px/1.2 var(--font); letter-spacing:.005em; text-decoration:none; cursor:pointer; overflow:hidden;
  box-shadow:0 10px 24px rgba(25,28,33,.18), inset 0 1px 0 rgba(255,255,255,.12); transition:transform .25s var(--ease), box-shadow .25s, background .2s, opacity .3s; }
.wl-btn::after { content:''; position:absolute; inset:0; background:linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); transform:translateX(-120%); transition:transform .9s var(--ease); }
.wl-btn:hover:not(:disabled) { background:var(--pill2); box-shadow:0 14px 30px rgba(25,28,33,.22), inset 0 1px 0 rgba(255,255,255,.14); transform:translateY(-1px); }
.wl-btn:hover:not(:disabled)::after { transform:translateX(120%); }
.wl-btn:active:not(:disabled) { transform:scale(.98); }
.wl-btn:disabled { opacity:.32; cursor:default; box-shadow:none; }
.wl-btn .wl-ico { width:19px; height:19px; transition:transform .3s var(--ease); }
.wl-btn:hover .wl-ico { transform:translateX(3px); }
[dir=rtl] .wl-btn .wl-ico { transform:scaleX(-1); }
[dir=rtl] .wl-btn:hover .wl-ico { transform:scaleX(-1) translateX(3px); }
.wl-btn.is-busy { color:transparent; pointer-events:none; }
.wl-btn.is-busy::before { content:''; position:absolute; left:50%; top:50%; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; animation:wl-spin .8s linear infinite; }
.wl-btn-soft { width:100%; background:rgba(255,255,255,.75); color:var(--ink); border:1px solid var(--out); box-shadow:0 4px 14px rgba(18,40,66,.06); }
.wl-btn-soft:hover:not(:disabled) { background:#fff; color:var(--ink); }
.wl-mini { flex:none; height:32px; padding:0 13px; border:1px solid var(--out); border-radius:99px; background:rgba(255,255,255,.8); font-size:12.5px; cursor:pointer; transition:background .2s; }
.wl-mini:hover { background:#fff; }
.wl-mini.is-ok { background:var(--pill); color:#fff; border-color:var(--pill); }
@keyframes wl-spin { to { transform:rotate(360deg); } }

/* ── hello ─────────────────────────────────────────────────────────────── */
.wl-hello { flex-direction:column; justify-content:space-between; padding:max(30px, env(safe-area-inset-top)) 20px max(40px, calc(env(safe-area-inset-bottom) + 28px)); }
.wl-logo { width:174px; height:auto; opacity:0; transform:translateY(-8px); animation:wl-in 1.1s var(--ease-out) .2s forwards; }
.wl-hello-mid { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; }
.wl-hello-word { position:relative; display:grid; place-items:center; margin:0; min-height:1.3em; width:100%; font:200 clamp(60px, 13vw, 128px)/1.15 var(--font); letter-spacing:-.025em; }
.wl-hello-word span { grid-area:1/1; white-space:nowrap; padding:0 .08em .06em;
  background:linear-gradient(100deg, #14181d 0%, #1d3b55 38%, #006096 52%, #1d3b55 66%, #14181d 100%); background-size:240% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent;
  opacity:0; filter:blur(16px); transform:translateY(22px) scale(.97); }
.wl-hello-word span.in { animation:wl-word-in 1.15s var(--ease-out) forwards, wl-sheen 3.2s ease-in-out .2s forwards; }
.wl-hello-word span.out { animation:wl-word-out .75s var(--ease) forwards; }
@keyframes wl-word-in { 0% { opacity:0; filter:blur(16px); transform:translateY(22px) scale(.97); letter-spacing:.04em; } 60% { opacity:1; } 100% { opacity:1; filter:blur(0); transform:none; letter-spacing:-.025em; } }
@keyframes wl-word-out { from { opacity:1; filter:blur(0); transform:none; } to { opacity:0; filter:blur(14px); transform:translateY(-18px) scale(1.02); } }
@keyframes wl-sheen { from { background-position:100% 0; } to { background-position:0% 0; } }
.wl-wave { width:min(320px, 70vw); height:28px; overflow:visible; }
.wl-wave path { fill:none; stroke:url(#wlWaveG); stroke-width:2.2; stroke-linecap:round; stroke-dasharray:360; stroke-dashoffset:360; }
.wl-wave.draw path { animation:wl-draw 1.6s var(--ease-out) forwards; }
@keyframes wl-draw { to { stroke-dashoffset:0; } }
.wl-for { margin:14px 0 0; display:inline-flex; align-items:center; gap:8px; padding:7px 15px; border-radius:99px; border:1px solid rgba(255,255,255,.85); background:rgba(255,255,255,.5);
  -webkit-backdrop-filter:blur(14px) saturate(1.7); backdrop-filter:blur(14px) saturate(1.7); font-size:13px; color:var(--ink2); animation:wl-in .9s var(--ease-out) both; }
.wl-for b { font-weight:500; color:var(--ink); }
.wl-for::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px rgba(0,96,150,.12); }
.wl-hello-foot { display:flex; justify-content:center; width:100%; opacity:0; animation:wl-in 1s var(--ease-out) 1.1s forwards; }
.wl-btn-start { width:auto; min-width:220px; }
.wl-btn-start::before { content:''; position:absolute; inset:-6px; border-radius:99px; border:1px solid rgba(25,28,33,.22); animation:wl-pulse 2.6s var(--ease) 2s infinite; pointer-events:none; }
@keyframes wl-pulse { 0% { opacity:.9; transform:scale(.96); } 70%, 100% { opacity:0; transform:scale(1.14); } }
@keyframes wl-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── language list ─────────────────────────────────────────────────────── */
.wl-langs { position:relative; list-style:none; margin:0 -10px; padding:4px; max-height:min(46vh, 430px); overflow-y:auto; overscroll-behavior:contain; border-radius:20px;
  mask-image:linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); }
.wl-langs li { display:flex; align-items:center; gap:14px; min-height:58px; padding:8px 14px; border-radius:16px; cursor:pointer; transition:background .2s, box-shadow .3s; }
.wl-langs li + li { margin-top:2px; }
.wl-langs li:hover { background:rgba(255,255,255,.55); }
.wl-langs li:focus-visible { outline:2px solid var(--pill); outline-offset:-2px; }
.wl-langs li[aria-checked=true] { background:#fff; box-shadow:0 6px 18px rgba(18,40,66,.08), inset 0 0 0 1px rgba(20,32,48,.06); }
.wl-langs .nm { flex:1; min-width:0; display:flex; flex-direction:column; }
.wl-langs .nm b, .wl-langs .nm small { unicode-bidi:isolate; text-align:start; }
.wl-langs .nm b { font-weight:500; font-size:17px; line-height:1.25; color:var(--ink); }
.wl-langs .nm small { font-size:12.5px; color:var(--ink3); }
.wl-langs .ck { flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--out); transition:background .25s, border-color .25s, transform .35s var(--ease-out); }
.wl-langs .ck svg { width:14px; height:14px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:24; transition:stroke-dashoffset .35s var(--ease) .05s; }
.wl-langs li[aria-checked=true] .ck { background:var(--pill); border-color:var(--pill); transform:scale(1.06); }
.wl-langs li[aria-checked=true] .ck svg { stroke-dashoffset:0; }
/* text fading while the page switches language */
.wl-switching [data-t], .wl-switching #wlWelT, .wl-switching #wlWelS, .wl-switching #wlDoneT, .wl-switching #wlDoneTip { opacity:.0; transition:opacity .16s; }
[data-t], #wlWelT, #wlWelS, #wlDoneT, #wlDoneTip { transition:opacity .28s; }

/* ── welcome ───────────────────────────────────────────────────────────── */
.wl-features { list-style:none; margin:0; padding:6px; border-radius:22px; background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.8); }
.wl-features li { display:flex; align-items:center; gap:14px; padding:11px 10px; }
.wl-features li + li { border-top:1px solid var(--sep2); }
.wl-fico { flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:14px; color:var(--c); background:color-mix(in srgb, var(--c) 9%, #fff); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--c) 14%, transparent); }
.wl-features b { display:block; font-weight:500; font-size:15px; }
.wl-features small { display:block; font-size:13px; color:var(--ink3); line-height:1.35; }
.wl-note { display:flex; align-items:center; justify-content:center; gap:7px; margin:16px 0 0; font-size:13px; color:var(--ink3); }
.wl-note .wl-ico { width:16px; height:16px; }

/* ── fields ────────────────────────────────────────────────────────────── */
.wl-who { display:flex; align-items:center; gap:12px; padding:10px 14px; margin-bottom:16px; border-radius:18px; background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85); }
.wl-who-av { display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:linear-gradient(150deg, #2a7fbd, var(--blue)); color:#fff; font-weight:500; flex:none; }
.wl-who small { display:block; font-size:12px; color:var(--ink3); }
.wl-who b { display:block; font-weight:500; word-break:break-all; direction:ltr; unicode-bidi:plaintext; }
.wl-field { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; }
.wl-field > span:first-child { font-size:13px; color:var(--ink3); padding:0 4px; }
.wl-input { width:100%; height:54px; padding:0 18px; border:1px solid var(--out); border-radius:18px; background:rgba(255,255,255,.82); font-size:17px; color:var(--ink);
  transition:border-color .2s, box-shadow .25s, background .2s; -webkit-appearance:none; appearance:none; }
.wl-input:focus { outline:none; border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px rgba(0,96,150,.13); }
.wl-input-temp { text-align:center; font-size:20px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; }
.wl-input-temp::placeholder { letter-spacing:.1em; color:rgba(20,32,48,.22); font-weight:400; }
.wl-pw { position:relative; display:block; }
.wl-pw .wl-input { padding-inline-end:84px; }
.wl-eye { position:absolute; inset-inline-end:8px; top:50%; transform:translateY(-50%); height:38px; padding:0 12px; border:0; border-radius:12px; background:transparent; color:var(--ink3); font-size:13px; cursor:pointer; }
.wl-eye:hover { background:var(--hover); color:var(--ink); }
.wl-err { margin:2px 0 0; padding:11px 14px; border-radius:14px; background:#fbf0ea; border:1px solid #f0d8cb; color:#7a3412; font-size:13.5px; line-height:1.4; animation:wl-in .35s var(--ease-out); }
.wl-shake { animation:wl-shake .45s var(--ease); }
@keyframes wl-shake { 15%, 55% { transform:translateX(-8px); } 35%, 75% { transform:translateX(8px); } 90% { transform:translateX(-2px); } }

/* password meter + rules */
.wl-meter { display:grid; grid-template-columns:1fr 1fr 1fr auto; align-items:center; gap:6px; margin:-4px 4px 16px; }
.wl-meter i { height:4px; border-radius:99px; background:rgba(20,32,48,.1); position:relative; overflow:hidden; }
.wl-meter i::after { content:''; position:absolute; inset:0; transform:scaleX(0); transform-origin:left; border-radius:inherit; background:var(--mc, var(--rust)); transition:transform .45s var(--ease-out), background .3s; }
[dir=rtl] .wl-meter i::after { transform-origin:right; }
.wl-meter[data-level="1"] { --mc:var(--rust); } .wl-meter[data-level="2"] { --mc:var(--amber); } .wl-meter[data-level="3"] { --mc:var(--blue); }
.wl-meter[data-level="1"] i:nth-child(1)::after, .wl-meter[data-level="2"] i:nth-child(-n+2)::after, .wl-meter[data-level="3"] i::after { transform:scaleX(1); }
.wl-meter span { min-width:56px; text-align:end; font-size:12px; color:var(--mc, var(--ink3)); }
.wl-rules { list-style:none; margin:2px 0 0; padding:0 4px; display:flex; flex-direction:column; gap:7px; }
.wl-rules li { display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--ink3); transition:color .3s; }
.wl-rules i { position:relative; flex:none; width:18px; height:18px; border-radius:50%; border:1.5px solid var(--out); transition:background .3s, border-color .3s, transform .4s var(--ease-out); }
.wl-rules i::after { content:''; position:absolute; left:5px; top:2px; width:4px; height:8px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg) scale(0); transition:transform .3s var(--ease-out) .05s; }
.wl-rules li.ok { color:var(--ink); }
.wl-rules li.ok i { background:var(--blue); border-color:var(--blue); transform:scale(1.05); }
.wl-rules li.ok i::after { transform:rotate(45deg) scale(1); }

/* ── two-step intro ────────────────────────────────────────────────────── */
.wl-shield { width:76px; height:76px; display:grid; place-items:center; border-radius:26px; background:linear-gradient(160deg, #fff 0%, #e8f1fa 100%); border:1px solid rgba(255,255,255,.9); box-shadow:inset 0 1px 0 #fff, 0 12px 30px rgba(0,96,150,.16); }
.wl-shield svg { width:52px; height:52px; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.wl-shield .s1 { stroke:var(--blue); stroke-width:2.4; fill:rgba(0,96,150,.06); stroke-dasharray:180; stroke-dashoffset:180; }
.wl-shield .s2 { stroke:var(--pill); stroke-width:3; stroke-dasharray:40; stroke-dashoffset:40; }
.wl-screen.is-on .wl-shield .s1 { animation:wl-draw 1.3s var(--ease-out) .35s forwards; }
.wl-screen.is-on .wl-shield .s2 { animation:wl-draw .6s var(--ease-out) 1.25s forwards; }
.wl-phone { position:relative; display:flex; align-items:center; justify-content:center; gap:14px; margin:0 auto 4px; padding:14px 22px; border-radius:20px; background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.9); box-shadow:0 8px 22px rgba(18,40,66,.06); }
.wl-phone-code { display:flex; gap:5px; direction:ltr; font:300 30px/1 var(--font); letter-spacing:.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.wl-phone-code .gap { width:6px; }
.wl-phone-code span { display:inline-block; animation:wl-digit 6s var(--ease) infinite; }
.wl-phone-code span:nth-child(2) { animation-delay:.05s; } .wl-phone-code span:nth-child(3) { animation-delay:.1s; }
.wl-phone-code span:nth-child(5) { animation-delay:.15s; } .wl-phone-code span:nth-child(6) { animation-delay:.2s; } .wl-phone-code span:nth-child(7) { animation-delay:.25s; }
@keyframes wl-digit { 0%, 90% { opacity:1; transform:none; filter:none; } 94% { opacity:0; transform:translateY(-8px); filter:blur(3px); } 96% { opacity:0; transform:translateY(8px); } 100% { opacity:1; transform:none; } }
.wl-phone-ring { width:28px; height:28px; border-radius:50%; background:conic-gradient(var(--blue) var(--p, 100%), rgba(20,32,48,.1) 0); -webkit-mask:radial-gradient(circle, transparent 9px, #000 10px); mask:radial-gradient(circle, transparent 9px, #000 10px); animation:wl-ring 6s linear infinite; }
@property --p { syntax:'<percentage>'; inherits:false; initial-value:100%; }
@keyframes wl-ring { from { --p:100%; } to { --p:0%; } }
.wl-apps-l { margin:16px 0 8px; text-align:center; font-size:13px; color:var(--ink3); }
.wl-apps { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.wl-apps a { display:inline-flex; align-items:center; gap:8px; height:38px; padding:0 14px 0 6px; border-radius:99px; border:1px solid var(--out); background:rgba(255,255,255,.78); color:var(--ink); text-decoration:none; font-size:13px; transition:background .2s, transform .2s var(--ease); }
.wl-apps a:hover { background:#fff; transform:translateY(-1px); }
.wl-apps a .lg { display:grid; place-items:center; width:26px; height:26px; border-radius:50%; color:#fff; font-size:12px; font-weight:600; }
.wl-apps a small { color:var(--ink3); font-size:11.5px; }

/* ── QR + code ─────────────────────────────────────────────────────────── */
.wl-qr { display:flex; justify-content:center; margin-bottom:12px; }
.wl-qr-frame { position:relative; width:216px; height:216px; padding:14px; border-radius:26px; background:#fff; box-shadow:0 14px 34px rgba(18,40,66,.12), inset 0 0 0 1px rgba(20,32,48,.06); overflow:hidden; }
.wl-qr-frame::before, .wl-qr-frame::after { content:''; position:absolute; width:34px; height:34px; border:2.5px solid var(--blue); pointer-events:none; }
.wl-qr-frame::before { left:8px; top:8px; border-right:0; border-bottom:0; border-radius:12px 0 0 0; }
.wl-qr-frame::after { right:8px; bottom:8px; border-left:0; border-top:0; border-radius:0 0 12px 0; }
.wl-qr-frame img { display:block; width:100%; height:100%; image-rendering:pixelated; animation:wl-qr-in .8s var(--ease-out); }
@keyframes wl-qr-in { from { opacity:0; transform:scale(.94); filter:blur(6px); } to { opacity:1; transform:none; filter:none; } }
.wl-scanline { position:absolute; left:14px; right:14px; top:14px; height:46px; background:linear-gradient(180deg, rgba(0,96,150,0) 0%, rgba(0,96,150,.12) 80%, rgba(0,96,150,.5) 100%); border-bottom:1.5px solid rgba(0,96,150,.6); animation:wl-scan 2.8s ease-in-out infinite; pointer-events:none; }
@keyframes wl-scan { 0% { transform:translateY(-46px); opacity:0; } 15% { opacity:1; } 85% { opacity:1; } 100% { transform:translateY(176px); opacity:0; } }
.wl-spinner { position:absolute; left:50%; top:50%; width:26px; height:26px; margin:-13px 0 0 -13px; border-radius:50%; border:2px solid rgba(20,32,48,.12); border-top-color:var(--blue); animation:wl-spin .8s linear infinite; }
#wlOpenApp { margin-bottom:10px; }
.wl-key { margin:0 0 16px; text-align:center; }
.wl-key summary { display:inline-block; cursor:pointer; list-style:none; font-size:13px; color:var(--blue); padding:4px 8px; border-radius:10px; }
.wl-key summary::-webkit-details-marker { display:none; }
.wl-key summary:hover { background:rgba(0,96,150,.06); }
.wl-key-row { display:flex; align-items:center; gap:10px; margin-top:8px; padding:10px 10px 10px 16px; border-radius:16px; background:rgba(255,255,255,.75); border:1px solid rgba(255,255,255,.9); animation:wl-in .35s var(--ease-out); }
.wl-key-row code { flex:1; min-width:0; font:500 14px/1.4 var(--font); letter-spacing:.12em; word-break:break-all; text-align:start; color:var(--ink); }
.wl-field-code > span:first-child { text-align:center; }
.wl-code { position:relative; display:grid; grid-template-columns:repeat(6, 1fr); gap:8px; }
.wl-code input { position:absolute; inset:0; z-index:2; width:100%; height:100%; opacity:0; border:0; font-size:16px; caret-color:transparent; cursor:text; }
.wl-code i { position:relative; display:grid; place-items:center; height:60px; border-radius:16px; border:1px solid var(--out); background:rgba(255,255,255,.82); font:400 26px/1 var(--font); font-style:normal; color:var(--ink); transition:border-color .2s, box-shadow .25s, background .2s, transform .25s var(--ease-out); }
.wl-code i.has { animation:wl-pop .28s var(--ease-out); background:#fff; }
.wl-code.is-focus i.cur { border-color:var(--blue); box-shadow:0 0 0 4px rgba(0,96,150,.13); background:#fff; }
.wl-code.is-focus i.cur::after { content:''; width:2px; height:26px; background:var(--blue); border-radius:2px; animation:wl-blink 1s steps(1) infinite; }
.wl-code.is-ok i { border-color:var(--blue); background:#f2f8fd; }
@keyframes wl-pop { from { transform:scale(.88); } to { transform:none; } }
@keyframes wl-blink { 50% { opacity:0; } }

/* ── done ──────────────────────────────────────────────────────────────── */
.wl-confetti { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }
.wl-done .wl-card { z-index:1; }
.wl-check { width:96px; height:96px; }
.wl-check svg { width:96px; height:96px; fill:none; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
.wl-check circle { stroke:var(--blue); stroke-width:3; fill:rgba(0,96,150,.06); stroke-dasharray:252; stroke-dashoffset:252; transform:rotate(-90deg); transform-origin:center; }
.wl-check path { stroke:var(--pill); stroke-width:5; stroke-dasharray:60; stroke-dashoffset:60; }
.wl-screen.is-on .wl-check circle { animation:wl-draw 1s var(--ease-out) .25s forwards, wl-glow 2.4s ease-out 1.1s; }
.wl-screen.is-on .wl-check path { animation:wl-draw .55s var(--ease-out) 1s forwards; }
@keyframes wl-glow { 0% { filter:drop-shadow(0 0 0 rgba(0,96,150,.4)); } 40% { filter:drop-shadow(0 0 14px rgba(0,96,150,.35)); } 100% { filter:drop-shadow(0 0 0 rgba(0,96,150,0)); } }
.wl-tip { margin:0; padding:14px 16px; border-radius:18px; background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85); font-size:13.5px; line-height:1.5; color:var(--ink2); text-align:center; }
.wl-tip b { font-weight:500; color:var(--ink); unicode-bidi:plaintext; }

/* ── language switch in the top bar (every screen after the language step) ── */
.wl-langpick { grid-column:3; justify-self:end; position:relative; display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 12px 0 10px; border:1px solid rgba(255,255,255,.8); border-radius:99px;
  background:rgba(255,255,255,.55); -webkit-backdrop-filter:blur(14px) saturate(1.7); backdrop-filter:blur(14px) saturate(1.7); color:var(--ink2); box-shadow:0 4px 14px rgba(18,40,66,.06); cursor:pointer; animation:wl-in .5s var(--ease-out); }
.wl-langpick .wl-ico { width:16px; height:16px; }
.wl-langpick select { max-width:150px; border:0; background:transparent; font:400 13.5px var(--font); color:var(--ink); cursor:pointer; -webkit-appearance:none; appearance:none; padding-inline-end:4px; }
.wl-langpick select:focus { outline:none; }
.wl-langpick:focus-within { outline:2px solid var(--pill); outline-offset:2px; }
.wl-langpick:hover { background:rgba(255,255,255,.85); }

/* ── forgot / reset ────────────────────────────────────────────────────── */
.wl-link { align-self:center; margin-top:4px; padding:8px 12px; border:0; border-radius:12px; background:none; color:var(--blue); font:400 14px var(--font); text-decoration:none; cursor:pointer; }
.wl-link:hover { background:rgba(0,96,150,.06); }
.wl-link:disabled { color:var(--ink3); cursor:default; background:none; }
.wl-small { margin:14px 0 0; font-size:12.5px; line-height:1.45; color:var(--ink3); text-align:center; }
.wl-mail { width:84px; height:84px; display:grid; place-items:center; border-radius:28px; background:linear-gradient(160deg, #fff 0%, #e8f1fa 100%); border:1px solid rgba(255,255,255,.9); box-shadow:inset 0 1px 0 #fff, 0 12px 30px rgba(0,96,150,.16); }
.wl-mail svg { width:56px; height:56px; fill:none; stroke-linecap:round; stroke-linejoin:round; overflow:visible; }
.wl-mail .m1 { stroke:var(--blue); stroke-width:2.4; fill:rgba(0,96,150,.05); stroke-dasharray:170; stroke-dashoffset:170; }
.wl-mail .m2 { stroke:var(--blue); stroke-width:2.4; stroke-dasharray:64; stroke-dashoffset:64; }
.wl-mail .m3 { fill:var(--pill); stroke:#fff; stroke-width:2.5; transform:scale(0); transform-origin:50px 16px; }
.wl-mail .m4 { stroke:#fff; stroke-width:2.2; stroke-dasharray:14; stroke-dashoffset:14; }
.wl-screen.is-on .wl-mail .m1 { animation:wl-draw 1s var(--ease-out) .3s forwards; }
.wl-screen.is-on .wl-mail .m2 { animation:wl-draw .7s var(--ease-out) .9s forwards; }
.wl-screen.is-on .wl-mail .m3 { animation:wl-popin .5s var(--ease-out) 1.4s forwards; }
.wl-screen.is-on .wl-mail .m4 { animation:wl-draw .35s var(--ease-out) 1.75s forwards; }
.wl-screen.is-on .wl-mail svg { animation:wl-fly 3.6s ease-in-out 2.2s infinite; }
@keyframes wl-popin { to { transform:scale(1); } }
@keyframes wl-fly { 50% { transform:translateY(-4px) rotate(-2deg); } }
#wlSentS b, #wlScanS b { font-weight:500; color:var(--ink); unicode-bidi:plaintext; }
.wl-spinner-lg { position:static; display:block; width:34px; height:34px; margin:0; border-width:2.5px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.wl-bottom { position:fixed; z-index:2; left:0; right:0; bottom:0; display:flex; justify-content:center; gap:18px; flex-wrap:wrap; padding:10px 16px max(12px, env(safe-area-inset-bottom)); font-size:12px; color:var(--ink3); pointer-events:none; transition:opacity .5s; }
.wl-bottom .wl-ico { width:14px; height:14px; }
.wl-secured { display:inline-flex; align-items:center; gap:6px; }
body[data-screen=hello] .wl-bottom { opacity:0; }

/* ── phones: the card dissolves into the page, buttons sit at the bottom like iOS setup ── */
@media (max-width:560px) {
  .wl-screen { align-items:stretch; padding:70px 18px 18px; }
  .wl-screen.wl-hello { align-items:center; padding-top:max(30px, env(safe-area-inset-top)); }
  .wl-card { width:100%; min-height:100%; padding:6px 2px 0; border:0; border-radius:0; background:none; -webkit-backdrop-filter:none; backdrop-filter:none; box-shadow:none; }
  .wl-head { margin-top:6px; }
  .wl-head h2 { font-size:27px; }
  .wl-foot { margin-top:auto; padding-top:20px; padding-bottom:max(36px, calc(env(safe-area-inset-bottom) + 30px)); }
  .wl-langs { max-height:none; flex:1 1 auto; min-height:0; margin:0 -6px; }
  /* the language list scrolls inside the screen; Continue stays pinned at the bottom */
  .wl-screen[data-screen=language] { overflow:hidden; }
  .wl-screen[data-screen=language] .wl-card { height:100%; min-height:0; }
  .wl-screen[data-screen=language] .wl-head { margin-bottom:12px; }
  .wl-bottom .wl-help { display:none; }
  .wl-top { grid-template-columns:auto 1fr auto; gap:8px; }
  .wl-langpick select { max-width:96px; }
  .wl-link { margin-top:0; }
  body:not([data-screen=hello]) .wl-bottom { display:none; }
  .wl-qr-frame { width:188px; height:188px; }
  @keyframes wl-scan { 0% { transform:translateY(-46px); opacity:0; } 15% { opacity:1; } 85% { opacity:1; } 100% { transform:translateY(150px); opacity:0; } }
}
@media (max-height:700px) and (min-width:561px) {
  .wl-card { padding:24px 30px 22px; }
  .wl-head { margin-bottom:14px; }
  .wl-langs { max-height:38vh; }
}

/* ── less motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root { --dur:.2s; }
  .wl-aurora i, .wl-badge, .wl-phone-code span, .wl-phone-ring, .wl-scanline, .wl-btn-start::before { animation:none !important; }
  .wl-screen { transform:none !important; filter:none !important; }
  .wl-hello-word span.in { animation:wl-fade .4s linear forwards; filter:none; transform:none; }
  .wl-hello-word span.out { animation:wl-fade .3s linear reverse forwards; }
  .wl-screen .wl-head > *, .wl-screen .wl-card > :not(.wl-head) { transform:none; transition-delay:0s !important; }
}
@keyframes wl-fade { from { opacity:0; } to { opacity:1; } }
