/* Nexaven Public V10.19: Blue Flow entrance and subtle independent vial animation. */
body:not(.nx-shared-shell-active) .nx-blue-flow-gate,
body .nx-blue-flow-gate {
 position:relative; isolation:isolate; min-height:100svh; width:100%; padding:clamp(22px,4vw,52px) 16px!important;
 display:grid;place-items:center;box-sizing:border-box;overflow:hidden;
 background-color:#f8fbff!important;background-image:linear-gradient(135deg,#fff,#f2f9ff 65%,#fff)!important;
}
.nx-blue-flow-gate::before,.nx-blue-flow-gate::after{content:"";position:absolute;z-index:-1;pointer-events:none;background-repeat:no-repeat;background-size:contain;}
.nx-blue-flow-gate::before{right:0;top:0;width:min(760px,94vw);height:min(365px,38vw);background-position:top right;background-image:url('/assets/nx-blue-flow-upper.svg')}
.nx-blue-flow-gate::after{left:0;bottom:0;width:min(810px,95vw);height:min(350px,42vw);background-position:bottom left;background-image:url('/assets/nx-blue-flow-lower.svg')}
body .gate-card.nx-blue-flow-card{
 position:relative;width:min(100%,760px);max-width:760px;box-sizing:border-box;border:1px solid #d7e9fa!important;
 border-radius:clamp(27px,4vw,45px)!important;padding:clamp(25px,5vw,62px) clamp(20px,5vw,61px) clamp(24px,4vw,42px)!important;
 background:#fffffffa!important;box-shadow:0 24px 65px rgba(6,47,111,.11),0 5px 24px rgba(14,106,220,.06)!important;
 text-align:center;
}
.nx-blue-flow-card .gate-logo{display:block;width:min(100%,650px)!important;height:auto!important;max-height:160px!important;object-fit:contain;margin:0 auto clamp(26px,4vw,39px)!important;}
.nx-blue-flow-card h2{font-size:clamp(20px,3.3vw,30px)!important;line-height:1.2;color:#082455!important;letter-spacing:-.02em;font-weight:900!important;margin:0 auto 9px!important;}
.nx-blue-flow-card .science{font-size:clamp(10px,1.55vw,15px)!important;font-weight:600;letter-spacing:clamp(1.8px,.5vw,4px)!important;color:#0767de!important;margin:0 0 20px!important}
.nx-blue-flow-card .nx-gate-ruo{display:inline-block;width:auto;padding:9px 22px;margin:0 auto 24px!important;background:linear-gradient(112deg,#031642,#0a3a8e)!important;color:white!important;border-radius:40px!important;font-size:clamp(11px,1.5vw,14px);font-weight:900;letter-spacing:.02em}
.nx-blue-flow-card .nx-gate-consents{display:grid;gap:17px;margin-bottom:22px}
.nx-blue-flow-card .checkline{display:flex;align-items:flex-start;gap:14px!important;text-align:left;color:#092554;font-size:clamp(13px,1.7vw,16px);line-height:1.55}
.nx-blue-flow-card .checkline input{appearance:none;-webkit-appearance:none;width:23px!important;height:23px!important;flex:0 0 23px;margin:1px 0 0!important;border:2px solid #8d98aa;border-radius:6px;background:white;cursor:pointer;}
.nx-blue-flow-card .checkline input:checked{background:#086dec;border-color:#086dec;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath fill="none" stroke="white" stroke-width="3" d="M5 12l5 5L20 7"/%3E%3C/svg%3E')}
.nx-blue-flow-card .checkline a{color:#087aff;text-decoration:none;font-weight:700}
.nx-blue-flow-card .checkline a:hover{text-decoration:underline}
.nx-blue-flow-card .nx-gate-enter{display:block;width:100%;margin:12px auto 16px!important;padding:clamp(13px,2.3vw,18px) 10px!important;border:0!important;border-radius:17px!important;background:linear-gradient(180deg,#05b4ff 0%,#097cff 40%,#084deb 100%)!important;color:#fff!important;font-size:clamp(19px,2.7vw,26px)!important;font-weight:900!important;letter-spacing:.01em;box-shadow:0 9px 21px rgba(0,89,229,.22)!important}
.nx-blue-flow-card .nx-gate-enter:disabled{opacity:.55!important;cursor:not-allowed;box-shadow:none!important}
.nx-blue-flow-card .nx-gate-disclaimer{color:#546780;font-size:clamp(10px,1.5vw,14px);line-height:1.35;letter-spacing:.035em;margin:14px auto 17px}
.nx-blue-flow-card .nx-gate-flags{display:flex;justify-content:center;align-items:flex-start;gap:clamp(16px,4.8vw,45px);margin:5px auto 18px!important}
.nx-blue-flow-card .nx-gate-language{background:none!important;border:0!important;box-shadow:none!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4px!important;min-width:73px;color:#082554;cursor:pointer;gap:8px;border-radius:15px!important;}
.nx-blue-flow-card .nx-gate-language .nx-flag-disc{width:clamp(51px,7vw,68px);height:clamp(51px,7vw,68px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:50%;background:#fff;box-shadow:0 3px 14px rgba(9,55,119,.13);border:3px solid #f1f8ff;font-size:clamp(31px,4.1vw,41px);line-height:1;overflow:hidden}
.nx-blue-flow-card .nx-gate-language.active .nx-flag-disc{border-color:#1474ee;box-shadow:0 0 0 2px #badbff,0 5px 14px #1468c533}
.nx-blue-flow-card .nx-gate-language .nx-flag-label{font-weight:700;font-size:clamp(12px,1.7vw,15px);line-height:1.2;color:#082554;}
.nx-blue-flow-card .nx-gate-language:focus-visible{outline:3px solid #087aff;outline-offset:3px}
.nx-blue-flow-card .nx-gate-foot{display:flex;align-items:center;justify-content:center;gap:12px;margin:17px auto 0;color:#7b90b0;letter-spacing:.2em;font-size:clamp(9px,1.2vw,13px);white-space:nowrap}
.nx-blue-flow-card .nx-gate-foot::before,.nx-blue-flow-card .nx-gate-foot::after{content:"";height:1px;max-width:78px;min-width:16px;flex:1;background:#bed5ed}
/* V10.20: Fix floating vials on touch devices. Only the IMG moves; cards, stock, text, prices and buttons stay still. */
.product-card .product-photo-trigger > img.product-image {
 --nx-vial-scale:1;
 display:block;
 transform-origin:center center;
 animation:nx-v20-vial-hover 3.8s ease-in-out infinite both!important;
 animation-play-state:running!important;
 will-change:transform;
 backface-visibility:hidden;
}
.product-card img.product-image[src*='/nad.webp'],
.product-card img.product-image[src*='/lemon.webp'],
.product-card img.product-image[src*='/bac.webp']{--nx-vial-scale:1.015;}
.product-grid .product-card:nth-child(4n + 2) img.product-image{animation-delay:-.9s!important;}
.product-grid .product-card:nth-child(4n + 3) img.product-image{animation-delay:-1.8s!important;}
.product-grid .product-card:nth-child(4n + 4) img.product-image{animation-delay:-2.7s!important;}
/* Visible, smooth 18px travel; image does not change size or affect document flow. */
@keyframes nx-v20-vial-hover{
 0%,100%{transform:translate3d(0,8px,0) scale(var(--nx-vial-scale));}
 50%{transform:translate3d(0,-10px,0) scale(var(--nx-vial-scale));}
}
/* Do not pause on :hover or :focus-within. Mobile browsers retain these states after tapping. */
@media(max-width:520px){
 .nx-blue-flow-gate::before{width:96vw;height:165px}
 .nx-blue-flow-gate::after{width:97vw;height:165px}
 body .nx-blue-flow-gate{padding:24px 12px!important;align-items:center}
 body .nx-blue-flow-card{padding:35px 20px 26px!important}
 .nx-blue-flow-card .gate-logo{margin-bottom:34px!important}
 .nx-blue-flow-card .nx-gate-ruo{margin-bottom:24px!important}
 .nx-blue-flow-card .nx-gate-consents{gap:16px}
 .nx-blue-flow-card .nx-gate-flags{gap:clamp(8px,4vw,24px)}
 .nx-blue-flow-card .nx-gate-language{min-width:66px}
}
@media(prefers-reduced-motion: reduce){.product-card .product-photo-trigger > img.product-image{animation:none!important;will-change:auto!important;transform:none!important;}}

/* Genuine round-cropped flag artwork, no square flag edges. */
.nx-blue-flow-card .nx-gate-language .nx-flag-disc{overflow:hidden;padding:0;border-radius:50%;background:#fff!important}
.nx-blue-flow-card .nx-gate-language .nx-flag-disc .nx-rounded-flag{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}


/* 2026-10-30 final fix: subtle top-right and bottom-left blue-flow waves crossing over the white gate card */
body .gate-card.nx-blue-flow-card{isolation:isolate;overflow:visible!important}
body .gate-card.nx-blue-flow-card > *{position:relative;z-index:2}
body .gate-card.nx-blue-flow-card::before,
body .gate-card.nx-blue-flow-card::after{
  content:"";position:absolute;pointer-events:none;z-index:1;background-repeat:no-repeat;background-size:contain;opacity:.98;
}
body .gate-card.nx-blue-flow-card::before{
  width:min(340px,52vw);height:min(150px,24vw);
  right:-22px;top:-26px;
  background-image:url('/assets/nx-blue-flow-upper.svg');background-position:top right;
}
body .gate-card.nx-blue-flow-card::after{
  width:min(350px,56vw);height:min(175px,26vw);
  left:-26px;bottom:-30px;
  background-image:url('/assets/nx-blue-flow-lower.svg');background-position:bottom left;
}
@media(max-width:520px){
  body .gate-card.nx-blue-flow-card::before{width:240px;height:112px;right:-18px;top:-16px}
  body .gate-card.nx-blue-flow-card::after{width:250px;height:126px;left:-20px;bottom:-18px}
}

/* 2026-10-30 final fix: stronger vial motion from low base to visibly above the card edge */
.product-grid,.product-card,.product-image-wrap,.product-card .product-photo-trigger{overflow:visible!important}
.product-card .product-photo-trigger > img.product-image {
  animation:nx-v20-vial-hover-strong 4.6s ease-in-out infinite both!important;
  transform-origin:center bottom!important;
}
@keyframes nx-v20-vial-hover-strong{
  0%,100%{transform:translate3d(0,16px,0) scale(var(--nx-vial-scale));}
  25%{transform:translate3d(1.2px,4px,0) scale(var(--nx-vial-scale));}
  50%{transform:translate3d(0,-24px,0) scale(var(--nx-vial-scale));}
  75%{transform:translate3d(-1.2px,3px,0) scale(var(--nx-vial-scale));}
}
@media(prefers-reduced-motion: reduce){
  .product-card .product-photo-trigger > img.product-image{animation:none!important;transform:none!important}
}
