:root {
  --bg: #07080c;
  --panel: rgba(18, 20, 28, 0.74);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(10, 12, 18, 0.78);
  --border: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7f7fb;
  --muted: #a6abb8;
  --faint: #6f7481;
  --accent: #ff2d95;
  --accent-2: #ff7ac8;
  --cyan: #58e8ff;
  --glass: rgba(255, 255, 255, 0.045);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --green: #10b981;
  --teal: #2dd4bf;
  --gold: #fbbf24;
  --orange: #f97316;
  --red: #f43f5e;
  --blue: #3b82f6;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(255, 45, 149, 0.12) 0%, transparent 30%),
    linear-gradient(245deg, rgba(88, 232, 255, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #0a0b11 0%, #06070b 48%, #04050a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0 42%, rgba(255, 45, 149, 0.08) 42% 42.6%, transparent 42.6% 68%, rgba(88, 232, 255, 0.06) 68% 68.5%, transparent 68.5%);
  opacity: 0.72;
}

button,
input {
  font: inherit;
}

.wrap {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 46px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand strong {
  color: var(--text);
  display: block;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.05;
  white-space: nowrap;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.coin {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  position: relative;
  color: #071017;
  font-size: 22px;
  font-weight: 800;
  background:
    linear-gradient(135deg, #ffd166 0 32%, var(--cyan) 32% 68%, var(--accent) 68%),
    #d6d8de;
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 45, 149, 0.24),
    0 0 28px rgba(88, 232, 255, 0.18);
}

.coin::before,
.coin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(7, 16, 23, 0.24);
  clip-path: inherit;
  pointer-events: none;
}

.coin::after {
  inset: 3px;
  border-color: rgba(88, 232, 255, 0.32);
  opacity: 0.8;
}

.coin span {
  position: relative;
  z-index: 1;
}

#dataDate {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.author-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 5px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 122, 200, 0.32);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(255, 45, 149, 0.13), rgba(88, 232, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(255, 45, 149, 0.12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.author-link span {
  color: var(--accent-2);
}

.author-link:hover,
.author-link:focus-visible {
  color: var(--text);
  border-color: rgba(255, 122, 200, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(255, 45, 149, 0.22),
    0 0 22px rgba(88, 232, 255, 0.12);
  transform: translateY(-1px);
}

.modebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 11px 12px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.variant-online #dataDate,
.variant-online .modebar,
.variant-online #footerSource,
.variant-online .footer-links {
  display: none !important;
}

.variant-online .signal-score {
  display: none !important;
}

.variant-online .cost-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.variant-online .cost-line em {
  display: none !important;
}

.hero {
  margin-bottom: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px) saturate(138%);
  -webkit-backdrop-filter: blur(22px) saturate(138%);
}

.current-panel {
  position: relative;
  min-height: 348px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(88, 232, 255, 0.075), transparent 32% 70%, rgba(255, 45, 149, 0.105)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(9, 11, 16, 0.88);
}

.current-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(88, 232, 255, 0.14) 45% 45.35%, transparent 45.35% 56%, rgba(255, 45, 149, 0.18) 56% 56.35%, transparent 56.35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.042) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 54px);
  opacity: 0.3;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.current-panel::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 18%, var(--accent) 50%, #ffd166 82%, transparent);
  box-shadow: 0 0 22px rgba(255, 45, 149, 0.26);
  pointer-events: none;
}

.current-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(370px, 0.78fr);
  min-height: inherit;
}

.current-main {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-module {
  position: relative;
  padding: 34px 38px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.score-module::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 34px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(88, 232, 255, 0.5), rgba(255, 45, 149, 0.42), transparent);
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.2);
}

.label,
.score-label {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  margin-top: 12px;
  font-size: 92px;
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow:
    0 0 18px rgba(255, 45, 149, 0.42),
    0 0 32px rgba(88, 232, 255, 0.14);
}

.change {
  margin-top: 16px;
  font-size: 23px;
  font-weight: 600;
}

.change span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pos {
  color: var(--green);
}

.mid {
  color: var(--gold);
}

.neg {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

.price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-meta b {
  color: var(--text);
}

#sourceStatus {
  flex-basis: 100%;
  max-width: 720px;
  color: #c0c4ce;
}

.score-label {
  color: #d8e6ef;
}

.gauge {
  width: min(372px, 100%);
  height: 198px;
  margin-top: 10px;
}

.score-tech {
  --score-pct: 0%;
  --score-color: var(--green);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.score-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.score-readout span {
  color: var(--score-color);
  font-size: 64px;
  line-height: 0.92;
  font-weight: 800;
  text-shadow: 0 0 18px color-mix(in srgb, var(--score-color), transparent 50%);
}

.score-readout em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

.score-track {
  position: relative;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.065), transparent 18% 82%, rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.34),
    inset 0 0 18px rgba(0, 0, 0, 0.36);
}

.score-track::before {
  content: "";
  position: absolute;
  inset: -42% auto -42% -18%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  filter: blur(3px);
  opacity: 0.42;
  transform: skewX(-18deg);
  animation: trackSweep 3.2s ease-in-out infinite;
}

.score-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px);
  opacity: 0.2;
  pointer-events: none;
}

.score-fill {
  display: block;
  position: relative;
  width: var(--score-pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 56%, #fbbf24 72%, #f97316 86%, var(--accent) 100%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--score-color), transparent 34%);
  overflow: hidden;
}

.score-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 48%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.44;
  transform: translateX(-110%);
  animation: fillGlint 2.6s ease-in-out 620ms infinite;
}

.score-cursor {
  position: absolute;
  top: -7px;
  left: var(--score-pct);
  width: 3px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 14px var(--score-color), 0 0 24px rgba(255, 255, 255, 0.36);
  z-index: 2;
  animation: cursorPulse 1.8s ease-in-out infinite alternate;
}

.score-track b {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.34);
  z-index: 1;
}

.score-ticks,
.score-zones {
  position: relative;
  display: block;
  height: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.score-ticks span,
.score-zones span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.score-ticks span:first-child {
  transform: translateX(0);
}

.score-ticks span:last-child {
  transform: translateX(-100%);
}

.score-zones {
  color: var(--faint);
  height: 28px;
  font-size: 11px;
}

.score-zones span:first-child {
  transform: translateX(-50%);
}

.zone-pill {
  width: fit-content;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 45, 149, 0.1);
  border: 1px solid rgba(255, 45, 149, 0.28);
  color: #a1a1aa;
  font-weight: 700;
  font-size: 15px;
}

.advice {
  margin-top: 0;
  font-size: 16px;
  font-weight: 680;
  text-align: left;
  line-height: 1.45;
}

.score-status-row {
  display: grid;
  gap: 10px;
  align-items: start;
  margin-top: 4px;
}

.signal-section h2,
.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.2;
}

.signal-section h2 {
  margin-bottom: 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.module-panel {
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin-bottom: 22px;
  background:
    linear-gradient(120deg, rgba(88, 232, 255, 0.055), rgba(255, 45, 149, 0.055) 46%, rgba(255, 209, 102, 0.035)),
    rgba(12, 14, 20, 0.84);
}

.module-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(88, 232, 255, 0.085), transparent 26% 74%, rgba(255, 45, 149, 0.1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 78px);
  background-size: 140px 100%, 78px 100%;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

.module-panel::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 22%, var(--accent) 50%, #ffd166 78%, transparent);
  box-shadow: 0 0 18px rgba(255, 45, 149, 0.26);
  pointer-events: none;
}

.module-head,
.module-panel .signal-grid {
  position: relative;
  z-index: 1;
}

.module-head {
  margin-bottom: 16px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 0;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(88, 232, 255, 0.24), rgba(255, 45, 149, 0.26), rgba(255, 209, 102, 0.14)),
    rgba(255, 255, 255, 0.05);
}

.signal-card {
  position: relative;
  isolation: isolate;
  min-height: 266px;
  padding: 18px 18px 16px;
  border-radius: 0;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-color, #58e8ff), transparent 91%), rgba(15, 17, 24, 0.94) 48%, rgba(8, 10, 15, 0.94)),
    rgba(15, 17, 24, 0.96);
  border: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    inset 0 2px 0 var(--card-color, var(--border)),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 34%, color-mix(in srgb, var(--card-color, #58e8ff), transparent 70%) 48%, transparent 62% 100%),
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--card-color, #58e8ff), transparent 74%), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--card-color, #58e8ff), transparent 72%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  opacity: 0.55;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.signal-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 14px color-mix(in srgb, var(--card-color, #58e8ff), transparent 88%),
    inset 0 2px 0 var(--card-color, var(--border)),
    inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

.signal-card:hover::before {
  opacity: 0.18;
}

.signal-card:hover::after {
  opacity: 1;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-color, #58e8ff), transparent 58%);
}

.signal-card > * {
  position: relative;
  z-index: 1;
}

.signal-card:hover .signal-title,
.signal-card:hover .signal-score {
  text-shadow: 0 0 16px color-mix(in srgb, var(--card-color, #58e8ff), transparent 42%);
}

.signal-card:hover .status-dot {
  box-shadow:
    0 0 16px color-mix(in srgb, var(--card-color, #58e8ff), transparent 78%),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.signal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.signal-title {
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  min-width: 0;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.signal-sub {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.quality-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.qtag {
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.signal-score {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.signal-score small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.meter {
  position: relative;
  height: 6px;
  margin: 11px 0 12px;
  border-radius: 999px;
  background: #232832;
  overflow: hidden;
}

.meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 14px);
  opacity: 0.16;
  pointer-events: none;
}

.meter span {
  display: block;
  position: relative;
  height: 100%;
  width: var(--pct);
  background: var(--meter-gradient, linear-gradient(90deg, var(--color), var(--teal)));
  box-shadow: 0 0 12px color-mix(in srgb, var(--color), transparent 34%);
  overflow: hidden;
}

.meter span::after {
  content: none;
}

.signal-card:hover .meter span {
  box-shadow: 0 0 14px color-mix(in srgb, var(--color), transparent 28%);
}

.signal-card:hover .spark {
  opacity: 1;
  transform: translateY(-2px);
}

.signal-now,
.signal-copy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.signal-now b {
  color: var(--text);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.scale {
  margin: 10px 0 8px;
}

.scale-bar {
  position: relative;
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-soft);
}

.scale-bar::after {
  content: none;
}

.scale-marker {
  position: absolute;
  top: -3px;
  left: var(--left);
  width: 3px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.signal-card:hover .scale-marker {
  box-shadow:
    0 0 12px color-mix(in srgb, var(--card-color, #58e8ff), transparent 28%),
    0 0 20px rgba(255, 255, 255, 0.24);
}

.scale-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.cost-lines {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.cost-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.cost-line > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cost-line b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.cost-line em {
  font-style: normal;
  font-size: 11px;
  white-space: nowrap;
}

.spark {
  margin-top: auto;
  padding-top: 12px;
  width: 150px;
  height: 36px;
  opacity: 0.9;
  transition: opacity 180ms ease, transform 180ms ease;
}

.spark svg {
  display: block;
}

.ma-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ma-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.ma-row b {
  color: var(--text);
}

.chart-panel,
.table-panel {
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 45, 149, 0.026) 48%, rgba(88, 232, 255, 0.035)),
    var(--panel);
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.button-group span {
  color: var(--muted);
  font-size: 12px;
}

.seg {
  min-height: 32px;
  padding: 6px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.seg:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.seg.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(255, 45, 149, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.threshold-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(88, 232, 255, 0.08), rgba(255, 45, 149, 0.06)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.threshold-btn {
  --tier-rgb: 255, 45, 149;
  --tier-color: #ff2d95;
  display: grid;
  position: relative;
  isolation: isolate;
  align-content: start;
  gap: 10px;
  min-height: 132px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(var(--tier-rgb), 0.24);
  border-radius: 7px;
  color: var(--muted);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--tier-rgb), 0.22), transparent 38%),
    linear-gradient(180deg, rgba(var(--tier-rgb), 0.10), rgba(255, 255, 255, 0.028) 42%, rgba(255, 255, 255, 0.018));
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, color 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.threshold-btn[data-threshold="60"] {
  --tier-rgb: 88, 232, 255;
  --tier-color: #58e8ff;
}

.threshold-btn[data-threshold="70"] {
  --tier-rgb: 136, 116, 255;
  --tier-color: #8874ff;
}

.threshold-btn[data-threshold="80"] {
  --tier-rgb: 255, 180, 72;
  --tier-color: #ffb448;
}

.threshold-btn[data-threshold="90"] {
  --tier-rgb: 255, 45, 149;
  --tier-color: #ff2d95;
}

.threshold-btn::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tier-color), transparent);
  opacity: 0.72;
  z-index: -1;
}

.threshold-btn::after {
  content: "";
  position: absolute;
  inset: auto 10px 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--tier-rgb), 0.68), transparent);
  opacity: 0.65;
  z-index: -1;
}

.threshold-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.threshold-main b {
  color: var(--tier-color);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 18px rgba(var(--tier-rgb), 0.34);
}

.threshold-main small {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.78;
  white-space: nowrap;
}

.threshold-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.threshold-metrics > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid rgba(var(--tier-rgb), 0.10);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.threshold-metrics em {
  color: #fff;
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.threshold-metrics small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.threshold-btn:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: rgba(var(--tier-rgb), 0.48);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--tier-rgb), 0.28), transparent 40%),
    linear-gradient(180deg, rgba(var(--tier-rgb), 0.14), rgba(255, 255, 255, 0.04) 46%, rgba(255, 255, 255, 0.026));
  box-shadow: 0 0 22px rgba(var(--tier-rgb), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.threshold-btn.active {
  color: #fff;
  border-color: rgba(var(--tier-rgb), 0.82);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(var(--tier-rgb), 0.48), rgba(255, 45, 149, 0.34) 58%, rgba(88, 232, 255, 0.20)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 16px 36px rgba(var(--tier-rgb), 0.30),
    0 0 28px rgba(var(--tier-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.threshold-btn.active::before {
  height: 4px;
  opacity: 1;
  box-shadow: 0 0 20px rgba(var(--tier-rgb), 0.72);
}

.threshold-btn.active .threshold-metrics > span {
  border-color: rgba(var(--tier-rgb), 0.24);
  background: rgba(0, 0, 0, 0.16);
}

.main-chart {
  height: 430px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(3, 5, 10, 0.38);
  overflow: hidden;
}

.main-chart > div,
.main-chart canvas,
.main-chart svg {
  max-width: 100%;
}

.fallback-chart {
  width: 100%;
  height: 100%;
  display: block;
  background: #0a0a0b;
  border-radius: 6px;
}

.axis-label,
.tick-label {
  fill: var(--muted);
  font-size: 11px;
}

.caption {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.backtest-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.backtest-stat,
.backtest-empty {
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 45, 149, 0.065), rgba(88, 232, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.backtest-stat {
  padding: 13px 14px;
}

.backtest-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.stat-top span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 45, 149, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 45, 149, 0.1);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.stat-top small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.backtest-stat b {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.backtest-stat em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.backtest-stat p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background: rgba(4, 6, 12, 0.38);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
  font-size: 13px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.055);
  color: #c5c9d2;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.empty {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

tr.legacy-sample td {
  color: #aaa4b2;
  background: rgba(255, 255, 255, 0.012);
}

.sample-note {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 180, 72, 0.24);
  border-radius: 5px;
  color: #ffd08a;
  background: rgba(255, 180, 72, 0.075);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

tr:hover td {
  background: rgba(255, 45, 149, 0.04);
}

.system-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 45, 149, 0.055), rgba(88, 232, 255, 0.026)),
    rgba(255, 255, 255, 0.026);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.system-note h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
}

.system-note p {
  margin: 6px 0;
}

.footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.footer p {
  margin: 4px 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.footer a,
.footer-link,
.doc-back {
  color: var(--teal);
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.footer .footer-risk-link {
  color: var(--muted);
  text-decoration: none;
}

.footer .footer-risk-link:hover,
.footer .footer-risk-link:focus-visible {
  color: var(--accent-2);
}

.footer a:hover,
.footer-link:hover,
.doc-back:hover {
  color: var(--text);
}

.footer-link.active {
  color: var(--text);
}

.doc-wrap {
  max-width: 1180px;
}

.doc-topline {
  align-items: center;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel-strong);
  white-space: nowrap;
}

.doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: center;
  padding: 26px;
  margin-bottom: 18px;
}

.doc-score {
  margin-top: 8px;
  color: var(--green);
  font-size: 56px;
  line-height: 1;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.doc-lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.doc-weight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.doc-weight {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-strong);
}

.doc-weight span,
.doc-weight em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.doc-weight b {
  display: block;
  margin: 7px 0 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.doc-weight em {
  color: var(--green);
  font-weight: 800;
}

.doc-section {
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 8px;
  min-width: 0;
}

.doc-section h2 {
  margin: 0;
  font-size: 16px;
}

.doc-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
}

.doc-section p,
.doc-section li,
.formula-list {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.doc-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-formula-grid > * {
  min-width: 0;
}

.formula-list {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 14px 0;
}

.formula-list dt {
  color: var(--text);
  font-weight: 750;
}

.formula-list dd {
  margin: 0;
}

.doc-section code {
  color: #d6e2ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.doc-section pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1015;
  color: var(--text);
  line-height: 1.6;
}

.doc-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.doc-method-grid ul {
  margin: 0;
  padding-left: 18px;
}

body.mode-free {
  --bg: #05050a;
  --panel: rgba(17, 15, 24, 0.76);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(9, 8, 14, 0.82);
  --border: rgba(255, 255, 255, 0.11);
  --line: rgba(88, 232, 255, 0.18);
  --text: #fff8fc;
  --muted: #b5b1bd;
  --faint: #72707d;
  --green: #35f6ae;
  --teal: #58e8ff;
  --gold: #ffd166;
  --orange: #ff8a4c;
  --red: #ff3ea5;
  --blue: #8d7cff;
  background:
    linear-gradient(118deg, rgba(255, 45, 149, 0.11) 0%, transparent 30%),
    linear-gradient(246deg, rgba(88, 232, 255, 0.08) 0%, transparent 30%),
    linear-gradient(180deg, #090711 0%, #05050a 58%, #030409 100%);
}

body.mode-free::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

body.mode-free::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0 42%, rgba(255, 45, 149, 0.09) 42% 42.55%, transparent 42.55% 68%, rgba(88, 232, 255, 0.06) 68% 68.5%, transparent 68.5%);
  opacity: 0.72;
}

.mode-free .wrap {
  padding-top: 26px;
}

.mode-free .brand strong {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 45, 149, 0.26);
}

.mode-free .brand-copy small {
  color: #a8d8e7;
}

.mode-free .coin {
  background: linear-gradient(135deg, #ffd166 0 32%, var(--cyan) 32% 68%, var(--accent) 68%);
  color: #07020b;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24),
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 45, 149, 0.24),
    0 0 28px rgba(88, 232, 255, 0.18);
}

.mode-free #dataDate,
.mode-free .modebar,
.mode-free .panel,
.mode-free .doc-back,
.mode-free .doc-weight,
.mode-free .doc-section,
.mode-free .system-note {
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(138%);
  -webkit-backdrop-filter: blur(22px) saturate(138%);
}

.mode-free .modebar,
.mode-free .panel,
.mode-free .doc-back,
.mode-free .doc-weight,
.mode-free .doc-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 45, 149, 0.035) 48%, rgba(88, 232, 255, 0.032)),
    var(--panel);
}

.mode-free .current-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(88, 232, 255, 0.075), transparent 32% 70%, rgba(255, 45, 149, 0.105)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(9, 11, 16, 0.88);
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 45, 149, 0.03);
}

.mode-free .current-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 45%, rgba(88, 232, 255, 0.14) 45% 45.35%, transparent 45.35% 56%, rgba(255, 45, 149, 0.18) 56% 56.35%, transparent 56.35%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.042) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 54px);
  opacity: 0.3;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.mode-free .current-panel > * {
  position: relative;
}

.mode-free .price {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 45, 149, 0.42), 0 0 32px rgba(88, 232, 255, 0.14);
}

.mode-free .change {
  color: #35f6ae;
  text-shadow: 0 0 16px rgba(53, 246, 174, 0.32);
}

.mode-free .label,
.mode-free .score-label,
.mode-free .mode-note,
.mode-free .section-head p,
.mode-free .caption,
.mode-free .signal-sub,
.mode-free .signal-now,
.mode-free .signal-copy,
.mode-free .button-group span,
.mode-free .price-meta,
.mode-free .footer,
.mode-free .system-note,
.mode-free td.empty {
  color: #bdb8c4;
}

.mode-free .score-module::before {
  background: linear-gradient(180deg, transparent, rgba(88, 232, 255, 0.5), rgba(255, 45, 149, 0.42), transparent);
}

.mode-free .module-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(120deg, rgba(88, 232, 255, 0.055), rgba(255, 45, 149, 0.055) 46%, rgba(255, 209, 102, 0.035)),
    rgba(12, 14, 20, 0.84);
}

.mode-free .signal-grid {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(88, 232, 255, 0.24), rgba(255, 45, 149, 0.26), rgba(255, 209, 102, 0.14)),
    rgba(255, 255, 255, 0.05);
}

.mode-free .zone-pill {
  border: 1px solid rgba(255, 45, 149, 0.28);
  box-shadow: 0 0 20px rgba(255, 45, 149, 0.18);
}

.mode-free .signal-section h2,
.mode-free .section-head h2,
.mode-free .system-note h3 {
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.24);
}

.mode-free .signal-card {
  position: relative;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-color, #ff3ea5), transparent 90%), rgba(15, 17, 24, 0.94) 48%, rgba(8, 10, 15, 0.94)),
    rgba(15, 17, 24, 0.96);
  box-shadow:
    inset 0 2px 0 var(--card-color, #ff3ea5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-free .signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--card-color, #ff3ea5), transparent 72%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 38%, color-mix(in srgb, var(--card-color, #ff3ea5), transparent 92%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  opacity: 0.62;
  transition: opacity 180ms ease, box-shadow 180ms ease;
}

.mode-free .signal-card > * {
  position: relative;
  z-index: 1;
}

.mode-free .signal-title {
  color: #fff;
}

.mode-free .status-dot,
.mode-free .qtag {
  border-color: rgba(255, 45, 149, 0.26);
  background: rgba(255, 45, 149, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-free .signal-score {
  text-shadow: 0 0 14px color-mix(in srgb, currentColor, transparent 42%);
}

.mode-free .meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mode-free .meter span {
  background: linear-gradient(90deg, var(--accent), var(--color), var(--cyan));
  box-shadow: 0 0 12px color-mix(in srgb, var(--color), transparent 26%);
}

.mode-free .scale-bar {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mode-free .scale-marker {
  background: #fff6fb;
  box-shadow: 0 0 12px rgba(255, 45, 149, 0.6), 0 0 18px rgba(88, 232, 255, 0.24);
}

.mode-free .seg {
  color: #d3ccd6;
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-free .seg:hover {
  color: #fff;
  border-color: rgba(255, 45, 149, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.mode-free .seg.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(255, 45, 149, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.mode-free .threshold-control {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(88, 232, 255, 0.09), rgba(255, 45, 149, 0.09)),
    rgba(6, 8, 15, 0.72);
}

.mode-free .threshold-btn {
  color: #d4ced8;
  border-color: rgba(var(--tier-rgb), 0.28);
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--tier-rgb), 0.22), transparent 38%),
    linear-gradient(180deg, rgba(var(--tier-rgb), 0.10), rgba(255, 255, 255, 0.028) 42%, rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mode-free .threshold-btn:hover {
  color: #fff;
  border-color: rgba(var(--tier-rgb), 0.54);
  box-shadow: 0 0 22px rgba(var(--tier-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mode-free .threshold-btn.active {
  border-color: rgba(var(--tier-rgb), 0.82);
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(var(--tier-rgb), 0.48), rgba(255, 45, 149, 0.34) 58%, rgba(88, 232, 255, 0.20)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 16px 36px rgba(var(--tier-rgb), 0.30),
    0 0 28px rgba(var(--tier-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
}

.mode-free .threshold-metrics > span {
  background: rgba(255, 255, 255, 0.045);
}

.mode-free .threshold-main b,
.mode-free .threshold-metrics em {
  text-shadow: 0 0 14px color-mix(in srgb, currentColor, transparent 45%);
}

.mode-free .main-chart,
.mode-free .table-scroll {
  border-radius: 8px;
  background: rgba(4, 6, 12, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mode-free .fallback-chart {
  background: #050207;
}

.mode-free .table-scroll {
  border-color: rgba(255, 255, 255, 0.085);
}

.mode-free th {
  color: #d6d2da;
  background: rgba(255, 255, 255, 0.055);
}

.mode-free th,
.mode-free td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mode-free tr:hover td {
  background: rgba(255, 45, 149, 0.04);
}

.mode-free .backtest-stat,
.mode-free .backtest-empty {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 45, 149, 0.08), rgba(88, 232, 255, 0.04)),
    rgba(7, 9, 16, 0.62);
}

.mode-free .backtest-stat b {
  text-shadow: 0 0 16px color-mix(in srgb, currentColor, transparent 42%);
}

.mode-free .system-note {
  background:
    linear-gradient(135deg, rgba(255, 45, 149, 0.055), rgba(88, 232, 255, 0.026)),
    rgba(255, 255, 255, 0.026);
}

.mode-free .footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mode-free .footer a,
.mode-free .doc-back {
  color: #58e8ff;
  text-shadow: 0 0 14px rgba(88, 232, 255, 0.3);
}

@keyframes scoreFillGrow {
  from {
    width: 0;
  }
  to {
    width: var(--score-pct);
  }
}

@keyframes cursorSlide {
  from {
    left: 0;
  }
  to {
    left: var(--score-pct);
  }
}

@keyframes cursorPulse {
  from {
    opacity: 0.72;
    box-shadow: 0 0 10px var(--score-color), 0 0 18px rgba(255, 255, 255, 0.26);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 18px var(--score-color), 0 0 30px rgba(255, 255, 255, 0.42);
  }
}

@keyframes fillGlint {
  0%,
  42% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes trackSweep {
  0%,
  18% {
    transform: translateX(0) skewX(-18deg);
  }
  62%,
  100% {
    transform: translateX(360%) skewX(-18deg);
  }
}

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

  .signal-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .current-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .score-module {
    padding-top: 0;
  }

  .score-module::before {
    top: 0;
    right: 28px;
    bottom: auto;
    left: 28px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 232, 255, 0.52), rgba(255, 122, 200, 0.44), transparent);
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-hero,
  .doc-formula-grid,
  .doc-method-grid {
    grid-template-columns: 1fr;
  }

  .doc-weight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100vw - 24px, 100%);
    padding-top: 12px;
  }

  .topline {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
  }

  .modebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .author-link {
    margin-left: auto;
    min-height: 32px;
    padding: 8px 10px;
  }

  #dataDate {
    width: 100%;
    white-space: normal;
    line-height: 1.5;
  }

  .current-panel {
    min-height: auto;
  }

  .current-main {
    padding: 28px 22px 22px;
  }

  .price {
    font-size: 58px;
  }

  .score-module {
    padding: 22px;
  }

  .gauge {
    height: 184px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signal-card {
    min-height: auto;
    padding: 15px;
  }

  .spark {
    display: none;
  }

  .main-chart {
    height: 340px;
  }

  .toolbar {
    gap: 12px;
  }

  .button-group {
    flex-wrap: wrap;
  }

  .threshold-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .threshold-btn {
    min-width: 0;
    min-height: 124px;
    padding: 10px;
  }

  .backtest-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-dot {
    white-space: normal;
    justify-content: flex-end;
    text-align: right;
  }

  .chart-panel,
  .table-panel {
    padding: 14px;
  }

  .table-scroll.history-table-scroll,
  .table-scroll.targets-table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-table,
  .targets-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 12.5px;
  }

  .history-table thead,
  .targets-table thead {
    display: none;
  }

  .history-table tbody,
  .history-table tr,
  .history-table td,
  .targets-table tbody,
  .targets-table tr,
  .targets-table td {
    display: block;
    width: 100%;
  }

  .history-table tr,
  .targets-table tr {
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 45, 149, 0.045), rgba(88, 232, 255, 0.025)),
      rgba(7, 9, 16, 0.68);
  }

  .history-table td,
  .targets-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    text-align: right;
    overflow-wrap: anywhere;
  }

  .history-table td:last-child,
  .targets-table td:last-child {
    border-bottom: 0;
  }

  .history-table td::before,
  .targets-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    text-transform: none;
  }

  .history-table td.empty,
  .targets-table td.empty {
    display: block;
    text-align: center;
  }

  .history-table td.empty::before,
  .targets-table td.empty::before {
    content: "";
  }

  .system-note {
    padding: 13px 14px;
    font-size: 12.5px;
    line-height: 1.65;
  }

  .footer {
    text-align: left;
  }

  .doc-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-hero,
  .doc-section {
    padding: 14px;
  }

  .doc-score {
    font-size: 46px;
  }

  .doc-weight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formula-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .backtest-stats {
    grid-template-columns: 1fr;
  }

  .threshold-control {
    grid-template-columns: 1fr;
  }

  .threshold-main small,
  .threshold-metrics small {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .price {
    font-size: 50px;
  }
}
