/* ViviSystem shared finishing layer — enhances the existing visual system without replacing it. */
:root{
  --vs-polish-line:rgba(185,140,255,.18);
  --vs-polish-glass:rgba(15,17,29,.76);
  --vs-polish-shadow:0 18px 54px rgba(0,0,0,.22);
  --vs-polish-ease:cubic-bezier(.2,.8,.2,1);
}
html{scroll-padding-top:92px;scroll-behavior:smooth}
body{ text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased }
::selection{background:rgba(185,140,255,.34);color:#fff}
:focus-visible{outline:2px solid #b98cff;outline-offset:3px}
header{
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  backdrop-filter:blur(18px) saturate(135%);
  box-shadow:0 10px 35px rgba(0,0,0,.12);
}
.navbar{gap:clamp(12px,2vw,26px)}
.brand,.brand-logo{transition:transform .28s var(--vs-polish-ease),filter .28s ease}
.brand:hover .brand-logo{transform:rotate(-4deg) scale(1.045);filter:drop-shadow(0 0 12px rgba(185,140,255,.24))}
nav.links a,.finder-home,.nav-cta,.pill-btn,.btn{
  transition:color .22s ease,background-color .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s var(--vs-polish-ease);
}
nav.links a{position:relative;text-decoration:none}
nav.links a::after{
  content:"";position:absolute;left:0;right:100%;bottom:-7px;height:2px;
  background:linear-gradient(90deg,#ff7656,#a477ff,#4ad8df);
  border-radius:2px;transition:right .25s var(--vs-polish-ease)
}
nav.links a:hover::after,nav.links a:focus-visible::after{right:0}
button,.btn,.pill-btn,.finder-home,.nav-cta{ -webkit-tap-highlight-color:transparent }
button:not(:disabled):active,.btn:active,.pill-btn:active,.nav-cta:active{transform:translateY(1px) scale(.99)}
input,select,textarea{
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;border-color:rgba(185,140,255,.72)!important;
  box-shadow:0 0 0 3px rgba(145,104,255,.13);
}
img{height:auto}
.hw-card,.step,.search-panel,.contact-form,.side-note,.vs-catalog__card,.product-card,.build-card,.hardware-card{
  transition:transform .28s var(--vs-polish-ease),border-color .28s ease,box-shadow .28s ease,background-color .28s ease;
}
.hw-card:hover,.product-card:hover,.build-card:hover,.hardware-card:hover{
  transform:translateY(-5px);border-color:rgba(185,140,255,.5);
  box-shadow:0 18px 48px rgba(0,0,0,.24),0 0 24px rgba(139,92,246,.08)
}
.step:hover,.search-panel:hover,.contact-form:hover,.side-note:hover{
  border-color:rgba(185,140,255,.35);box-shadow:var(--vs-polish-shadow)
}
.vs-account-trigger{white-space:nowrap}
.vs-account-page-header{position:sticky;top:0;z-index:100;backdrop-filter:blur(18px)}
.vs-account-page-header nav{display:flex;align-items:center;gap:clamp(12px,2vw,24px);flex-wrap:wrap}
.vs-account-page-header nav a{font-size:12px;opacity:.8;transition:opacity .2s,color .2s}
.vs-account-page-header nav a:hover{opacity:1;color:#c9a9ff}
.vs-reduced-motion *, .vs-reduced-motion *::before, .vs-reduced-motion *::after{
  scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;
  transition-duration:.01ms!important;scroll-transition-duration:.01ms!important;
}
html.vs-reduced-motion{scroll-behavior:auto}
@media(max-width:760px){
  .vs-account-page-header{align-items:flex-start;flex-direction:column}
  .vs-account-page-header nav{width:100%;gap:10px 17px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* ===== ViviSystem premium finishing pass ===== */
:root{
  --vs-polish-radius:16px;
  --vs-polish-radius-sm:11px;
  --vs-polish-border:rgba(185,140,255,.22);
  --vs-polish-border-strong:rgba(185,140,255,.42);
}
html{scrollbar-gutter:stable}
body{min-width:320px}
h1,h2,h3,p{text-wrap:pretty}
::selection{background:rgba(168,126,255,.38);color:#fff}
.vs-dashboard-hero,.vs-dashboard-nav,.vs-dashboard-panel,.vs-catalog-hero,.vs-catalog-panel,
.vs-retailer-search,.vs-retailer-card,.vs-product-card__content,.vs-product-popup-card,
.vs-account-dialog,.search-panel,.contact-form,.side-note,.step-inner{
  -webkit-backdrop-filter:blur(16px) saturate(125%);
  backdrop-filter:blur(16px) saturate(125%);
}
.vs-dashboard-hero,.vs-catalog-hero,.hero,.vs-error-card{position:relative;isolation:isolate}
.vs-dashboard-hero,.vs-catalog-hero,.vs-catalog-panel,.vs-dashboard-panel,.vs-dashboard-nav,
.vs-retailer-search,.vs-retailer-card,.search-panel,.contact-form,.side-note{
  border-color:var(--vs-polish-border);
  box-shadow:0 18px 56px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.035);
}
.vs-dashboard-hero h1,.vs-catalog-title,.hero h1{
  letter-spacing:-.045em;line-height:1.04;text-wrap:balance;
}
.vs-catalog-eyebrow,.vs-account-kicker,.kicker,.vs-section-eyebrow{
  letter-spacing:.17em;text-transform:uppercase;
}
.vs-dashboard-stat,.vs-quick-links a,.vs-retailer-card,.vs-product-card__content,
.step,.hw-card,.search-panel,.contact-form,.side-note{
  transition:transform .26s cubic-bezier(.2,.8,.2,1),border-color .26s ease,box-shadow .26s ease,background-color .26s ease;
}
.vs-retailer-card:hover,.vs-quick-links a:hover,.vs-dashboard-stat:hover,
.vs-product-card:hover .vs-product-card__content,.step:hover,.hw-card:hover{
  border-color:var(--vs-polish-border-strong);
  box-shadow:0 20px 56px rgba(0,0,0,.26),0 0 24px rgba(147,108,255,.10);
}
.vs-account-submit,.vs-dashboard-save,.vs-retailer-search__button,.vs-product-modal__retailer,
.btn,.pill-btn,.nav-cta{
  box-shadow:0 8px 24px rgba(98,65,164,.14);
  transition:transform .2s cubic-bezier(.2,.8,.2,1),filter .2s ease,box-shadow .2s ease;
}
.vs-account-submit:hover,.vs-dashboard-save:hover,.vs-retailer-search__button:hover,
.vs-product-modal__retailer:hover,.btn:hover,.pill-btn:hover,.nav-cta:hover{
  filter:brightness(1.07);box-shadow:0 12px 30px rgba(98,65,164,.22);
}
input,select,textarea{min-width:0;max-width:100%}
img,svg,video,canvas{max-width:100%}
.vs-account-trigger,.finder-home,.nav-cta{min-height:40px}
.vs-account-page-header nav a{white-space:nowrap}
.vs-product-card,.vs-product-card__front,.vs-product-card__front-content,
.vs-product-card__description,.vs-product-card__title{
  min-width:0;overflow-wrap:anywhere;
}
.vs-product-card__image-wrap{isolation:isolate}
.vs-product-art__image{max-width:100%;max-height:100%}
.vs-product-modal__body,.vs-dashboard-panel,.vs-dashboard-section{min-width:0}
.vs-dashboard-section p,.vs-dashboard-toggle small,.vs-quick-links small,
.vs-retailer-card small{line-height:1.55}
*{scrollbar-width:thin;scrollbar-color:rgba(168,126,255,.5) rgba(255,255,255,.035)}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:rgba(255,255,255,.025)}
*::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:rgba(168,126,255,.42);background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:rgba(190,157,255,.65);background-clip:padding-box}
body.light .vs-dashboard-hero,body.light .vs-dashboard-panel,body.light .vs-dashboard-nav,
body.light .vs-catalog-panel,body.light .vs-catalog-hero,body.light .vs-retailer-search,
body.light .vs-retailer-card,body.light .search-panel,body.light .contact-form,body.light .side-note{
  box-shadow:0 16px 44px rgba(49,33,78,.08),inset 0 1px 0 rgba(255,255,255,.78);
}
body.light .vs-dashboard-hero h1,body.light .vs-catalog-title,body.light .hero h1{color:var(--ink,#21182f)}
@media(max-width:760px){
  .vs-dashboard-hero,.vs-catalog-hero{border-radius:16px}
  .vs-dashboard-panel,.vs-dashboard-nav,.vs-catalog-panel{border-radius:15px}
  .vs-account-page-header{gap:14px}
  .vs-account-page-header nav{row-gap:8px}
  .vs-dashboard-section p,.vs-catalog-lede{line-height:1.65}
}
@media(max-width:480px){
  .vs-account-dashboard{width:calc(100% - 20px)}
  .vs-account-page-header{padding-left:14px;padding-right:14px}
  button,.btn,.pill-btn,.nav-cta,.vs-account-submit,.vs-dashboard-save{max-width:100%}
  .vs-section-heading{gap:10px}.vs-section-mark{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
  .vs-dashboard-stat,.vs-quick-links a,.vs-retailer-card,.vs-product-card__content,
  .step,.hw-card,.search-panel,.contact-form,.side-note,.vs-account-submit,
  .vs-dashboard-save,.vs-retailer-search__button,.vs-product-modal__retailer,.btn,.pill-btn,.nav-cta{
    transition:none!important;will-change:auto!important;
  }
}

/* Consistent ViviSystem navigation rhythm and shared media controls. */
.navbar{gap:clamp(10px,1.2vw,16px)}
nav.links{gap:clamp(9px,1.25vw,18px)}
nav.links a{white-space:nowrap}
.music-toggle-wrap{display:flex;align-items:center;gap:10px;margin-left:0;flex:0 0 auto}
.music-toggle-row{display:flex;align-items:center;gap:10px}
.music-toggle-label{font-family:"IBM Plex Mono",monospace;font-size:.68rem;letter-spacing:.06em;color:var(--ink-dim,#b9abc9);white-space:nowrap;user-select:none}
.music-switch-input{position:absolute;width:0;height:0;opacity:0}
.music-switch{--a:.5s ease-out;position:relative;display:inline-flex;flex:0 0 auto;height:1.55em;aspect-ratio:212.4992/84.4688;border-radius:2em;cursor:pointer;color:var(--circuit,#b98cff);background:rgba(42,32,56,.95);box-shadow:0 0 0 .22em rgba(185,140,255,.45);transition:background-color .35s ease,box-shadow .35s ease,color .35s ease}
.music-switch svg{display:block;height:100%}
.music-switch svg path{color:inherit;stroke:currentColor;stroke-width:16;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:136 224;transform-origin:center;transition:all var(--a),0s transform}
.music-switch-input:checked+.music-switch{color:#f5f0ff;background:rgba(185,140,255,.38);box-shadow:0 0 0 .22em rgba(185,140,255,.7),0 0 18px rgba(185,140,255,.25)}
.music-switch-input:checked+.music-switch svg path{stroke-dashoffset:180;transform:scaleY(-1)}
.vs-header-theme-toggle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;color:var(--ink-dim,#b9abc9);font:500 .65rem "IBM Plex Mono",monospace}
.vs-header-theme-toggle input{width:16px;height:16px;margin:0;accent-color:#b98cff}
.vs-account-header-controls{display:flex;align-items:center;gap:15px;flex:0 0 auto}
@media(max-width:760px){.vs-account-header-controls{width:100%;justify-content:flex-start;flex-wrap:wrap}.music-toggle-label{font-size:.62rem}}
@media(max-width:780px){.vb-music-toggle-wrap{width:auto!important;margin:0!important;order:initial!important;justify-content:flex-start!important}.vb-header-tools .music-toggle-row{gap:6px}}

/* Shared version of the exact index.html appearance toggle. */
.theme-switch{
    --toggle-size:26px;
    --container-width:5.625em;
    --container-height:2.5em;
    --container-radius:6.25em;
    --container-light-bg:#C7A4FF;
    --container-night-bg:#1D1F2C;
    --circle-container-diameter:3.375em;
    --sun-moon-diameter:2.125em;
    --sun-bg:#ECCA2F;
    --moon-bg:#C4C9D1;
    --spot-color:#959DB1;
    --circle-container-offset:calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    --stars-color:#fff;
    --clouds-color:#F3FDFF;
    --back-clouds-color:#AACADF;
    --transition:.5s cubic-bezier(0, -0.02, 0.4, 1.25);
    --circle-transition:.3s cubic-bezier(0, -0.02, 0.35, 1.17);
    margin-left:auto;
    flex-shrink:0;
  }
  .theme-switch *, .theme-switch *::before, .theme-switch *::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-size:var(--toggle-size);
  }
  .theme-switch{
    box-sizing:border-box;
    font-size:var(--toggle-size);
  }
  .theme-switch__container{
    width:var(--container-width);
    height:var(--container-height);
    background-color:var(--container-night-bg);
    border-radius:var(--container-radius);
    overflow:hidden;
    cursor:pointer;
    box-shadow:0em -0.062em 0.062em rgba(0,0,0,.25), 0em 0.062em 0.125em rgba(185,140,255,.25);
    transition:var(--transition);
    position:relative;
  }
  .theme-switch__container::before{
    content:"";
    position:absolute;
    z-index:1;
    inset:0;
    box-shadow:0em 0.05em 0.187em rgba(0,0,0,.25) inset, 0em 0.05em 0.187em rgba(0,0,0,.25) inset;
    border-radius:var(--container-radius);
  }
  .theme-switch__checkbox{display:none;}
  .theme-switch__circle-container{
    width:var(--circle-container-diameter);
    height:var(--circle-container-diameter);
    background-color:rgba(255,255,255,.1);
    position:absolute;
    left:var(--circle-container-offset);
    top:var(--circle-container-offset);
    border-radius:var(--container-radius);
    box-shadow:inset 0 0 0 3.375em rgba(255,255,255,.1), inset 0 0 0 3.375em rgba(255,255,255,.1), 0 0 0 0.625em rgba(255,255,255,.1), 0 0 0 1.25em rgba(255,255,255,.1);
    display:flex;
    transition:var(--circle-transition);
    pointer-events:none;
  }
  .theme-switch__sun-moon-container{
    pointer-events:auto;
    position:relative;
    z-index:2;
    width:var(--sun-moon-diameter);
    height:var(--sun-moon-diameter);
    margin:auto;
    border-radius:var(--container-radius);
    background-color:var(--moon-bg);
    box-shadow:0.062em 0.062em 0.062em 0em rgba(254,255,239,.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    filter:drop-shadow(0.062em 0.125em 0.125em rgba(0,0,0,.25)) drop-shadow(0em 0.062em 0.125em rgba(0,0,0,.25));
    overflow:hidden;
    transition:var(--transition);
  }
  .theme-switch__moon{
    transform:translateX(0);
    width:100%;
    height:100%;
    background-color:var(--moon-bg);
    border-radius:inherit;
    box-shadow:0.062em 0.062em 0.062em 0em rgba(254,255,239,.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
    transition:var(--transition);
    position:relative;
  }
  .theme-switch__spot{
    position:absolute;
    top:0.75em;
    left:0.312em;
    width:0.75em;
    height:0.75em;
    border-radius:var(--container-radius);
    background-color:var(--spot-color);
    box-shadow:0em 0.0312em 0.062em rgba(0,0,0,.25) inset;
  }
  .theme-switch__spot:nth-of-type(2){
    width:0.375em;
    height:0.375em;
    top:0.937em;
    left:1.375em;
  }
  .theme-switch__spot:nth-of-type(3){
    width:0.25em;
    height:0.25em;
    top:0.312em;
    left:0.812em;
  }
  .theme-switch__clouds{
    width:1.25em;
    height:1.25em;
    background-color:var(--clouds-color);
    border-radius:var(--container-radius);
    position:absolute;
    bottom:-4.062em;
    left:0.312em;
    box-shadow:0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
    transition:0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  }
  .theme-switch__stars-container{
    position:absolute;
    color:var(--stars-color);
    top:50%;
    left:0.312em;
    width:2.75em;
    height:auto;
    transform:translateY(-50%);
    transition:var(--transition);
  }
  .theme-switch__checkbox:checked + .theme-switch__container{
    background-color:var(--container-light-bg);
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container{
    left:calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__sun-moon-container{
    background-color:var(--sun-bg);
    box-shadow:0.062em 0.062em 0.062em 0em rgba(254,255,239,.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon{
    transform:translateX(100%);
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds{
    bottom:-0.625em;
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container{
    top:-100%;
    transform:none;
  }
  .theme-switch__circle-container:hover{
    left:calc(var(--circle-container-offset) + 0.187em);
  }
  .theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover{
    left:calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em);
  }

  
.vs-shared-theme-holder{display:flex;align-items:center;justify-content:center;flex:0 0 auto;margin:0 8px}
.vs-shared-theme-holder .theme-switch{margin:0;--toggle-size:20px}
@media(max-width:760px){.vs-shared-theme-holder{margin:0 3px}.vs-shared-theme-holder .theme-switch{--toggle-size:17px}}


/* Desktop card motion layer. Excludes the dedicated mobile catalogue page. */
@media (min-width:761px) and (hover:hover) and (pointer:fine) {
  body:not([data-vivi-chat-only="true"]) .vs-retailer-card,
  body:not([data-vivi-chat-only="true"]) .vs-dashboard-stat,
  body:not([data-vivi-chat-only="true"]) .vs-quick-links a,
  body:not([data-vivi-chat-only="true"]) .hw-card,
  body:not([data-vivi-chat-only="true"]) .step,
  body:not([data-vivi-chat-only="true"]) .build-card,
  body:not([data-vivi-chat-only="true"]) .hardware-card {
    transition:transform .38s cubic-bezier(.2,.8,.2,1),border-color .32s ease,box-shadow .38s ease,background-color .32s ease;
    transform-origin:center;
  }
  body:not([data-vivi-chat-only="true"]) .vs-retailer-card:hover,
  body:not([data-vivi-chat-only="true"]) .vs-dashboard-stat:hover,
  body:not([data-vivi-chat-only="true"]) .vs-quick-links a:hover,
  body:not([data-vivi-chat-only="true"]) .hw-card:hover,
  body:not([data-vivi-chat-only="true"]) .step:hover,
  body:not([data-vivi-chat-only="true"]) .build-card:hover,
  body:not([data-vivi-chat-only="true"]) .hardware-card:hover {
    transform:translateY(-6px) scale(1.015);
    border-color:rgba(185,140,255,.58);
    box-shadow:0 22px 52px rgba(0,0,0,.27),0 0 28px rgba(145,104,255,.12);
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content {
    position:relative;
    overflow:hidden;
    isolation:isolate;
    transition:transform .42s cubic-bezier(.2,.8,.2,1),border-color .32s ease,box-shadow .42s ease;
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content::after {
    content:"";
    position:absolute;
    z-index:3;
    inset:-45% -65%;
    pointer-events:none;
    opacity:0;
    background:linear-gradient(112deg,transparent 42%,rgba(255,255,255,.11) 49%,rgba(185,140,255,.17) 52%,transparent 59%);
    transform:translateX(-115%) rotate(8deg);
    transition:transform .82s cubic-bezier(.2,.8,.2,1),opacity .25s ease;
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card:hover .vs-product-card__content::after,
  body:not([data-vivi-chat-only="true"]) .vs-product-card:focus-visible .vs-product-card__content::after {
    opacity:1;
    transform:translateX(115%) rotate(8deg);
  }
}
@media (prefers-reduced-motion:reduce) {
  body:not([data-vivi-chat-only="true"]) .vs-retailer-card,
  body:not([data-vivi-chat-only="true"]) .vs-dashboard-stat,
  body:not([data-vivi-chat-only="true"]) .vs-quick-links a,
  body:not([data-vivi-chat-only="true"]) .hw-card,
  body:not([data-vivi-chat-only="true"]) .step,
  body:not([data-vivi-chat-only="true"]) .build-card,
  body:not([data-vivi-chat-only="true"]) .hardware-card,
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content {
    transition:none!important;
  }
  body:not([data-vivi-chat-only="true"]) .vs-product-card__content::after { display:none!important; }
}
