.wf { --wf-ok:#12A97A; --wf-ok-ink:#0B8A63; --wf-usdc:#2775CA; --wf-warn:#D97706;
  position:relative; isolation:isolate; overflow:hidden; margin-bottom:24px; border:1px solid var(--line); border-radius:22px; background:var(--surface);
  box-shadow:0 1px 2px rgba(19,28,59,.04),0 34px 80px -46px rgba(19,28,59,.38); container-type:inline-size; }
.wf::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(600px 260px at 50% 30%,rgba(39,117,202,.09),transparent 70%),
    linear-gradient(rgba(61,107,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(61,107,255,.04) 1px,transparent 1px);
  background-size:auto,32px 32px,32px 32px;
  -webkit-mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 30%,transparent 88%); mask-image:radial-gradient(ellipse 85% 75% at 50% 40%,#000 30%,transparent 88%); }
.wf-head { padding:26px 28px 4px; }
.wf-kicker { display:inline-flex; align-items:center; gap:10px; margin:0; font:600 11.5px/1.5 'JetBrains Mono',monospace; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
html[lang="ar"] .wf-kicker,html[lang="hi"] .wf-kicker { letter-spacing:0; font-family:inherit; font-size:13px; text-transform:none; }
.wf-kicker i { width:8px; height:8px; border-radius:50%; background:var(--wf-ok); animation:wfPing 2.2s ease-out infinite; }
@keyframes wfPing { 0% { box-shadow:0 0 0 0 rgba(18,169,122,.5); } 70%,100% { box-shadow:0 0 0 10px rgba(18,169,122,0); } }
.wf h2 { margin:8px 0 8px; font-size:clamp(22px,2.6cqi,30px); line-height:1.15; font-weight:650; letter-spacing:-.025em; color:var(--ink); }
.wf-lead { margin:0; max-width:68ch; font-size:15px; line-height:1.65; color:var(--ink-2); }

.wf-flow { position:relative; display:grid; grid-template-columns:1fr 1.5fr 1fr; align-items:center; gap:16px; margin:18px 20px 0; padding:22px 16px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,var(--surface),var(--surface-alt)); }
.wf-track { position:absolute; top:calc(50% - 27px); height:3px; border-radius:3px; background:var(--line); overflow:hidden; z-index:0; }
.wf-track-a { left:calc(100% / 7 + 10px); right:calc(100% / 7 * 4.5); }
.wf-track-b { left:calc(100% / 7 * 4.5); right:calc(100% / 7 + 10px); }
[dir="rtl"] .wf-track-a { left:calc(100% / 7 * 4.5); right:calc(100% / 7 + 10px); }
[dir="rtl"] .wf-track-b { left:calc(100% / 7 + 10px); right:calc(100% / 7 * 4.5); }
.wf-track i { position:absolute; inset:0; background:repeating-linear-gradient(90deg,var(--wf-usdc) 0 10px,transparent 10px 18px); opacity:0; transition:opacity .3s; }
.wf-track.is-on i { opacity:1; animation:wfDash .6s linear infinite; }
[dir="rtl"] .wf-track.is-on i { animation-direction:reverse; }
@keyframes wfDash { from { background-position:0 0; } to { background-position:18px 0; } }
.wf-node { position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; min-width:0; }
.wf-ico { display:grid; place-items:center; width:56px; height:56px; border-radius:16px; background:var(--surface); border:1.5px solid var(--line-2); color:var(--ink-2); box-shadow:0 12px 26px -18px rgba(19,28,59,.5); transition:border-color .3s, color .3s, box-shadow .3s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.wf-ico svg { width:26px; height:26px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.wf-node>b { font-size:14px; font-weight:650; line-height:1.3; color:var(--ink); }
.wf-node small { font-size:12px; line-height:1.4; color:var(--ink-3); min-height:1.4em; }
.wf-dep-v,.wf-wal-v { font:700 13px 'JetBrains Mono',monospace!important; color:var(--wf-usdc)!important; direction:ltr; unicode-bidi:isolate; }
.wf-wal-v { color:var(--wf-ok-ink)!important; }
.wf-acc { padding:14px 12px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--line); box-shadow:0 18px 40px -28px rgba(19,28,59,.5); }
.wf-acc .wf-ico { width:64px; height:64px; border-radius:18px; color:var(--wf-usdc); border-color:rgba(39,117,202,.4); }
.wf-bal { margin:2px 0 0; font:700 clamp(24px,3.4cqi,32px)/1.1 'JetBrains Mono',monospace; letter-spacing:-.03em; color:var(--ink); direction:ltr; unicode-bidi:isolate; font-variant-numeric:tabular-nums; }
.wf-vault { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:8px 0 0; padding:6px 10px; border-radius:10px; background:var(--surface-alt); font-size:12px; line-height:1.35; color:var(--ink-2); }
.wf-keys { display:inline-flex; gap:4px; }
.wf-keys i { display:grid; place-items:center; width:20px; height:20px; border-radius:6px; background:var(--surface); border:1px solid var(--line); color:var(--ink-3); transition:background .3s, color .3s, border-color .3s; }
.wf-keys i svg { width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.wf-keys i.is-on { background:var(--wf-ok); border-color:var(--wf-ok); color:#fff; }
.wf-acc.is-busy .wf-ico { box-shadow:0 0 0 6px rgba(39,117,202,.12),0 12px 26px -18px rgba(19,28,59,.5); animation:wfBeat 1.15s ease-in-out infinite; }
@keyframes wfBeat { 50% { transform:scale(1.06); } }
.wf-acc.is-open .wf-ico { border-color:var(--wf-ok); color:var(--wf-ok); }
.wf-wal.is-in .wf-ico { border-color:var(--wf-ok); color:var(--wf-ok); transform:scale(1.08); }
.wf[data-scene="0"] .wf-dep .wf-ico { border-color:var(--wf-usdc); color:var(--wf-usdc); }
.wf[data-scene="2"] .wf-wal .wf-ico { border-color:rgba(39,117,202,.5); }
.wf-coins { position:absolute; inset:0; pointer-events:none; z-index:3; }
.wf-coin { position:absolute; left:-11px; top:-11px; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#5AA2F0,var(--wf-usdc) 65%); color:#fff; font:800 11px/1 Inter,sans-serif; font-style:normal; box-shadow:0 6px 14px -6px rgba(39,117,202,.8); }

.wf-panels { display:grid; margin:16px 20px 0; }
.wf-panel { grid-area:1/1; min-width:0; padding:16px 18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,var(--surface),var(--surface-alt)); opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1), visibility 0s .45s; }
.wf-panel.is-on { opacity:1; visibility:visible; transform:none; transition:opacity .45s ease .05s, transform .55s cubic-bezier(.16,1,.3,1) .05s, visibility 0s; }
.wf-opts { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.wf-opt { display:flex; flex-direction:column; gap:4px; padding:14px; border-radius:14px; border:1.5px solid var(--line); background:var(--surface); opacity:.55; transition:opacity .3s, border-color .3s, box-shadow .3s; }
.wf-opt b { font-size:14px; color:var(--ink); }
.wf-opt small { font-size:12.5px; line-height:1.45; color:var(--ink-3); }
.wf-fee { align-self:flex-start; padding:3px 10px; border-radius:999px; font:700 13px 'JetBrains Mono',monospace; color:#fff; background:var(--wf-ok); direction:ltr; unicode-bidi:isolate; }
html[lang="ar"] .wf-fee,html[lang="hi"] .wf-fee { font-family:inherit; }
.wf-opt-card .wf-fee { background:var(--wf-warn); }
.wf-opt.is-on { opacity:1; border-color:var(--wf-usdc); box-shadow:0 0 0 4px rgba(39,117,202,.12); }
.wf-line { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin:12px 0 0; padding:10px 12px; border-radius:12px; border:1px dashed var(--line-2); font-size:13px; color:var(--ink-2); opacity:0; transform:translateY(6px); transition:opacity .4s, transform .5s cubic-bezier(.16,1,.3,1), border-color .3s; }
.wf-line.is-on { opacity:1; transform:none; border-style:solid; border-color:rgba(18,169,122,.45); }
.wf-line b { color:var(--ink); }
.wf-line-v { font:700 13px 'JetBrains Mono',monospace; color:var(--ink); direction:ltr; unicode-bidi:isolate; }
.wf-line em { display:inline-flex; align-items:center; gap:6px; margin-inline-start:auto; font-style:normal; font-weight:600; color:var(--wf-ok-ink); }
.wf-line em svg { width:16px; height:16px; padding:2px; border-radius:50%; background:var(--wf-ok); fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; box-sizing:border-box; }
.wf-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.wf-kpi { padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:var(--surface); min-width:0; }
.wf-kpi span { display:block; font-size:12px; color:var(--ink-3); }
.wf-kpi b { display:block; margin-top:4px; font:700 clamp(15px,2cqi,19px)/1.2 'JetBrains Mono',monospace; color:var(--ink); direction:ltr; unicode-bidi:isolate; text-align:start; font-variant-numeric:tabular-nums; }
.wf-kpi[data-i="2"] b { color:var(--wf-ok-ink); }
.wf-ops-k { margin:12px 0 6px; font-size:12.5px; color:var(--ink-3); }
.wf-ops { list-style:none; margin:0; padding:0; min-height:132px; }
.wf-ops li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; padding:6px 2px; border-bottom:1px dashed var(--line); font:500 12.5px/1.4 'JetBrains Mono',monospace; color:var(--ink-2); animation:wfIn .45s cubic-bezier(.16,1,.3,1); }
.wf-ops li:last-child { border-bottom:0; }
.wf-ops li b { color:var(--ink); }
.wf-ops li span,.wf-ops li em { direction:ltr; unicode-bidi:isolate; }
.wf-ops li em { font-style:normal; font-weight:700; color:var(--ink-3); }
.wf-ops li.is-done em { color:#fff; background:var(--wf-ok); padding:1px 8px; border-radius:999px; }
@keyframes wfIn { from { opacity:0; transform:translateY(-6px); } }
.wf-wd-top { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.wf-wd-top b { font-size:14px; color:var(--ink); }
.wf-wd-amt { font:700 20px 'JetBrains Mono',monospace; color:var(--wf-usdc); direction:ltr; unicode-bidi:isolate; }
.wf-rules { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.wf-rules li { padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-size:12.5px; line-height:1.35; color:var(--ink-2); opacity:.4; transition:opacity .3s, border-color .3s; }
.wf-rules li.is-on { opacity:1; border-color:rgba(18,169,122,.45); }
.wf-rules small { color:var(--ink-3); }
.wf-sigs,.wf-timer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; font-size:12.5px; color:var(--ink-2); }
.wf-sig-dots { display:inline-flex; gap:6px; }
.wf-sig-dots i { width:22px; height:8px; border-radius:4px; background:var(--line); transition:background .3s; }
.wf-sig-dots i.is-on { background:var(--wf-ok); }
.wf-timer-bar { position:relative; flex:1; max-width:55%; height:8px; border-radius:4px; background:var(--line); overflow:hidden; }
.wf-timer-bar i { position:absolute; inset:0; background:linear-gradient(90deg,var(--wf-usdc),var(--wf-ok)); transform-origin:left; transform:scaleX(0); }
[dir="rtl"] .wf-timer-bar i { transform-origin:right; }
.wf-timer.is-done span:first-child { color:var(--wf-ok-ink); font-weight:600; }

.wf-steps { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:14px 20px 0; padding:0; }
.wf-steps button { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; column-gap:8px; row-gap:8px; width:100%; padding:8px 4px 4px; border:0; background:none; font:inherit; color:var(--ink-3); cursor:pointer; text-align:start; }
.wf-step-n { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1.5px solid var(--line-2); font:700 11.5px/1 'JetBrains Mono',monospace; transition:background .3s, color .3s, border-color .3s; }
.wf-step-l { font-size:13px; font-weight:600; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wf-step-bar { grid-column:1/-1; height:3px; border-radius:3px; background:var(--line); overflow:hidden; }
.wf-step-bar i { display:block; height:100%; background:linear-gradient(90deg,var(--wf-usdc),var(--wf-ok)); transform-origin:left; transform:scaleX(0); }
[dir="rtl"] .wf-step-bar i { transform-origin:right; }
.wf-steps button.is-on,.wf-steps button.is-done { color:var(--ink); }
.wf-steps button.is-on .wf-step-n { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 0 4px rgba(61,107,255,.15); }
.wf-steps button.is-done .wf-step-n { border-color:var(--accent); color:var(--accent); }
.wf-foot { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-top:12px; padding:14px 22px 16px; border-top:1px solid var(--line); background:var(--surface-alt); }
.wf-cap { flex:1 1 320px; min-height:3.1em; margin:0; font-size:14px; line-height:1.55; color:var(--ink-2); }
.wf-ctrl { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.wf-sim { display:inline-flex; align-items:center; gap:6px; margin-inline-end:4px; font:500 10px/1.3 'JetBrains Mono',monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-3); }
html[lang="ar"] .wf-sim,html[lang="hi"] .wf-sim { letter-spacing:0; font-family:inherit; font-size:11px; text-transform:none; }
.wf-sim::before { content:''; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.6; }
.wf-ctrl button { min-height:40px; padding:0 16px; border:1px solid var(--line-2); border-radius:999px; background:var(--surface); color:var(--ink); font:inherit; font-size:13.5px; font-weight:600; cursor:pointer; transition:border-color .2s, color .2s; }
.wf-ctrl button:hover { border-color:var(--accent); color:var(--accent); }
.wf-ctrl button:focus-visible,.wf-steps button:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.wf:not(.wf-on) :is(.wf-flow,.wf-panels) { opacity:0; translate:0 18px; }
.wf-flow,.wf-panels { transition:opacity .7s ease, translate .9s cubic-bezier(.16,1,.3,1); }
.wf-panels { transition-delay:.12s; }

@container (min-width:780px) {
  .wf-flow { margin:20px 28px 0; padding:26px 22px; }
  .wf-panels,.wf-steps { margin-left:28px; margin-right:28px; }
  .wf-foot { padding:14px 28px 18px; }
}
@container (max-width:560px) {
  .wf-head { padding:22px 18px 2px; }
  .wf-flow { grid-template-columns:1fr 1fr; margin:14px 12px 0; padding:16px 10px; row-gap:18px; }
  .wf-acc { grid-column:1/-1; grid-row:1; }
  .wf-dep { grid-row:2; }
  .wf-wal { grid-row:2; }
  .wf-track { display:none; }
  .wf-panels,.wf-steps { margin-left:12px; margin-right:12px; }
  .wf-opts { grid-template-columns:1fr; }
  .wf-kpis { gap:6px; }
  .wf-kpi { padding:8px 8px; }
  .wf-kpi span { font-size:11px; line-height:1.3; }
  .wf-kpi b { font-size:13.5px; }
  .wf-panel { padding:14px 12px; }
  .wf-steps button { grid-template-columns:1fr; justify-items:center; }
  .wf-step-l { display:none; }
  .wf-timer-bar { max-width:45%; }
  .wf-foot { padding:12px 16px 14px; }
}
@media (prefers-reduced-motion:reduce) { .wf *,.wf::before { animation:none!important; transition:none!important; } }
@media print { .wf { display:none!important; } }
