/* CloudStream /paydevice/ (LG & Samsung TV licence) — design B "numbered steps", 2026-11-12.
   One centred column: header (brand, light/dark button, language menu) -> H1 + price line ->
   a vertical stepper 1 Your device -> 2 Your email -> 3 Pay once -> the extras (why tiles,
   reviews, FAQ, licence notice, legal + footer links).
   Themes: dark tokens on :root (today's Stadium look); light tokens under html[data-cs-theme="light"]
   (set by the inline <head> snippet from localStorage['cs-theme'] or prefers-color-scheme).
   The primary CTA stays lime #FFD400 with navy text in both themes (--cta / --cta-ink).
   Every id / class read by tv-pay.js, reviews-widget.js and the inline scripts is kept.
   Deployed next to fonts/ in /wp-content/uploads/cs-home-option1/stadium/.
   2026-11-13 (-m): cs-paydevice-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 (default, today's look) ---------- */
:root {
  color-scheme: dark;
  --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;         /* accent as text / border / fill */
  --acc-hi: #FFE045;
  --acc-ink: #0B0B0F;
  --cta: #FFD400;         /* primary buttons: lime + navy in BOTH themes */
  --cta-hi: #FFE045;
  --cta-ink: #0B0B0F;
  --focus: #FFD400;
  --ok: #4ADE80;
  --on-ok: #0B0B0F;
  --ok-tint: rgba(74, 222, 128, 0.09);
  --ok-line: rgba(74, 222, 128, 0.45);
  --acc-tint: rgba(255, 212, 0, 0.08);
  --err: #FF8A8A;
  --err-tint: rgba(255, 138, 138, 0.09);
  --info: #B792F2;
  --info-tint: rgba(183, 146, 242, 0.09);
  --warn: #FFE14B;
  --deco: #8C52EA;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --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;
  --skew: -12deg;
  --hdr: 64px;
  --gut: 16px;
  --col: 600px;
  --r: 12px;
}

/* ---------- Tokens: light (chosen with the ☀ button, or the system setting on a first visit) ---------- */
html[data-cs-theme="light"] {
  color-scheme: light;
  --bg: #F7F6F9;
  --s1: #FFFFFF;
  --s2: #F2F0F6;
  --line: #D9D4E5;
  --line2: #CCC8D5;
  --hair: #E7E4EF;
  --foot: #FFFFFF;
  --input: #FFFFFF;
  --text: #0B0B0F;
  --soft: #2E273D;
  --muted: #635B74;
  --ph: #938BA7;
  --acc: #541EAA;
  --acc-hi: #4A1B97;
  --acc-ink: #FFFFFF;
  --focus: #541EAA;
  --ok: #15803D;
  --on-ok: #FFFFFF;
  --ok-tint: rgba(21, 128, 61, 0.08);
  --ok-line: rgba(21, 128, 61, 0.4);
  --acc-tint: rgba(84, 30, 170, 0.08);
  --err: #C0262D;
  --err-tint: rgba(192, 38, 45, 0.07);
  --info: #691EE1;
  --info-tint: rgba(105, 30, 225, 0.07);
  --warn: #92400E;
  --deco: #702BE0;
  --shadow: 0 18px 40px rgba(29, 25, 39, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
  background: var(--bg);
}

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

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

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

.pd-sr {
  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 ---------- */
.pd-head {
  position: sticky;
  z-index: 60;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--hdr);
  padding: 0 max(var(--gut), calc((100% - 1040px) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--cond);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.brand span {
  position: relative;
  isolation: isolate;
  margin-left: 2px;
  padding: 4px 9px 3px;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--cta-ink);
}
.brand span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cta);
  transform: skewX(var(--skew));
}

.pd-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cs-theme-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: var(--s1);
  border: 1px solid var(--line2);
  border-radius: 0;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
}
.cs-theme-btn:hover { border-color: var(--acc); }
.cs-theme-btn .fa-sun { color: #FFE14B; }
.cs-theme-btn .fa-moon { display: none; color: #2A2439; }
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; }

/* language menu (SiteLanguage::switcherCss is dark-only: light overrides here) */
.cs-lang--paydevice > summary { height: 44px; padding: 0 12px; }
html[data-cs-theme="light"] .cs-lang > summary { background: #FFFFFF; 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); }
html[data-cs-theme="light"] .cs-lang > summary:focus-visible { outline-color: var(--focus); }
html[data-cs-theme="light"] .cs-lang .fa-globe { color: var(--acc); }
html[data-cs-theme="light"] .cs-lang-list { background: #FFFFFF; border-color: var(--line2); box-shadow: var(--shadow); }
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); }

/* ---------- Page column ---------- */
.pd-main { padding: 0 var(--gut); }

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

.pd-hero { padding: 22px 0 6px; }

h1 {
  margin: 0;
  font-family: var(--cond);
  font-size: clamp(31px, 8vw, 46px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
}

.pd-price-line {
  margin: 10px 0 0;
  color: var(--soft);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
}

.checkout-panel { padding: 18px 0 8px; }
.checkout-form { display: block; }

/* ---------- Stepper (1 -> 2 -> 3) ---------- */
.pd-steps { margin: 0; padding: 0; list-style: none; }

.pd-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
}

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

.pd-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line2);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--cond);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pd-num-ok { display: none; font-size: 15px; }
.pd-line {
  flex: 1;
  width: 2px;
  min-height: 16px;
  margin: 4px 0;
  background: var(--line);
  transition: background-color 0.2s ease;
}

.pd-step.is-now .pd-num {
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-tint);
}
.pd-step.is-done .pd-num { background: var(--ok); border-color: var(--ok); color: var(--on-ok); box-shadow: none; }
.pd-step.is-done .pd-num-n { display: none; }
.pd-step.is-done .pd-num-ok { display: block; }
.pd-step.is-done .pd-line { background: var(--ok); }

.pd-body { min-width: 0; padding-bottom: 26px; }
.pd-step:last-child .pd-body { padding-bottom: 4px; }

.pd-st-title {
  margin: 0 0 10px;
  font-family: var(--cond);
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  line-height: 36px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.pd-st-title label { cursor: pointer; }
.pd-step:not(.is-now):not(.is-done) .pd-st-title { color: var(--muted); }
.pd-step.is-done .pd-st-title { color: var(--ok); }
.pd-done-sr { display: none; }
.pd-step.is-done .pd-done-sr { display: inline; }

/* ---------- Step 1: Device ID ---------- */
.pd-field { position: relative; margin: 0; }

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

.input-wrap { position: relative; }

#pay-device-id,
.pd-input {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 12px 14px;
  background: var(--input);
  border: 2px solid var(--line2);
  border-radius: 10px;
  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;
}

#pay-device-id {
  --ls: 0.14em;
  padding-inline-end: 112px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: var(--ls);
  text-transform: uppercase;
  caret-color: var(--acc);
}

/* empty field: no counter, so the example placeholder has the full width */
#pay-device-id:placeholder-shown { padding-inline-end: 44px; }
.input-wrap:has(#pay-device-id:placeholder-shown) #pay-device-count { display: none; }

#pay-device-id::placeholder,
.pd-input::placeholder {
  color: var(--ph);
  opacity: 1;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#pay-device-id:hover, .pd-input:hover { border-color: var(--muted); }
#pay-device-id:focus, .pd-input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-tint); }
#pay-device-id:focus-visible, .pd-input:focus-visible { outline: 0; }

.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); }

.input-meta {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  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-wrong-plan,
.pay-device-status.is-rate-limited,
.pay-device-status.is-error,
.pay-device-status.is-already-lifetime,
.pay-device-status.is-reseller { 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,
.pay-device-status.is-error { color: var(--err); }
.pay-device-status.is-rate-limited,
.pay-device-status.is-already-lifetime,
.pay-device-status.is-reseller { color: var(--info); }

.pay-device-msg {
  display: none;
  margin: 10px 0 0;
  padding: 11px 14px;
  background: var(--err-tint);
  border-inline-start: 4px solid var(--err);
  border-radius: 8px;
  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-inline-start-color: var(--info); color: var(--info); }

/* help card with the small TV picture */
.pd-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 10px 12px 10px 10px;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.pd-help p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.45; }
.pd-help b { color: var(--text); font-weight: 700; }

.pd-tv { flex: none; width: 108px; }
.pd-tv-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 7px 8px;
  background: #120F18;
  border: 3px solid #302940;
  border-radius: 6px;
}
.pd-tv-t1, .pd-tv-t2 { display: block; height: 4px; width: 46px; border-radius: 2px; background: #635C74; }
.pd-tv-t2 { width: 30px; height: 3px; margin-top: 4px; background: #6E33CC; }
.pd-tv-qr {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #F8F7FA 0 3px, transparent 3px 6px),
    repeating-linear-gradient(0deg, #F8F7FA 0 3px, #120F18 3px 6px);
}
.pd-tv-id {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 1px 4px;
  border: 1.5px solid #FFD400;
  border-radius: 4px;
  background: rgba(255, 212, 0, 0.1);
  color: #FFD400;
  font: 700 7.5px/1.2 var(--body);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.pd-tv-stand { display: block; width: 34px; height: 4px; margin: 3px auto 0; border-radius: 2px; background: #302940; }

.pd-noapp { margin: 8px 0 0; }
.pd-noapp summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}
.pd-noapp summary::-webkit-details-marker { display: none; }
.pd-noapp p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* known Device ID: one compact line instead of the field */
.pd-found {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 6px 6px 6px 12px;
  background: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
}
.pd-steps.is-known .pd-found { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.pd-steps.is-known .pd-device-edit { display: none; }
.pd-steps.is-found .pd-found { background: var(--ok-tint); border-color: var(--ok-line); }
.pd-found-icon { flex: none; color: var(--muted); font-size: 20px; }
.pd-steps.is-found .pd-found-icon { color: var(--ok); }
.pd-found-text { min-width: 0; color: var(--soft); line-height: 1.4; }
.pd-found-text b { color: var(--text); }
.pd-found-sep { color: var(--muted); }
.pd-id {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.1em;
  direction: ltr;
  unicode-bidi: isolate;
}
.pd-change {
  flex: none;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  background: transparent;
  border: 0;
  color: var(--soft);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pd-change:hover { color: var(--text); }

/* ---------- Step 2: email ---------- */
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- Step 3: pay ---------- */
.pd-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--hair);
}
.pd-total-k { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pd-total-v { font-family: var(--cond); font-size: 34px; font-weight: 800; font-style: italic; line-height: 1; color: var(--text); }
.pd-total-n { color: var(--soft); font-size: 15px; font-weight: 600; }
.pd-total-usd { color: var(--muted); font-size: 14px; }

.pd-consent { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 6px; }

.purchase-consent {
  display: flex;
  flex: 1 1 260px;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.45;
  cursor: pointer;
}

.purchase-consent input {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  background: var(--input) no-repeat center / 70% 70%;
  border: 2px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.purchase-consent:hover input { border-color: var(--acc); }
.purchase-consent input:checked {
  background-color: var(--cta);
  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.8' stroke-linecap='square'/%3E%3C/svg%3E");
  border-color: var(--cta);
}
html[data-cs-theme="light"] .purchase-consent input:checked { border-color: #541EAA; }
@media (forced-colors: active) {
  .purchase-consent input { -webkit-appearance: auto; appearance: auto; }
}

.pd-details-btn {
  min-height: 44px;
  margin: -6px 0 0 34px;
  margin-inline-start: 34px;
  margin-inline-end: 0;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: var(--acc);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.purchase-policy {
  margin: 4px 0 8px;
  padding: 14px 16px;
  background: var(--s2);
  border-inline-start: 4px solid var(--warn);
  border-radius: 8px;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.purchase-policy[hidden] { display: none; }
.purchase-policy p { margin: 0 0 8px; }
.purchase-policy p:last-child { margin-bottom: 0; }
.pd-policy-title { color: var(--warn); font-weight: 700; }

/* the one big lime Pay button */
#pay-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 66px;
  margin: 12px 0 0;
  padding: 10px 18px;
  background: var(--cta);
  border: 0;
  border-radius: var(--r);
  color: var(--cta-ink);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 212, 0, 0.16);
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
html[data-cs-theme="light"] #pay-submit { box-shadow: 0 10px 24px rgba(84, 30, 170, 0.18); }
#pay-submit:hover:not(:disabled) { background: var(--cta-hi); }
#pay-submit:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.pd-pay-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cond);
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pd-pay-main i { font-size: 0.8em; }
.pd-pay-sub { font-size: 13px; font-weight: 600; opacity: 0.8; }
#pay-submit:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
#pay-submit:disabled:has(.fa-spin) { cursor: progress; opacity: 0.85; }

.payment-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.payment-logos img {
  display: block;
  width: 44px;
  height: 28px;
  padding: 5px 6px;
  background: #FFFFFF;
  border: 1px solid transparent;
  border-radius: 5px;
  object-fit: contain;
}
.payment-logos .wide { width: 48px; }
html[data-cs-theme="light"] .payment-logos img { border-color: var(--line); }
.pd-logos { margin: 10px 0 0; }

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

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

/* "Other ways to pay" */
.pd-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.pd-more span { text-decoration: underline; text-underline-offset: 3px; }
.pd-more small { color: var(--muted); font-size: 13px; font-weight: 500; }
.pd-more i { color: var(--muted); font-size: 11px; transition: transform 0.15s ease; }
.pd-more[aria-expanded="true"] i { transform: rotate(180deg); }
.pd-more-list[hidden] { display: none; }
.pd-more-list { margin: 6px 0 4px; }

.method-list { display: grid; gap: 8px; }
.method-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 14px;
  background: var(--s1);
  border: 2px solid var(--line);
  border-radius: var(--r);
  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); background: var(--acc-tint); }
.method-radio { flex: none; color: var(--muted); font-size: 20px; }
.method-button.is-on .method-radio { color: var(--acc); }
.method-main-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--s2);
  border-radius: 8px;
  color: var(--soft);
  font-size: 18px;
}
.method-copy { min-width: 0; }
.method-copy strong { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--text); }
.method-copy span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

.pd-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.pd-trust i { color: var(--ok); }

/* after-payment promise, right under the steps */
.pd-after {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.pd-after i { flex: none; margin-top: 3px; color: var(--acc); }

/* ---------- Creem card checkout inside the page (tv-pay.js createInlineCheckout) ---------- */
.creem-panel[hidden], .creem-panel [hidden] { display: none !important; }
.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 calc(-1 * var(--gut)) 8px; background: var(--cx-bg); color: var(--cx-text); border: 1px solid var(--cx-line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--hdr) + 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-panel::before { content: ""; position: absolute; left: -1px; top: -1px; z-index: 2; width: 104px; height: 4px; background: var(--cta); }
.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: 44px; padding: 0 14px; border: 1px solid var(--cx-btn-line); border-radius: 8px; background: transparent; color: var(--cx-text); font: 600 14px var(--body); cursor: pointer; }
.creem-edit:hover { border-color: var(--cx-text); }
.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: italic 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: 10px; background: var(--cta); color: var(--cta-ink); font: italic 800 18px var(--cond); text-transform: uppercase; text-decoration: none; }
.creem-done-link:hover { background: var(--cta-hi); color: var(--cta-ink); }
.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); }
@media (min-width: 680px) { .creem-panel { margin-left: 0; margin-right: 0; border-radius: var(--r); overflow: hidden; } }

/* ---------- Bank transfer details ---------- */
.bank-panel[hidden] { display: none; }
.bank-panel { margin: 16px 0 8px; padding: 18px 16px; background: var(--s1); border: 2px solid var(--acc); border-radius: var(--r); scroll-margin-top: calc(var(--hdr) + 12px); }
.bank-panel h2 { margin: 0 0 8px; font: italic 800 24px/1.05 var(--cond); text-transform: uppercase; color: var(--text); }
.bank-lead { margin: 0 0 14px; color: var(--soft); font-size: 15px; line-height: 1.55; }
.bank-rows { display: grid; gap: 8px; margin: 0 0 16px; }
.bank-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.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); }
.bank-row--ref code { color: var(--acc); font-size: 22px; letter-spacing: 0.08em; }
.bank-copy { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--text); font: 700 14px var(--body); cursor: pointer; }
.bank-copy:hover { border-color: var(--acc); }
.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-inline-start: 3px solid var(--acc); color: var(--text); line-height: 1.5; }
.bank-tip i { color: var(--acc); margin-top: 3px; }
.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: 10px; background: var(--cta); color: var(--cta-ink); font: italic 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: 44px; color: var(--acc); 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; }

/* ---------- Server views: paid, crypto order, reseller, errors, TV back button ---------- */
.tv-back { position: fixed; z-index: 100; top: 10px; right: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--s1); color: var(--text); font: 700 15px var(--body); cursor: pointer; }
.paydevice--tv .pd-head { padding-right: 170px; }
.tv-status-card { padding: 22px 18px; background: var(--s1); border: 1px solid var(--line2); border-radius: var(--r); color: var(--text); }
.tv-status-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--acc); font: italic 800 clamp(26px, 5vw, 36px)/1.1 var(--cond); text-transform: uppercase; }
.tv-status-card p { color: var(--soft); line-height: 1.6; }
.tv-status-card a { color: var(--acc); }
.pd-id-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pd-id-line > span { color: var(--muted); }
.tv-status-action { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 0 20px; border-radius: 10px; background: var(--cta); color: var(--cta-ink) !important; font: italic 800 18px var(--cond); text-transform: uppercase; text-decoration: none; }
.tv-crypto-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: start; }
.tv-crypto-qr { display: block; width: 100%; max-width: 220px; height: auto; background: #fff; padding: 8px; border-radius: 8px; }
.tv-detail { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.tv-detail dt { color: var(--muted); }
.tv-detail dd { margin: 0; overflow-wrap: anywhere; }
.tv-address { display: block; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.tv-status-card button { min-height: 44px; margin-top: 10px; padding: 8px 16px; border: 1px solid var(--acc); border-radius: 8px; background: transparent; color: var(--acc); cursor: pointer; }
.tv-activation-banner { display: none; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--ok); border-radius: 8px; color: var(--ok); }
.tv-activation-banner.is-visible { display: block; }
.tv-error { margin: 0 0 14px; padding: 12px 16px; background: var(--err-tint); border: 1px solid var(--err); border-radius: 8px; color: var(--err); }

/* ---------- Extras below the steps ---------- */
.pd-extras {
  width: 100%;
  max-width: 960px;
  margin: 28px auto 0;
  padding: 30px 0 100px;
  border-top: 1px solid var(--hair);
}
.pd-extras > * { margin-bottom: 30px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--cond);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.eyebrow::before { content: ""; flex-shrink: 0; width: 30px; height: 3px; background: currentColor; transform: skewX(var(--skew)); }

.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: var(--r); }
.why-item > i { display: grid; place-items: center; width: 38px; height: 38px; background: var(--s2); border-radius: 8px; color: var(--acc); font-size: 15px; }
.why-item b { display: block; font-family: var(--cond); font-size: 17px; font-weight: 800; font-style: italic; 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: 13px; line-height: 1.35; }

#cs-reviews { margin: 0 0 30px; }
#cs-reviews .csr { border-radius: var(--r); }
#cs-reviews .csr__card { border-radius: 10px; }

.pay-faq h2 { margin: 0 0 14px; font: italic 800 clamp(24px, 3vw, 30px)/1.05 var(--cond); text-transform: uppercase; color: var(--text); }
.pay-faq details { margin-top: 8px; padding: 0 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
.pay-faq summary { display: flex; align-items: center; min-height: 52px; padding: 10px 0; cursor: pointer; color: var(--text); font: 700 16px/1.4 var(--body); }
.pay-faq details[open] summary { border-bottom: 1px solid var(--hair); }
.pay-faq p { margin: 12px 0; color: var(--soft); line-height: 1.6; }
.pay-faq a { color: var(--acc); text-decoration: underline; }

.media-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); color: var(--soft); font-size: 14px; line-height: 1.55; }
.media-notice > i { display: grid; place-items: center; width: 38px; height: 38px; background: var(--s2); border-radius: 8px; color: var(--acc); font-size: 15px; }
.media-notice strong { color: var(--text); }

.pd-foot { text-align: center; }
.legal { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.legal strong { color: var(--text); }
.footer-links { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 2; }
.footer-links a { color: var(--acc); font-weight: 600; }

/* ---------- Hotmart checkout window (tv-pay.js createCheckoutWindow injects #csx-style later:
   "html body" wins on specificity). Colours, borders and fonts only. ---------- */
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(--cta); border-radius: var(--r); box-shadow: var(--shadow); font-family: var(--body); color: var(--text); }
html body .csx-dialog::before { display: none; }
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: italic; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
html body .csx-title i { color: var(--acc); }
html body .csx-sub { color: var(--muted); }
html body .csx-close, html body .csx-newtab-icon { background: var(--s2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
html body .csx-close:hover, html body .csx-newtab-icon:hover { border-color: var(--acc); color: var(--acc); }
html body .csx-close:focus-visible, html body .csx-newtab:focus-visible, html body .csx-newtab-icon:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
html body .csx-body { background: var(--bg); }
html body .csx-loader { color: var(--soft); }
html body .csx-spin { border-color: var(--line2); border-top-color: var(--acc); }
html body .csx-foot { background: var(--s1); border-top: 1px solid var(--line); color: var(--muted); }
html body .csx-dot { background: var(--acc); }
html body .csx-newtab, html body .csx-newtab-icon { color: var(--acc); }
@media (max-width: 600px) { html body .csx-dialog { border-radius: 0; } }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  :root { --gut: 28px; --hdr: 72px; }
  .brand { font-size: 28px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 18px; }
  .pd-hero { padding-top: 36px; }
  .pd-price-line { font-size: 17px; }
  .pd-step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 18px; }
  .pd-num { width: 40px; height: 40px; font-size: 21px; }
  .pd-st-title { font-size: 25px; line-height: 40px; }
  #pay-device-id { font-size: 25px; min-height: 60px; }
  .pd-input { min-height: 60px; }
  .pd-tv { width: 124px; }
  .pd-help p { font-size: 15px; }
  #pay-submit { min-height: 72px; }
  .pd-pay-main { font-size: 26px; }
  .bank-panel { padding: 22px 22px; }
}

@media (max-width: 860px) { .why-pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .why-pay-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); }
  .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); }
  .tv-crypto-layout { grid-template-columns: 1fr; }
  .tv-detail { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 380px) {
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 14px; padding: 3px 7px 2px; }
  .pd-tools { gap: 6px; }
  .cs-lang--paydevice > summary { padding: 0 9px; gap: 5px; }
  .pd-help { flex-direction: column; align-items: flex-start; }
  #pay-device-id { font-size: 20px; letter-spacing: 0.1em; padding-inline-end: 96px; }
  .pd-pay-main { font-size: 21px; }
}

/* ---------- Right to left (Arabic): Barlow has no Arabic letters, so the condensed italic
   headings switch to an Arabic system font, upright and a little larger. IDs stay LTR. ---------- */
html[dir="rtl"] h1,
html[dir="rtl"] .pd-st-title,
html[dir="rtl"] .pd-pay-main,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .why-item b,
html[dir="rtl"] .pay-faq h2,
html[dir="rtl"] .bank-panel h2,
html[dir="rtl"] .bank-sent,
html[dir="rtl"] .tv-status-card h2,
html[dir="rtl"] .tv-status-action,
html[dir="rtl"] .creem-done h3,
html[dir="rtl"] .creem-done-link,
html[dir="rtl"] .pd-total-k {
  font-family: system-ui, "Segoe UI", Tahoma, "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
  font-weight: 700;
  text-transform: none;
}
html[dir="rtl"] h1 { font-size: clamp(28px, 7.4vw, 42px); line-height: 1.3; }
html[dir="rtl"] .pd-st-title { font-size: 21px; }
html[dir="rtl"] .pd-pay-main { font-size: 21px; }
html[dir="rtl"] .eyebrow { font-size: 18px; }
html[dir="rtl"] .why-item b { font-size: 17px; line-height: 1.35; }
html[dir="rtl"] .pd-price-line, html[dir="rtl"] .pd-help p, html[dir="rtl"] .purchase-consent { font-size: 16px; }
html[dir="rtl"] #pay-device-id { text-align: right; padding-left: 14px; padding-right: 112px; }
html[dir="rtl"] #pay-device-id:placeholder-shown { padding-right: 44px; }
/* the field itself is left-to-right (SiteLanguage::rtlCss): keep the counter + status on its right edge */
html[dir="rtl"] .input-meta { direction: ltr; left: auto; right: 14px; }
html[dir="rtl"] #pay-device-id:not(:placeholder-shown) { direction: ltr; text-align: left; }
html[dir="rtl"] .cs-lang--paydevice .cs-lang-list { right: auto; left: 0; }
html[dir="rtl"] .tv-back { right: auto; left: 10px; }
html[dir="rtl"] .eyebrow::before { transform: skewX(12deg); }

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

/* ---------- Monthly plan (2026-11-13): step 3 "Choose your plan" (tv-pay.js createMonthlyPlan) ----------
   Everything here is `hidden` in index.php until monthly-config.php turns Monthly on for the visitor. */
.plan-pick[hidden], .plan-switch[hidden], .pd-total[hidden], .pd-more[hidden], .pd-policy-monthly[hidden] { display: none; }
.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: var(--r);
  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); background: var(--acc-tint); }
.plan-card:has(.plan-radio:focus-visible) { outline: 3px solid var(--focus); 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); background: radial-gradient(circle, var(--acc) 0 40%, transparent 46%); }
.plan-name { align-self: center; min-width: 0; font-family: var(--cond); font-size: 19px; font-weight: 800; font-style: italic; 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(--cta);
  border-radius: 6px;
  color: var(--cta-ink);
  font-family: var(--cond);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  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; font-style: italic; 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); 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-inline-start: 4px solid var(--info);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

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

.pd-policy-monthly { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }

html[dir="rtl"] .plan-name,
html[dir="rtl"] .plan-badge,
html[dir="rtl"] .plan-price { font-family: system-ui, "Segoe UI", Tahoma, "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif; 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: system-ui, "Segoe UI", Tahoma, "Geeza Pro", "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif; 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: #0B0B0F; --acc-hi: #2C2C33; --acc-ink: #FFFFFF; --focus: #0B0B0F;
  --acc-tint: rgba(255, 212, 0, 0.16); --deco: #7B3FE4; --info: #5B2BC0; --info-tint: rgba(123, 63, 228, 0.07);
  --shadow: rgba(11, 11, 15, 0.08);
}
