/* ViviSystem account experience layer: animated ambient light, clearer actions, and extra preferences. */
.vs-account-ambient{
  position:fixed;
  z-index:0;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  contain:paint;
  background:transparent;
}
.vs-account-ambient::before,
.vs-account-ambient::after{
  content:"";
  position:absolute;
  width:clamp(220px,34vw,520px);
  aspect-ratio:1;
  border-radius:50%;
  filter:blur(72px);
  opacity:.22;
  will-change:transform;
  background:radial-gradient(circle,rgba(157,105,255,.72),rgba(157,105,255,0) 70%);
  animation:vs-account-ambient-drift 19s ease-in-out infinite alternate;
}
.vs-account-ambient::before{top:-13%;left:-10%}
.vs-account-ambient::after{
  right:-13%;
  bottom:-16%;
  width:clamp(200px,30vw,440px);
  background:radial-gradient(circle,rgba(48,211,225,.62),rgba(48,211,225,0) 70%);
  animation-duration:24s;
  animation-delay:-8s;
}
.vs-account-ambient i{
  position:absolute;
  display:block;
  width:clamp(100px,17vw,240px);
  aspect-ratio:1;
  border:1px solid rgba(192,160,255,.12);
  border-radius:50%;
  opacity:.5;
  transform:rotate(-25deg) scaleX(1.4);
  animation:vs-account-orbit 28s linear infinite;
}
.vs-account-ambient i:nth-child(1){top:23%;right:19%}
.vs-account-ambient i:nth-child(2){bottom:12%;left:17%;width:clamp(80px,12vw,170px);animation-duration:34s;animation-direction:reverse}
.vs-account-page-header,
.vs-account-dashboard{position:relative;z-index:1}
.vs-account-page-body{isolation:isolate;overflow-x:clip}
.vs-account-page-body::selection{background:rgba(172,132,255,.35);color:#fff}
@keyframes vs-account-ambient-drift{
  from{transform:translate3d(-2vw,-1vh,0) scale(.92)}
  to{transform:translate3d(3vw,3vh,0) scale(1.09)}
}
@keyframes vs-account-orbit{to{transform:rotate(335deg) scaleX(1.4)}}

/* Profile editors: a save action lives beside each independent field. */
.vs-profile-field-editor{display:flex;min-width:0;flex-direction:column;align-items:stretch;gap:8px}
.vs-profile-field-editor .vs-account-field{min-width:0}
.vs-profile-field-save{
  width:100%;
  min-width:0;
  min-height:39px;
  margin-top:0;
  padding:9px 13px;
  font-size:11px;
}
.vs-profile-field-editor .vs-account-field input{min-width:0}

/* Animated button treatment shared by account actions and verification controls. */
.vs-account-submit,
.vs-verify-confirm,
.vs-verify-cancel{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  transform:translateZ(0);
  transition:transform .22s cubic-bezier(.2,.8,.2,1),border-color .22s ease,box-shadow .22s ease,filter .22s ease;
}
.vs-account-submit::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-40% -65%;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.22) 50%,transparent 58%);
  transform:translateX(-55%) rotate(8deg);
  transition:transform .75s cubic-bezier(.2,.8,.2,1),opacity .22s ease;
}
.vs-account-submit:hover:not(:disabled){
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.55);
  box-shadow:0 12px 28px rgba(126,86,255,.2),0 0 22px rgba(54,205,220,.08);
  filter:brightness(1.08);
}
.vs-account-submit:hover:not(:disabled)::after{opacity:1;transform:translateX(55%) rotate(8deg)}
.vs-account-submit:active:not(:disabled),
.vs-verify-confirm:active,
.vs-verify-cancel:active{transform:translateY(0) scale(.985)}
.vs-account-submit:focus-visible,
.vs-profile-field-save:focus-visible{outline:2px solid #c4a8ff;outline-offset:3px}
.vs-account-submit:disabled{transform:none!important}

/* Additional account controls should feel like part of the same interface. */
.vs-dashboard-nav button,
.vs-quick-links a,
.vs-dashboard-stat,
.vs-toggle-card{
  transform:translateZ(0);
  backface-visibility:hidden;
}
.vs-dashboard-nav button:focus-visible,
.vs-quick-links a:focus-visible{outline:2px solid rgba(191,160,255,.9);outline-offset:3px}
.vs-settings-actions .vs-account-message{flex:1 1 220px}
.vs-account-no-ambient .vs-account-ambient{display:none!important}
.vs-account-compact .vs-account-dashboard{margin-top:26px;margin-bottom:48px}
.vs-account-compact .vs-dashboard-grid{gap:12px;margin-top:13px}
.vs-account-compact .vs-dashboard-panel{padding:clamp(16px,2.2vw,23px)}
.vs-account-compact .vs-dashboard-hero{padding:clamp(22px,3vw,34px)}
.vs-account-compact .vs-dashboard-stat{min-height:88px;padding:12px}
.vs-account-compact .vs-quick-links{gap:8px;margin-top:16px}
.vs-account-compact .vs-quick-links a{min-height:94px;padding:11px}
body.light .vs-account-ambient::before{opacity:.12}
body.light .vs-account-ambient::after{opacity:.11}
body.light .vs-verify-confirm{color:#fff}
@media(max-width:760px){
  .vs-account-page-header,.vs-account-dashboard{z-index:1}
  .vs-profile-field-editor{gap:7px}
  .vs-profile-field-save{min-height:42px}
  .vs-account-ambient i{opacity:.28}
}
@media(prefers-reduced-motion:reduce){
  .vs-account-ambient::before,
  .vs-account-ambient::after,
  .vs-account-ambient i{animation:none!important;will-change:auto}
  .vs-account-submit,
  .vs-account-submit::after,
  .vs-verify-confirm,
  .vs-verify-cancel{transition:none!important}
  .vs-account-submit:hover:not(:disabled){transform:none}
}
html.vs-reduced-motion .vs-account-ambient::before,
html.vs-reduced-motion .vs-account-ambient::after,
html.vs-reduced-motion .vs-account-ambient i{animation:none!important}
html.vs-reduced-motion .vs-account-submit,
html.vs-reduced-motion .vs-account-submit::after,
html.vs-reduced-motion .vs-verify-confirm,
html.vs-reduced-motion .vs-verify-cancel{transition:none!important}
