.nvs{
  --nvs-c1: var(--gold, #f59e0b);
  --nvs-c2: color-mix(in oklch, var(--gold, #f59e0b) 42%, var(--green, #16a34a));
  --nvs-c3: var(--green, #16a34a);
  --nvs-main: var(--green, #16a34a);
  --nvs-ok: var(--green, #16a34a);
  --nvs-idle: color-mix(in oklch, var(--ink, #222) 16%, var(--surface, #fff));
  --nvs-idle-ic: var(--surface, #fff);
  --nvs-track: var(--line, #e6e8ec);
  --nvs-ring: var(--surface, #fff);
  --nvs-s: 44px;          --nvs-b: 58px;          --nvs-ease: cubic-bezier(.22,1,.36,1);
  position: relative; max-width: 760px; margin: 4px auto 26px; padding: 0 4px;
  user-select: none; -webkit-user-select: none;
}
.nvs-list{ list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 1 }
.nvs-i{ display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0 }

.nvs-track{
  position: absolute; inset-inline: 16.666%; top: calc(var(--nvs-b) / 2 - 2px); height: 4px;
  background: var(--nvs-track); border-radius: 4px; overflow: hidden; z-index: 0;
}
.nvs-fill{
  position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--t, 0) * 100%);
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(90deg, var(--nvs-c1), var(--nvs-c2), var(--nvs-c3));
}
html[dir="ltr"] .nvs-fill{ background: linear-gradient(270deg, var(--nvs-c1), var(--nvs-c2), var(--nvs-c3)) }
.nvs-fill::after{
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: nvs-shine 2.6s ease-in-out 1.6s infinite;
}
html[dir="rtl"] .nvs-fill::after{ animation-name: nvs-shine-rtl }
@keyframes nvs-shine{ 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }
@keyframes nvs-shine-rtl{ 0%{transform:translateX(100%)} 60%,100%{transform:translateX(-100%)} }

.nvs-node{
  position: relative; display: grid; place-items: center; flex: none;
  width: var(--nvs-s); height: var(--nvs-s); margin-block: calc((var(--nvs-b) - var(--nvs-s)) / 2);
  border-radius: 50%; background: var(--nvs-idle); color: var(--nvs-idle-ic);
  transition: transform .3s var(--nvs-ease); text-decoration: none; isolation: isolate;
}
a.nvs-node:hover{ transform: scale(1.08) }
.nvs-ic{ grid-area: 1/1; width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s, transform .35s var(--nvs-ease) }
.nvs-ic-check{ opacity: 0; transform: scale(.4) rotate(-20deg) }
.nvs-lbl{ font-size: calc(13px * var(--fz-base, 1)); font-weight: 500; color: var(--muted, #777); text-align: center; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }

.nvs-i.is-done .nvs-node{ background: linear-gradient(135deg, var(--nvs-c3), color-mix(in oklch, var(--nvs-c3) 70%, var(--nvs-c1))); color: #fff }
.nvs-i.is-done .nvs-ic-main{ opacity: 0; transform: scale(.4) }
.nvs-i.is-done .nvs-ic-check{ opacity: 1; transform: none }
.nvs-i.is-done .nvs-lbl{ color: var(--nvs-main); font-weight: 600 }

.nvs-i.is-now .nvs-node{
  width: var(--nvs-b); height: var(--nvs-b); margin-block: 0;
  background: var(--nvs-main); color: #fff;
  box-shadow: 0 0 0 4px var(--nvs-ring), 0 10px 26px -4px color-mix(in oklch, var(--nvs-main) 55%, transparent);
}
.nvs-i.is-now .nvs-node::before{
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--nvs-main); opacity: 0; z-index: -1;
  animation: nvs-pulse 2.2s ease-out 1.2s infinite;
}
.nvs-i.is-now .nvs-lbl{ color: var(--nvs-main); font-weight: 800 }
.nvs-i.is-now .nvs-ic{ width: 42% ; height: 42% }
.nvs-i:last-child.is-now .nvs-node{ background: var(--nvs-ok) }
.nvs[data-step="2"] .nvs-i:last-child .nvs-node{ background: var(--nvs-ok); box-shadow: 0 0 0 4px var(--nvs-ring), 0 10px 28px -4px color-mix(in oklch, var(--nvs-ok) 60%, transparent) }
.nvs[data-step="2"] .nvs-i:last-child .nvs-node::before{ background: var(--nvs-ok) }
.nvs-i:last-child.is-wake .nvs-ic path{ stroke-dasharray: 26; animation: nvs-draw .6s ease calc(var(--d, 0s) + .3s) backwards }
@keyframes nvs-draw{ from{ stroke-dashoffset: 26 } }
@keyframes nvs-pulse{ 0%{transform:scale(1);opacity:.32} 70%,100%{transform:scale(1.75);opacity:0} }

.nvs .nvs-i{ animation: nvs-rise .6s var(--nvs-ease) backwards }
.nvs .nvs-i:nth-child(2){ animation-delay: .08s }
.nvs .nvs-i:nth-child(3){ animation-delay: .16s }
@keyframes nvs-rise{ from{ opacity: 0; transform: translateY(12px) scale(.9) } }

.nvs-track{ animation: nvs-fade .5s ease backwards }
@keyframes nvs-fade{ from{ opacity: 0 } }

.nvs-go .nvs-fill{ animation: nvs-grow var(--tr, 1s) cubic-bezier(.65,0,.35,1) var(--bd, .35s) backwards }
@keyframes nvs-grow{ from{ width: calc(var(--f, 0) * 100%) } }

.nvs-i.is-wake .nvs-node{ animation: nvs-wake .75s var(--nvs-ease) var(--d, 0s) backwards }
.nvs-i.is-wake .nvs-lbl{ animation: nvs-lbl .6s ease var(--d, 0s) backwards }
.nvs-i.is-wake .nvs-ic{ animation: nvs-pop .6s var(--nvs-ease) calc(var(--d, 0s) + .1s) backwards }
@keyframes nvs-wake{
  from{ background: var(--nvs-idle); box-shadow: 0 0 0 0 transparent; transform: scale(.82); width: var(--nvs-s); height: var(--nvs-s) }
  55%{ transform: scale(1.14) }
}
@keyframes nvs-lbl{ from{ color: var(--muted, #777); font-weight: 500; transform: translateY(4px) } }
@keyframes nvs-pop{ from{ transform: scale(.2) rotate(-40deg); opacity: 0 } }

.nvs-i.is-settle .nvs-node{ animation: nvs-settle .7s var(--nvs-ease) var(--d, 0s) backwards }
.nvs-i.is-settle .nvs-ic-main{ animation: nvs-out .35s ease var(--d, 0s) backwards }
.nvs-i.is-settle .nvs-ic-check{ animation: nvs-in .55s var(--nvs-ease) calc(var(--d, 0s) + .12s) backwards }
.nvs-i.is-settle .nvs-lbl{ animation: nvs-lbl2 .5s ease var(--d, 0s) backwards }
@keyframes nvs-settle{
  from{ width: var(--nvs-b); height: var(--nvs-b); margin-block: 0; background: var(--nvs-main);
        box-shadow: 0 0 0 4px var(--nvs-ring), 0 10px 26px -4px color-mix(in oklch, var(--nvs-main) 55%, transparent) }
}
@keyframes nvs-out{ from{ opacity: 1; transform: none } to{ opacity: 0; transform: scale(.4) } }
@keyframes nvs-in{ from{ opacity: 0; transform: scale(.2) rotate(-40deg) } }
@keyframes nvs-lbl2{ from{ font-weight: 800 } }

.nvs-burst{ position: absolute; inset: 0; pointer-events: none; z-index: 2 }
.nvs-burst b{
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; opacity: 0;
  background: var(--nvs-ok);
  animation: nvs-spark 1s cubic-bezier(.15,.8,.3,1) calc(var(--bd, .35s) + var(--tr, 1s) + .05s) backwards;
}
.nvs-burst b:nth-child(4n+1){ background: var(--nvs-c1) }
.nvs-burst b:nth-child(4n+2){ background: var(--nvs-c2); width: 5px; height: 5px }
.nvs-burst b:nth-child(4n+3){ background: var(--nvs-main) }
@keyframes nvs-spark{
  0%{ opacity: 1; transform: rotate(var(--a)) translateY(-26px) scale(1) }
  100%{ opacity: 0; transform: rotate(var(--a)) translateY(calc(-56px - var(--k) * 9px)) scale(.3) }
}
.nvs-burst u{
  position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--nvs-ok); opacity: 0;
  animation: nvs-ring 1s ease-out calc(var(--bd, .35s) + var(--tr, 1s)) backwards;
}
@keyframes nvs-ring{ 0%{ opacity: .7; transform: scale(1) } 100%{ opacity: 0; transform: scale(2.1); border-width: 1px } }

@media (max-width: 560px){
  .nvs{ --nvs-s: 38px; --nvs-b: 50px; margin-bottom: 20px }
  .nvs-lbl{ font-size: calc(11.5px * var(--fz-base, 1)) }
}
@media (max-width: 360px){ .nvs-lbl{ font-size: calc(10.5px * var(--fz-base, 1)) } }

@media (prefers-reduced-motion: reduce){
  .nvs *, .nvs *::before, .nvs *::after, .nvs{ animation: none !important; transition: none !important }
}
@media print{ .nvs{ display: none } }
