
body.page-legal {
  color-scheme: dark;
  --bg: #0a0b0e;
  --card: #15161c;
  --card-2: #1b1c24;
  --ink: #f2f3f5;
  --muted: #9aa0ab;
  --muted-2: #c7cad1;
  --border: rgba(255,255,255,.13);
  --border-soft: rgba(255,255,255,.07);
  --tint-orange: rgba(255,101,0,.14);
  background-color: var(--bg);
  background-image:
    radial-gradient(50% 35% at 85% 0%, rgba(255,101,0,.045), transparent 60%),
    radial-gradient(45% 30% at 6% 100%, rgba(255,101,0,.035), transparent 60%);
  background-repeat: no-repeat, no-repeat;
}

body.page-legal .site-header { background: rgba(10,11,14,.72); }
body.page-legal .site-header.scrolled { background: rgba(13,14,18,.94); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
body.page-legal .menu-toggle { background: var(--card); }
body.page-legal .mobile-menu { background: var(--bg); }
body.page-legal .language button { color: #6b6f7a; }
body.page-legal .desktop-nav a { color: var(--muted-2); }
body.page-legal .brand small { color: var(--muted-2); }

body.page-legal .legal-toc b { color: var(--muted-2); }
body.page-legal .legal-section p { color: var(--muted-2); }
body.page-legal .legal-bullets li { color: var(--muted-2); }
body.page-legal .legal-deflist-row dd { color: var(--muted-2); }
body.page-legal .legal-section-note { background: var(--card-2); }
body.page-legal .legal-note { color: var(--muted); }
body.page-legal .footer-tagline,
body.page-legal .footer-risk,
body.page-legal .footer-legal { color: var(--muted); }
body.page-legal .social-icon { background: var(--card-2); color: var(--muted); }
body.page-legal .social-icon:hover, body.page-legal .social-icon:focus-visible { background: var(--tint-orange); color: var(--orange); }
body.page-legal .back-to-top { background: var(--card); border-color: var(--border); }

body.page-auth {
  color-scheme: dark;
  --bg: #0a0b0e;
  --card: #15161c;
  --card-2: #1b1c24;
  --ink: #f2f3f5;
  --muted: #9aa0ab;
  --muted-2: #c7cad1;
  --border: rgba(255,255,255,.13);
  --border-soft: rgba(255,255,255,.07);
  --tint-orange: rgba(255,101,0,.14);
  background-color: var(--bg);
  background-image:
    radial-gradient(55% 45% at 50% 0%, rgba(255,101,0,.06), transparent 60%),
    radial-gradient(40% 30% at 100% 100%, rgba(255,101,0,.035), transparent 60%);
  background-repeat: no-repeat, no-repeat;
}
body.page-auth .site-header { background: rgba(10,11,14,.72); }
body.page-auth .site-header.scrolled { background: rgba(13,14,18,.94); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
body.page-auth .menu-toggle { background: var(--card); }
body.page-auth .mobile-menu { background: var(--bg); }
body.page-auth .language button { color: #6b6f7a; }
body.page-auth .brand small { color: var(--muted-2); }

body.page-auth .auth-card {
  background: var(--card);
  box-shadow: 0 24px 46px -26px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.05);
}
body.page-auth .auth-badge { background: var(--tint-orange); }
body.page-auth .button-secondary { background: var(--card-2); }
body.page-auth .button-secondary:hover { background: var(--card); }
body.page-auth .auth-notice { background: var(--card-2); color: var(--muted-2); border-color: var(--border-soft); }
body.page-auth .auth-includes-title { color: var(--muted-2); }
body.page-auth .footer-tagline,
body.page-auth .footer-risk,
body.page-auth .footer-legal { color: var(--muted); }
body.page-auth .back-to-top { background: var(--card); border-color: var(--border); }

body.page-dev {
  color-scheme: dark;
  --bg: #0a0b0e;
  --card: #15161c;
  --card-2: #1b1c24;
  --ink: #f2f3f5;
  --muted: #9aa0ab;
  --muted-2: #c7cad1;
  --border: rgba(255,255,255,.13);
  --border-soft: rgba(255,255,255,.07);
  --tint-orange: rgba(255,101,0,.14);
  --tint-orange-strong: rgba(255,101,0,.22);
  background-color: var(--bg);
  background-image:
    radial-gradient(45% 30% at 90% 0%, rgba(255,101,0,.05), transparent 60%),
    radial-gradient(40% 25% at 5% 100%, rgba(255,101,0,.035), transparent 60%);
  background-repeat: no-repeat, no-repeat;
}
body.page-dev .site-header { background: rgba(10,11,14,.72); }
body.page-dev .site-header.scrolled { background: rgba(13,14,18,.94); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
body.page-dev .menu-toggle { background: var(--card); }
body.page-dev .mobile-menu { background: var(--bg); }
body.page-dev .language button { color: #6b6f7a; }
body.page-dev .brand small { color: var(--muted-2); }
body.page-dev .footer-tagline,
body.page-dev .footer-risk,
body.page-dev .footer-legal { color: var(--muted); }
body.page-dev .back-to-top { background: var(--card); border-color: var(--border); }

body.page-dev .dev-supporting { color: var(--muted-2); }
body.page-dev .dev-stat { background: var(--card); }
body.page-dev .dev-card { background: var(--card); }
body.page-dev .dev-card-gold .dev-card-cat { color: #f0b34e; }
body.page-dev .dev-tag { background: var(--card-2); }
body.page-dev .dev-toggle { background: var(--tint-orange); }
body.page-dev .dev-toggle:hover { background: var(--tint-orange-strong); }
body.page-dev .dev-toggle[aria-expanded="true"] { background: var(--orange); }
body.page-dev .button-secondary { background: var(--card-2); }
body.page-dev .button-secondary:hover { background: var(--card); }

body.page-dev .algo-product-card, body.page-dev .algo-bundle-card { background: var(--card); }
body.page-dev .algo-status-badge { background: var(--tint-orange); }
body.page-dev .algo-demo-block { background: var(--card-2); }
body.page-dev .algo-price-row { background: var(--card-2); }
body.page-dev .algo-price-lifetime { background: var(--tint-orange); }
body.page-dev .algo-cta-notice { background: var(--card-2); color: var(--muted-2); }
body.page-dev .algo-platform-row { background: var(--card-2); }
body.page-dev .algo-token-manual-field { background: var(--card-2); color: var(--ink); }
body.page-dev .algo-install-modal-body { background: var(--card); }
body.page-dev .algo-calculator-field select,
body.page-dev .algo-calculator-field input { background: var(--card-2); }
body.page-dev .algo-calculator-row { background: var(--card-2); }
body.page-dev .algo-calculator-hero { background: var(--tint-orange); }
body.page-dev .algo-series-row:nth-child(even) { background: rgba(255,255,255,.035); }
body.page-dev .algo-series-row-zero { color: #f0564c; }
body.page-dev .algo-toggle { color: var(--muted-2); }

body.page-pro {
  color-scheme: dark;
  --bg: #0a0b0e;
  --card: #15161c;
  --card-2: #1b1c24;
  --ink: #f2f3f5;
  --muted: #9aa0ab;
  --muted-2: #c7cad1;
  --border: rgba(255,255,255,.13);
  --border-soft: rgba(255,255,255,.07);
  --tint-orange: rgba(255,101,0,.14);
  --tint-orange-strong: rgba(255,101,0,.22);
  background-color: var(--bg);
  background-image:
    radial-gradient(45% 30% at 92% 0%, rgba(255,101,0,.05), transparent 60%),
    radial-gradient(40% 28% at 4% 100%, rgba(255,101,0,.035), transparent 60%);
  background-repeat: no-repeat, no-repeat;
}
body.page-pro .site-header { background: rgba(10,11,14,.72); }
body.page-pro .site-header.scrolled { background: rgba(13,14,18,.94); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
body.page-pro .menu-toggle { background: var(--card); }
body.page-pro .mobile-menu { background: var(--bg); }
body.page-pro .language button { color: #6b6f7a; }
body.page-pro .header-account-logout { background: var(--card); box-shadow: none; }
body.page-pro .header-account-logout:hover { background: var(--card-2); }
body.page-pro .header-account-email { color: var(--muted-2); }
body.page-pro .brand small { color: var(--muted-2); }
body.page-pro .footer-tagline,
body.page-pro .footer-risk,
body.page-pro .footer-legal { color: var(--muted); }
body.page-pro .back-to-top { background: var(--card); border-color: var(--border); }
body.page-pro .button-secondary { background: var(--card-2); }
body.page-pro .button-secondary:hover { background: var(--card); }

body.page-pro .market-panel {
  background: linear-gradient(180deg, var(--card) 0%, #101115 100%);
  border-color: var(--border);
}
body.page-pro .market-cat-badge { background: var(--tint-orange); }
body.page-pro .market-chip {
  background: var(--card-2);
  color: var(--muted-2);
  border-color: var(--border);
}
body.page-pro .market-chip:hover { background: var(--tint-orange); }
body.page-pro .market-chip-tag { background: rgba(255,255,255,.08); color: var(--muted); }
body.page-pro .market-chip-live i { background: #4a4d57; }
body.page-pro .market-subgroup-label { color: var(--muted); }

body.page-pro .algo-product-card, body.page-pro .algo-bundle-card { background: var(--card); }
body.page-pro .algo-status-badge { background: var(--tint-orange); }
body.page-pro .algo-demo-block { background: var(--card-2); }
body.page-pro .algo-price-row { background: var(--card-2); }
body.page-pro .algo-price-lifetime { background: var(--tint-orange); }
body.page-pro .algo-cta-notice { background: var(--card-2); color: var(--muted-2); }
body.page-pro .algo-platform-row { background: var(--card-2); }
body.page-pro .algo-token-manual-field { background: var(--card-2); color: var(--ink); }
body.page-pro .algo-install-modal-body { background: var(--card); }
body.page-pro .algo-calculator-field select,
body.page-pro .algo-calculator-field input { background: var(--card-2); }
body.page-pro .algo-calculator-row { background: var(--card-2); }
body.page-pro .algo-calculator-hero { background: var(--tint-orange); }
body.page-pro .algo-series-row:nth-child(even) { background: rgba(255,255,255,.035); }
body.page-pro .algo-series-row-zero { color: #f0564c; }
body.page-pro .algo-toggle { color: var(--muted-2); }

body.page-pro .pro-preview-panel,
body.page-pro .pro-product-panel { background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); }
body.page-pro .pro-product-includes-label { color: var(--muted-2); }
body.page-pro .pro-pricing-card { background: var(--card); }
body.page-pro .pro-pricing-card-annual { background: var(--card-2); }
body.page-pro .pro-pricing-savings { color: var(--muted-2); }
body.page-pro .pro-preview-banner { background: var(--tint-orange); border-color: rgba(255,101,0,.35); color: #f0b785; }
body.page-pro .pro-preview-banner-link { color: #f0b785; }

body.page-pro .algo-pair-select {
  background-color: var(--card-2);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" fill="none" stroke="%239aa0ab" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  color: var(--ink);
  border-color: var(--border);
}

body.page-pro .pro-nav a { background: var(--card); color: var(--muted-2); }
body.page-pro .pro-nav a.is-locked { color: #6c6f77; }
body.page-pro .pro-section { background: var(--card); }
body.page-pro .pro-placeholder-note { background: var(--card-2); color: var(--muted-2); }
body.page-pro .pro-lock-note { color: var(--muted); }
body.page-pro .pro-quick-card { background: var(--card-2); }
body.page-pro .pro-unavailable-fields h3 { color: var(--muted-2); }
body.page-pro .pro-unavailable-fields .fields-list { color: var(--muted); }
body.page-pro .pro-block-title { color: var(--muted-2); }
body.page-pro .pro-health-badge { background: var(--card-2); }
body.page-pro .pro-overview-card { background: var(--card-2); }
body.page-pro .pro-overview-card .meta { color: var(--muted); }
body.page-pro .pro-summary-card { background: var(--card-2); }

body.page-pro .pro-cal-controls button { background: var(--card-2); color: var(--muted-2); }
body.page-pro .pro-cal-select { background: var(--card-2); color: var(--muted-2); }
body.page-pro .pro-cal-window-note { color: var(--muted); }
body.page-pro .pro-cal-date-group { background: var(--card-2); }
body.page-pro .pro-cal-row:hover { background: rgba(255,255,255,.04); }
body.page-pro .pro-cal-next-title,
body.page-pro .pro-cal-summary-title { color: var(--muted-2); }
body.page-pro .pro-cal-summary-stats { color: var(--muted-2); }
body.page-pro .pro-cal-next-event,
body.page-pro .pro-cal-summary { background: var(--card-2); }
body.page-pro .pro-cal-detail { background: var(--card); }
body.page-pro .pro-cal-detail-close { background: var(--card-2); }
body.page-pro .pro-cal-detail-close:hover { background: var(--card-2); }
body.page-pro .pro-cal-detail-row { color: var(--muted-2); }
body.page-pro .pro-cal-mini-label { color: var(--muted); }
body.page-pro .pro-cal-dashboard-mini { background: var(--card-2); }
body.page-pro #pro-tw-table tr { background: var(--card-2); }
body.page-pro .pcr-prev,
body.page-pro .pcr-fcst,
body.page-pro .pcr-act { color: var(--muted-2); }

body.page-pro .pro-tw-notice { background: rgba(224,166,58,.14); color: #e0b35c; }
body.page-pro .pro-tw-bulk-actions button { color: var(--muted-2); }
body.page-pro .pro-tw-card { background: var(--card-2); }
body.page-pro .pro-tw-row:hover { background: rgba(255,255,255,.04); }
body.page-pro .pro-tw-dot { background: var(--muted); }
body.page-pro .pro-tw-dot.allowed { background: #2fbf62; }
body.page-pro .pro-tw-dot.caution { background: #e0a63a; }
body.page-pro .pro-tw-dot.forbidden { background: #e0564c; }
body.page-pro .pro-tw-card .tw-badge.allowed { background: rgba(47,191,98,.16); color: #4fd67f; }
body.page-pro .pro-tw-card .tw-badge.caution { background: rgba(224,166,58,.16); color: #e0b35c; }
body.page-pro .pro-tw-card .tw-badge.forbidden { background: rgba(224,86,76,.16); color: #f0776e; }
body.page-pro .pro-tw-card .tw-badge.market_closed,
body.page-pro .pro-tw-card .tw-badge.unavailable { background: var(--card); color: var(--muted); }

body.page-pro .pro-table .tw-badge.allowed { background: rgba(47,191,98,.16); color: #4fd67f; }
body.page-pro .pro-table .tw-badge.caution { background: rgba(224,166,58,.16); color: #e0b35c; }
body.page-pro .pro-table .tw-badge.forbidden { background: rgba(224,86,76,.16); color: #f0776e; }
body.page-pro .pro-table .tw-badge.market_closed,
body.page-pro .pro-table .tw-badge.unavailable { background: var(--card); color: var(--muted); }
body.page-pro .pro-table .net-pos.neg { color: #f0776e; }
body.page-pro .pro-table .net-pos.pos { color: #4fd67f; }

body.page-pro .cot-card { background: var(--card-2); }
body.page-pro .cot-card-shift { color: var(--muted-2); }
body.page-pro .cot-card-interpretation { color: var(--muted-2); }
body.page-pro .cot-badge.long { background: rgba(47,191,98,.16); color: #4fd67f; }
body.page-pro .cot-badge.short { background: rgba(224,86,76,.16); color: #f0776e; }
body.page-pro .cot-badge.neutral,
body.page-pro .cot-badge.unavailable { background: var(--card); color: var(--muted); }
body.page-pro .cot-card-meta .value { color: var(--muted-2); }
body.page-pro .cot-card-age { color: var(--muted); }
body.page-pro .cot-card-stale-note { color: #e0b35c; }

body.page-pro .mini-card { background: var(--card-2); }
body.page-pro .mini-card-title { color: var(--muted-2); }
body.page-pro .mini-status { color: var(--muted); }
body.page-pro .mini-status i { background: #6c6f77; }
body.page-pro .mini-status.is-live { color: #4fd67f; }
body.page-pro .mini-status.is-live i { background: #2fbf62; }
body.page-pro .mini-status.is-updating,
body.page-pro .mini-status.is-stale { color: #e0b35c; }
body.page-pro .mini-status.is-updating i,
body.page-pro .mini-status.is-stale i { background: #e0a63a; }
body.page-pro .mini-status.is-unavailable { color: var(--muted); }
body.page-pro .mini-status.is-unavailable i { background: #6c6f77; }
body.page-pro .mini-card-updated { color: var(--muted); }
body.page-pro .ind-row-head span { color: var(--muted-2); }
body.page-pro .ind-bar { background: var(--card); }
body.page-pro .ind-bar-empty { background-image: repeating-linear-gradient(45deg, var(--card), var(--card) 4px, var(--card-2) 4px, var(--card-2) 8px); }
body.page-pro .ind-bar-marker { border-color: var(--card-2); }
body.page-pro .risk-overall-label { color: var(--muted-2); }
body.page-pro .risk-overall-low { color: #4fd67f; }
body.page-pro .risk-overall-moderate { color: #e0b35c; }
body.page-pro .risk-overall-elevated { color: #e08a3a; }
body.page-pro .risk-overall-high { color: #f0776e; }
body.page-pro .risk-overall-none { color: var(--muted); }
body.page-pro .factor-row-head span { color: var(--muted-2); }
body.page-pro .seg { background: var(--card); }
body.page-pro .seg-active.seg-low,
body.page-pro .seg-active.seg-normal,
body.page-pro .seg-active.seg-fresh,
body.page-pro .seg-active.seg-bullish { background: #2fbf62; }
body.page-pro .seg-active.seg-moderate,
body.page-pro .seg-active.seg-caution,
body.page-pro .seg-active.seg-mixed { background: #e0a63a; }
body.page-pro .seg-active.seg-elevated { background: #e08a3a; }
body.page-pro .seg-active.seg-high,
body.page-pro .seg-active.seg-stale,
body.page-pro .seg-active.seg-bearish { background: #e0564c; }
body.page-pro .seg-active.seg-neutral { background: var(--muted); }
body.page-pro .mtf-structure-bullish { color: #4fd67f; }
body.page-pro .mtf-structure-bearish { color: #f0776e; }
body.page-pro .mtf-structure-mixed { color: #e0b35c; }
body.page-pro .mtf-structure-neutral,
body.page-pro .mtf-structure-none,
body.page-pro .mtf-structure-unavailable { color: var(--muted); }
body.page-pro .mtf-row-direction { color: var(--muted-2); }
body.page-pro .mtf-legend { color: var(--muted); }
body.page-pro .fundamental-side-head { color: var(--muted-2); }

@media (max-width: 640px) {
  body.page-pro .pro-table-wrap { position: relative; }
  body.page-pro .pro-table-wrap::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 0; width: 22px;
    background: linear-gradient(90deg, transparent, var(--card));
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-legal *, body.page-auth *, body.page-dev *, body.page-pro * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.page-partners .button-secondary { background: var(--card-2); }
body.page-partners .button-secondary:hover { background: var(--card); }
body.page-partners .lead { color: var(--muted-2); }
