/* GENERATED by tools/build.mjs from calculators.css with rtlcss — do not edit. */
/* atropi-scope: .cc-, .ec- */
/* =====================================================================================================
   ATROPI — Forex Calculators (page-templates/calculators.php). Loaded only on that template, after
   _components.css. Every selector is under the .cc- prefix (declared above; .ec-flag is shared with the
   Economic Calendar page) or a section id.
   1. shared bits  2. hero: quick chips + pip value mini-widget (LTR island)  3. calculator workspace (tabs) +
   native calculators (form + result card)
   4. plan + why online  5. importance + quote  6. responsive  7. reduced motion
   Tokens only; Day + Night designed separately. RTL twin generated by tools/build.mjs.
   ===================================================================================================== */

/* ---------------------------------------------------------------- 1. shared bits */
.ec-flag { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--surface), 0 1px 3px rgba(10, 22, 40, .18); background: var(--surface-3); }
.ec-flag svg { display: block; width: 100%; height: 100%; }
:root[data-theme="dark"] .ec-flag { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .10), 0 1px 3px rgba(0, 0, 0, .5); }

/* ---------------------------------------------------------------- 2a. hero quick chips (one per calculator) */
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; max-width: 600px; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding-inline: 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .3s, transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
:root[data-theme="dark"] .cc-chip { background: var(--surface-2); }
.cc-chip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cc-chip-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand-ink); font-size: 10.5px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--brand-100); }
.cc-hero .ac-hero-meta { margin-top: clamp(22px, 2.4vw, 30px); }

/* ---------------------------------------------------------------- 2b. HERO VISUAL — pip value mini-widget */
.cc-pv {
  --cc-card-bg: rgba(255, 255, 255, .80);
  --cc-card-border: rgba(255, 255, 255, .95);
  --cc-card-ring: rgba(17, 103, 235, .10);
  --cc-card-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 1px var(--cc-card-ring), 0 60px 110px -40px rgba(17, 52, 120, .34), 0 24px 44px -24px rgba(10, 22, 40, .16);
  --cc-stage-bg: linear-gradient(180deg, rgba(238, 244, 255, .7), rgba(248, 250, 253, .5));
  --cc-tx: 0; --cc-ty: 0;
  position: relative; width: 100%; max-width: 540px; margin-inline: auto;
  perspective: 1400px; direction: ltr; text-align: left;
}
:root[data-theme="dark"] .cc-pv {
  --cc-card-bg: rgba(43, 12, 57, .72);
  --cc-card-border: rgba(200, 180, 213, .14);
  --cc-card-ring: rgba(153, 117, 176, .14);
  --cc-card-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 0 0 1px var(--cc-card-ring), 0 50px 130px -40px rgba(85, 25, 124, .42), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --cc-stage-bg: linear-gradient(180deg, rgba(153, 117, 176, .07), rgba(45, 12, 60, .2));
}
.cc-pv-card {
  position: relative; overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: var(--cc-card-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--cc-card-border);
  box-shadow: var(--cc-card-shadow);
  transform: rotateX(calc(var(--cc-ty) * -2.5deg)) rotateY(calc(var(--cc-tx) * 3.5deg));
  transition: transform .7s var(--ease-out);
}
.cc-pv-glare { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(520px circle at calc(50% + var(--cc-tx) * 45%) calc(25% + var(--cc-ty) * 50%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
:root[data-theme="dark"] .cc-pv-glare { background: radial-gradient(520px circle at calc(50% + var(--cc-tx) * 45%) calc(25% + var(--cc-ty) * 50%), rgba(187, 163, 203, .12), rgba(187, 163, 203, 0) 50%); mix-blend-mode: normal; }
.cc-pv-card > * { position: relative; }

.cc-pv-head { display: flex; align-items: center; gap: 12px; }
.cc-pv-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }
.cc-pv-ttl { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cc-pv-ttl b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cc-pv-ttl > span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cc-pv-badge { margin-left: auto; padding: 4px 9px; border-radius: 7px; border: 1px dashed var(--line-strong); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* pair segmented control */
.cc-pv-pairs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 0; padding: 3px; border: 0; border-radius: 12px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
:root[data-theme="dark"] .cc-pv-pairs { background: rgba(255, 255, 255, .04); }
.cc-pv-seg-ind { position: absolute; top: 3px; bottom: 3px; left: 0; width: var(--w, 0); border-radius: 9px; background: var(--surface); box-shadow: 0 1px 2px rgba(10, 22, 40, .10), 0 0 0 1px var(--line); transform: translateX(var(--x, 0)); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
:root[data-theme="dark"] .cc-pv-seg-ind { background: rgba(153, 117, 176, .22); box-shadow: inset 0 0 0 1px rgba(187, 163, 203, .28); }
.cc-pv-pairs.is-ready .cc-pv-seg-ind { opacity: 1; }
.cc-pv-seg { position: relative; z-index: 1; min-width: 0; cursor: pointer; }
.cc-pv-seg-in { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 9px; font-size: 11.5px; font-weight: 600; color: var(--muted); transition: color .3s, background-color .3s; white-space: nowrap; }
.cc-pv-seg:hover .cc-pv-seg-in { color: var(--ink); }
.cc-pv-seg input:checked + .cc-pv-seg-in { color: var(--ink); background: var(--surface); }
.cc-pv-pairs.is-ready .cc-pv-seg input:checked + .cc-pv-seg-in { background: transparent; }
:root[data-theme="dark"] .cc-pv-seg input:checked + .cc-pv-seg-in { color: #FFFFFF; }
.cc-pv-seg input:focus-visible + .cc-pv-seg-in { outline: 2px solid var(--brand); outline-offset: 1px; }
.cc-pv-flags { position: relative; display: inline-flex; width: 25px; height: 15px; flex: none; }
.cc-pv-flags .ec-flag { position: absolute; top: 0; width: 15px; height: 15px; }
.cc-pv-flags .ec-flag:first-child { left: 0; z-index: 1; }
.cc-pv-flags .ec-flag:last-child { left: 10px; }

/* size + move rows */
.cc-pv-size, .cc-pv-move { margin-top: 14px; }
.cc-pv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cc-pv-k { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cc-pv-lots, .cc-pv-mv { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cc-pv-lots b, .cc-pv-mv b { font-size: 15px; font-weight: 600; color: var(--ink); }
.cc-pv-units { margin-left: 4px; }

.cc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 4px 0 0; background: transparent; cursor: pointer; --fill: 50%; --a: 50%; --b: 50%; --mc: var(--brand); }
.cc-range:focus { outline: none; }
.cc-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.cc-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--line-strong) var(--fill)); }
.cc-range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--line-strong) var(--fill)); }
.cc-range.is-move::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--line-strong) var(--a), var(--mc) var(--a), var(--mc) var(--b), var(--line-strong) var(--b)); }
.cc-range.is-move::-moz-range-track { background: linear-gradient(90deg, var(--line-strong) var(--a), var(--mc) var(--a), var(--mc) var(--b), var(--line-strong) var(--b)); }
.cc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(17, 103, 235, .35); transition: transform .2s var(--ease-out); }
:root[data-theme="dark"] .cc-range::-webkit-slider-thumb { box-shadow: 0 2px 8px rgba(136, 94, 163, .35); } /* brand Night */
.cc-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(17, 103, 235, .35); }
:root[data-theme="dark"] .cc-range::-moz-range-thumb { box-shadow: 0 2px 8px rgba(136, 94, 163, .35); } /* brand Night */
.cc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.cc-range.is-move::-webkit-slider-thumb { border-color: var(--mc); }
.cc-range.is-move::-moz-range-thumb { border-color: var(--mc); }

.cc-pv-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.cc-pv-q { display: flex; align-items: baseline; justify-content: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 11px; color: var(--muted); transition: border-color .3s, background-color .3s, color .3s; white-space: nowrap; min-width: 0; }
:root[data-theme="dark"] .cc-pv-q { background: rgba(255, 255, 255, .03); }
.cc-pv-q b { font-size: 12px; font-weight: 600; color: var(--ink); }
.cc-pv-q:hover { border-color: var(--line-strong); color: var(--text); }
.cc-pv-q[aria-pressed="true"] { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-50); color: var(--brand-ink); }
.cc-pv-q[aria-pressed="true"] b { color: var(--brand-ink); }

/* pip ladder */
.cc-pv-ladder { position: relative; height: 150px; margin-top: 14px; border-radius: 14px; background: var(--cc-stage-bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cc-pv-plot { position: absolute; left: 48px; right: 96px; top: 12px; bottom: 12px; }
.cc-pv-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cc-pv-lv { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.cc-pv-lv.is-entry { stroke: var(--muted); stroke-dasharray: none; opacity: .55; }
.cc-pv-area.is-up { fill: var(--bull-vivid); opacity: .14; }
.cc-pv-area.is-dn { fill: var(--bear-vivid); opacity: .14; }
.cc-pv-line { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cc-pv-now { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: .45; }
.cc-pv-lvl { position: absolute; left: 0; right: 0; top: calc(12px + (100% - 24px) * var(--yn)); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; transform: translateY(-50%); pointer-events: none; }
.cc-pv-lvl b { min-width: 30px; font-size: 10px; font-weight: 600; color: var(--muted); }
.cc-pv-lvl.is-entry b { font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.cc-pv-usd { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.cc-pv-lvl.is-entry .cc-pv-usd { color: var(--ink); font-weight: 600; }
.cc-pv-lvl[data-s="up"] .cc-pv-usd { color: var(--bull); }
.cc-pv-lvl[data-s="dn"] .cc-pv-usd { color: var(--bear); }
.cc-pv-dot { position: absolute; left: 86%; top: 32%; width: 0; height: 0; will-change: transform; }
.cc-pv-dot i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100), 0 0 18px var(--brand-glow); }
.cc-pv-tag { position: absolute; left: 86%; top: 32%; will-change: transform; }
.cc-pv.is-live .cc-pv-dot, .cc-pv.is-live .cc-pv-tag { top: 0; }
.cc-pv-tag > span { position: absolute; left: 12px; top: -11px; display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px -6px var(--brand-glow); }
.cc-pv-tag[data-s="up"] > span { background: var(--bull); } /* text-safe green: white label at 5:1 (vivid was 3.1:1) */
:root[data-theme="dark"] .cc-pv-tag[data-s="up"] > span { background: var(--bull-vivid); color: #230A2F; } /* dark ink on the bright green (8.8:1) */
.cc-pv-tag[data-s="dn"] > span { background: var(--bear-vivid); }

/* results */
.cc-pv-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; margin-top: 14px; }
.cc-pv-res { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
:root[data-theme="dark"] .cc-pv-res { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }
.cc-pv-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 11px; color: var(--muted); }
.cc-pv-big b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); border-radius: 6px; }
.cc-pv-res.is-pl[data-sign="up"] .cc-pv-big b { color: var(--bull); }
.cc-pv-res.is-pl[data-sign="dn"] .cc-pv-big b { color: var(--bear); }
.cc-pv-px { font-size: 10.5px; white-space: nowrap; }
.cc-pv-note { margin-top: 10px; font-size: 10.5px; color: var(--muted); }
/* fa / ar: word values in the facts strip read in the sans face (mono has no Arabic script) */
html[dir="rtl"] .cc-facts .ac-fact-v .num { font-family: var(--font-sans); letter-spacing: 0; font-weight: 700; }
html[dir="rtl"] .cc-pv-badge, html[dir="rtl"] .cc-pv-k, html[dir="rtl"] .cc-pv-lvl.is-entry b { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 11px; }
html[dir="rtl"] .cc-pv-ttl > span, html[dir="rtl"] .cc-pv-note, html[dir="rtl"] .cc-pv-q span, html[dir="rtl"] .cc-pv-big span[dir] { font-family: var(--font-sans); }

/* ---------------------------------------------------------------- 3. CALCULATOR WORKSPACE (tabs) */
#calculators .chapter-head { margin-inline: auto; }
.cc-ws { position: relative; display: grid; grid-template-columns: minmax(260px, 330px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start; margin-top: clamp(36px, 4.5vw, 64px); }
.cc-ws::before { content: ""; position: absolute; inset: -10% 10% auto; height: 60%; z-index: -1; background: radial-gradient(60% 60% at 60% 40%, var(--field-a), transparent 70%); pointer-events: none; }
.cc-tablist {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px;
  border-radius: 22px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-hi);
}
.cc-tab-ind { position: absolute; right: 8px; left: 8px; top: 0; height: var(--h, 0); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); transform: translate3d(var(--x, 0), var(--y, 0), 0); opacity: 0; transition: transform .55s var(--ease-out), height .55s var(--ease-out), width .55s var(--ease-out); pointer-events: none; }
:root[data-theme="dark"] .cc-tab-ind { background: var(--surface-2); box-shadow: 0 0 0 1px rgba(187, 163, 203, .22), 0 10px 30px -12px rgba(0, 0, 0, .6); }
.cc-tab-ind::before { content: ""; position: absolute; inset-inline-start: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--grad-brand); }
.cc-tablist.is-ready .cc-tab-ind { opacity: 1; }
.cc-tab {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) 14px; align-items: center; gap: 12px;
  min-height: 66px; padding: 10px 14px;
  border-radius: 15px; text-align: start; color: var(--text);
  transition: background-color .3s, color .3s;
}
.cc-tab:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); }
.cc-tab[aria-selected="true"] { background: var(--surface); }
.cc-tablist.is-ready .cc-tab[aria-selected="true"], .cc-tablist.is-ready .cc-tab:hover { background: transparent; }
.cc-tab:focus-visible { outline-offset: -2px; }
.cc-tab-n { font-size: 11px; font-weight: 600; color: var(--faint); transition: color .3s; }
.cc-tab-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: background .45s var(--ease-out), color .45s, box-shadow .45s; }
:root[data-theme="dark"] .cc-tab-ico { background: rgba(255, 255, 255, .04); }
.cc-tab-ico .ico { width: 20px; height: 20px; }
.cc-tab-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cc-tab-txt b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.cc-tab-sub { font-size: 11.5px; color: var(--muted); font-family: var(--font-sans); }
.cc-tab-go { color: var(--faint); transition: color .3s, transform .4s var(--ease-out); }
.cc-tab[aria-selected="true"] .cc-tab-n { color: var(--brand-ink); }
.cc-tab[aria-selected="true"] .cc-tab-ico { background: var(--btn-bg); color: #fff; box-shadow: 0 10px 22px -10px var(--brand-glow); }
.cc-tab[aria-selected="true"] .cc-tab-go { color: var(--brand); }
.cc-tab:hover .cc-tab-go { transform: translateX(2px); }

.cc-stage { min-width: 0; }
.cc-panel { position: relative; padding: 10px; border-radius: 26px; background: var(--surface-glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hi); }
.cc-panel + .cc-panel { margin-top: 18px; }
.cc-panel[hidden] { display: none; }
.cc-panel:focus-visible { outline-offset: 4px; }
.cc-panel.is-enter { animation: cc-panel-in .6s var(--ease-out) both; }
@keyframes cc-panel-in { from { opacity: 0; transform: translateY(10px); } }
.cc-panel-head { display: flex; align-items: center; gap: 14px; padding: 8px 12px 14px; }
.cc-panel-n { font-size: 11px; font-weight: 600; color: var(--brand-ink); letter-spacing: .04em; }
.cc-panel-n i { font-style: normal; color: var(--faint); }
.cc-panel-t { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }

/* the account chip in the panel head */
.cc-panel-acct { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
:root[data-theme="dark"] .cc-panel-acct { background: rgba(255, 255, 255, .05); }
.cc-panel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }

/* ---------------------------------------------------------------- 3b. NATIVE CALCULATORS — form + result card */
.cc-stage { container-type: inline-size; }
.cc-calc { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 10px; align-items: stretch; }
.cc-form { min-width: 0; padding: clamp(16px, 1.8vw, 22px); border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .cc-form { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.cc-desc { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 54ch; text-wrap: pretty; }
.cc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.cc-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cc-f[hidden] { display: none; }
.cc-f-wide { grid-column: 1 / -1; }
.cc-f-l { padding: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.cc-f-h { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.cc-f-rate .cc-f-l { color: var(--brand-ink); }

/* number box: value · unit · steppers */
.cc-in, .cc-sel { position: relative; display: flex; align-items: center; height: 48px; border-radius: 13px; border: 1px solid var(--line-strong); background: var(--surface); transition: border-color .25s, box-shadow .25s, background-color .25s; }
:root[data-theme="dark"] .cc-in, :root[data-theme="dark"] .cc-sel { background: rgba(255, 255, 255, .04); }
.cc-in:hover, .cc-sel:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line-strong)); }
.cc-in:focus-within, .cc-sel:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.cc-in:has(.cc-in-i[aria-invalid="true"]) { border-color: var(--bear); box-shadow: 0 0 0 4px var(--bear-bg); }
.cc-in-i { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; border-radius: inherit; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); text-align: right; outline: none; }
.cc-in-u { flex: none; padding-inline-end: 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cc-step { display: flex; flex: none; gap: 4px; padding-inline-end: 6px; }
.cc-step-b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s, transform .15s; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
:root[data-theme="dark"] .cc-step-b { background: rgba(255, 255, 255, .06); }
.cc-step-b:hover { background: var(--brand-50); color: var(--brand-ink); }
.cc-step-b:active { transform: scale(.92); }
.cc-step-b .ico { width: 14px; height: 14px; stroke-width: 2; }

/* unit switch (% / USD) */
.cc-sw { display: flex; flex: none; gap: 2px; margin-inline-end: 6px; padding: 3px; border-radius: 10px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .cc-sw { background: rgba(255, 255, 255, .05); }
.cc-sw-o { cursor: pointer; }
.cc-sw-o span { display: grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: 8px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s; }
.cc-sw-o:hover span { color: var(--ink); }
.cc-sw-o input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 22, 40, .10), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .cc-sw-o input:checked + span { background: rgba(153, 117, 176, .26); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(187, 163, 203, .3); }
.cc-sw-o input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

/* selects (instrument with its two flags · leverage) */
.cc-sel-flags { position: absolute; right: 13px; top: 50%; width: 30px; height: 18px; margin-top: -9px; pointer-events: none; }
.cc-sel-flags .ec-flag { position: absolute; top: 0; width: 18px; height: 18px; }
.cc-sel-flags .ec-flag:first-child { right: 0; z-index: 1; }
.cc-sel-flags .ec-flag:last-child { right: 12px; }
.cc-sel-i { -webkit-appearance: none; appearance: none; width: 100%; height: 100%; padding: 0 54px 0 40px; border: 0; border-radius: inherit; background: transparent; font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; outline: none; }
.cc-sel.is-plain .cc-sel-i { padding-right: 14px; }
.cc-sel-arr { position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--muted); pointer-events: none; }
:root[data-theme="dark"] .cc-sel-i { color-scheme: dark; }
:root[data-theme="dark"] .cc-sel-i option, :root[data-theme="dark"] .cc-sel-i optgroup { background: #2D0C3C; color: #F5F3F6; }

/* buy / sell */
.cc-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .cc-seg { background: rgba(255, 255, 255, .05); }
.cc-seg-o { cursor: pointer; min-width: 0; }
.cc-seg-in { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s; }
.cc-seg-in::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.cc-seg-o:hover .cc-seg-in { color: var(--ink); }
.cc-seg-o input:checked + .cc-seg-in.is-buy { background: var(--bull); color: #FFFFFF; box-shadow: 0 10px 20px -12px var(--bull); }
.cc-seg-o input:checked + .cc-seg-in.is-sell { background: var(--bear); color: #FFFFFF; box-shadow: 0 10px 20px -12px var(--bear); }
:root[data-theme="dark"] .cc-seg-o input:checked + .cc-seg-in.is-buy { background: var(--bull-vivid); color: #230A2F; }
:root[data-theme="dark"] .cc-seg-o input:checked + .cc-seg-in.is-sell { background: var(--bear-vivid); }
.cc-seg-o input:checked + .cc-seg-in::before { opacity: 1; }
.cc-seg-o input:focus-visible + .cc-seg-in { outline: 2px solid var(--brand); outline-offset: 2px; }

.cc-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.cc-reset { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); transition: color .25s, background-color .25s, box-shadow .25s; }
.cc-reset .ico { width: 14px; height: 14px; transition: transform .6s var(--ease-out); }
.cc-reset:hover { color: var(--ink); background: var(--surface-2); }
.cc-reset:hover .ico { transform: rotate(-200deg); }
.cc-err { flex: 1; min-width: 180px; margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--bear); }
.cc-err[hidden] { display: none; }

/* result card — an "ink" panel in both themes */
.cc-out {
  --o-text: #C9D6EE; --o-dim: #93A6CB; --o-k: #8DB8FF; --o-line: rgba(255, 255, 255, .10); --o-grid: rgba(111, 166, 255, .07);
  --o-up: #3DDC97; --o-dn: #FF7D84; --o-chip: rgba(255, 255, 255, .08);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(18px, 2vw, 24px); border-radius: 18px; background: var(--grad-ink); color: var(--o-text);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 80, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}
:root[data-theme="dark"] .cc-out {
  --o-text: #DED8E2; --o-dim: #BCB0C2; --o-k: #C4AFD2; --o-line: rgba(222, 216, 226, .12); --o-grid: rgba(182, 156, 199, .07);
  --o-up: #6FD3A6; --o-dn: #F08A8B; --o-chip: rgba(255, 255, 255, .07);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(200, 180, 213, .14);
}
.cc-out-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--o-grid) 1px, transparent 1px), linear-gradient(-90deg, var(--o-grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(90% 70% at 85% 0%, #000, transparent 75%); mask-image: radial-gradient(90% 70% at 85% 0%, #000, transparent 75%); }
.cc-out-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.cc-out-k { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--o-k); }
.cc-out-sym { padding: 4px 9px; border-radius: 7px; background: var(--o-chip); box-shadow: inset 0 0 0 1px var(--o-line); font-size: 11px; font-weight: 600; color: #FFFFFF; letter-spacing: .04em; }
.cc-out-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 14px 0 0; font-size: 14px; color: var(--o-dim); }
.cc-out-big b { font-family: var(--font-sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" on; font-size: clamp(34px, 3.6vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: #FFFFFF; border-radius: 8px; transition: color .3s; }
.cc-out-big.is-signed[data-sign="up"] b { color: var(--o-up); }
.cc-out-big.is-signed[data-sign="dn"] b { color: var(--o-dn); }
.cc-out-sub { margin: 8px 0 0; font-size: 13px; color: var(--o-dim); }
.cc-out-sub b { font-size: 13.5px; font-weight: 600; color: #FFFFFF; }
.cc-out-sub [hidden] { display: none; }
.cc-out-f { align-self: flex-start; max-width: 100%; margin: 16px 0 0; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--o-line); font-size: 11.5px; line-height: 1.5; color: var(--o-dim); overflow-wrap: anywhere; }
.cc-out-warn { margin: 12px 0 0; padding: 9px 11px; border-radius: 10px; background: rgba(255, 93, 102, .14); box-shadow: inset 0 0 0 1px rgba(255, 125, 132, .25); font-size: 12px; line-height: 1.45; color: #FFC2C5; }
.cc-out-warn[hidden] { display: none; }
.cc-out-dl { display: grid; margin: auto 0 0; padding-top: 18px; }
.cc-out-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--o-line); }
.cc-out-row dt { min-width: 0; font-size: 13px; color: var(--o-dim); }
.cc-out-row dd { margin: 0; text-align: end; white-space: nowrap; font-size: 11.5px; color: var(--o-dim); }
.cc-out-row dd b { font-size: 15px; font-weight: 600; color: #FFFFFF; transition: color .3s; }
.cc-out-row.is-signed[data-sign="up"] dd b { color: var(--o-up); }
.cc-out-row.is-signed[data-sign="dn"] dd b { color: var(--o-dn); }
.cc-calc.is-invalid .cc-out-big b, .cc-calc.is-invalid .cc-out-row dd b { color: var(--o-dim); }

/* risk : reward split bar + win-rate meter */
.cc-rr { margin-top: 16px; }
.cc-rr-bar { display: flex; gap: 3px; height: 10px; }
.cc-rr-bar i { display: block; border-radius: 6px; }
.cc-rr-bar .is-risk { flex: none; width: var(--r, 33.3%); background: linear-gradient(-90deg, var(--o-dn), #FF5D66); transition: width .5s var(--ease-out); }
.cc-rr-bar .is-reward { flex: 1; background: linear-gradient(-90deg, #22C98E, var(--o-up)); }
.cc-rr-lab { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--o-dim); }
.cc-rr-lab > span { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.cc-rr-lab i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; align-self: center; }
.cc-rr-lab .is-risk i { background: var(--o-dn); }
.cc-rr-lab .is-reward i { background: var(--o-up); }
.cc-rr-lab b { font-weight: 600; color: #FFFFFF; }
.cc-wr { margin-top: 14px; padding: 12px 12px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--o-line); }
.cc-wr-track { position: relative; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .10); }
.cc-wr-fill { position: absolute; right: 0; top: 0; bottom: 0; width: var(--w, 50%); border-radius: 6px; background: var(--o-up); transition: width .5s var(--ease-out), background-color .3s; }
.cc-wr[data-sign="dn"] .cc-wr-fill { background: var(--o-dn); }
.cc-wr[data-sign=""] .cc-wr-fill { background: var(--o-dim); }
.cc-wr-be { position: absolute; top: -5px; bottom: -5px; right: var(--be, 33.3%); width: 2px; margin-right: -1px; border-radius: 2px; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); transition: right .5s var(--ease-out); }
.cc-wr-v { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 10px 0 0; font-size: 12px; color: var(--o-dim); }
.cc-wr-v b { font-weight: 600; color: #FFFFFF; }
.cc-wr-t { color: var(--o-up); }
.cc-wr[data-sign="dn"] .cc-wr-t { color: var(--o-dn); }

.cc-ws-note { max-width: 820px; margin: 22px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); text-align: center; text-wrap: balance; }
.cc-ws-note .ico { display: inline-block; width: 15px; height: 15px; margin-inline-end: 6px; vertical-align: -3px; color: var(--brand); }

/* fa / ar: no letter-spaced capitals (mono has no Arabic script) */
html[dir="rtl"] .cc-out-k, html[dir="rtl"] .cc-sw-o span { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 12px; }

/* narrow panel (tablet, phone): the result card goes under the form */
@container (max-width: 760px) {
  .cc-calc { grid-template-columns: minmax(0, 1fr); }
  .cc-out-dl { margin-top: 0; }
}
@container (max-width: 460px) {
  .cc-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cc-form { padding: 16px 14px; }
  .cc-out { padding: 18px 16px; }
  .cc-out-big b { font-size: 34px; }
}

/* ---------------------------------------------------------------- 4. PLAN + WHY ONLINE */
.cc-plan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.cc-plan .chapter-head { margin-bottom: 0; }
.cc-plan-actions { margin-top: clamp(26px, 3vw, 36px); }
.cc-online { position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-xl); background: var(--grad-ink); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); color: #C9D6EE; }
:root[data-theme="dark"] .cc-online { color: #DED8E2; } /* brand Night */
.cc-online::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(111, 166, 255, .07) 1px, transparent 1px), linear-gradient(-90deg, rgba(111, 166, 255, .07) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(90% 80% at 80% 0%, #000, transparent 75%); mask-image: radial-gradient(90% 80% at 80% 0%, #000, transparent 75%); }
:root[data-theme="dark"] .cc-online::before { background-image: linear-gradient(rgba(182, 156, 199, .07) 1px, transparent 1px), linear-gradient(-90deg, rgba(182, 156, 199, .07) 1px, transparent 1px); } /* brand Night */
.cc-online-eb { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8DB8FF; }
:root[data-theme="dark"] .cc-online-eb { color: #C4AFD2; } /* brand Night */
.cc-online-eb-dot { width: 7px; height: 7px; border-radius: 50%; background: #6FA6FF; box-shadow: 0 0 0 4px rgba(111, 166, 255, .18); }
:root[data-theme="dark"] .cc-online-eb-dot { background: #B69CC7; box-shadow: 0 0 0 4px rgba(182, 156, 199, .18); } /* brand Night */
.cc-online-t { margin: 14px 0 12px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.cc-online-x { font-size: 16px; line-height: 1.65; color: #B9C7E2; text-wrap: pretty; }
:root[data-theme="dark"] .cc-online-x { color: #D5CBD9; } /* brand Night */
.cc-aim { display: grid; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); direction: ltr; }
.cc-aim-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: auto 44px; column-gap: 6px; align-items: center; }
.cc-aim-k { grid-column: 1 / -1; margin-bottom: 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #93A6CB; }
:root[data-theme="dark"] .cc-aim-k { color: #BCB0C2; } /* brand Night */
.cc-aim-row.is-calc .cc-aim-k { color: #8DB8FF; }
:root[data-theme="dark"] .cc-aim-row.is-calc .cc-aim-k { color: #C4AFD2; } /* brand Night */
.cc-aim-svg { display: block; width: 100%; height: 44px; overflow: visible; }
.cc-aim-base { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.cc-aim-path { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; } /* no non-scaling-stroke: it breaks pathLength dashes on a stretched viewBox */
.cc-aim-row.is-manual .cc-aim-path { stroke: rgba(201, 214, 238, .55); }
:root[data-theme="dark"] .cc-aim-row.is-manual .cc-aim-path { stroke: rgba(222, 216, 226, .55); } /* brand Night */
.cc-aim-row.is-calc .cc-aim-path { stroke: #6FA6FF; filter: drop-shadow(0 0 6px rgba(111, 166, 255, .6)); }
:root[data-theme="dark"] .cc-aim-row.is-calc .cc-aim-path { stroke: #B69CC7; filter: drop-shadow(0 0 6px rgba(182, 156, 199, .6)); } /* brand Night */
.cc-aim-miss { fill: #FF5D66; }
.cc-aim-target { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 6px rgba(255, 255, 255, .04); }
.cc-aim-target i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.cc-aim-ok { position: absolute; inset: 7px; display: grid; place-items: center; border-radius: 50%; background: #22C98E; color: #06210F; box-shadow: 0 0 0 5px rgba(34, 201, 142, .18), 0 0 18px rgba(34, 201, 142, .45); }
.cc-aim-ok .ico { stroke-width: 2.4; }
.cc-aim-x { position: absolute; right: -2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FF5D66; box-shadow: 0 0 0 3px rgba(255, 93, 102, .2); }
html.js .cc-online-wrap:not(.is-in) .cc-aim-path { stroke-dashoffset: 1; }
html.js .cc-online-wrap .cc-aim-row.is-manual .cc-aim-path { transition: stroke-dashoffset 2.6s var(--ease-io) .5s; }
html.js .cc-online-wrap .cc-aim-row.is-calc .cc-aim-path { transition: stroke-dashoffset .9s var(--ease-out) .7s; }
html.js .cc-online-wrap:not(.is-in) .cc-aim-ok, html.js .cc-online-wrap:not(.is-in) .cc-aim-x, html.js .cc-online-wrap:not(.is-in) .cc-aim-miss { opacity: 0; transform: scale(.4); }
html.js .cc-online-wrap .cc-aim-ok { transition: opacity .4s var(--ease-out) 1.55s, transform .6s var(--ease-spring) 1.55s; }
html.js .cc-online-wrap .cc-aim-x, html.js .cc-online-wrap .cc-aim-miss { transition: opacity .4s var(--ease-out) 3s, transform .6s var(--ease-spring) 3s; transform-origin: center; transform-box: fill-box; }
html[dir="rtl"] .cc-online-eb, html[dir="rtl"] .cc-aim-k { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 12.5px; }

/* ---------------------------------------------------------------- 5. IMPORTANCE + QUOTE */
.cc-imp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.cc-imp .chapter-head { margin-bottom: 0; }
.cc-imp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cc-imp-li { display: flex; }
.cc-imp-item {
  position: relative; flex: 1; display: flex; align-items: center; gap: 16px;
  min-height: 74px; padding: 14px 18px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .3s;
}
.cc-imp-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.cc-imp-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); transition: background .4s var(--ease-out), color .4s; }
.cc-imp-ico .ico { width: 20px; height: 20px; }
.cc-imp-item:hover .cc-imp-ico { background: var(--btn-bg); color: #fff; }
.cc-imp-t { flex: 1; min-width: 0; font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cc-imp-tick { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bull-bg); color: var(--bull); }
.cc-imp-tick .ico { stroke-width: 2.2; }
html.js .cc-imp-li:not(.is-in) .cc-imp-tick { transform: scale(.3); opacity: 0; }
html.js .cc-imp-li .cc-imp-tick { transition: transform .6s var(--ease-spring) .45s, opacity .4s var(--ease-out) .45s; }

.cc-quote { margin: clamp(64px, 8vw, 112px) 0 0; text-align: center; }
.cc-vernier { position: relative; width: min(560px, 100%); height: 40px; margin: 0 auto clamp(26px, 3vw, 36px); direction: ltr; }
.cc-vernier-main, .cc-vernier-slide { position: absolute; left: 0; display: flex; justify-content: space-between; }
.cc-vernier-main { right: 0; top: 0; height: 18px; align-items: flex-end; border-bottom: 1px solid var(--line-strong); }
.cc-vernier-main i { width: 1px; height: 8px; background: var(--line-strong); }
.cc-vernier-main i:nth-child(5n + 1) { height: 15px; background: var(--muted); }
.cc-vernier-slide { top: 19px; width: 45%; height: 16px; left: 27.5%; align-items: flex-start; transition: transform 1.6s var(--ease-out) .3s; }
.cc-vernier-slide i { width: 1px; height: 9px; background: var(--brand); }
.cc-vernier-slide i:nth-child(5n + 1) { height: 15px; }
.cc-vernier-slide i:first-child, .cc-vernier-slide i:last-child { width: 2px; background: var(--brand); box-shadow: 0 0 8px var(--brand-glow); }
html.js .cc-quote:not(.is-in) .cc-vernier-slide { transform: translateX(-90px); }
.cc-quote-t { margin: 0; }
.cc-quote-t p { max-width: 920px; margin-inline: auto; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.32; font-weight: 600; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }

/* ---------------------------------------------------------------- 6. RESPONSIVE */
@media (max-width: 1099px) {
  .cc-plan, .cc-imp { grid-template-columns: minmax(0, 1fr); }
  .cc-ws { grid-template-columns: minmax(0, 1fr); }
  .cc-tablist {
    position: relative; top: auto; flex-direction: row; gap: 4px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity;
    border-radius: 18px; padding: 6px;
  }
  .cc-tablist::-webkit-scrollbar { display: none; }
  .cc-tab { flex: none; grid-template-columns: 34px auto; gap: 10px; min-height: 52px; padding: 8px 8px 8px 14px; scroll-snap-align: start; border-radius: 13px; }
  .cc-tab-n, .cc-tab-go { display: none; }
  .cc-tab-ico { width: 34px; height: 34px; border-radius: 10px; }
  .cc-tab-ico .ico { width: 18px; height: 18px; }
  .cc-tab-txt b { font-size: 14px; white-space: nowrap; }
  .cc-tab-sub { display: none; }
  .cc-tab-ind { top: 6px; width: var(--w, 0); height: calc(100% - 12px); border-radius: 13px; }
  .cc-tab-ind { left: 0; right: auto; }
  .cc-tab-ind::before { inset-inline-start: 14px; inset-inline-end: 14px; top: auto; bottom: -1px; width: auto; height: 3px; }
}
@media (max-width: 760px) {
  .cc-panel { padding: 6px; border-radius: 20px; }
  .cc-panel-head { padding: 8px 10px 12px; gap: 10px; }
  .cc-panel-t { font-size: 15.5px; }
  .cc-chip { height: 36px; font-size: 13px; }
}
@media (max-width: 560px) {
  .cc-pv-card { padding: 14px 12px; border-radius: 18px; }
  .cc-pv-ttl > span { display: none; }
  .cc-pv-seg-in { gap: 0; font-size: 10.5px; }
  .cc-pv-flags { display: none; }
  .cc-pv-units { display: none; }
  .cc-pv-ladder { height: 132px; }
  .cc-pv-plot { left: 40px; right: 78px; }
  .cc-pv-tag > span { left: auto; right: 12px; }
  .cc-pv-big b { font-size: 18px; }
  .cc-pv-q { font-size: 10px; gap: 4px; }
}
@media (max-width: 380px) {
  .cc-pv-q span { display: none; }
  .cc-pv-px { display: none; }
}
@media (max-width: 1023px) {
  .cc-facts .ac-fact:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .cc-imp-item { gap: 12px; padding: 12px 14px; }
  .cc-chips { gap: 6px; }
}

/* ---------------------------------------------------------------- 7. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .cc-pv-card { transform: none; }
  .cc-panel.is-enter { animation: none; }
}
html.reduced .cc-pv-card { transform: none; }
html.reduced .cc-panel.is-enter { animation: none; }
