/* CloudStream /pay/ — design B "Activate in 3 steps" (approved 2026-11-12).
   Replaces cs-pay-20260927-5.css on /pay/ only (/paydevice/ keeps the old sheet).
   One centred column: header (brand, ☀/☾, language) → H1 + one price line → a vertical stepper
   (1 Your device · 2 Your email · 3 Pay once) → everything else (video, why tiles, reviews, FAQ).
   Every id / class read by pay.js still exists. Dark = today's Stadium colours; light palette under
   html[data-cs-theme="light"] (set by the first script in <head>, saved in localStorage['cs-theme']).
   Deployed next to fonts/ in /wp-content/uploads/cs-home-option1/stadium/.
   2026-11-13 (-m): cs-pay-20261112-b.css + the Monthly plan block at the end (plan cards in step 3). */

/* ---------- Barlow + Barlow Condensed (SIL Open Font License), self-hosted latin subset ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens: dark (today's look) ---------- */
:root {
  --bg: #0B0B0F;
  --s1: #191521;          /* panels */
  --s2: #1F1B2A;          /* raised */
  --line: #2F283E;
  --line2: #6E33CC;
  --hair: #241F30;
  --foot: #0A080D;
  --input: #0A080D;
  --text: #F8F7FA;
  --soft: #D6D3DE;
  --muted: #B3ADC1;
  --ph: #8D84A3;
  --acc: #FFD400;         /* lime FILL (buttons, badges): the same in both themes */
  --acc-hi: #FFE045;
  --acc-ink: #0B0B0F;     /* text on lime */
  --acc-t: #FFD400;       /* accent used as TEXT or BORDER */
  --acc-tint: rgba(255, 212, 0, 0.08);
  --ring: rgba(255, 212, 0, 0.18);
  --deco: #8C52EA;
  --ok: #4ADE80;
  --on-ok: #0B0B0F;
  --ok-tint: rgba(74, 222, 128, 0.09);
  --ok-line: rgba(74, 222, 128, 0.45);
  --err: #FF8A8A;
  --err-tint: rgba(255, 138, 138, 0.09);
  --info: #B792F2;
  --info-tint: rgba(183, 146, 242, 0.09);
  --warn: #FFE14B;
  --warn-tint: rgba(255, 225, 75, 0.07);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --cta-glow: 0 14px 34px rgba(255, 212, 0, 0.18);
  --tv-frame: #302940;
  --tv-screen: #120F18;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --arabic: system-ui, "Segoe UI", Tahoma, "Geeza Pro", "Noto Kufi Arabic", sans-serif;
  --gut: clamp(16px, 3.4vw, 40px);
  --col: 600px;
  --r: 14px;
  --r-sm: 10px;
  --touch: 44px;
  color-scheme: dark;
}

/* ---------- Tokens: light (owner palette) ---------- */
html[data-cs-theme="light"] {
  --bg: #F7F6F9;
  --s1: #FFFFFF;
  --s2: #F2F0F6;
  --line: #D9D4E5;
  --line2: #CCC8D5;
  --hair: #E7E4EF;
  --foot: #F2F0F6;
  --input: #FFFFFF;
  --text: #0B0B0F;
  --soft: #2E273D;
  --muted: #635B74;
  --ph: #938BA7;
  --acc-t: #541EAA;
  --acc-tint: rgba(84, 30, 170, 0.07);
  --ring: rgba(84, 30, 170, 0.18);
  --deco: #702BE0;
  --ok: #15803D;
  --on-ok: #FFFFFF;
  --ok-tint: rgba(21, 128, 61, 0.07);
  --ok-line: rgba(21, 128, 61, 0.4);
  --err: #C0262D;
  --err-tint: rgba(192, 38, 45, 0.06);
  --info: #691EE1;
  --info-tint: rgba(105, 30, 225, 0.06);
  --warn: #B45309;
  --warn-tint: rgba(180, 83, 9, 0.06);
  --shadow: 0 14px 34px rgba(29, 25, 39, 0.1);
  --cta-glow: 0 10px 24px rgba(84, 30, 170, 0.18);
  --tv-frame: #4D475B;
  --tv-screen: #120F18;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--acc-t); text-underline-offset: 3px; }
a:hover { color: var(--text); }
i[class*="fa-"] { font-style: normal; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--acc-t);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header: brand + ☀/☾ + language ---------- */
.pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px var(--gut);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch);
  color: var(--text);
  text-decoration: none;
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }

.brand span {
  margin-left: 2px;
  padding: 4px 9px 3px;
  border-radius: 6px;
  background: var(--acc);
  color: var(--acc-ink);
  font-size: 16px;
  letter-spacing: 0.08em;
}

.pay-tools { display: flex; align-items: center; gap: 8px; }

.cs-theme-btn {
  display: inline-grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin: 0;
  padding: 0;
  background: var(--s1);
  border: 1px solid var(--line2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.cs-theme-btn:hover { border-color: var(--acc-t); }
.cs-theme-btn .fa-sun { color: var(--acc-t); }
.cs-theme-btn .fa-moon { display: none; }
html[data-cs-theme="light"] .cs-theme-btn .fa-sun { display: none; }
html[data-cs-theme="light"] .cs-theme-btn .fa-moon { display: inline-block; }

/* The language menu (SiteLanguage::switcher) sits in the header row. */
.cs-lang--pay { position: relative; }
.cs-lang--pay > summary { border-radius: var(--r-sm); }
.cs-lang--pay .cs-lang-list { border-radius: var(--r-sm); }
html[data-cs-theme="light"] .cs-lang > summary { background: var(--s1); border-color: var(--line2); color: var(--text); }
html[data-cs-theme="light"] .cs-lang > summary:hover,
html[data-cs-theme="light"] .cs-lang[open] > summary { border-color: var(--acc-t); }
html[data-cs-theme="light"] .cs-lang > summary:focus-visible { outline-color: var(--acc-t); }
html[data-cs-theme="light"] .cs-lang .fa-globe { color: var(--acc-t); }
html[data-cs-theme="light"] .cs-lang-list { background: var(--s1); border-color: var(--line2); box-shadow: 0 18px 40px rgba(29, 25, 39, 0.16); }
html[data-cs-theme="light"] .cs-lang-list a { color: var(--text); }
html[data-cs-theme="light"] .cs-lang-list a span { color: var(--muted); }
html[data-cs-theme="light"] .cs-lang-list a:hover,
html[data-cs-theme="light"] .cs-lang-list a:focus-visible { background: var(--s2); }
html[data-cs-theme="light"] .cs-lang-list a[aria-current="true"],
html[data-cs-theme="light"] .cs-lang-list a[aria-current="true"] span { color: var(--acc-t); }

/* ---------- Page column ---------- */
.pay-layout { display: block; padding: 0 var(--gut) 40px; }

.pay-hero,
.checkout-panel {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
}

.pay-hero { padding: 8px 0 18px; }

.pay-hero h1 {
  margin: 0;
  font-family: var(--cond);
  font-size: clamp(32px, 6.4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
}

.pay-kicker {
  display: block;
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc-t);
}

.pay-sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.pay-sub b { color: var(--text); font-weight: 700; }

/* ---------- The stepper ---------- */
.pay-steps { list-style: none; margin: 0; padding: 0; }

.st {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
}

.st-rail { display: flex; flex-direction: column; align-items: center; }

.st-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--line2);
  background: var(--bg);
  color: var(--muted);
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.st-tick { display: none; font-size: 17px; }
.st-ln { flex: 1; width: 2px; min-height: 18px; margin: 6px 0; background: var(--line); border-radius: 2px; transition: background-color 0.2s ease; }

.st-bd { min-width: 0; padding-bottom: 26px; }
.st:last-child .st-bd { padding-bottom: 6px; }

.st-tt {
  margin: 0 0 10px;
  font-family: var(--cond);
  font-size: 23px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

.st-price { white-space: nowrap; }

/* current step: lime ring */
.st.is-now .st-n { border-color: var(--acc-t); color: var(--acc-t); box-shadow: 0 0 0 4px var(--ring); }
/* later steps: muted, still usable */
.st.is-later .st-tt { color: var(--muted); }
/* done: green with a tick */
.st.is-done .st-n { background: var(--ok); border-color: var(--ok); color: var(--on-ok); box-shadow: none; }
.st.is-done .st-num { display: none; }
.st.is-done .st-tick { display: inline-block; }
.st.is-done .st-ln { background: var(--ok); }
.st.is-done .st-tt { color: var(--ok); }

/* step 1 collapsed: "✓ Device found · Device ID 7F3A9C21 · change" */
.st-found {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0 0 4px;
  padding: 10px 14px;
  background: var(--ok-tint);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.4;
}

.st-found > i { color: var(--ok); font-size: 18px; }
.st-found > span:first-of-type { font-weight: 700; }
.st-found b { font-family: var(--mono); font-size: 16px; letter-spacing: 0.12em; }
.st-found-id { white-space: nowrap; }

.st-change,
.consent-more {
  display: inline-block;
  min-height: var(--touch);
  margin: -11px 0;
  padding: 0 6px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 600;
  line-height: var(--touch);
  text-decoration: underline;
  text-underline-offset: 3px;
  vertical-align: middle;
  cursor: pointer;
}

.st-change:hover,
.consent-more:hover { color: var(--text); }

/* ---------- Fields ---------- */
.field { position: relative; margin: 0; }

.field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  cursor: pointer;
}

.field > label span { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }

.input-wrap { position: relative; }

.field input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  background: var(--input);
  border: 2px solid var(--line2);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  outline: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: var(--ph); opacity: 1; }
.field input:hover { border-color: var(--muted); }
.field input:focus { border-color: var(--acc-t); box-shadow: 0 0 0 4px var(--ring); }

.hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Device ID: big monospace code field with a live counter + status on the right */
#pay-device-id {
  --ls: 0.2em;
  min-height: 62px;
  padding: 12px 100px 12px 16px;
  caret-color: var(--acc-t);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

#pay-device-id:placeholder-shown { font-size: 18px; }

#pay-device-id::placeholder {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.input-meta {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.pay-device-status { display: none; font-size: 22px; }
.pay-device-status.is-checking,
.pay-device-status.is-valid,
.pay-device-status.is-invalid,
.pay-device-status.is-already-lifetime,
.pay-device-status.is-reseller,
.pay-device-status.is-wrong-plan,
.pay-device-status.is-error { display: inline-block; }
.pay-device-status.is-checking { color: var(--muted); }
.pay-device-status.is-valid { color: var(--ok); }
.pay-device-status.is-invalid,
.pay-device-status.is-wrong-plan { color: var(--err); }
.pay-device-status.is-error { color: var(--warn); }
.pay-device-status.is-already-lifetime,
.pay-device-status.is-reseller { color: var(--info); }

.input-wrap:has(.pay-device-status.is-valid) #pay-device-id { border-color: var(--ok); }
.input-wrap:has(.pay-device-status.is-invalid) #pay-device-id,
.input-wrap:has(.pay-device-status.is-wrong-plan) #pay-device-id { border-color: var(--err); }
.input-wrap:has(.pay-device-status.is-already-lifetime) #pay-device-id,
.input-wrap:has(.pay-device-status.is-reseller) #pay-device-id { border-color: var(--info); }

.pay-device-msg {
  display: none;
  margin: 10px 0 0;
  padding: 11px 14px;
  background: var(--err-tint);
  border-left: 4px solid var(--err);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--err);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.pay-device-msg.is-visible { display: block; }
.pay-device-msg.is-info { background: var(--info-tint); border-left-color: var(--info); color: var(--info); }

/* "Where is it?" help card with a small CSS-drawn TV ("Trial ended" screen) */
.dev-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 12px;
}

.dev-help .hint { margin: 0; color: var(--soft); font-size: 14.5px; }
.dev-help .hint b { color: var(--text); font-weight: 700; }

.dev-tv {
  position: relative;
  flex: none;
  width: 104px;
  aspect-ratio: 16 / 10;
  padding: 6px 7px;
  background: var(--tv-screen);
  border: 3px solid var(--tv-frame);
  border-radius: 6px;
}

.dev-tv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 30px;
  height: 4px;
  margin-left: -15px;
  border-radius: 2px;
  background: var(--tv-frame);
}

.dev-tv-t1, .dev-tv-t2 { display: block; height: 4px; border-radius: 2px; background: #635C74; }
.dev-tv-t1 { width: 46px; }
.dev-tv-t2 { width: 34px; height: 3px; margin-top: 4px; background: #6E33CC; }

.dev-tv-qr {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #F8F7FA 0 3px, transparent 3px 6px),
    repeating-linear-gradient(0deg, #F8F7FA 0 3px, #120F18 3px 6px);
}

.dev-tv-id {
  position: absolute;
  left: 6px;
  bottom: 5px;
  padding: 1px 4px;
  border: 1.5px solid #FFD400;
  border-radius: 4px;
  background: rgba(255, 212, 0, 0.08);
  color: #FFD400;
  font-family: var(--body);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  direction: ltr;
}

.dev-install { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.dev-install a {
  display: inline-block;
  min-height: var(--touch);
  margin: -11px 0;
  line-height: var(--touch);
  font-weight: 700;
  color: var(--acc-t);
  vertical-align: middle;
}

/* ---------- "More than one device?" stepper (pay.js createPackPicker) ---------- */
.dev-qty:empty { display: none; }
.dev-qty { margin: 14px 0 0; }

.pack-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 12px 10px 14px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pack-step.is-pack { border-color: var(--acc-t); background: var(--acc-tint); }
.pack-step-q { margin: 0; color: var(--text); font-size: 15.5px; font-weight: 600; }

.pack-step-ctl {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line2);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--input);
}

.pack-step-btn {
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.pack-step-btn:hover:not(:disabled) { background: var(--s2); }
.pack-step-btn:disabled { color: var(--ph); cursor: default; }
.pack-step-btn:focus-visible { outline-offset: -3px; }

.pack-step-n {
  display: grid;
  place-items: center;
  min-width: 40px;
  border-inline: 1px solid var(--line2);
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pack-step-sum { grid-column: 1 / -1; margin: 0; color: var(--acc-t); font-size: 13.5px; font-weight: 600; }
.pack-step-sum:empty { display: none; }

/* devices 2..N inside the Device ID field */
.pack-more { min-width: 0; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.pack-boxes { display: grid; gap: 12px; }
.pack-box label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.pack-box label span { color: var(--muted); }
.pack-input { position: relative; }
.pack-input input { display: block; width: 100%; min-height: 54px; margin: 0; padding: 10px 48px 10px 16px; background: var(--input); border: 2px solid var(--line2); border-radius: 12px; color: var(--text); font: 700 20px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; outline: 0; -webkit-appearance: none; appearance: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.pack-input input::placeholder { color: var(--ph); font: 400 15px/1.2 var(--body); letter-spacing: 0; text-transform: none; opacity: 1; }
.pack-input input:focus { border-color: var(--acc-t); box-shadow: 0 0 0 4px var(--ring); }
.pack-input:has(.is-valid) input { border-color: var(--ok); }
.pack-input:has(.is-invalid) input, .pack-box.is-dup .pack-input input { border-color: var(--err); }
.pack-st { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); font-size: 20px; pointer-events: none; }
.pack-st.is-valid { color: var(--ok); }
.pack-st.is-invalid { color: var(--err); }
.pack-st.is-checking { color: var(--muted); }
.pack-msg { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pack-msg:empty { display: none; }
.pack-msg.is-bad { color: var(--err); }
.pack-msg.is-ok { color: var(--ok); }
.pack-note { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

/* the original tile row (kept for pay.js, hidden when the stepper is mounted) */
.pack-pick { margin: 0 0 14px; padding: 14px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.pack-title { margin: 0 0 10px; font: 800 18px/1.2 var(--cond); text-transform: uppercase; }
.pack-qty { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
.pack-q { display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 8px 4px; background: var(--input); border: 2px solid var(--line2); border-radius: var(--r-sm); color: var(--text); cursor: pointer; }
.pack-q.is-on { border-color: var(--acc-t); background: var(--acc-tint); }
.pack-q small { color: var(--muted); font-size: 11.5px; }

/* ---------- Step 3: total, consent, pay ---------- */
.price-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.price-heading b {
  font-family: var(--cond);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
}

.price-heading b .usd { color: var(--muted); font-size: 0.55em; font-weight: 700; }
.price-copy { min-width: 0; }
.price-copy strong { display: block; font-family: var(--cond); font-size: 18px; font-weight: 800; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--acc-t); }
.price-copy span { display: block; color: var(--muted); font-size: 14px; line-height: 1.3; }

.purchase-consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 12px 14px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.purchase-consent:has(input:checked) { border-color: var(--ok-line); background: var(--ok-tint); }

.purchase-consent input {
  display: block;
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  background: var(--input) no-repeat center / 70% 70%;
  border: 2px solid var(--muted);
  border-radius: 7px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.purchase-consent input:hover { border-color: var(--acc-t); }

.purchase-consent input:checked {
  background-color: var(--acc);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12.5l5.5 5.5L20.5 6' fill='none' stroke='%230A0F1F' stroke-width='3.6' stroke-linecap='square'/%3E%3C/svg%3E");
  border-color: var(--acc);
}

html[data-cs-theme="light"] .purchase-consent input:checked { border-color: var(--acc-t); }

@media (forced-colors: active) {
  .purchase-consent input { -webkit-appearance: auto; appearance: auto; }
}

.consent-text { margin: 0; color: var(--text); font-size: 15px; line-height: 1.5; }
.consent-text label { cursor: pointer; }

.consent-details {
  margin: 8px 0 0;
  padding: 14px 16px;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 12px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.6;
}

.purchase-policy { margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.purchase-policy strong { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--warn); font-size: 14.5px; font-weight: 700; }
.consent-full { margin: 12px 0 0; }
.consent-full a { font-weight: 600; }

#pay-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 60px;
  margin: 14px 0 0;
  padding: 12px 20px;
  background: var(--acc);
  border: 2px solid var(--acc);
  border-radius: 12px;
  box-shadow: var(--cta-glow);
  color: var(--acc-ink);
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

#pay-submit:hover:not(:disabled) { background: var(--acc-hi); border-color: var(--acc-hi); }
#pay-submit:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
#pay-submit:disabled { opacity: 0.5; box-shadow: none; cursor: not-allowed; }
#pay-submit:disabled:has(.fa-spin) { opacity: 0.85; cursor: progress; }

.submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.4;
  text-align: center;
}

.submit-note i { flex-shrink: 0; color: var(--acc-t); }

.pay-err {
  display: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--err-tint);
  border: 1px solid var(--err);
  border-left-width: 4px;
  border-radius: var(--r-sm);
  color: var(--err);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
}

.pay-logos img {
  display: block;
  width: 46px;
  height: 30px;
  padding: 5px 7px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}

.pay-logos .wide { width: 52px; }

/* "Other ways to pay" (crypto, bank transfer; card stays the default) */
.pay-other { margin: 6px 0 0; }

.pay-other > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}

.pay-other > summary::-webkit-details-marker { display: none; }
.pay-other > summary::after { content: "\25BE"; text-decoration: none; color: var(--muted); transition: transform 0.15s ease; }
.pay-other[open] > summary::after { transform: rotate(180deg); }

.methods { margin: 6px 0 0; }
.methods-title { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.method-list { display: grid; gap: 8px; }

.method-button {
  position: relative;
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px 14px;
  background: var(--s1);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-align: start;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.method-button:hover { border-color: var(--line2); }
.method-button.is-on { border-color: var(--acc-t); background: var(--acc-tint); }
.method-radio { color: var(--muted); font-size: 20px; }
.method-button.is-on .method-radio { color: var(--acc-t); }

.method-main-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--s2);
  border-radius: var(--r-sm);
  color: var(--soft);
  font-size: 20px;
}

.method-button.is-on .method-main-icon { background: var(--acc); color: var(--acc-ink); }
.method-copy { min-width: 0; }
.method-copy strong { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; }
.method-copy span { display: block; margin-top: 1px; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

.pay-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  text-align: center;
}

.pay-trust-line i { color: var(--ok); }

.legal {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.legal strong { color: var(--text); }

/* ---------- Creem card checkout inside the page (pay.js createInlineCheckout) ---------- */
.creem-panel { --cx-bg: #0A0A0A; --cx-line: #1A191E; --cx-text: #F8F7FA; --cx-muted: #B3ADC1; --cx-btn-line: #6E33CC; --cx-spin: #FFD400; --cx-ok: #4ADE80; --cx-idle: #312E38; position: relative; margin: 18px 0 8px; background: var(--cx-bg); color: var(--cx-text); border: 1px solid var(--cx-line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 12px; }
.creem-panel[data-theme="light"] { --cx-bg: #FFFFFF; --cx-line: #EAE8F0; --cx-text: #0B0B0F; --cx-muted: #645D76; --cx-btn-line: #D9D5E2; --cx-spin: #0B0B0F; --cx-ok: #16A34A; --cx-idle: #C9C5D3; }
.creem-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 14px; border-bottom: 1px solid var(--cx-line); }
.creem-head-text { min-width: 0; }
.creem-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--cx-text); font: 700 18px/1.25 var(--body); outline: none; }
.creem-head h2 i { color: var(--cx-text); font-size: 15px; }
.creem-sub { margin: 4px 0 0; color: var(--cx-muted); font-size: 13.5px; line-height: 1.4; }
.creem-edit { flex: none; min-height: var(--touch); padding: 0 14px; border: 1px solid var(--cx-btn-line); border-radius: var(--r-sm); background: transparent; color: var(--cx-text); font: 600 14px var(--body); cursor: pointer; }
.creem-edit:hover { border-color: var(--acc-t); }
.creem-stage { position: relative; }
#creem-checkout { width: 100%; height: 1035px; background: var(--cx-bg); transition: height 0.25s ease; }
#creem-checkout iframe { display: block; width: 100%; height: 100%; border: 0; }
.creem-loader { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; padding: 160px 24px 24px; background: var(--cx-bg); color: var(--cx-muted); font-size: 15px; line-height: 1.5; text-align: center; }
.creem-spin { width: 36px; height: 36px; border: 3px solid var(--cx-line); border-top-color: var(--cx-spin); border-radius: 50%; animation: creem-spin 0.8s linear infinite; }
@keyframes creem-spin { to { transform: rotate(360deg); } }
.creem-done { display: grid; justify-items: center; gap: 10px; padding: 44px 20px 36px; text-align: center; }
.creem-done > i { font-size: 52px; color: var(--cx-idle); }
.creem-done.is-active > i { color: var(--cx-ok); }
.creem-done h3 { margin: 4px 0 0; color: var(--cx-text); font: 800 clamp(26px, 3vw, 32px)/1.05 var(--cond); text-transform: uppercase; }
.creem-done p { margin: 0; max-width: 46ch; color: var(--cx-muted); line-height: 1.55; }
.creem-order { font-size: 14px; }
.creem-order code { color: var(--cx-text); font: 700 15px var(--mono); overflow-wrap: anywhere; }
.creem-done-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 0 22px; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font: 800 18px var(--cond); text-transform: uppercase; text-decoration: none; }
.creem-done-link:hover { color: var(--acc-ink); background: var(--acc-hi); }
.creem-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--cx-line); color: var(--cx-muted); font-size: 13px; line-height: 1.45; text-align: center; }
.creem-foot i { flex: none; color: var(--cx-ok); }

/* ---------- Bank transfer details (pay.js startBankTransfer) ---------- */
.bank-panel { margin: 16px 0 8px; padding: clamp(16px, 2.4vw, 22px); background: var(--s1); border: 2px solid var(--acc-t); border-radius: 12px; }
.bank-panel h2 { margin: 0 0 8px; font: 800 clamp(22px, 2.6vw, 26px)/1.05 var(--cond); text-transform: uppercase; color: var(--text); }
.bank-lead { margin: 0 0 14px; color: var(--soft); line-height: 1.55; }
.bank-rows { display: grid; gap: 8px; margin: 0 0 16px; }
.bank-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.bank-row dt { color: var(--muted); font-size: 14px; }
.bank-row dd { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; }
.bank-row code, .bank-row dd > span { flex: 1; min-width: 0; color: var(--text); font: 700 16px/1.35 var(--mono); overflow-wrap: anywhere; }
.bank-row dd > span { font: 500 15px/1.4 var(--body); }
.bank-row--ref { border-color: var(--acc-t); }
.bank-row--ref code { color: var(--acc-t); font-size: clamp(20px, 3vw, 26px); letter-spacing: 0.08em; }
.bank-copy { flex: none; min-height: var(--touch); padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: transparent; color: var(--text); font: 700 14px var(--body); cursor: pointer; }
.bank-copy:hover { border-color: var(--acc-t); }
.bank-steps { margin: 0 0 16px; padding-inline-start: 22px; color: var(--soft); line-height: 1.55; }
.bank-steps li { margin: 0 0 6px; }
.bank-tip { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--acc-t); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); line-height: 1.5; }
.bank-tip i { color: var(--acc-t); margin-top: 3px; }
.bank-proof { margin: 18px 0 14px; padding: 16px; border: 1px dashed var(--acc-t); border-radius: 12px; background: var(--acc-tint); }
.bank-proof-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 800; color: var(--text); }
.bank-proof-title i { color: var(--acc-t); }
.bank-proof-help { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.bank-proof-pick { display: inline-flex; align-items: center; gap: 8px; min-height: var(--touch); padding: 0 16px; border-radius: var(--r-sm); background: var(--acc); color: var(--acc-ink); font-weight: 800; cursor: pointer; }
.bank-proof-pick:focus-within, .bank-proof-pick:hover { filter: brightness(1.06); }
.bank-proof-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bank-proof-input:focus-visible + .bank-proof-file, .bank-proof-pick:has(+ .bank-proof-input:focus-visible) { outline: 3px solid var(--text); outline-offset: 2px; }
.bank-proof-file { margin: 10px 0 0; color: var(--acc-t); font-weight: 700; word-break: break-all; }
.bank-proof-file.is-bad { color: var(--err); }
.bank-proof.is-missing { border-style: solid; border-color: var(--err); }
.bank-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.bank-sent { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font: 800 18px var(--cond); text-transform: uppercase; cursor: pointer; }
.bank-sent[disabled] { opacity: 0.55; cursor: default; }
.bank-status { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--acc-t); font-weight: 700; }
.bank-msg { margin: 12px 0 0; color: var(--ok); }
.bank-msg:empty { display: none; }
.bank-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Below the steps: video, why tiles, licence notice, reviews, FAQ, links ---------- */
.pay-extras {
  width: 100%;
  max-width: 960px;
  margin: 28px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}

.why-pay { min-width: 0; margin: 0 0 24px; }
.why-pay .cs-av { margin-bottom: 22px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-family: var(--cond);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc-t);
}

.eyebrow::before { content: ""; flex-shrink: 0; width: 30px; height: 3px; border-radius: 2px; background: currentColor; }

.why-pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.why-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px 10px 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.why-item > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--s2); color: var(--acc-t); font-size: 15px; }
.why-item b { display: block; font-family: var(--cond); font-size: 17px; font-weight: 800; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); }
.why-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.35; }

.lead { max-width: 72ch; margin: 0 0 18px; color: var(--soft); font-size: 15.5px; line-height: 1.6; }

.media-notice {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.media-notice i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--s2); color: var(--acc-t); font-size: 16px; }
.media-notice strong { color: var(--text); }

#cs-reviews { margin: 0 0 28px; }

.pay-faq { min-width: 0; margin: 0 0 28px; }
.pay-faq h2 { margin: 0 0 12px; font: 800 clamp(24px, 3vw, 30px)/1.05 var(--cond); text-transform: uppercase; color: var(--text); }
.pay-faq details { margin-top: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; }
.pay-faq summary { display: flex; align-items: center; min-height: 52px; padding: 10px 18px; cursor: pointer; color: var(--text); font: 700 16.5px/1.4 var(--body); }
.pay-faq summary:focus-visible { outline-offset: -3px; }
.pay-faq details > p { margin: 0; padding: 0 18px 14px; color: var(--soft); line-height: 1.6; }
.pay-faq a { color: var(--acc-t); text-decoration: underline; text-underline-offset: 3px; }

.footer-links { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.9; text-align: center; }
.footer-links a { color: var(--acc-t); font-weight: 600; }

/* video card (cs-activate-video.css), light mode */
html[data-cs-theme="light"] .cs-av--compact:not(.is-playing) .cs-av-stage,
html[data-cs-theme="light"] .cs-av--compact:not(.is-playing) .cs-av-poster { background: var(--s1); }
html[data-cs-theme="light"] .cs-av--compact:not(.is-playing) .cs-av-stage { border-color: var(--line); border-radius: 12px; }
html[data-cs-theme="light"] .cs-av--compact:not(.is-playing) .cs-av-play { box-shadow: 0 0 0 6px rgba(84, 30, 170, 0.14); }
html[data-cs-theme="light"] .cs-av-cta { color: var(--text); }
html[data-cs-theme="light"] .cs-av-label { color: var(--muted); }
html[data-cs-theme="light"] .cs-av-lang { color: var(--text); border-color: var(--line2); }
html[data-cs-theme="light"] .cs-av-lang:hover { border-color: var(--acc-t); color: var(--acc-t); }
html[data-cs-theme="light"] .cs-av-lang[aria-pressed="true"] { color: #0B0B0F; }
.cs-av--compact:not(.is-playing) .cs-av-stage { border-radius: 12px; }

/* reviews widget (reviews-widget.js), light mode: lime text is unreadable on white */
html[data-cs-theme="light"] .csr__badge { color: var(--acc-t); }
html[data-cs-theme="light"] .csr__more:hover { border-color: var(--acc-t); }
.csr, .csr__card { border-radius: 12px !important; }

/* ---------- Hotmart checkout window (pay.js createCheckoutWindow) ---------- */
html body .csx-overlay { background: rgba(7, 6, 9, 0.84); }
html[data-cs-theme="light"] body .csx-overlay { background: rgba(11, 11, 15, 0.55); }
html body .csx-dialog { background: var(--s1); border: 1px solid var(--line); border-top: 5px solid var(--acc); border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); font-family: var(--body); color: var(--text); }
html body .csx-head { background: var(--s1); border-bottom: 1px solid var(--line); }
html body .csx-title { font-family: var(--cond); font-size: 21px; font-weight: 800; font-style: normal; line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
html body .csx-title i { color: var(--acc-t); }
html body .csx-sub { color: var(--muted); font-size: 13px; }
html body .csx-close, html body .csx-newtab-icon { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
html body .csx-close:hover, html body .csx-newtab-icon:hover { background: var(--s2); border-color: var(--acc-t); color: var(--acc-t); }
html body .csx-close:focus-visible, html body .csx-newtab:focus-visible, html body .csx-newtab-icon:focus-visible { outline: 3px solid var(--acc-t); outline-offset: 2px; }
html body .csx-body { background: var(--bg); }
html body .csx-loader { color: var(--soft); font-size: 15px; }
html body .csx-spin { border-color: var(--line2); border-top-color: var(--acc-t); }
html body .csx-foot { background: var(--s1); border-top: 1px solid var(--line); color: var(--muted); }
html body .csx-dot { background: var(--ok); }
html body .csx-newtab, html body .csx-newtab-icon { color: var(--acc-t); font-weight: 600; }

/* ---------- Arabic (RTL): the condensed Latin font has no Arabic letters ---------- */
html[dir="rtl"] .pay-hero h1,
html[dir="rtl"] .st-tt,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .why-item b,
html[dir="rtl"] .pay-faq h2,
html[dir="rtl"] .price-copy strong,
html[dir="rtl"] #pay-submit,
html[dir="rtl"] .bank-panel h2,
html[dir="rtl"] .bank-sent,
html[dir="rtl"] .creem-done h3,
html[dir="rtl"] .creem-done-link,
html[dir="rtl"] .pack-title {
  font-family: var(--arabic) !important;
  font-weight: 700;
  text-transform: none;
}

html[dir="rtl"] .pay-hero h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.25; }
html[dir="rtl"] .pay-kicker { font-size: 14px; }
html[dir="rtl"] .st-tt { font-size: 22px; }
html[dir="rtl"] #pay-submit { font-size: 20px; }
html[dir="rtl"] .eyebrow { font-size: 19px; }
html[dir="rtl"] .why-item b { font-size: 16px; }
html[dir="rtl"] .price-copy strong { font-size: 17px; }
html[dir="rtl"] .field > label,
html[dir="rtl"] .pack-box label { font-size: 15px; text-transform: none; }
html[dir="rtl"] .pay-device-msg { border-left: 0; border-right: 4px solid var(--err); border-radius: var(--r-sm) 0 0 var(--r-sm); }
html[dir="rtl"] .pay-device-msg.is-info { border-right-color: var(--info); }
html[dir="rtl"] .bank-tip { border-left: 0; border-right: 3px solid var(--acc-t); }
html[dir="rtl"] .cs-lang--pay .cs-lang-list { right: auto; left: 0; }
/* the Arabic example ("مثال: 7F3A9C21") must read right to left while the box is empty;
   once typed, SiteLanguage::rtlCss keeps the ID left to right on its spacing */
html[dir="rtl"] #pay-device-id:placeholder-shown { direction: rtl; text-align: right; }
html[dir="rtl"] .pack-input input { padding: 10px 16px 10px 48px; }
html[dir="rtl"] .pack-st { right: auto; left: 16px; }
html[dir="rtl"] .st-found b,
html[dir="rtl"] .st-price { unicode-bidi: isolate; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .why-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .pay-top { min-height: 58px; padding-top: 7px; padding-bottom: 7px; }
  .brand { gap: 8px; font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .brand span { padding: 3px 7px 2px; font-size: 14px; }
  .pay-tools { gap: 6px; }
  .cs-lang--pay > summary { padding: 0 10px; }
  .pay-hero { padding: 4px 0 16px; }
  .pay-kicker { font-size: 11.5px; letter-spacing: 0.12em; margin-bottom: 6px; }
  .pay-sub { margin-top: 8px; font-size: 15px; }
  .st { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .st-n { width: 34px; height: 34px; font-size: 18px; }
  .st-tt { font-size: 21px; line-height: 34px; margin-bottom: 8px; }
  .st-bd { padding-bottom: 22px; }
  #pay-device-id { font-size: 23px; --ls: 0.16em; padding-right: 92px; }
  #pay-device-id:placeholder-shown, #pay-device-id::placeholder { font-size: 17px; }
  .dev-tv { width: 88px; }
  .dev-help .hint { font-size: 14px; }
  .why-pay-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .why-item { background: none; border: 0; border-radius: 0; }
  .why-item + .why-item { border-top: 1px solid var(--hair); }
  .bank-row { grid-template-columns: minmax(0, 1fr); }
  .creem-panel { margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); border-left: 0; border-right: 0; border-radius: 0; }
  .creem-head { padding: 14px 16px 12px; }
  .pay-faq summary { font-size: 16px; padding: 10px 14px; }
  .pay-faq details > p { padding: 0 14px 12px; }
}

@media (max-width: 380px) {
  .brand { font-size: 19px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 13px; }
  .cs-lang--pay > summary { padding: 0 8px; gap: 5px; }
  .cs-lang--pay .cs-lang-caret { display: none; }
  #pay-device-id { font-size: 21px; --ls: 0.12em; }
  .dev-tv { width: 76px; }
  .price-heading b { font-size: 32px; }
  #pay-submit { font-size: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  #pay-submit:hover:not(:disabled) { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html body .csx-dot { animation: none; }
}

/* ---------- Monthly plan (2026-11-13): step 3 "Choose your plan" (pay.js createMonthlyPlan) ----------
   Everything here is `hidden` in index.php until monthly-config.php turns Monthly on for the visitor. */
.plan-pick { margin: 0 0 12px; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 10px; }

.plan-card {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-content: start;
  gap: 2px 8px;
  min-height: 108px;
  margin: 0;
  padding: 16px 12px 12px;
  background: var(--s1);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.plan-card:hover { border-color: var(--line2); }
.plan-card.is-on { border-color: var(--acc-t); background: var(--acc-tint); }
.plan-card:has(.plan-radio:focus-visible) { outline: 3px solid var(--text); outline-offset: 3px; }
.plan-radio { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.plan-dot { align-self: center; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; }
.plan-card.is-on .plan-dot { border-color: var(--acc-t); background: radial-gradient(circle, var(--acc-t) 0 40%, transparent 46%); }
.plan-name { align-self: center; min-width: 0; font-family: var(--cond); font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; }

.plan-badge {
  position: absolute;
  top: -11px;
  right: 10px;
  padding: 3px 8px 2px;
  background: var(--acc);
  border-radius: 6px;
  color: var(--acc-ink);
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-price { grid-column: 1 / -1; margin-top: 8px; font-family: var(--cond); font-size: 28px; font-weight: 800; line-height: 1.05; color: var(--text); overflow-wrap: break-word; }
.plan-price b { font-weight: inherit; }
.plan-per { font-family: var(--body); font-size: 15px; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--soft); white-space: nowrap; }
.plan-sub { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.plan-compare { margin: 8px 0 0; color: var(--acc-t); font-size: 13.5px; font-weight: 600; line-height: 1.4; text-align: center; }

.plan-switch {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--info-tint);
  border: 1px solid var(--info);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.plan-switch i { flex-shrink: 0; margin-top: 3px; color: var(--info); }

.consent-monthly { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.consent-monthly strong { display: block; margin: 0 0 4px; color: var(--text); font-size: 14.5px; }
.consent-monthly p { margin: 0; }

html[dir="rtl"] .plan-name,
html[dir="rtl"] .plan-badge,
html[dir="rtl"] .plan-price { font-family: var(--arabic) !important; font-weight: 700; text-transform: none; }
html[dir="rtl"] .plan-name { font-size: 18px; }
html[dir="rtl"] .plan-badge { right: auto; left: 10px; }
html[dir="rtl"] .plan-price { font-size: 23px; }
html[dir="rtl"] .plan-per { font-family: var(--arabic); font-size: 15px; }

@media (max-width: 380px) {
  .plan-card { padding-inline: 10px; }
  .plan-price { font-size: 24px; }
}

/* ===== Light theme v2 (2026-11-13): white page, black type, yellow buttons and selection, violet only as a small
   accent. Dark mode is not affected. ===== */
html[data-cs-theme="light"] {
  --bg: #FFFFFF; --s1: #FFFFFF; --s2: #F6F6F3; --line: #E4E4DF; --line2: #CFCFC9; --hair: #ECECE8; --foot: #F6F6F3; --text: #0B0B0F; --soft: #2C2C33; --muted: #64646C; --input: #FFFFFF; --ph: #9A9AA0;
  --acc-t: #0B0B0F; --acc-tint: rgba(255, 212, 0, 0.16); --ring: rgba(255, 212, 0, 0.55);
  --deco: #7B3FE4; --info: #5B2BC0; --info-tint: rgba(123, 63, 228, 0.07);
  --shadow: rgba(11, 11, 15, 0.08); --cta-glow: rgba(255, 212, 0, 0.45);
  --tv-frame: #2C2C33; --tv-screen: #0B0B0F;
}
