/* Chrysalis v2, every page (Claude, 10 Nov 2026). Only loaded while chv2_on() (inc/v2/v2-site.php).
   1. Area colours by meaning (Alik, 10 Nov): the same three variables the home tiles, the shop chips and the Shop menu already read.
   2. Phone bar: the site's own five icons in a flatter bar, a white tab for the open page. Markup and script unchanged. */

/* ---------- 1. area colours ---------- */
.xb.c3-root [data-area="metabolic"],.s3 [data-area="metabolic"],.c3-root.hd3 [data-area="metabolic"],.chv2 .c3-root [data-area="metabolic"]{--a-deep:122 52 6;--a-glow:255 168 104;--a-core:255 122 26}
.xb.c3-root [data-area="tissue"],.s3 [data-area="tissue"],.c3-root.hd3 [data-area="tissue"],.chv2 .c3-root [data-area="tissue"]{--a-deep:22 96 34;--a-glow:132 222 140;--a-core:72 199 84}
.xb.c3-root [data-area="skin-biology"],.s3 [data-area="skin-biology"],.c3-root.hd3 [data-area="skin-biology"],.chv2 .c3-root [data-area="skin-biology"]{--a-deep:126 34 72;--a-glow:255 160 196;--a-core:255 104 160}
.xb.c3-root [data-area="cellular"],.s3 [data-area="cellular"],.c3-root.hd3 [data-area="cellular"],.chv2 .c3-root [data-area="cellular"]{--a-deep:18 58 132;--a-glow:128 176 255;--a-core:58 134 255}
.xb.c3-root [data-area="neuro"],.s3 [data-area="neuro"],.c3-root.hd3 [data-area="neuro"],.chv2 .c3-root [data-area="neuro"]{--a-deep:64 30 138;--a-glow:190 152 255;--a-core:152 96 255}
.xb.c3-root [data-area="melanocortin"],.s3 [data-area="melanocortin"],.c3-root.hd3 [data-area="melanocortin"],.chv2 .c3-root [data-area="melanocortin"]{--a-deep:124 92 0;--a-glow:255 224 122;--a-core:255 205 40}
.xb.c3-root [data-area="blends"],.s3 [data-area="blends"],.c3-root.hd3 [data-area="blends"],.chv2 .c3-root [data-area="blends"]{--a-deep:84 88 98;--a-glow:230 233 240;--a-core:205 210 220}

/* ---------- 2. phone bar ---------- */
@media (max-width:899.98px) and (min-height:431px){
  .chv2 .cl3-pb{background:#16161a;color:rgba(255,255,255,.64);box-shadow:0 10px 26px -12px rgba(0,0,0,.9)}
  @supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    /* 20 Nov 2026, Alik: "transparent navigation tab a bit ... so it seems a bit blurry what is behind": clear glass (draft B).
       Was rgba(22,22,26,.8) + blur(22px) saturate(140%). The labels and icons get a soft shadow so they read on bright pictures */
    .chv2 .cl3-pb{background:linear-gradient(180deg,rgba(74,77,86,.16),rgba(28,29,34,.18) 50%,rgba(8,8,11,.28));-webkit-backdrop-filter:blur(16px) saturate(180%) brightness(.55);backdrop-filter:blur(16px) saturate(180%) brightness(.55)}
    .chv2 .cl3-pb .cl3-pb__l{text-shadow:0 1px 2px rgba(0,0,0,.55)}
    .chv2 .cl3-pb .cl3-pb__i{filter:drop-shadow(0 1px 1.2px rgba(0,0,0,.45))}
    /* 20 Nov 2026, review: over a white button or a bright picture, brightness .8 let the glass turn light grey and the .64 labels
       fell to 1.9:1. Now brightness .55 and the other tabs solid white, also during a tab glide (v2-pb-min.css pins .64 there):
       labels 4.6:1 or more even over plain white, icons and the four dots 4:1 or more. The Cart count's and the account dot's
       cut-out ring was made for the dark bar; on the glass it is a soft one */
    .chv2 .cl3-pb .cl3-pb__t:not(.is-on){color:#fff}
    html.cl-pb-vt body.cl3-pb-on .cl3-pb .cl3-pb__t:not(.is-on) :is(.cl3-pb__i,.cl3-pb__l){color:#fff}
    .chv2 .cl3-pb .cl3-pb__t:not(.is-on) [data-minicart-count-badge]{box-shadow:0 0 0 1.5px rgba(0,0,0,.28)}
    html.chva-dot .chv2 .cl3-pb__t:not(.is-on) .cl3-pb__i::after{box-shadow:0 0 0 1.5px rgba(0,0,0,.28)}
    /* the 0.5 s tab-change glide draws the bar solid (v2-pb-min.css: #16161a, the dark of the bar before): now in the dark of
       this glass, so the glide ends with a smaller jump into it */
    html.cl-pb-vt-in body.chv2.cl3-pb-on .cl3-pb.cl3-pb{background:#0e0e11}
  }
  /* Reduce Transparency or Increase Contrast on the phone: the solid bar of before */
  @media (prefers-reduced-transparency:reduce),(prefers-contrast:more){
    .chv2 .cl3-pb{background:#16161a;-webkit-backdrop-filter:none;backdrop-filter:none}
    .chv2 .cl3-pb .cl3-pb__l{text-shadow:none}
    .chv2 .cl3-pb .cl3-pb__i{filter:none}
    .chv2 .cl3-pb .cl3-pb__t:not(.is-on){color:rgba(255,255,255,.64)}
    html.cl-pb-vt body.cl3-pb-on .cl3-pb .cl3-pb__t:not(.is-on) :is(.cl3-pb__i,.cl3-pb__l){color:rgba(255,255,255,.64)}
    .chv2 .cl3-pb .cl3-pb__t:not(.is-on) [data-minicart-count-badge]{box-shadow:0 0 0 2px #16161a}
    html.chva-dot .chv2 .cl3-pb__t:not(.is-on) .cl3-pb__i::after{box-shadow:0 0 0 2px #16161a}
    html.cl-pb-vt-in body.chv2.cl3-pb-on .cl3-pb.cl3-pb{background:#16161a}
  }
  .chv2 .cl3-pb::after{background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.1))}
  .chv2 .cl3-pb__g::before{background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.35)}
  .chv2 .cl3-pb__i{color:inherit}
  .chv2 .cl3-pb__t{color:rgba(255,255,255,.64)}
  .chv2 .cl3-pb__t.is-on{color:#0e0e10}
  .chv2 .cl3-pb__t.is-on [data-minicart-count-badge]{background:#0e0e10;color:#fff;box-shadow:0 0 0 2px #fff}
  .chv2 .cl3-pb [data-minicart-count-badge]{box-shadow:0 0 0 2px #16161a}
  .chv2 .cl3-pb__t:focus-visible{outline-color:#fff}
  .chv2 .cl3-pb__t.is-on:focus-visible{outline-color:#0e0e10}
}

/* ---------- 3. Build a Stack cards (Alik, 10 Nov: "check the build a stack that the photos are well made") ----------
   The vial picture was shown 22 % too large for its window: the base of the vial was cut off and its shadow ended in a hard
   edge. Now the whole vial stands in the window and the shadow fades out before the edge. Pens were fine. */
.chv2 .sx-card__fig{position:relative}
.chv2 .sx-card__img--vial{position:absolute;inset:0;width:100%;height:100%;transform:scale(1.3);transform-origin:50% 51.7%;-webkit-mask-image:linear-gradient(90deg,#000 68%,transparent 88.5%);mask-image:linear-gradient(90deg,#000 68%,transparent 88.5%)}

/* ---------- 4. Product page: the "3 for −10 % · 5 for −15 % · 10 for −20 %" bar is off (10 Nov 2026) ----------
   With "Buy 2, get 1 free" the third item is free, which beats 10 % and 15 %: the bar promised less than the cart gives. */
.chv2 .p3-tiers{display:none}

/* ---------- 5. Shop menu, the "Buy 2, get 1 free" card (10 Nov 2026) ----------
   The third vial was the surprise vial: blurred, with a question mark. It is a known vial now: sharp, with a FREE tag. */
.chv2 .c3-root.hd3 .nm-offer__q img,.chv2 .c3-root.hd3[data-hd3-tone="dark"] .nm-offer__q img{filter:none;opacity:1}
.chv2 .c3-root.hd3 .nm-offer__q i{top:8%;width:auto;height:auto;padding:6px 9px 5px;border-radius:999px;background:#077D55;color:#fff;font-size:0;line-height:1;box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.chv2 .c3-root.hd3 .nm-offer__q i::after{content:"FREE";font-size:10px;font-weight:600;font-style:normal;letter-spacing:.07em;line-height:1}

/* ---------- 6. Home, the "Buy 2, get 1 free" card: two of the same vial and the same one free (10 Nov 2026) ----------
   The third place was a round tile with a vial icon (the surprise vial). It is the same vial as the two beside it, tagged FREE. */
.chv2 .c3-root .of-b__q--vial{width:60%;aspect-ratio:4/5;margin:0 -18%;border-radius:0;overflow:visible;background:none;box-shadow:none}
.chv2 .c3-root .of-b__q--vial img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;-webkit-mask-image:radial-gradient(56% 56% at 50% 47%,#000 62%,transparent 100%);mask-image:radial-gradient(56% 56% at 50% 47%,#000 62%,transparent 100%)}
.chv2 .c3-root .of-b__q--vial::after{content:none !important}
.chv2 .c3-root .of-b__card:hover .of-b__q--vial{transform:translateY(-4%)}
.chv2 .chv2-free{position:absolute;left:50%;top:8%;z-index:3;transform:translate(-50%,-50%);padding:6px 9px 5px;border-radius:999px;background:#077D55;color:#fff;font-size:10px;font-weight:600;font-style:normal;letter-spacing:.07em;line-height:1;white-space:nowrap;box-shadow:0 0 0 2px #fff}
@media (max-width:899.98px){
  .chv2 .c3-root .of-b__q--vial{width:min(100%,118px);margin:0}
}

/* the FREE tag sits above the cap, so the name on the third vial stays readable (Alik, 10 Nov), and a soft ring keeps
   leaving it: transform and opacity only, nothing while "reduce motion" is on */
.chv2 .chv2-free::before,.chv2 .c3-root.hd3 .nm-offer__q i::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 2px rgba(7,125,85,.6);pointer-events:none;animation:chv2-ring 2.6s cubic-bezier(.2,.6,.3,1) infinite}
.chv2 .chv2-free,.chv2 .c3-root.hd3 .nm-offer__q i{animation:chv2-pop 2.6s cubic-bezier(.3,1.4,.5,1) infinite}
@keyframes chv2-ring{0%{transform:scale(1);opacity:.9}70%,100%{transform:scale(1.55,2.1);opacity:0}}
@keyframes chv2-pop{0%,22%,100%{scale:1}10%{scale:1.1}}
@media (prefers-reduced-motion:reduce){.chv2 .chv2-free,.chv2 .chv2-free::before,.chv2 .c3-root.hd3 .nm-offer__q i,.chv2 .c3-root.hd3 .nm-offer__q i::before{animation:none}.chv2 .chv2-free::before,.chv2 .c3-root.hd3 .nm-offer__q i::before{display:none}}

/* ---------- 7. 21+ banner (step 2; Alik, 10 Nov: "we can improve the banner that appears for the disclaimer") ----------
   One line of the seven area colours on the panel's top edge: the first hint of the colours that come on behind it when the
   visitor answers. The words, the buttons and what they do are untouched. */
.chv2s2 .c3-root.ld3-gate .ld3-gate__panel::before{content:"";position:absolute;left:34px;right:34px;top:-1px;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgb(255 104 160 / 0),rgb(255 104 160) 9%,rgb(255 122 26) 25%,rgb(255 205 40) 41%,rgb(72 199 84) 57%,rgb(58 134 255) 73%,rgb(152 96 255) 91%,rgb(152 96 255 / 0))}
.chv2s2 .c3-root.ld3-gate .ld3-gate__panel::after{content:"";position:absolute;z-index:-1;left:10%;right:10%;top:-1px;height:70px;pointer-events:none;opacity:.5;
  background:linear-gradient(90deg,rgb(255 104 160 / 0),rgb(255 104 160 / .5) 12%,rgb(255 122 26 / .5) 27%,rgb(255 205 40 / .45) 42%,rgb(72 199 84 / .5) 57%,rgb(58 134 255 / .5) 73%,rgb(152 96 255 / .5) 88%,rgb(152 96 255 / 0));
  -webkit-mask-image:linear-gradient(180deg,#000,transparent);mask-image:linear-gradient(180deg,#000,transparent);filter:blur(14px)}

/* smoothness (Claude, 10 Nov 2026): looping animations rest while off screen (assets/v4/v2-smooth.js adds chv2-off) and the
   FREE tag in the Shop menu rests while the menu is closed. Same animations when they are seen. */
.chv2 .chv2-off,.chv2 .chv2-off::before,.chv2 .chv2-off::after,.chv2 .chv2-off *,.chv2 .chv2-off *::before,.chv2 .chv2-off *::after{animation-play-state:paused!important}
.chv2 .c3-root.hd3 .nm-mega:not(.is-open) .nm-offer__q i,.chv2 .c3-root.hd3 .nm-mega:not(.is-open) .nm-offer__q i::before{animation-play-state:paused}
/* smoothness: the home offer card's tier rows start sooner after the card appears (was .35 s + 90 ms a row) */
@media (prefers-reduced-motion:no-preference){
  html:not(.shot) body.chv2 .c3-root.of-b[data-inview] .of-lad .of-tier{transition-delay:calc(.15s + var(--i,0) * 70ms)}
}

/* ---------- Shop menu: the silver vial (Claude, 10 Nov 2026; Alik: "Yes, do the menu"; step 5, inc/v2/v2-shop.php chv2_menu_rewrite()) ----------
   The cut-out has the menu pictures' own frame (4:5); its vial is a little shorter in it (61 % against 66 % of the height), so it
   grows 1.083 from its base line. No mask: the cut-out has its own edge and its own floor reflection. `scale`, not `transform`,
   so the menu's own hover moves keep working. */
.chv2s5 .c3-root.hd3 :is(.nm-fmt__ph,.nm-pfmt__ph,.nm-offer__fig,.nm-offer__q) img.chv2-c{scale:1.083;transform-origin:50% 82%;-webkit-mask-image:none;mask-image:none}

/* ---------- step 6 (10 Nov, Alik: "Yes, all dark"): the header's search panel, on every page ----------
   The panel itself turns dark by its tone mark (inc/v2/v2-dark.php); here only its vial pictures, which are the silver
   vial's cut-out now (class chv2-c): they fill their small tiles so the vial reads at that size. */
.chv2s6 .cl-search .k-row__img.chv2-c{padding:0;object-fit:cover;object-position:50% 50%}
.chv2s6 .cl-search__format-media img.chv2-c{scale:1.22;transform-origin:50% 60%}


/* The WhatsApp button (Alik, 11 Nov 2026: picture option C, "do all what you think would be the best"). It was a black circle
   made for the white pages; the whole site is dark now, so it takes WhatsApp's own green and is found at a glance. */
.chv2 .cl-wa{background:#25D366;border-color:#25D366;color:#fff}
.chv2 .cl-wa:hover{background:#1fbd5a;border-color:#1fbd5a;color:#fff}
.chv2 .cl-wa:focus-visible{outline-color:#fff}

/* Shop menu with three formats (13 Nov 2026: Sprays joined Vials and Pens). Computer: three equal tiles, each picture a size
   smaller so it fits its narrower tile. Phone: three narrower tiles, smaller words. */
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)) .nm-fmt{padding:0 14px 14px}
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)) .nm-fmt__ph{height:176px;margin:0 -14px 6px}
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)) .nm-fmt__ph img{height:200px}
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)) .nm-fmt[data-k="pens"] .nm-fmt__ph img{height:150px;margin-top:2px}
.c3-root.hd3 .nm-fmts:has(> .nm-fmt:nth-child(3)) .nm-fmt__name{font-size:21px}
.c3-root.hd3 .nm-fmt[data-k="sprays"] .nm-fmt__ph,.c3-root.hd3 .nm-pfmt[data-k="sprays"] .nm-pfmt__ph{overflow:visible}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt{padding:0 10px 12px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt__ph{height:112px;margin:0 -10px 4px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt__ph img{height:136px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt[data-k="pens"] .nm-pfmt__ph img{height:98px;margin-top:2px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt__name{font-size:18px}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt__meta .nm-fmt__n{font-size:10px;letter-spacing:.06em}
.c3-root.hd3 .nm-pfmts:has(> li:nth-child(3)) .nm-pfmt__meta .nm-fmt__p{font-size:13px}

/* ---------- Orders (account, order page, phone app): the "Buy 2, get 1 free" line says FREE (13 Nov 2026) ----------
   Alik: a client's 3 pens read like 2 and the free pen showed AED 590. Its price is crossed out, FREE beside it in the site's
   green, the offer's name under the product (inc/v2/commerce.php, inc/v2/z9-account-phone.php). */
.cl-free-amt{color:#34C28A;font-weight:500;white-space:nowrap}
.cl-free-amt s{color:inherit;opacity:.5;font-weight:400;margin-right:4px;text-decoration-thickness:1px}
.cl-free-why{color:#34C28A !important}
