:root {
  --bg: #243140;
  --bg-deep: #162333;
  --bg-soft: #314050;
  --panel: rgba(238, 242, 232, 0.065);
  --panel-strong: rgba(238, 242, 232, 0.11);
  --border: rgba(239, 243, 234, 0.34);
  --border-soft: rgba(239, 243, 234, 0.16);
  --text: #f4f1ff;
  --muted: #c9d0ce;
  --muted-2: #aeb8b9;
  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --green: #9bd09a;
  --red: #ff6961;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1160px;
  --header: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 231, 179, 0.12), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(145, 178, 201, 0.16), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(220, 231, 179, 0.06), transparent 36%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 34%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

.page-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(920px, calc(100% - 40px));
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  opacity: 0.78;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4rem, 10vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.08em;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

p {
  color: var(--muted);
  line-height: 1.68;
  font-size: 1.02rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(22, 35, 51, 0.46);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(22, 35, 51, 0.86);
  border-color: var(--border-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--accent);
  font-size: 0.86rem;
}

.brand-text {
  font-size: 1.08rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-menu a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 100%;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.nav-cta {
  background: rgba(220,231,179,0.12);
  color: var(--text);
  font-weight: 700;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn-primary {
  background: var(--accent);
  color: #1b2632;
  border-color: var(--accent);
  font-weight: 800;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-full {
  width: 100%;
  margin-top: 22px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header) + 70px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  border: 1px solid rgba(220,231,179,0.13);
  right: -220px;
  top: 140px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero-lead {
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.45;
  color: var(--text);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-text {
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 28px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.insights-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
}

.terminal-card,
.glass-card,
.final-card,
.plan-card,
.insight-price,
.mini-card,
.telegram-mock {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 20px;
  transform: rotate(-1deg);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.terminal-top strong {
  margin-left: auto;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.chart {
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: rgba(9,14,20,0.38);
  border: 1px solid rgba(255,255,255,0.08);
}

.chart .grid-line {
  stroke: rgba(255,255,255,0.11);
  stroke-width: 1;
}

.chart .area {
  fill: url(#chartFill);
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart circle {
  fill: var(--accent);
  stroke: #1d2a36;
  stroke-width: 4;
}

.visual-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.visual-cards div {
  padding: 14px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.visual-cards small {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

.visual-cards b {
  font-size: 0.88rem;
}

.formula-pill {
  position: absolute;
  left: -28px;
  bottom: -26px;
  max-width: 310px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(22,35,51,0.78);
  color: var(--text);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.glass-card {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.problem-card h2 {
  margin-bottom: 28px;
}

.problem-list,
.solution-list {
  display: grid;
  gap: 18px;
}

.problem-list p,
.solution-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.cross,
.check {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

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

.check {
  color: var(--green);
  font-size: 1.2rem;
  border: 1px solid rgba(155,208,154,0.55);
}

.marker {
  display: inline;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
  background: linear-gradient(0deg, rgba(174,188,157,0.55), rgba(174,188,157,0.55));
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.08em 0.22em;
  border-radius: 8px;
}

.problem-card .marker {
  display: inline-block;
  margin: 30px 0;
  font-size: clamp(1.16rem, 2vw, 1.55rem);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card,
.module-card {
  min-height: 100%;
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.concept-map {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.concept-row.top {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: start;
  gap: 16px;
}

.concept-node {
  text-align: center;
  padding: 24px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}

.concept-node b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(3.2rem, 7vw, 6rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 400;
}

.concept-node span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.42;
}

.concept-node.main {
  border-color: rgba(220,231,179,0.58);
  background: rgba(220,231,179,0.07);
}

.connector {
  width: 2px;
  height: 86px;
  margin: 0 auto;
  background: var(--accent);
  opacity: 0.85;
}

.logic-box {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 28px 22px;
  border: 2px solid var(--accent);
  border-radius: 28px;
  text-align: center;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.concept-copy p:not(.marker) {
  font-size: 1.08rem;
}

.module-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.module-label,
.badge,
.insight-price span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(220,231,179,0.15);
  color: var(--accent);
  border: 1px solid rgba(220,231,179,0.26);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.module-card ul,
.plan-list,
.compare-card ul {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.module-card li,
.plan-list li,
.compare-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.module-card li::before,
.plan-list li::before,
.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.format-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 24px 18px;
  border-radius: 24px;
  min-height: 190px;
}

.mini-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
}

.mini-card h3 {
  font-size: 1.06rem;
}

.mini-card p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border-soft);
}

.accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
}

.accordion-trigger span {
  color: var(--accent);
  margin-right: 10px;
}

.accordion-trigger::after {
  content: "+";
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-trigger::after {
  content: "-";
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.accordion-content p {
  padding: 0 30px 28px;
  margin: 0;
  max-width: 840px;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.image-strip img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.compare-card.before h3 {
  color: #ffc7c3;
}

.compare-card.after h3 {
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-xl);
  padding: 30px;
}

.plan-card.featured {
  border-color: rgba(220,231,179,0.72);
  background: linear-gradient(145deg, rgba(220,231,179,0.14), rgba(255,255,255,0.045));
  transform: translateY(-14px);
}

.plan-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 900;
}

.plan-top p {
  min-height: 58px;
}

.plan-price {
  margin: 4px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.plan-list {
  flex: 1;
}

.plan-list a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.details-toggle {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.plan-details {
  display: none;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.plan-details.is-open {
  display: block;
}

.plan-details p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.insights-section {
  overflow: hidden;
}

.insights-section::before {
  content: "Insights";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.028);
  pointer-events: none;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
  align-items: center;
}

.insights-copy h2 {
  max-width: 860px;
}

.lead {
  color: var(--text);
  font-size: 1.32rem;
}

.insights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.telegram-mock {
  border-radius: 36px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04));
}

.phone-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.phone-top span {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.phone-top b {
  font-size: 1.1rem;
}

.phone-top em {
  color: var(--green);
  font-size: 0.82rem;
  font-style: normal;
}

.message-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(9,14,20,0.42);
  border: 1px solid var(--border-soft);
  margin-top: 12px;
}

.message-card small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.message-card p {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.message-card.setup {
  margin-left: 28px;
}

.message-card.accent {
  background: rgba(220,231,179,0.10);
}

.insights-prices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.insight-price {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.insight-price.popular,
.insight-price.best {
  border-color: rgba(220,231,179,0.68);
}

.insight-price h3 {
  font-size: 1.35rem;
  margin-top: auto;
}

.insight-price strong {
  display: block;
  margin: 8px 0 24px;
  font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.insight-price a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
}

.final-card {
  text-align: center;
  border-radius: 40px;
  padding: clamp(34px, 6vw, 70px);
}

.final-card h2 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.final-card p:not(.eyebrow) {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  padding: 54px 0;
  border-top: 1px solid var(--border-soft);
  background: rgba(9,14,20,0.26);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.2fr;
  gap: 38px;
}

.footer p,
.footer a {
  color: var(--muted-2);
  line-height: 1.65;
}

.footer a {
  display: block;
  margin: 10px 0;
}

.footer h4 {
  margin: 0 0 12px;
}

.floating-telegram {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #172433;
  box-shadow: 0 18px 38px rgba(0,0,0,0.32);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@media (max-width: 1100px) {
  :root {
    --header: 74px;
  }

  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: var(--header);
    left: 20px;
    right: 20px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(22,35,51,0.97);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    padding: 16px;
    border-radius: 14px;
  }

  .nav-menu a:hover {
    background: rgba(255,255,255,0.06);
  }

  .nav-menu a::after {
    display: none;
  }

  .hero-grid,
  .concept-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 660px;
  }

  .format-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid,
  .insights-prices {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan-card.featured {
    transform: none;
  }
}

@media (max-width: 780px) {
  .container,
  .container.narrow {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: calc(var(--header) + 36px);
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5.4rem);
  }

  .hero-actions,
  .hero-badges {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .cards-3,
  .module-grid,
  .compare-grid,
  .pricing-grid,
  .insights-prices,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .format-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .image-strip img {
    min-width: 76%;
    scroll-snap-align: start;
  }

  .concept-row.top {
    grid-template-columns: 1fr;
  }

  .connector {
    height: 44px;
  }

  .logic-box {
    font-size: 2.2rem;
  }

  .visual-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .formula-pill {
    position: static;
    margin-top: 16px;
    max-width: none;
  }

  .terminal-card {
    transform: none;
  }

  .glass-card,
  .plan-card,
  .final-card {
    padding: 24px;
    border-radius: 26px;
  }

  .accordion-trigger {
    padding: 22px 20px;
  }

  .accordion-content p {
    padding: 0 20px 24px;
  }

  .floating-telegram {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

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

  .hero-badges span,
  .insights-list span {
    width: 100%;
    justify-content: center;
  }

  .problem-list p,
  .solution-list p {
    grid-template-columns: 28px 1fr;
    font-size: 1rem;
  }

  .message-card.setup {
    margin-left: 0;
  }
}

/* --- Added custom sections: pillars, sentiment chart, nested modules --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pillar-card {
  padding: 28px 22px;
  text-align: center;
}

.pillar-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.pillar-icon.blue { background: radial-gradient(circle at 30% 30%, rgba(67,157,255,0.32), rgba(67,157,255,0.12)); }
.pillar-icon.green { background: radial-gradient(circle at 30% 30%, rgba(104,196,123,0.32), rgba(104,196,123,0.12)); }
.pillar-icon.violet { background: radial-gradient(circle at 30% 30%, rgba(176,108,225,0.32), rgba(176,108,225,0.12)); }
.pillar-icon.amber { background: radial-gradient(circle at 30% 30%, rgba(233,151,83,0.32), rgba(233,151,83,0.12)); }

.logic-summary {
  margin: 28px auto 0;
  padding: 28px;
  max-width: 920px;
  text-align: center;
}
.logic-summary h3 { margin-bottom: 10px; }

.sentiment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.sentiment-chart-card {
  padding: 20px 18px 18px;
}
.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chart-legend,
.chart-range {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.legend-toggle,
.range-btn {
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.25s ease;
}
.legend-toggle.active,
.range-btn.active,
.legend-toggle:hover,
.range-btn:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.08);
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot.fg { background: #f2d44d; }
.dot.price { background: #94a0c8; }
.dot.volume { background: #5d637f; }

.interactive-chart {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.76), rgba(16, 23, 35, 0.95));
  overflow: hidden;
}
.market-chart {
  width: 100%;
  height: auto;
  display: block;
}
.market-chart .grid-lines line {
  stroke: rgba(255,255,255,0.14);
  stroke-dasharray: 2 8;
}
.market-chart .axis-labels text,
.market-chart .zone-labels text {
  fill: rgba(241,243,237,0.70);
  font-size: 14px;
  font-family: inherit;
}
.market-chart .zone-labels text { text-anchor: end; }
.market-chart .series-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}
.market-chart .fg-line { stroke: #f2d44d; }
.market-chart .price-line { stroke: #8b96bb; stroke-width: 3.5; }
.market-chart .price-area { fill: rgba(139,150,187,0.10); }
.market-chart .volume-bars rect { fill: rgba(115, 120, 147, 0.36); }
.market-chart .hover-dot { display: none; }
.market-chart .hover-dot.active { display: block; }
.market-chart .fg-dot { fill: #f2d44d; }
.market-chart .price-dot { fill: #8b96bb; }
.market-chart .crosshair {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1;
  stroke-dasharray: 5 6;
  opacity: 0;
}
.market-chart .crosshair.active { opacity: 1; }
.chart-tooltip {
  position: absolute;
  top: 16px;
  left: 16px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 34, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.chart-tooltip strong,
.chart-tooltip span {
  display: block;
  font-size: 0.92rem;
}
.chart-tooltip strong { margin-bottom: 6px; }
.chart-tooltip span { color: var(--muted); line-height: 1.45; }

.sentiment-copy {
  display: grid;
  gap: 14px;
}
.insight-card {
  padding: 22px;
  opacity: 0.72;
  transition: 0.25s ease;
}
.insight-card.active,
.insight-card:hover {
  opacity: 1;
  border-color: var(--border);
  transform: translateY(-2px);
}

.modules-accordion .accordion-content {
  padding: 0 24px 0;
}
.lesson-list {
  display: grid;
  gap: 12px;
  padding: 10px 0 18px;
}
.lesson-list .accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
}
.lesson-trigger {
  font-size: 1rem;
  padding: 18px 20px;
}
.lesson-list .accordion-content {
  padding: 0 20px 0;
}
.lesson-list .accordion-content p {
  padding: 0 0 18px;
  margin: 0;
}

@media (max-width: 1080px) {
  .pillars-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sentiment-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .chart-toolbar { align-items: flex-start; }
  .chart-tooltip {
    position: static;
    margin: 10px;
  }
  .interactive-chart { padding-bottom: 10px; }
  .market-chart .axis-labels text,
  .market-chart .zone-labels text { font-size: 11px; }
}

/* ===== FINAL REQUEST FIXES: one-line hero, formula under graph, 4 concept cards ===== */
.hero-minimal {
  min-height: 100vh;
  padding-top: calc(var(--header) + 70px);
  padding-bottom: 84px;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-minimal-wrap {
  display: flex;
  justify-content: center;
}

.hero-minimal-content {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-minimal-content .eyebrow {
  justify-content: center;
}

.hero-title-one-line,
.hero-minimal-content h1.hero-title-one-line {
  white-space: nowrap;
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin: 0 auto 42px;
  text-align: center;
}

.hero-minimal-visual {
  width: min(760px, 100%);
  margin: 0 auto 36px;
}

.hero-minimal-visual .hero-visual {
  position: relative;
  max-width: none;
}

.hero-minimal .terminal-card {
  transform: rotate(-1deg);
}

.hero-formula-flow {
  width: min(520px, calc(100% - 28px));
  margin: 22px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(22, 35, 51, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.20);
}

.hero-formula-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-formula-line span {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}

.hero-formula-line strong {
  color: var(--accent);
  font-size: 1.12em;
}

.hero-formula-arrow {
  margin: 8px 0 4px;
  color: var(--accent);
  font-size: 2.1rem;
  line-height: 1;
}

.hero-formula-result {
  color: var(--accent);
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.hero-actions-center {
  justify-content: center;
  margin: 0;
}

.hero-actions-center .btn {
  min-width: 220px;
}

.concept-foundation {
  padding-top: 92px;
}

.concept-foundation .section-head.center {
  max-width: 930px;
}

.concept-foundation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.concept-foundation-card {
  padding: 28px 24px;
  min-height: 100%;
}

.concept-foundation-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(102, 79, 194, 0.42);
  border-radius: 18px;
  background: rgba(102, 79, 194, 0.10);
}

.concept-foundation-icon img {
  width: 32px;
  height: 32px;
}

.concept-foundation-card h3 {
  font-size: 1.24rem;
  line-height: 1.12;
  margin-bottom: 12px;
}

.concept-foundation-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
}

@media (max-width: 1050px) {
  .concept-foundation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .hero-minimal {
    padding-top: calc(var(--header) + 42px);
    padding-bottom: 70px;
  }

  .hero-title-one-line,
  .hero-minimal-content h1.hero-title-one-line {
    font-size: clamp(3.1rem, 15vw, 5.2rem);
    letter-spacing: -0.07em;
    margin-bottom: 34px;
  }

  .hero-minimal .terminal-card {
    transform: none;
  }

  .hero-formula-line {
    gap: 8px;
  }

  .hero-formula-line span {
    min-width: 48px;
    min-height: 40px;
    padding: 0 10px;
  }

  .concept-foundation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-title-one-line,
  .hero-minimal-content h1.hero-title-one-line {
    font-size: clamp(2.7rem, 14vw, 3.4rem);
  }

  .hero-formula-line {
    font-size: 1rem;
  }
}


/* ===== FINAL BLACK THEME + CLEANUP ===== */
:root {
  --bg: #050506;
  --bg-deep: #000000;
  --bg-soft: #0a0b0e;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.18);
  --border-soft: rgba(255, 255, 255, 0.10);
  --text: #f4f1ff;
  --muted: #b8b8b3;
  --muted-2: #8f9698;
  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --green: #9bd09a;
  --red: #ff6868;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(220, 231, 179, 0.08), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(102, 79, 194, 0.08), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(220, 231, 179, 0.045), transparent 34%),
    linear-gradient(180deg, #090a0d 0%, #050506 38%, #000000 100%);
}

.page-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
}

.site-header {
  background: rgba(0, 0, 0, 0.58);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
}

.hero,
.hero-minimal,
.concept-foundation,
.sentiment-section,
.program-section,
.pricing-section,
.insights-section,
.insights-pricing-section,
.course-vs-insights,
.faq-section,
.final-cta,
.footer {
  background: transparent;
}

.terminal-card,
.glass-card,
.final-card,
.plan-card,
.insight-price,
.mini-card,
.telegram-mock,
.accordion,
.program-summary-card,
.lesson-card,
.sentiment-chart-card,
.insight-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.026));
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.hero-formula-flow,
.formula-pill {
  background: rgba(0,0,0,0.62);
  border-color: rgba(220,231,179,0.28);
}

.chart {
  background: rgba(0,0,0,0.42);
}

.concept-foundation-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.026));
  border-color: rgba(255,255,255,0.13);
}

/* ===== IMPROVED RESULT / GROWTH SECTION ===== */
.growth-section {
  overflow: hidden;
}

.growth-section::before {
  content: "System";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18vw;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
}

.growth-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.growth-card,
.growth-center-card {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 34px;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.58);
  backdrop-filter: blur(18px);
}

.growth-card-dark {
  background: linear-gradient(145deg, rgba(255,104,104,0.09), rgba(255,255,255,0.025));
}

.growth-card-accent {
  background: linear-gradient(145deg, rgba(220,231,179,0.12), rgba(255,255,255,0.03));
  border-color: rgba(220,231,179,0.28);
}

.growth-center-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(220,231,179,0.18), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  text-align: center;
}

.growth-card-head {
  margin-bottom: 22px;
}

.growth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.growth-badge.danger {
  color: #ffc4c4;
  border: 1px solid rgba(255,104,104,0.35);
  background: rgba(255,104,104,0.10);
}

.growth-badge.success {
  color: var(--accent);
  border: 1px solid rgba(220,231,179,0.35);
  background: rgba(220,231,179,0.10);
}

.growth-card h3,
.growth-center-card h3 {
  margin-bottom: 16px;
}

.growth-card ul {
  display: grid;
  gap: 14px;
}

.growth-card li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.55;
}

.growth-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.growth-card-dark li::before {
  background: var(--red);
}

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.growth-metrics div {
  padding: 16px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
}

.growth-metrics strong {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.growth-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.growth-note {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px solid rgba(220,231,179,0.26);
  border-radius: 26px;
  background: rgba(220,231,179,0.07);
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
}

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

@media (max-width: 980px) {
  .growth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .growth-card,
  .growth-center-card {
    padding: 24px;
    border-radius: 26px;
  }

  .growth-metrics {
    grid-template-columns: 1fr;
  }
}

/* Safety fix: content stays visible even if the preview browser blocks JavaScript. */
.reveal {
  opacity: 1;
  transform: none;
}

.animations-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.animations-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== FINAL REQUEST OVERRIDES: black animated premium background, hover glow, hero formula ===== */
:root {
  --bg: #050507;
  --bg-deep: #000000;
  --bg-soft: #0b0c12;
  --panel: rgba(255,255,255,0.045);
  --panel-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.18);
  --border-soft: rgba(255,255,255,0.10);
  --text: #f4f1ff;
  --muted: rgba(244,246,238,0.72);
  --muted-2: rgba(244,246,238,0.55);
  --accent: #8B5CF6;
  --accent-2: #8B5CF6;
  --shadow: 0 34px 110px rgba(0,0,0,0.78);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(139,92,246,0.12), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(102,79,194,0.10), transparent 30%),
    linear-gradient(180deg, #0a0b10 0%, #030305 42%, #000 100%);
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 58px 58px;
}

.animated-bg::before,
.animated-bg::after,
.animated-bg span {
  content: "";
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: floatGlow 16s ease-in-out infinite alternate;
}

.animated-bg::before {
  left: -18vmax;
  top: -14vmax;
  background: rgba(139,92,246,0.28);
}

.animated-bg::after {
  right: -20vmax;
  top: 12vmax;
  background: rgba(102,79,194,0.26);
  animation-duration: 19s;
}

.animated-bg span:nth-child(1) {
  left: 12%;
  bottom: -24vmax;
  background: rgba(85,130,255,0.20);
  animation-duration: 22s;
}

.animated-bg span:nth-child(2) {
  right: 10%;
  bottom: -20vmax;
  background: rgba(139,92,246,0.18);
  animation-duration: 25s;
}

.animated-bg span:nth-child(3) {
  left: 42%;
  top: 40%;
  width: 24vmax;
  height: 24vmax;
  background: rgba(220,231,179,0.12);
  animation-duration: 28s;
}

@keyframes floatGlow {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(8%, -3%, 0) scale(0.96); }
}

.page-noise {
  z-index: -2;
  opacity: 0.16;
}

/* Keep Trade Sense in one line on desktop and scale on mobile */
.hero-title-one-line {
  white-space: nowrap;
  font-size: clamp(4.2rem, 10vw, 8.8rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.075em !important;
}

.hero-minimal-content {
  width: min(980px, 100%);
}

.hero-minimal-visual {
  width: min(820px, 100%);
  margin-bottom: 32px;
}

/* Put plus signs between FA / SM / TA / Risk blocks on the Market Mood card */
.visual-cards div {
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

@media (min-width: 781px) {
  .terminal-card .visual-cards div:not(:last-child)::after {
    content: "+";
    position: absolute;
    right: -23px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #090909;
    font-weight: 950;
    font-size: 1.35rem;
    box-shadow: 0 0 24px rgba(139,92,246,0.45);
    z-index: 2;
  }
}

.hero-formula-flow {
  max-width: 520px;
  margin: 26px auto 0;
  padding: 22px 26px 24px;
  border: 1px solid rgba(139,92,246,0.30);
  border-radius: 30px;
  background: rgba(0,0,0,0.72);
  box-shadow: 0 24px 80px rgba(0,0,0,0.68), inset 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
}

.hero-formula-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-formula-line strong {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(139,92,246,0.40);
}

.hero-formula-arrow {
  color: var(--accent);
  font-size: 2.35rem;
  line-height: 1;
  margin: 12px 0 8px;
}

.hero-formula-result {
  color: var(--accent-2);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
}

/* Smooth highlight when hovering any major construction / card */
.terminal-card,
.visual-cards div,
.concept-foundation-card,
.feature-card,
.glass-card,
.mini-card,
.accordion-item,
.plan-card,
.insight-price,
.telegram-mock,
.message-card,
.growth-card,
.growth-center-card,
.final-card,
.btn,
.nav-menu a,
.nav-cta {
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease, opacity .25s ease;
}

.terminal-card:hover,
.concept-foundation-card:hover,
.feature-card:hover,
.glass-card:hover,
.mini-card:hover,
.accordion-item:hover,
.plan-card:hover,
.insight-price:hover,
.telegram-mock:hover,
.message-card:hover,
.growth-card:hover,
.growth-center-card:hover,
.final-card:hover {
  border-color: rgba(139,92,246,0.58) !important;
  box-shadow: 0 34px 120px rgba(0,0,0,0.82), 0 0 38px rgba(139,92,246,0.16) !important;
  transform: translateY(-4px);
}

.visual-cards div:hover,
.growth-metrics div:hover,
.concept-node:hover {
  border-color: rgba(139,92,246,0.66) !important;
  background: rgba(139,92,246,0.10) !important;
  box-shadow: 0 0 26px rgba(139,92,246,0.14);
  transform: translateY(-3px);
}

.btn:hover,
.nav-cta:hover {
  box-shadow: 0 0 28px rgba(139,92,246,0.22);
}


.scroll-anchor {
  position: absolute;
  top: calc(var(--header) * -1 - 20px);
  height: 1px;
  width: 1px;
}

.site-header,
.nav-menu {
  background: rgba(0,0,0,0.76);
}

.terminal-card,
.glass-card,
.final-card,
.plan-card,
.insight-price,
.mini-card,
.telegram-mock,
.accordion,
.program-summary-card,
.lesson-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
}

@media (max-width: 780px) {
  .hero-title-one-line {
    white-space: normal;
    font-size: clamp(3.2rem, 16vw, 5.2rem) !important;
  }
  .hero-formula-flow {
    padding: 18px;
    border-radius: 24px;
  }
}


/* ===== FINAL PURPLE OVERRIDES ===== */
:root {
  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --text: #f4f1ff;
  --muted: rgba(244, 241, 255, 0.72);
  --muted-2: rgba(244, 241, 255, 0.55);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, 0.16), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(102, 79, 194, 0.16), transparent 30%),
    linear-gradient(180deg, #0a0a10 0%, #030305 42%, #000 100%);
}

.animated-bg::before,
.animated-bg::after,
.animated-bg span:nth-child(1),
.animated-bg span:nth-child(2),
.animated-bg span:nth-child(3) {
  background: rgba(139, 92, 246, 0.28);
}

.chart .line,
.chart circle,
.visual-cards small,
.eyebrow,
.nav-menu a:hover,
.nav-menu a.is-active,
.hero-formula-result,
.hero-formula-arrow,
.growth-badge.success,
.growth-metrics strong,
.lesson-card b,
.lesson-card.practice h3,
.plan-list a,
.details-toggle,
.insight-price a,
.btn-ghost,
.brand-mark,
.module-label,
.badge,
.insight-price span {
  color: var(--accent) !important;
}

.chart .line {
  stroke: var(--accent) !important;
}

.chart circle {
  fill: var(--accent) !important;
}

.hero-formula-equals-only {
  max-width: 420px;
  margin-top: 26px;
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.68), 0 0 38px rgba(139,92,246,0.18) !important;
}

.hero-formula-equals-only .hero-formula-result {
  color: var(--accent) !important;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-shadow: 0 0 20px rgba(139,92,246,0.30);
}

.terminal-card .visual-cards div:not(:last-child)::after {
  background: var(--accent) !important;
  color: #050506 !important;
  box-shadow: 0 0 24px rgba(139,92,246,0.48) !important;
}

.terminal-card:hover,
.concept-foundation-card:hover,
.feature-card:hover,
.glass-card:hover,
.mini-card:hover,
.accordion-item:hover,
.plan-card:hover,
.insight-price:hover,
.telegram-mock:hover,
.message-card:hover,
.growth-card:hover,
.growth-center-card:hover,
.final-card:hover {
  border-color: rgba(139,92,246,0.62) !important;
  box-shadow: 0 34px 120px rgba(0,0,0,0.82), 0 0 42px rgba(139,92,246,0.20) !important;
}

.visual-cards div:hover,
.growth-metrics div:hover,
.concept-node:hover {
  border-color: rgba(139,92,246,0.70) !important;
  background: rgba(139,92,246,0.10) !important;
  box-shadow: 0 0 28px rgba(139,92,246,0.18) !important;
}

.btn:hover,
.nav-cta:hover {
  box-shadow: 0 0 30px rgba(139,92,246,0.28) !important;
}

.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #050506 !important;
}

.hero-formula-line {
  display: none !important;
}

.hero-formula-arrow {
  display: none !important;
}

/* ===== Updated pricing plans from reference ===== */
.pricing-grid-detailed {
  gap: 0;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.025);
}

.pricing-grid-detailed .detailed-plan {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  padding: 34px 26px 30px;
}

.pricing-grid-detailed .detailed-plan + .detailed-plan {
  border-left: 1px solid rgba(255,255,255,0.20);
}

.pricing-grid-detailed .detailed-plan.featured {
  transform: none;
  border-color: transparent;
  background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(255,255,255,0.025));
}

.detailed-plan .plan-number {
  display: none;
}

.detailed-plan .badge {
  margin-bottom: 14px;
}

.detailed-plan .plan-top h3 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.detailed-plan .plan-top p {
  min-height: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 22px;
}

.detailed-plan-list {
  display: grid;
  gap: 18px;
  margin: 0;
  flex: 1;
}

.detailed-plan-list li {
  padding-left: 22px;
  color: rgba(255,255,255,0.94);
  font-weight: 750;
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  line-height: 1.18;
}

.detailed-plan-list li::before {
  content: "▸";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  top: 0;
  font-size: 0.88em;
  line-height: 1.25;
}

.detailed-plan-list li.disabled {
  color: rgba(255,255,255,0.34);
}

.detailed-plan-list li.disabled::before {
  color: rgba(255,255,255,0.28);
}

.highlight-price {
  width: max-content;
  margin: 34px auto 8px;
  padding: 6px 16px 8px;
  border: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, rgba(139,92,246,0.36), rgba(139,92,246,0.18));
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(139,92,246,0.16);
}

.detailed-plan .btn-full {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .pricing-grid-detailed {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .pricing-grid-detailed .detailed-plan + .detailed-plan {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.20);
  }
}


/* ===== PROGRAM REDESIGN: lesson cards like the reference ===== */
.program-shell {
  margin-top: 10px;
}

.program-lesson-accordion {
  display: grid;
  gap: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.program-lesson-accordion > .accordion-item {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(11,12,18,0.94), rgba(18,20,31,0.92));
  box-shadow: 0 20px 60px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
}

.program-lesson-accordion > .accordion-item + .accordion-item {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.module-trigger {
  padding: 20px 24px;
  font-size: 0.98rem;
}

.module-trigger::after {
  width: 38px;
  height: 38px;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--accent);
}

.module-trigger-layout {
  display: flex;
  align-items: center;
  gap: 16px;
  width: calc(100% - 56px);
}

.module-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #11d1ff 0%, var(--accent) 100%);
  box-shadow: 0 12px 28px rgba(17,209,255,0.16), 0 12px 30px rgba(139,92,246,0.20);
}

.module-meta strong {
  display: block;
  font-size: clamp(1rem, 1.9vw, 1.28rem);
  line-height: 1.12;
  font-weight: 850;
  color: var(--text);
}

.module-meta small {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  color: var(--muted-2);
  line-height: 1.45;
}

.program-lesson-accordion .accordion-content {
  padding: 0 24px 24px;
}

.program-lessons-inner {
  display: grid;
  gap: 16px;
  padding-top: 2px;
}

.lesson-card {
  position: relative;
  padding: 22px 24px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255,255,255,0.055), rgba(255,255,255,0.028));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.lesson-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1bd7ff 0%, #8b5cf6 100%);
  box-shadow: 0 0 20px rgba(27,215,255,0.25);
}

.lesson-card h3 {
  margin: 0 0 12px;
  padding-left: 14px;
  font-size: clamp(1.06rem, 2vw, 1.4rem);
  line-height: 1.3;
  color: #4bd4ff;
  text-shadow: 0 0 18px rgba(75,212,255,0.12);
}

.lesson-points {
  display: grid;
  gap: 10px;
  padding-left: 14px;
}

.lesson-points p {
  margin: 0;
  padding: 0 !important;
  max-width: none !important;
  color: var(--muted);
  line-height: 1.62;
}

.lesson-point-label {
  display: inline;
  margin-right: 0.3rem;
  font-weight: 800;
  color: #d8e5ff;
}

.lesson-card.practice {
  border-color: rgba(167,139,250,0.45);
  background: linear-gradient(135deg, rgba(93,41,163,0.22), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 32px rgba(77,32,138,0.18);
}

.lesson-card.practice::before {
  background: linear-gradient(180deg, #c084fc 0%, #8b5cf6 100%);
  box-shadow: 0 0 22px rgba(192,132,252,0.28);
}

.lesson-card.practice h3 {
  color: #fbf7ff !important;
  text-shadow: 0 0 18px rgba(192,132,252,0.16);
}

.lesson-card.practice h3 span {
  display: inline-block;
  margin-left: 0.45rem;
  color: #ceb5ff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: lowercase;
}

.lesson-card.practice .lesson-point-label {
  color: #d7c2ff;
}

.lesson-card:hover {
  transform: translateY(-3px);
  border-color: rgba(75,212,255,0.24);
  box-shadow: 0 18px 42px rgba(0,0,0,0.26), 0 0 24px rgba(75,212,255,0.07);
}

.lesson-card.practice:hover {
  border-color: rgba(192,132,252,0.68);
  box-shadow: 0 18px 42px rgba(0,0,0,0.30), 0 0 32px rgba(192,132,252,0.14);
}

.program-lesson-accordion .accordion-item:hover {
  transform: none;
}

@media (max-width: 860px) {
  .module-trigger {
    padding: 20px 20px;
  }

  .module-trigger-layout {
    width: calc(100% - 44px);
    gap: 12px;
  }

  .module-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 0.86rem;
  }

  .program-lesson-accordion .accordion-content {
    padding: 0 16px 18px;
  }

  .lesson-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  .lesson-card h3,
  .lesson-points {
    padding-left: 10px;
  }
}

@media (max-width: 580px) {
  .module-meta small {
    font-size: 0.88rem;
  }

  .lesson-card h3 {
    font-size: 1rem;
  }
}


/* ===== FINAL PROGRAM PURPLE OVERRIDES ===== */
.module-trigger-layout {
  width: calc(100% - 56px);
}

.module-meta small {
  display: none !important;
}

.module-badge {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #c084fc 100%) !important;
  box-shadow: 0 12px 28px rgba(124,58,237,0.28), 0 12px 30px rgba(192,132,252,0.18) !important;
}

.module-trigger::after {
  color: #b78cff !important;
}

.lesson-card::before {
  background: linear-gradient(180deg, #8b5cf6 0%, #c084fc 100%) !important;
  box-shadow: 0 0 20px rgba(139,92,246,0.28) !important;
}

.lesson-card h3 {
  color: #caa8ff !important;
  text-shadow: 0 0 18px rgba(139,92,246,0.14) !important;
}

.lesson-card:hover {
  border-color: rgba(168,85,247,0.34) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.26), 0 0 24px rgba(168,85,247,0.11) !important;
}

.lesson-card.practice {
  border-color: rgba(192,132,252,0.62) !important;
  background: linear-gradient(135deg, rgba(76,29,149,0.34), rgba(255,255,255,0.03)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 32px rgba(91,33,182,0.20) !important;
}

.lesson-card.practice::before {
  background: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%) !important;
  box-shadow: 0 0 22px rgba(216,180,254,0.30) !important;
}

.lesson-card.practice h3 {
  color: #f4e8ff !important;
}

.lesson-card.practice h3 span {
  color: #d8b4fe !important;
}

.lesson-card.practice .lesson-point-label {
  color: #e4d4ff !important;
}

.lesson-point-label {
  color: #f2e8ff !important;
}


/* --- centered 2-line module titles --- */
.module-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding-right: 8px;
}

.module-meta strong {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  font-size: clamp(0.96rem, 1.75vw, 1.18rem);
  line-height: 1.18;
}

@media (max-width: 860px) {
  .module-meta {
    justify-content: flex-start;
    padding-right: 0;
  }

  .module-meta strong {
    max-width: none;
    text-align: left;
    text-wrap: pretty;
  }
}


/* --- final requested refinements --- */
.module-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.module-meta small {
  display: block;
  max-width: 700px;
  margin-top: 0;
  text-align: center;
  color: rgba(223, 216, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .module-meta {
    align-items: flex-start;
  }

  .module-meta small {
    text-align: left;
    font-size: 0.87rem;
  }
}

/* remove visible strip when a module is collapsed */
.program-lesson-accordion .accordion-content {
  padding: 0 !important;
}

.program-lesson-accordion .accordion-item.is-open .accordion-content {
  padding: 0 24px 24px !important;
}

@media (max-width: 860px) {
  .program-lesson-accordion .accordion-item.is-open .accordion-content {
    padding: 0 16px 18px !important;
  }
}

/* purple lesson and webinar accents */
.lesson-card::before {
  background: linear-gradient(180deg, #a855f7 0%, #8b5cf6 100%) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.28) !important;
}

.lesson-card h3 {
  color: #b995ff !important;
  text-shadow: 0 0 18px rgba(185, 149, 255, 0.14) !important;
}

.lesson-card.practice h3 {
  color: #fbf7ff !important;
}

.lesson-card:hover {
  border-color: rgba(168, 85, 247, 0.36) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,0.26), 0 0 24px rgba(168, 85, 247, 0.12) !important;
}

/* interactive chart becomes active only on hover */
.interactive-chart {
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.interactive-chart .market-chart {
  transition: filter 0.28s ease, opacity 0.28s ease;
}

.interactive-chart.is-idle .market-chart {
  filter: brightness(0.28) saturate(0.72);
  opacity: 0.9;
}

.interactive-chart.is-idle .chart-tooltip {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.interactive-chart:not(.is-idle) {
  border-color: rgba(168, 85, 247, 0.26);
  box-shadow: 0 14px 40px rgba(0,0,0,0.24), 0 0 26px rgba(139,92,246,0.08);
}

.interactive-chart::after {
  content: "Наведите курсор на график";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(8, 10, 20, 0.8);
  color: rgba(226, 219, 255, 0.72);
  font-size: 0.84rem;
  transition: opacity 0.25s ease;
}

.interactive-chart:not(.is-idle)::after {
  opacity: 0;
}

.chart-tooltip {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* make chart series purple-toned */
.dot.fg { background: #a855f7 !important; }
.dot.price { background: #c4b5fd !important; }
.market-chart .fg-line { stroke: #a855f7 !important; }
.market-chart .price-line { stroke: #c4b5fd !important; }
.market-chart .price-area { fill: rgba(168, 85, 247, 0.10) !important; }
.market-chart .fg-dot { fill: #a855f7 !important; }
.market-chart .price-dot { fill: #c4b5fd !important; }


/* --- hover tooltip final behavior --- */
.interactive-chart.is-idle .market-chart {
  filter: none !important;
  opacity: 1 !important;
}

/* hide helper label, keep only tooltip on hover */
.interactive-chart::after {
  display: none !important;
}

/* tooltip hidden when not hovering, visible on hover via JS class removal */
.interactive-chart.is-idle .chart-tooltip {
  opacity: 0 !important;
  transform: translateY(6px) !important;
  pointer-events: none !important;
}



/* ===== FORMATS COMPARISON TABLE ===== */
.formats-table-shell {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.012)),
    radial-gradient(circle at top center, rgba(168,85,247,0.12), rgba(168,85,247,0) 48%),
    rgba(8, 10, 20, 0.86);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.formats-table-head {
  text-align: center;
  margin-bottom: 34px;
}

.formats-table-head .eyebrow {
  justify-content: center;
}

.formats-table-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #68d1ff 0%, #7d7cff 42%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(120, 133, 255, 0.18);
}

.formats-table-head p:last-child {
  margin: 0;
  color: rgba(240,240,248,0.62);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.formats-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.formats-table-grid {
  display: grid;
  min-width: 920px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.formats-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(160px, 1fr));
}

.formats-row + .formats-row {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.formats-cell {
  padding: 20px 16px;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(244,244,248,0.94);
  font-weight: 700;
}

.formats-cell + .formats-cell {
  border-left: 1px solid rgba(255,255,255,0.06);
}

.formats-row-header .formats-cell {
  min-height: 86px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.98);
}

.formats-row-header .plan-col:nth-child(2) {
  color: #ffffff;
}

.formats-row-header .plan-col:nth-child(3) {
  color: #d6c4ff;
}

.formats-row-header .plan-col:nth-child(4) {
  color: #f1e9ff;
}

.feature-col {
  justify-content: flex-start;
  text-align: left;
  color: rgba(231,231,238,0.84);
  font-weight: 650;
}

.formats-row-header .feature-col {
  color: rgba(255,255,255,0.68);
  font-weight: 800;
}

.format-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
}

.format-mark.yes {
  color: #f7f2ff;
  background: rgba(168,85,247,0.16);
  border: 1px solid rgba(168,85,247,0.34);
  box-shadow: 0 0 22px rgba(168,85,247,0.22);
}

.format-mark.no {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  border: 0;
  color: rgba(255,255,255,0.30);
  box-shadow: none;
  font-size: 1.25rem;
}

.formats-footnote {
  margin: 20px 0 0;
  text-align: center;
  color: rgba(220,220,232,0.5);
  font-style: italic;
}

.pricing-head-small {
  margin-top: 74px;
}

.price-only-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.price-only-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  box-shadow: 0 24px 70px rgba(0,0,0,0.26);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-only-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168,85,247,0.42);
  box-shadow: 0 28px 90px rgba(0,0,0,0.34), 0 0 32px rgba(168,85,247,0.12);
}

.price-only-card.featured {
  border-color: rgba(168,85,247,0.50);
}

.price-only-card > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(168,85,247,0.14);
  color: #c4a3ff;
  font-weight: 900;
}

.price-only-card h3 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.price-only-card strong {
  display: block;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 0.95;
  color: #f7f2ff;
  letter-spacing: -0.06em;
  text-shadow: 0 0 28px rgba(168,85,247,0.22);
}

@media (max-width: 1060px) {
  .price-only-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .formats-table-shell,
  .price-only-card {
    padding: 22px;
    border-radius: 26px;
  }

  .formats-table-head {
    margin-bottom: 24px;
  }

  .formats-cell {
    padding: 16px 12px;
    min-height: 70px;
  }

  .pricing-head-small {
    margin-top: 56px;
  }
}

@media (max-width: 640px) {
  .format-plan-card,
  .price-only-card {
    padding: 24px;
    border-radius: 24px;
  }

  .pricing-head-small {
    margin-top: 56px;
  }
}


/* ===== FINAL TABLE VERSION: closer to reference screenshot ===== */
.formats-table-shell {
  padding: clamp(34px, 4.8vw, 58px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 50% -10%, rgba(108, 92, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.014)),
    rgba(10, 10, 12, 0.94) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.045) !important;
}

.formats-table-head {
  margin-bottom: 60px !important;
}

.formats-table-head .eyebrow {
  display: none !important;
}

.formats-table-head h2 {
  font-size: clamp(2.35rem, 5.4vw, 4.6rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.06em !important;
  background: linear-gradient(90deg, #18c8ff 0%, #6066ff 46%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.formats-table-head p:last-child {
  margin-top: 18px !important;
  color: rgba(235,235,245,0.62) !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 650 !important;
}

.formats-table-grid {
  min-width: 980px !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.formats-row {
  grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(190px, 1fr)) !important;
}

.formats-row + .formats-row {
  border-top: 1px solid rgba(255,255,255,0.075) !important;
}

.formats-row-header {
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

.formats-cell {
  min-height: 72px !important;
  padding: 18px 18px !important;
  font-size: 0.98rem !important;
}

.formats-cell + .formats-cell {
  border-left: 0 !important;
}

.formats-row-header .formats-cell {
  min-height: 80px !important;
  font-size: 1.04rem !important;
  font-weight: 850 !important;
}

.formats-row-header .feature-col {
  color: rgba(255,255,255,0.56) !important;
}

.formats-row-header .plan-col:nth-child(2) {
  color: #ffffff !important;
}

.formats-row-header .plan-col:nth-child(3) {
  color: #bba4ff !important;
}

.formats-row-header .plan-col:nth-child(4) {
  color: #d8ccff !important;
}

.feature-col {
  color: rgba(236,236,244,0.74) !important;
  font-size: 0.98rem !important;
}

.format-mark.yes {
  width: 28px !important;
  height: 28px !important;
  color: #f8f5ff !important;
  background: rgba(168,85,247,0.14) !important;
  border: 2px solid rgba(168,85,247,0.85) !important;
  box-shadow: 0 0 20px rgba(168,85,247,0.35) !important;
}

.formats-row .formats-cell:nth-child(2) .format-mark.yes {
  color: #10d9ff !important;
  border-color: rgba(16,217,255,0.8) !important;
  background: rgba(16,217,255,0.09) !important;
  box-shadow: 0 0 20px rgba(16,217,255,0.22) !important;
}

.formats-row .formats-cell:nth-child(3) .format-mark.yes {
  color: #a855f7 !important;
  border-color: rgba(168,85,247,0.82) !important;
  background: rgba(168,85,247,0.11) !important;
  box-shadow: 0 0 22px rgba(168,85,247,0.28) !important;
}

.formats-row .formats-cell:nth-child(4) .format-mark.yes {
  color: #e7e3ef !important;
  border-color: rgba(231,227,239,0.72) !important;
  background: rgba(231,227,239,0.10) !important;
  box-shadow: 0 0 22px rgba(231,227,239,0.22) !important;
}

.format-mark.no {
  color: rgba(255,255,255,0.28) !important;
  font-weight: 600 !important;
}

.formats-footnote {
  margin-top: 36px !important;
  color: rgba(224,224,235,0.45) !important;
}

@media (max-width: 680px) {
  .formats-table-shell {
    padding: 24px 16px !important;
  }

  .formats-table-head {
    margin-bottom: 34px !important;
  }

  .formats-table-scroll {
    margin-inline: -6px;
    padding-bottom: 8px;
  }
}


/* ===== USER REQUEST: plan 2 full-column glow, plan 3 strongest accent ===== */
.formats-table-grid {
  position: relative;
}

/* feature text slightly dimmer */
.feature-col {
  color: rgba(236,236,244,0.62) !important;
}

/* PLAN 1: most faded */
.formats-row-header .plan-col:nth-child(2),
.formats-row .formats-cell:nth-child(2) {
  color: rgba(255,255,255,0.50) !important;
}

.formats-row .formats-cell:nth-child(2) .format-mark.yes {
  color: rgba(255,255,255,0.58) !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.03) !important;
  box-shadow: none !important;
}

.formats-row .formats-cell:nth-child(2) .format-mark.no {
  color: rgba(255,255,255,0.18) !important;
}

/* PLAN 2: whole column glows */
.formats-row-header .plan-col:nth-child(3),
.formats-row .formats-cell:nth-child(3) {
  color: rgba(240,231,255,0.92) !important;
  background: linear-gradient(180deg, rgba(120,70,255,0.12), rgba(120,70,255,0.06)) !important;
}

.formats-row-header .plan-col:nth-child(3) {
  border-radius: 18px 18px 0 0;
  box-shadow:
    inset 0 0 0 1px rgba(168,85,247,0.18),
    0 0 36px rgba(127,86,217,0.12);
}

.formats-row:last-child .formats-cell:nth-child(3) {
  border-radius: 0 0 18px 18px;
}

.formats-row .formats-cell:nth-child(3) {
  box-shadow:
    inset 0 0 0 1px rgba(168,85,247,0.05),
    0 0 24px rgba(127,86,217,0.05);
}

.formats-row .formats-cell:nth-child(3) .format-mark.yes {
  color: #f0dcff !important;
  border-color: rgba(168,85,247,0.72) !important;
  background: rgba(168,85,247,0.12) !important;
  box-shadow: 0 0 20px rgba(168,85,247,0.22) !important;
}

.formats-row .formats-cell:nth-child(3) .format-mark.no {
  color: rgba(214,194,255,0.38) !important;
}

/* PLAN 3: main premium accent, but no full column glow */
.formats-row-header .plan-col:nth-child(4),
.formats-row .formats-cell:nth-child(4) {
  color: #ffffff !important;
}

.formats-row-header .plan-col:nth-child(4) {
  background: linear-gradient(180deg, rgba(139,92,246,0.18), rgba(139,92,246,0.06)) !important;
  border-radius: 18px 18px 0 0;
  box-shadow:
    inset 0 0 0 1px rgba(168,85,247,0.24),
    0 0 30px rgba(168,85,247,0.12);
}

.formats-row .formats-cell:nth-child(4) {
  background: linear-gradient(180deg, rgba(139,92,246,0.05), rgba(139,92,246,0.02)) !important;
}

.formats-row .formats-cell:nth-child(4) .format-mark.yes {
  color: #ffffff !important;
  border-color: rgba(168,85,247,1) !important;
  background: rgba(168,85,247,0.22) !important;
  box-shadow: 0 0 30px rgba(168,85,247,0.48) !important;
}

.formats-row .formats-cell:nth-child(4) .format-mark.no {
  color: rgba(217,198,255,0.52) !important;
}

/* price cards: keep plan 3 premium accent and plan 2 soft emphasis */
.price-only-card {
  opacity: 0.82;
}

.price-only-card.featured {
  opacity: 0.94;
  box-shadow: 0 0 28px rgba(127,86,217,0.16);
}

.price-only-grid .price-only-card:nth-child(3) {
  opacity: 1;
  box-shadow: 0 0 42px rgba(168,85,247,0.22), inset 0 0 0 1px rgba(168,85,247,0.20);
}


/* ===== UPDATED PRICE CARDS WITH FULL FORMAT TEXT ===== */
.price-detail-grid {
  align-items: stretch;
}

.price-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-detail-card h3 {
  min-height: 58px;
}

.price-detail-card .plan-subtitle {
  margin: -8px 0 20px;
  color: rgba(232, 224, 255, 0.72);
  font-weight: 700;
  line-height: 1.45;
}

.price-detail-card strong {
  color: #ffffff;
}

.price-feature-list {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: rgba(244,244,250,0.78);
  line-height: 1.48;
  font-weight: 650;
}

.price-feature-list li {
  position: relative;
  padding-left: 22px;
}

.price-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 14px rgba(168,85,247,0.55);
}

.price-detail-card .btn {
  margin-top: auto;
}

.price-detail-card.premium {
  border-color: rgba(168,85,247,0.62);
  background:
    radial-gradient(circle at top right, rgba(168,85,247,0.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.026));
}

.price-detail-card.premium strong {
  text-shadow: 0 0 34px rgba(168,85,247,0.38);
}

.premium-badge {
  background: linear-gradient(135deg, #8b5cf6, #c084fc) !important;
  color: #fff !important;
}

.formats-row.premium-row .feature-col {
  color: rgba(245,238,255,0.82) !important;
}

.formats-row.premium-row .formats-cell:nth-child(4) {
  background: linear-gradient(90deg, rgba(168,85,247,0.055), rgba(168,85,247,0.10)) !important;
}

@media (max-width: 1060px) {
  .price-detail-card h3 {
    min-height: 0;
  }
}


/* ===== REAL FEAR & GREED CHART FROM BTC DATA ===== */
.sentiment-section {
  position: relative;
}

.fg-terminal {
  position: relative;
  margin-top: 34px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139,92,246,0.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)),
    rgba(6, 8, 16, 0.92);
  box-shadow: 0 28px 90px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.fg-terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fg-terminal-title,
.fg-legend,
.fg-ranges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 18px rgba(139,92,246,0.75);
}

.fg-terminal-title strong {
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(244,244,250,0.72);
  cursor: pointer;
  font-weight: 700;
  transition: 0.24s ease;
}

.fg-legend-btn.active,
.fg-ranges .range-btn.active,
.fg-legend-btn:hover,
.fg-ranges .range-btn:hover {
  color: #fff;
  border-color: rgba(139,92,246,0.48);
  background: rgba(139,92,246,0.12);
  box-shadow: 0 0 20px rgba(139,92,246,0.13);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot.price { background: #b8bdca; }
.legend-dot.mood { background: linear-gradient(90deg,#2fd477,#f5d64d,#ff5f68); }

.fg-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}

.fg-chart-wrap {
  position: relative;
  min-height: 560px;
  padding: 14px 10px 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  background: rgba(3, 6, 14, 0.74);
  overflow: hidden;
}

.fg-main-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 390px;
}

.zone { transition: opacity .25s ease, filter .25s ease; }
.zone.greed-extreme { fill: rgba(255, 75, 88, 0.24); }
.zone.greed { fill: rgba(255, 145, 64, 0.08); }
.zone.neutral { fill: rgba(255, 255, 255, 0.018); }
.zone.fear { fill: rgba(111, 226, 130, 0.065); }
.zone.fear-extreme { fill: rgba(47, 212, 119, 0.22); }

.fg-grid line {
  stroke: rgba(255,255,255,0.08);
  stroke-dasharray: 4 6;
}
.fg-grid line.vertical { stroke: rgba(255,255,255,0.04); stroke-dasharray: none; }
.fg-grid text,
.fg-axis-left text,
.fg-axis-right text,
.fg-zone-labels text {
  fill: rgba(232,235,246,0.48);
  font-size: 13px;
  font-weight: 700;
}
.fg-zone-labels text { font-size: 14px; fill: rgba(232,235,246,0.42); }

.btc-price-line {
  fill: none;
  stroke: rgba(215, 220, 235, 0.48);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: opacity .25s ease;
}

.fg-segment {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.08));
  transition: opacity .25s ease;
}

.fg-crosshair {
  stroke: rgba(255,255,255,0.38);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: 0;
  pointer-events: none;
}
.fg-crosshair.is-visible { opacity: 1; }

.fg-hover-dot {
  opacity: 0;
  stroke: #0a0d16;
  stroke-width: 3;
  filter: url(#fgGlow);
}
.fg-hover-dot.is-visible { opacity: 1; }
.fg-hover-dot.mood { fill: #a855f7; }
.fg-hover-dot.price { fill: #d8dbe4; }

.fg-tooltip {
  position: absolute;
  z-index: 6;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(9, 13, 24, 0.94);
  box-shadow: 0 20px 50px rgba(0,0,0,0.38), 0 0 24px rgba(139,92,246,0.12);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fg-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.fg-tooltip strong,
.fg-tooltip span { display: block; }
.fg-tooltip strong { color: #fff; margin-bottom: 8px; }
.fg-tooltip span { color: rgba(235,237,246,0.74); line-height: 1.55; }

.fg-zone-note {
  position: absolute;
  right: 18px;
  max-width: 310px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 10, 18, 0.72);
  opacity: 0.72;
}
.fg-zone-note strong { display:block; color:#fff; margin-bottom:5px; }
.fg-zone-note span { color: rgba(238,238,246,0.62); font-size: .88rem; line-height:1.38; }
.fg-zone-note.greed-note { top: 62px; border-color: rgba(255,95,104,0.25); }
.fg-zone-note.fear-note { bottom: 128px; border-color: rgba(47,212,119,0.22); }

.fg-overview-wrap {
  margin: 4px 42px 16px;
  border-radius: 18px;
  background: rgba(79, 118, 190, 0.08);
  overflow: hidden;
}
.fg-overview-svg { display:block; width:100%; height:84px; cursor: grab; }
.fg-overview-svg:active { cursor: grabbing; }
.overview-area { fill: url(#overviewFill); }
.overview-line { fill: none; stroke: rgba(150,170,255,0.42); stroke-width: 2; vector-effect: non-scaling-stroke; }
.overview-window { fill: rgba(139,92,246,0.20); stroke: rgba(139,92,246,0.55); stroke-width: 1.4; }
.overview-handle { stroke: rgba(255,255,255,0.34); stroke-width: 5; stroke-linecap: round; }

.fg-info-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}
.fg-info-card {
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  cursor: default;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.fg-info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.44);
  box-shadow: 0 24px 55px rgba(0,0,0,0.26), 0 0 30px rgba(139,92,246,0.14);
}
.fg-info-card .panel-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: #c4a3ff;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .76rem;
}
.fg-info-card h3 { margin:0 0 10px; font-size:1.22rem; color:#fff; }
.fg-info-card p { margin:0; color: rgba(236,238,247,0.66); line-height:1.58; }

.fg-highlight-layer .highlight-dot {
  fill: #2fd477;
  stroke: #07100d;
  stroke-width: 3;
  filter: url(#fgGlow);
  animation: fgPulse 1.5s ease-in-out infinite;
}
.fg-highlight-layer .highlight-dot.greed { fill: #ff5f68; }
.fg-highlight-layer .highlight-dot.price { fill: #dfe4ef; animation-delay: .15s; }
@keyframes fgPulse { 0%,100% { opacity:.65; r:5; } 50% { opacity:1; r:8; } }

.fg-terminal.has-focus .btc-price-line,
.fg-terminal.has-focus .fg-index-lines {
  opacity: .34;
}
.fg-terminal.has-focus .zone { opacity: .28; }
.fg-terminal.has-focus .fg-zone-labels { opacity: .38; }
.fg-terminal.has-focus .fg-highlight-layer { opacity: 1; }

@media (max-width: 1080px) {
  .fg-chart-layout { grid-template-columns: 1fr; }
  .fg-info-panel { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .fg-info-panel { grid-template-columns: 1fr; }
  .fg-zone-note { display:none; }
  .fg-terminal-top { align-items:flex-start; }
  .fg-legend, .fg-ranges { width:100%; overflow-x:auto; padding-bottom:2px; }
  .fg-chart-wrap { min-height: 440px; padding-left: 0; padding-right: 0; }
  .fg-overview-wrap { margin-left: 12px; margin-right: 12px; }
}


/* ===== WIDE FEAR & GREED CHART LAYOUT ===== */
.sentiment-section .container {
  width: min(1540px, calc(100% - 24px));
}

.fg-terminal {
  padding: clamp(16px, 2vw, 24px);
}

.fg-chart-layout {
  display: block !important;
}

.fg-chart-wrap {
  width: 100%;
  min-height: 610px;
  padding: 12px 8px 0;
}

.fg-main-svg {
  width: 100%;
  min-height: 500px;
}

/* The explanatory cells are now below the chart, not on the right */
.fg-info-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.fg-info-card {
  min-height: 100%;
}

/* Remove the gauge/speedometer and extra overlay notes: only the chart + bottom cells remain */
.fg-gauge,
.sentiment-gauge,
.speedometer,
.fg-speedometer,
.gauge-card,
.fg-zone-note {
  display: none !important;
}

@media (max-width: 1080px) {
  .fg-info-panel {
    grid-template-columns: 1fr !important;
  }

  .fg-chart-wrap {
    min-height: 500px;
  }

  .fg-main-svg {
    min-height: 410px;
  }
}

@media (max-width: 720px) {
  .sentiment-section .container {
    width: min(100% - 16px, 1540px);
  }

  .fg-terminal {
    border-radius: 24px;
    padding: 14px;
  }

  .fg-chart-wrap {
    min-height: 420px;
    border-radius: 20px;
  }

  .fg-main-svg {
    min-width: 860px;
  }

  .fg-chart-wrap {
    overflow-x: auto;
  }
}

/* ===== PERFORMANCE OPTIMIZATION FOR FEAR/GREED CHART ===== */
.fg-segment,
.fg-hover-dot,
.fg-highlight-layer .highlight-dot {
  filter: none !important;
}

.fg-segment,
.btc-price-line,
.zone {
  transition: opacity .12s ease !important;
}

.fg-tooltip {
  transition: opacity .08s linear !important;
  will-change: left, top, opacity;
}

.fg-main-svg,
.fg-overview-svg {
  shape-rendering: geometricPrecision;
}

@media (prefers-reduced-motion: reduce) {
  .fg-highlight-layer .highlight-dot {
    animation: none !important;
  }
}


/* ===== CLEAN / READABLE FEAR-GREED CHART ===== */
.sentiment-section .section-head {
  max-width: 860px;
}

.fg-terminal {
  padding: clamp(18px, 2.4vw, 28px) !important;
  border-radius: 28px !important;
}

.fg-terminal-top {
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.fg-terminal-title strong {
  font-size: 0.95rem !important;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  min-height: 34px !important;
  padding: 8px 13px !important;
  font-size: 0.84rem !important;
}

.fg-chart-wrap {
  min-height: 0 !important;
  padding: clamp(12px, 1.8vw, 18px) !important;
  border-radius: 24px !important;
}

.fg-main-svg {
  height: clamp(330px, 41vw, 475px) !important;
  max-height: 475px !important;
  border-radius: 18px !important;
}

/* background zones are still present, but less noisy */
.zone.neutral,
.zone.greed,
.zone.fear {
  opacity: 0.22 !important;
}

.zone.greed-extreme {
  fill: rgba(255, 95, 104, 0.18) !important;
}

.zone.fear-extreme {
  fill: rgba(47, 212, 119, 0.16) !important;
}

/* hide labels inside the chart so the lines are easier to read */
.fg-zone-labels {
  display: none !important;
}

.fg-axis-left text,
.fg-axis-right text,
.fg-grid text {
  fill: rgba(232,235,246,0.42) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.fg-grid line {
  stroke: rgba(255,255,255,0.055) !important;
}

.fg-grid line.vertical {
  stroke: rgba(255,255,255,0.035) !important;
}

.btc-price-line {
  stroke: rgba(205, 212, 230, 0.46) !important;
  stroke-width: 2.1 !important;
  opacity: 0.72 !important;
}

.fg-segment {
  stroke-width: 2.45 !important;
  opacity: 0.94 !important;
}

.fg-hover-dot.mood {
  r: 5;
}

.fg-hover-dot.price {
  r: 4;
  opacity: 0.9;
}

.fg-crosshair {
  stroke: rgba(255,255,255,0.32) !important;
}

.fg-tooltip {
  max-width: 190px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  font-size: 0.9rem !important;
  background: rgba(12, 16, 28, 0.92) !important;
}

.fg-overview-wrap {
  margin-top: 12px !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
}

.fg-overview-svg {
  height: 48px !important;
}

.overview-line {
  stroke: rgba(168, 142, 255, 0.48) !important;
  stroke-width: 1.6 !important;
}

.overview-window {
  fill: rgba(139,92,246,0.14) !important;
  stroke: rgba(139,92,246,0.44) !important;
}

.fg-info-panel {
  gap: 14px !important;
  margin-top: 16px !important;
}

.fg-info-card {
  padding: 18px !important;
  border-radius: 20px !important;
}

.fg-info-card h3 {
  font-size: 1.05rem !important;
}

.fg-info-card p {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
}

@media (max-width: 760px) {
  .fg-main-svg {
    height: 340px !important;
  }
  .fg-terminal-top {
    align-items: flex-start !important;
  }
  .fg-ranges,
  .fg-legend {
    width: 100% !important;
    overflow-x: auto !important;
  }
}


.fg-control-layer .control-stem {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.fg-control-layer .control-dot {
  opacity: 0.95;
  filter: url(#fgGlow);
}

.fg-control-layer .control-dot.fg {
  stroke: rgba(10, 12, 24, 0.85);
  stroke-width: 2.2;
}

.fg-control-layer .control-dot.price {
  fill: #f3f4f6;
  stroke: rgba(139, 92, 246, 0.72);
  stroke-width: 2.2;
}

.fg-root.has-focus .fg-control-layer {
  opacity: 0.28;
  transition: opacity 0.24s ease;
}

.fg-root.has-focus .fg-control-layer .control-point.match-focus {
  opacity: 1;
}

.fg-root.has-focus .fg-control-layer .control-point:not(.match-focus) {
  opacity: 0.16;
}


/* focus cards under chart: interactive highlight triggers */
.fg-info-card[data-market-focus] {
  cursor: pointer !important;
  user-select: none;
}

.fg-info-card[data-market-focus].is-active {
  border-color: rgba(139, 92, 246, 0.62) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 20px 50px rgba(18, 10, 38, 0.38), 0 0 34px rgba(139, 92, 246, 0.18) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(255, 255, 255, 0.03)) !important;
}

.fg-info-card[data-market-focus].is-active .panel-kicker,
.fg-info-card[data-market-focus].is-active h3 {
  color: #ffffff !important;
}

.fg-info-card[data-market-focus].is-active p {
  color: rgba(245, 247, 255, 0.82) !important;
}


/* ===== final chart width + cursor synchronization fixes ===== */
.sentiment-section .container {
  width: calc(100vw - 12px) !important;
  max-width: none !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

.sentiment-section .section-head {
  width: min(980px, calc(100% - 40px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fg-terminal {
  width: 100% !important;
  border-radius: 24px !important;
}

.fg-chart-wrap {
  width: 100% !important;
  padding: 10px !important;
}

.fg-main-svg {
  width: 100% !important;
  height: clamp(440px, 53vw, 700px) !important;
  max-height: 700px !important;
  display: block !important;
  touch-action: none;
}

.fg-overview-wrap {
  margin-left: 10px !important;
  margin-right: 10px !important;
}

.fg-hover-dot,
.fg-crosshair,
.fg-tooltip {
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .sentiment-section .container {
    width: calc(100vw - 8px) !important;
  }

  .fg-main-svg {
    min-width: 0 !important;
    height: 420px !important;
  }

  .fg-chart-wrap {
    overflow-x: hidden !important;
  }
}


/* ===== FINAL FIX: full available width, sane height, synced hover, clickable focus cards ===== */
.sentiment-section {
  overflow-x: clip !important;
}

.sentiment-section .container {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  transform: none !important;
  padding-left: clamp(8px, 1vw, 18px) !important;
  padding-right: clamp(8px, 1vw, 18px) !important;
}

.sentiment-section .section-head {
  width: min(980px, calc(100vw - 32px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 22px !important;
}

.fg-chart-layout,
.fg-chart-wrap {
  width: 100% !important;
  max-width: none !important;
}

.fg-chart-wrap {
  padding: 8px !important;
  overflow: hidden !important;
}

.fg-main-svg {
  width: 100% !important;
  height: clamp(360px, 37vw, 520px) !important;
  max-height: 520px !important;
  min-width: 0 !important;
  display: block !important;
  touch-action: none !important;
}

.fg-overview-wrap {
  margin: 10px 8px 12px !important;
}

.fg-overview-svg {
  width: 100% !important;
  height: 54px !important;
}

.fg-hover-dot,
.fg-crosshair,
.fg-tooltip,
.fg-control-layer,
.fg-highlight-layer {
  pointer-events: none !important;
}

.fg-info-card[data-market-focus] {
  cursor: pointer !important;
}

.fg-info-card[data-market-focus].is-active {
  border-color: rgba(139, 92, 246, 0.72) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(255,255,255,0.028)) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.20), 0 0 36px rgba(139, 92, 246, 0.20), 0 22px 60px rgba(0,0,0,0.30) !important;
}

.fg-terminal.has-focus .btc-price-line,
.fg-terminal.has-focus .fg-index-lines {
  opacity: 0.28 !important;
}

.fg-terminal.has-focus .zone {
  opacity: 0.18 !important;
}

.fg-highlight-layer .highlight-dot {
  opacity: 1 !important;
}

@media (max-width: 760px) {
  .sentiment-section .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .fg-main-svg {
    height: 390px !important;
  }
}

/* ===== FINAL COMPACT CHART FIX: smaller chart, full width, visible cards/buttons ===== */
.sentiment-section {
  overflow-x: hidden !important;
}

.sentiment-section .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(10px, 1.6vw, 24px) !important;
  padding-right: clamp(10px, 1.6vw, 24px) !important;
  transform: none !important;
}

.sentiment-section .section-head {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 22px !important;
  padding: 12px !important;
  border-radius: 22px !important;
}

.fg-terminal-top {
  margin-bottom: 10px !important;
  gap: 10px !important;
  display: grid !important;
  grid-template-columns: minmax(180px, auto) minmax(260px, 1fr) auto !important;
  align-items: center !important;
}

.fg-terminal-title,
.fg-legend,
.fg-ranges {
  min-width: 0 !important;
}

.fg-legend {
  justify-content: center !important;
  flex-wrap: wrap !important;
}

.fg-ranges {
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  min-height: 32px !important;
  padding: 7px 12px !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}

.fg-chart-layout {
  display: block !important;
  width: 100% !important;
}

.fg-chart-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 8px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.fg-main-svg {
  width: 100% !important;
  height: clamp(260px, 30vw, 390px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 390px !important;
  display: block !important;
  touch-action: none !important;
}

.fg-overview-wrap {
  margin: 8px 8px 8px !important;
  height: 42px !important;
  min-height: 42px !important;
}

.fg-overview-svg {
  width: 100% !important;
  height: 42px !important;
  display: block !important;
}

.fg-info-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

.fg-info-card {
  padding: 14px 16px !important;
  min-height: 116px !important;
  border-radius: 18px !important;
}

.fg-info-card h3 {
  margin-bottom: 6px !important;
  font-size: 0.98rem !important;
}

.fg-info-card p {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

.panel-kicker {
  font-size: 0.78rem !important;
  margin-bottom: 6px !important;
}

/* Hover markers must be hidden until cursor is actually over the SVG plot */
.fg-hover-dot,
.fg-hover-dot.price,
.fg-hover-dot.mood,
.fg-crosshair {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fg-hover-dot.is-visible,
.fg-hover-dot.price.is-visible,
.fg-hover-dot.mood.is-visible,
.fg-crosshair.is-visible {
  opacity: 1 !important;
}

.fg-tooltip {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fg-tooltip.is-visible {
  opacity: 1 !important;
}

/* Clickable fear/greed cards */
.fg-info-card[data-market-focus] {
  cursor: pointer !important;
  user-select: none !important;
}

.fg-info-card[data-market-focus].is-active {
  border-color: rgba(139, 92, 246, 0.78) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(255,255,255,0.028)) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.20), 0 0 30px rgba(139, 92, 246, 0.20), 0 18px 44px rgba(0,0,0,0.30) !important;
}

.fg-terminal.has-focus .btc-price-line,
.fg-terminal.has-focus .fg-index-lines {
  opacity: 0.28 !important;
}

.fg-terminal.has-focus .zone {
  opacity: 0.16 !important;
}

@media (max-width: 1120px) {
  .fg-terminal-top {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }

  .fg-legend,
  .fg-ranges {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .fg-info-panel {
    grid-template-columns: 1fr !important;
  }

  .fg-main-svg {
    height: 320px !important;
  }
}

@media (max-width: 680px) {
  .sentiment-section .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .fg-terminal {
    padding: 8px !important;
    border-radius: 18px !important;
  }

  .fg-main-svg {
    height: 270px !important;
  }

  .fg-info-card {
    min-height: auto !important;
  }
}

/* ===== FINAL CENTERED CHART CONTAINER (React/Vite friendly) ===== */
.sentiment-section {
  overflow-x: hidden !important;
}

.sentiment-section .container {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

.sentiment-section .section-head {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 22px auto 0 !important;
  padding: 14px !important;
  border-radius: 24px !important;
  box-sizing: border-box !important;
}

.fg-terminal-top {
  display: grid !important;
  grid-template-columns: minmax(190px, auto) minmax(280px, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

.fg-legend {
  justify-content: center !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.fg-ranges {
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  min-height: 32px !important;
  padding: 7px 12px !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}

.fg-chart-layout {
  display: block !important;
  width: 100% !important;
}

.fg-chart-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: 10px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.fg-main-svg {
  width: 100% !important;
  height: clamp(250px, 28vw, 340px) !important;
  max-height: 340px !important;
  min-width: 0 !important;
  display: block !important;
  touch-action: none !important;
}

.fg-overview-wrap {
  height: 42px !important;
  min-height: 42px !important;
  margin: 8px 8px 6px !important;
}

.fg-overview-svg {
  width: 100% !important;
  height: 42px !important;
  display: block !important;
}

.fg-info-panel {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 12px !important;
}

.fg-info-card {
  padding: 14px 16px !important;
  min-height: 108px !important;
  border-radius: 18px !important;
}

.fg-info-card h3 {
  margin-bottom: 6px !important;
  font-size: 0.98rem !important;
}

.fg-info-card p {
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
}

/* Points and tooltip on the chart must disappear outside the SVG plot */
.fg-hover-dot,
.fg-hover-dot.price,
.fg-hover-dot.mood,
.fg-crosshair {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fg-hover-dot.is-visible,
.fg-hover-dot.price.is-visible,
.fg-hover-dot.mood.is-visible,
.fg-crosshair.is-visible {
  opacity: 1 !important;
}

.fg-tooltip {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fg-tooltip.is-visible {
  opacity: 1 !important;
}

/* Fear / greed cards work like toggle buttons */
.fg-info-card[data-market-focus] {
  cursor: pointer !important;
  user-select: none !important;
}

.fg-info-card[data-market-focus].is-active {
  border-color: rgba(139, 92, 246, 0.78) !important;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.18), rgba(255,255,255,0.028)) !important;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.20), 0 0 30px rgba(139, 92, 246, 0.20), 0 18px 44px rgba(0,0,0,0.30) !important;
}

@media (max-width: 1120px) {
  .fg-terminal-top {
    grid-template-columns: 1fr !important;
  }

  .fg-legend,
  .fg-ranges {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .fg-main-svg {
    height: 300px !important;
  }

  .fg-info-panel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .sentiment-section .container {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .fg-terminal {
    max-width: 100% !important;
    padding: 8px !important;
    border-radius: 18px !important;
  }

  .fg-main-svg {
    height: 260px !important;
  }

  .fg-info-card {
    min-height: auto !important;
  }
}


/* ===== FINAL NORMAL RATIO CHART FIX ===== */
/* Center the whole chart block and stop it from stretching across the viewport */
.sentiment-section .container {
  width: min(1120px, calc(100% - 40px)) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 28px auto 0 !important;
  padding: 18px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

/* Keep all top controls visible instead of pushing them outside */
.fg-terminal-top {
  display: grid !important;
  grid-template-columns: minmax(210px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.fg-legend,
.fg-ranges {
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  padding: 8px 11px !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
}

/* The chart itself keeps its real proportions. No horizontal distortion. */
.fg-chart-layout {
  display: block !important;
}

.fg-chart-wrap {
  width: 100% !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 8px 8px 0 !important;
  border-radius: 22px !important;
}

.fg-main-svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1040 / 460 !important;
}

.fg-overview-wrap {
  width: calc(100% - 72px) !important;
  max-width: 940px !important;
  margin: 8px auto 12px !important;
  border-radius: 14px !important;
}

.fg-overview-svg {
  height: 54px !important;
}

.fg-info-panel {
  max-width: 1040px !important;
  margin: 16px auto 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.fg-info-card {
  padding: 14px 16px !important;
  border-radius: 18px !important;
  min-height: auto !important;
}

.fg-info-card h3 {
  font-size: 0.96rem !important;
  margin-bottom: 6px !important;
}

.fg-info-card p {
  font-size: 0.82rem !important;
  line-height: 1.42 !important;
}

@media (max-width: 1180px) {
  .sentiment-section .container {
    width: min(100% - 28px, 1120px) !important;
  }

  .fg-terminal-top {
    grid-template-columns: 1fr !important;
  }

  .fg-legend,
  .fg-ranges {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }
}

@media (max-width: 780px) {
  .sentiment-section .container {
    width: calc(100% - 18px) !important;
  }

  .fg-terminal {
    padding: 10px !important;
    border-radius: 20px !important;
  }

  .fg-chart-wrap {
    max-width: 100% !important;
    padding: 4px 0 0 !important;
  }

  .fg-overview-wrap {
    width: calc(100% - 20px) !important;
  }

  .fg-info-panel {
    grid-template-columns: 1fr !important;
  }
}

/* ===== FINAL FIX: normal chart width, no right purple strip, badges beside numbers ===== */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body::before,
body::after,
.page-noise::after {
  max-width: 100vw !important;
  overflow: hidden !important;
}

.sentiment-section {
  overflow: hidden !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sentiment-section .container {
  width: calc(100% - 32px) !important;
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 18px 20px 20px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
}

.fg-terminal-top {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto auto !important;
  gap: 14px !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.fg-legend,
.fg-ranges {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.fg-legend-btn,
.fg-ranges .range-btn {
  white-space: nowrap !important;
}

.fg-chart-layout {
  display: block !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto !important;
}

.fg-chart-wrap {
  width: 100% !important;
  max-width: 1000px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 8px 8px 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
}

.fg-main-svg {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 430px !important;
  min-height: 0 !important;
  aspect-ratio: 1040 / 460 !important;
  overflow: visible !important;
}

.fg-overview-wrap {
  width: 86% !important;
  max-width: 860px !important;
  margin: 10px auto 4px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

.fg-overview-svg {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
}

.fg-info-panel {
  max-width: 1000px !important;
  margin: 16px auto 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.fg-info-card {
  padding: 14px 16px !important;
  border-radius: 18px !important;
  min-height: 0 !important;
}

/* Pricing badges: number and badge in one horizontal row */
.price-detail-card > .badge,
.price-only-card > .badge {
  position: static !important;
}

.plan-card-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 48px !important;
  margin-bottom: 20px !important;
}

.plan-card-topline > span,
.price-only-card > span {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: rgba(168, 85, 247, 0.18) !important;
  color: #d8c1ff !important;
  font-weight: 900 !important;
}

.plan-card-topline .badge {
  margin: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
  transform: none !important;
}

.price-detail-card.featured .plan-card-topline .badge,
.price-detail-card.premium .plan-card-topline .badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
}

.price-only-card h3 {
  margin-top: 0 !important;
}

@media (max-width: 920px) {
  .sentiment-section .container {
    width: calc(100% - 20px) !important;
    max-width: 100% !important;
  }

  .fg-terminal {
    padding: 12px !important;
    border-radius: 22px !important;
  }

  .fg-terminal-top {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .fg-legend,
  .fg-ranges {
    justify-content: flex-start !important;
  }

  .fg-chart-layout,
  .fg-chart-wrap {
    max-width: 100% !important;
  }

  .fg-main-svg {
    max-height: 360px !important;
  }

  .fg-overview-wrap {
    width: calc(100% - 18px) !important;
  }

  .fg-info-panel {
    grid-template-columns: 1fr !important;
  }
}

/* ===== FINAL REAL FIX: remove right purple strip completely ===== */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  background: #050506 !important;
}

body {
  background: linear-gradient(180deg, #08090c 0%, #050506 38%, #000000 100%) !important;
}

body::before,
body::after,
.page-noise,
.page-noise::before,
.page-noise::after,
.sentiment-section::before,
.sentiment-section::after,
.pricing-section::before,
.pricing-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

main,
section,
.site-header,
.footer {
  max-width: 100% !important;
  overflow-x: clip !important;
  background-color: transparent !important;
}

/* remove any wide purple glow/radial that could appear as a vertical strip */
.hero,
.hero-minimal,
.concept-foundation,
.sentiment-section,
.program-section,
.pricing-section,
.insights-section,
.insights-pricing-section,
.course-vs-insights,
.faq-section,
.final-cta {
  background: transparent !important;
}

.sentiment-section {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sentiment-section .container {
  width: min(1120px, calc(100% - 36px)) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.fg-terminal {
  width: 100% !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(6, 8, 16, 0.94) !important;
  overflow: hidden !important;
}

.fg-chart-layout,
.fg-chart-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.fg-main-svg,
.fg-overview-svg {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* pricing badges stay beside numbers */
.plan-card-topline {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

.plan-card-topline .badge,
.price-detail-card > .badge,
.price-only-card > .badge {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
}

@media (max-width: 768px) {
  .sentiment-section .container {
    width: min(100% - 20px, 1120px) !important;
  }

  .fg-terminal {
    border-radius: 22px !important;
  }
}

/* ===== remove purple strip under graph ===== */
.fg-overview-wrap {
  display: none !important;
}

.fg-chart-wrap {
  padding-bottom: 16px !important;
  min-height: auto;
}

.fg-main-svg {
  margin-bottom: 0 !important;
}

/* ===== FINAL USER FIX: transparent header, text alignment, purple comparison table ===== */
:root {
  --accent: #8B5CF6;
  --accent-2: #A78BFA;
  --accent-3: #C4B5FD;
}

/* Header without black strip while scrolling */
.site-header,
.site-header.is-scrolled {
  background: rgba(3, 4, 8, 0.08) !important;
  border-bottom-color: rgba(255, 255, 255, 0.035) !important;
  box-shadow: none !important;
  backdrop-filter: blur(8px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
}

.site-header::before,
.site-header::after {
  display: none !important;
  content: none !important;
}

.nav-wrap {
  background: transparent !important;
}

.nav-menu {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.nav-menu a {
  color: rgba(244, 241, 255, 0.72) !important;
  line-height: 1 !important;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: #ffffff !important;
}

.nav-menu a::after {
  background: linear-gradient(90deg, #8B5CF6, #C084FC) !important;
}

.brand-mark {
  background: rgba(139, 92, 246, 0.10) !important;
  border-color: rgba(139, 92, 246, 0.34) !important;
  color: #C4B5FD !important;
}

/* Mobile menu keeps readability, but remains glassy */
@media (max-width: 1180px) {
  .nav-menu.is-open {
    background: rgba(5, 5, 10, 0.78) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(139, 92, 246, 0.20) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38) !important;
  }
}

/* Text alignment cleanup */
.section-head,
.formats-table-head,
.pricing-head-small,
.insights-pricing-section .section-head,
.faq-section .section-head,
.course-vs-insights .section-head,
.sentiment-section .section-head {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.section-head .eyebrow,
.formats-table-head .eyebrow,
.pricing-head-small .eyebrow,
.insights-pricing-section .section-head .eyebrow,
.faq-section .section-head .eyebrow,
.course-vs-insights .section-head .eyebrow,
.sentiment-section .section-head .eyebrow {
  justify-content: center !important;
}

.section-head p,
.formats-table-head p,
.pricing-head-small p,
.final-card p,
.growth-note,
.insights-copy p,
.compare-card p,
.feature-card p,
.concept-foundation-card p,
.price-detail-card p,
.lesson-card p {
  text-wrap: pretty;
}

.glass-card,
.feature-card,
.concept-foundation-card,
.growth-card,
.growth-center-card,
.price-detail-card,
.lesson-card,
.telegram-mock,
.compare-card,
.final-card,
.insights-copy {
  text-align: left;
}

.final-card,
.growth-note {
  text-align: center !important;
}

.price-detail-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

.price-detail-card .btn-full {
  margin-top: auto !important;
}

.price-feature-list li,
.lesson-points p,
.insights-list span,
.formats-cell {
  line-height: 1.45 !important;
}

/* Format comparison: no amber/blue feel, smoother transition into purple */
.formats-table-shell {
  background:
    radial-gradient(circle at 50% -8%, rgba(139, 92, 246, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(22, 15, 38, 0.96) 0%, rgba(10, 9, 16, 0.95) 46%, rgba(42, 22, 73, 0.74) 100%) !important;
  border-color: rgba(139, 92, 246, 0.24) !important;
  box-shadow:
    0 28px 90px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 0 54px rgba(139, 92, 246, 0.10) !important;
}

.formats-table-head h2 {
  background: linear-gradient(90deg, #F8F4FF 0%, #C4B5FD 34%, #8B5CF6 68%, #C084FC 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.18) !important;
}

.formats-table-head p:last-child {
  color: rgba(231, 222, 255, 0.66) !important;
}

.formats-row-header .plan-col:nth-child(2) {
  color: rgba(221, 214, 254, 0.72) !important;
}

.formats-row-header .plan-col:nth-child(3) {
  color: #C4B5FD !important;
}

.formats-row-header .plan-col:nth-child(4) {
  color: #F3E8FF !important;
}

.formats-row-header .plan-col:nth-child(3),
.formats-row .formats-cell:nth-child(3) {
  background: linear-gradient(180deg, rgba(139,92,246,0.16), rgba(139,92,246,0.055)) !important;
}

.formats-row-header .plan-col:nth-child(4),
.formats-row .formats-cell:nth-child(4) {
  background: linear-gradient(180deg, rgba(168,85,247,0.13), rgba(88,28,135,0.055)) !important;
}

.formats-row .formats-cell:nth-child(2) .format-mark.yes {
  color: rgba(221, 214, 254, 0.76) !important;
  border-color: rgba(221, 214, 254, 0.30) !important;
  background: rgba(139, 92, 246, 0.035) !important;
  box-shadow: none !important;
}

.formats-row .formats-cell:nth-child(3) .format-mark.yes {
  color: #D8B4FE !important;
  border-color: rgba(168,85,247,0.88) !important;
  background: rgba(139,92,246,0.16) !important;
  box-shadow: 0 0 24px rgba(139,92,246,0.30) !important;
}

.formats-row .formats-cell:nth-child(4) .format-mark.yes {
  color: #FFFFFF !important;
  border-color: rgba(192,132,252,0.95) !important;
  background: rgba(168,85,247,0.24) !important;
  box-shadow: 0 0 30px rgba(168,85,247,0.48) !important;
}

.formats-row.premium-row .feature-col,
.formats-row.premium-row .formats-cell:nth-child(4) {
  color: #F5F3FF !important;
}

@media (max-width: 768px) {
  .section-head,
  .formats-table-head,
  .pricing-head-small {
    max-width: 100% !important;
  }

  .site-header,
  .site-header.is-scrolled {
    background: rgba(3, 4, 8, 0.06) !important;
  }
}

/* ===== FINAL TYPOGRAPHY FIX: ровный текст и одинаковая читаемость букв ===== */
html,
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

body {
  font-family: Arial, "Helvetica Neue", Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body * {
  font-family: inherit !important;
}

p,
li,
a,
button,
span,
small,
strong,
.formats-cell,
.accordion-content,
.lesson-points p,
.price-feature-list li,
.insights-list span,
.fg-info-card p,
.footer p,
.footer a {
  letter-spacing: 0 !important;
  font-stretch: normal !important;
  text-rendering: optimizeLegibility;
}

p,
li,
.accordion-content p,
.lesson-points p,
.fg-info-card p,
.footer p {
  font-size: 1rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

h1,
h2,
h3,
h4,
.brand,
.btn,
.nav-cta,
.accordion-trigger,
.module-meta strong,
.price-only-card strong,
.plan-card-topline span,
.formats-table-head h2,
.formats-row-header .formats-cell {
  font-stretch: normal !important;
  text-rendering: optimizeLegibility;
}

h1,
.hero-title-one-line,
.hero-minimal-content h1.hero-title-one-line {
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
}

h2,
.formats-table-head h2,
.pricing-head-small h2,
.section-head h2,
.final-card h2 {
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
}

h3,
.price-only-card h3,
.lesson-card h3,
.growth-card h3,
.fg-info-card h3,
.concept-foundation-card h3 {
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}

.eyebrow,
.panel-kicker,
.module-badge,
.growth-badge,
.badge,
.premium-badge {
  letter-spacing: 0.06em !important;
  font-weight: 700 !important;
}

.nav-menu a,
.nav-cta,
.btn,
.fg-legend-btn,
.fg-ranges .range-btn,
.accordion-trigger,
.price-only-card .btn,
.insight-price a {
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.section-head,
.formats-table-head,
.pricing-head-small,
.final-card,
.insights-copy,
.fg-info-card,
.price-only-card,
.glass-card,
.lesson-card,
.growth-card,
.growth-center-card {
  word-spacing: 0 !important;
}

.section-head p,
.formats-table-head p,
.pricing-head-small p,
.concept-foundation-card p,
.feature-card p,
.growth-card p,
.growth-center-card p,
.price-only-card p,
.insights-copy p,
.final-card p {
  max-width: 100%;
}

.formats-cell,
.formats-cell.feature-col,
.plan-col {
  line-height: 1.45 !important;
  font-weight: 500 !important;
}

.format-mark,
.format-mark.yes,
.format-mark.no {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-weight: 700 !important;
}

/* убираем слишком плотные декоративные сжатия текста на мобильных */
@media (max-width: 780px) {
  h1,
  .hero-title-one-line,
  .hero-minimal-content h1.hero-title-one-line {
    letter-spacing: -0.025em !important;
  }

  h2,
  .formats-table-head h2,
  .pricing-head-small h2,
  .section-head h2,
  .final-card h2 {
    letter-spacing: -0.015em !important;
  }

  p,
  li,
  .accordion-content p,
  .lesson-points p,
  .fg-info-card p,
  .footer p {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
  }
}


/* ===== final text dash and label spacing fixes ===== */
.lesson-point-label {
  display: inline !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
  white-space: normal !important;
}

.lesson-points p {
  word-spacing: normal !important;
  text-align: left !important;
}

.accordion-content p,
.lesson-points p,
.faq-section p {
  text-align: left !important;
}

/* ===== latest fixes: rectangular comparison columns ===== */
.formats-row-header .plan-col:nth-child(3),
.formats-row-header .plan-col:nth-child(4),
.formats-row:last-child .formats-cell:nth-child(3),
.formats-row:last-child .formats-cell:nth-child(4),
.formats-row .formats-cell:nth-child(3),
.formats-row .formats-cell:nth-child(4) {
  border-radius: 0 !important;
}

.formats-row-header .plan-col:nth-child(3),
.formats-row-header .plan-col:nth-child(4) {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.formats-row:last-child .formats-cell:nth-child(3),
.formats-row:last-child .formats-cell:nth-child(4) {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}


/* ===== Block V: individual real-time trade review ===== */
.lesson-card.individual-practice {
  border-color: rgba(168, 85, 247, 0.45) !important;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.13), rgba(255,255,255,0.035)) !important;
  box-shadow: 0 18px 46px rgba(105, 70, 200, 0.16) !important;
}

.lesson-card.individual-practice h3 span {
  color: rgba(226, 214, 255, 0.78) !important;
}

/* feedback format note under program modules */
.feedback-format-note {
  margin: 24px auto 0;
  padding: 22px 26px;
  max-width: 1120px;
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: 24px;
  background: rgba(12, 10, 18, 0.72);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 20px 60px rgba(0, 0, 0, 0.24);
}

.feedback-format-note h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
}

.feedback-format-note p {
  margin: 0;
  color: rgba(245, 241, 255, 0.76);
  line-height: 1.65;
  font-size: 16px;
}

@media (max-width: 768px) {
  .feedback-format-note {
    padding: 18px;
    border-radius: 18px;
  }

  .feedback-format-note h3 {
    font-size: 18px;
  }

  .feedback-format-note p {
    font-size: 14px;
  }
}


/* Footer brand alignment fix */
.footer .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.footer .brand-mark {
  flex: 0 0 auto;
}

.footer .brand-text {
  display: inline-block;
  vertical-align: middle;
}

.footer .brand-wrap,
.footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* Insights preview title inside Telegram mock */
.insights-preview-title {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  border-radius: 18px;
  background: rgba(139, 92, 246, 0.10);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.telegram-mock .message-card.setup {
  margin-left: 0;
}
