:root {
  --ta-bg: #07111f;
  --ta-bg-2: #0b1728;
  --ta-bg-3: #0f1d32;
  --ta-panel: #101c2f;
  --ta-panel-2: #14233a;
  --ta-panel-3: #182a44;
  --ta-panel-soft: rgba(19, 33, 54, 0.78);
  --ta-border: rgba(255, 255, 255, 0.08);
  --ta-border-soft: rgba(255, 255, 255, 0.05);
  --ta-text: #eef4ff;
  --ta-text-soft: rgba(238, 244, 255, 0.78);
  --ta-text-faint: rgba(238, 244, 255, 0.56);
  --ta-white: #ffffff;
  --ta-blue: #4da3ff;
  --ta-blue-2: #76b8ff;
  --ta-cyan: #63d4ff;
  --ta-green: #2ed98b;
  --ta-red: #ff6d87;
  --ta-gold: #f2c46d;
  --ta-orange: #ffb260;
  --ta-purple: #8d7dff;
  --ta-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --ta-shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.16);
  --ta-radius-xl: 28px;
  --ta-radius-lg: 22px;
  --ta-radius-md: 18px;
  --ta-radius-sm: 14px;
}

.technical-analysis-body {
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(141, 125, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #06101c 0%, #07111f 35%, #081425 100%);
  color: var(--ta-text);
}

.ta-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.ta-shell-tv {
  display: grid;
  gap: 22px;
}

.ta-glass-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 35, 58, 0.96), rgba(13, 24, 41, 0.98));
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius-xl);
  box-shadow: var(--ta-shadow);
  overflow: hidden;
}

.ta-tv-header,
.ta-tv-header-left,
.ta-tv-title-wrap,
.ta-tv-header-right,
.ta-tv-hero-grid,
.ta-tv-main,
.ta-tv-center,
.ta-tv-center-grid,
.ta-tv-premium-grid,
.ta-tv-premium-bias-grid,
.ta-tv-scenarios-grid,
.ta-tv-advanced-grid,
.ta-tv-advanced-notes,
.ta-tv-bottom-stats,
.ta-tv-market-grid,
.ta-tv-exec-stats,
.ta-tv-confluence-top,
.ta-tv-mtf-grid,
.ta-tv-plan-grid,
.ta-tv-plan-side,
.ta-tv-side-stack,
.ta-orderflow-grid,
.ta-orderflow-detail-grid,
.ta-orderflow-bars,
.ta-replay-stats,
.ta-telegram-status,
.ta-right-rail-footer,
.ta-summary-stats,
.ta-premium-grid,
.ta-premium-details-grid,
.ta-advanced-ai-grid,
.ta-confluence-meta,
.ta-snapshot-grid {
  display: grid;
  gap: 14px;
}

.ta-tv-header {
  grid-template-columns: minmax(0, 1.5fr) minmax(420px, 0.9fr);
  align-items: stretch;
  gap: 18px;
}

.ta-tv-header-left,
.ta-tv-header-right,
.ta-tv-executive-card,
.ta-tv-market-card,
.ta-tv-sidebar,
.ta-tv-chart-card,
.ta-tv-confluence-card,
.ta-tv-levels-card,
.ta-tv-advanced-card,
.ta-tv-plan-card,
.ta-tv-right > .ta-glass-card,
.ta-tv-premium-desk,
.ta-footer-market-card {
  padding: 22px;
}

.ta-tv-header-left {
  gap: 18px;
  min-width: 0;
}

.ta-tv-header-right {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.ta-tv-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-tv-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.12);
  border: 1px solid rgba(77, 163, 255, 0.2);
  color: #d9ebff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ta-tv-kicker-soft {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ta-border);
  color: var(--ta-text-soft);
}

.ta-tv-kicker-premium {
  background: rgba(242, 196, 109, 0.14);
  border-color: rgba(242, 196, 109, 0.22);
  color: #ffeab8;
}

.ta-tv-kicker-vip {
  background: rgba(141, 125, 255, 0.16);
  border-color: rgba(141, 125, 255, 0.24);
  color: #e3ddff;
}

.ta-tv-kicker-free {
  background: rgba(46, 217, 139, 0.12);
  border-color: rgba(46, 217, 139, 0.2);
  color: #dbfff0;
}

.ta-tv-title-wrap {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.ta-tv-title-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fbfdff;
}

.ta-tv-title-wrap p {
  margin: 0;
  max-width: 860px;
  color: var(--ta-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.ta-tv-head-signal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.ta-tv-top-stat,
.ta-tv-mini-stat,
.ta-tv-side-box,
.ta-tv-confluence-box,
.ta-orderflow-box,
.ta-mini-box,
.ta-mini-monitor,
.ta-mtf-card,
.ta-level-box,
.ta-flow-bar-wrap,
.ta-vip-score-card,
.ta-snapshot-item,
.ta-confluence-meta-box {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--ta-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.ta-tv-top-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 110px;
}

.ta-tv-top-stat span,
.ta-tv-mini-stat span,
.ta-tv-side-box span,
.ta-tv-confluence-box span,
.ta-orderflow-box span,
.ta-mini-box span,
.ta-mini-monitor span,
.ta-mtf-card span,
.ta-level-box span,
.ta-flow-bar-wrap span,
.ta-vip-score-card span,
.ta-snapshot-item span,
.ta-confluence-meta-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--ta-text-faint);
  font-size: 0.78rem;
  line-height: 1.3;
}

.ta-tv-top-stat strong,
.ta-tv-mini-stat strong,
.ta-tv-side-box strong,
.ta-tv-confluence-box strong,
.ta-orderflow-box strong,
.ta-mini-box strong,
.ta-mini-monitor strong,
.ta-mtf-card strong,
.ta-level-box strong,
.ta-flow-bar-wrap strong,
.ta-vip-score-card strong,
.ta-snapshot-item strong,
.ta-confluence-meta-box strong {
  display: block;
  color: var(--ta-white);
  font-size: 1.15rem;
  line-height: 1.22;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ta-tv-side-box small,
.ta-mini-monitor small,
.ta-mtf-card small,
.ta-vip-score-card small {
  display: block;
  margin-top: 7px;
  color: var(--ta-text-faint);
  font-size: 0.77rem;
  line-height: 1.45;
}

.ta-tv-hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.ta-tv-card-head,
.ta-tv-chart-head,
.ta-tv-premium-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.ta-tv-card-head-tight {
  margin-bottom: 14px;
}

.ta-tv-card-head h2,
.ta-tv-chart-head h2,
.ta-tv-premium-head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #f7fbff;
  letter-spacing: -0.02em;
}

.ta-tv-card-head h3,
.ta-tv-premium-grid h3,
.ta-vip-panel h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #f8fbff;
}

.ta-tv-card-head p,
.ta-tv-chart-head p,
.ta-tv-premium-head p {
  margin: 0;
  color: var(--ta-text-faint);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ta-tv-chip-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(46, 217, 139, 0.12);
  border: 1px solid rgba(46, 217, 139, 0.2);
  color: #ddfff2;
  font-size: 0.78rem;
  font-weight: 800;
}

.ta-tv-exec-stats,
.ta-tv-market-grid,
.ta-tv-bottom-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-tv-summary-text,
.ta-summary-text,
.ta-membership-text {
  margin: 0;
  color: var(--ta-text-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.ta-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-summary-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.18);
  color: #dcecff;
  font-size: 0.76rem;
  font-weight: 800;
}

.ta-tv-main {
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  align-items: start;
  gap: 20px;
}

.ta-tv-sidebar {
  position: sticky;
  top: 18px;
  gap: 18px;
}

.ta-field {
  margin-bottom: 14px;
}

.ta-field:last-of-type {
  margin-bottom: 18px;
}

.ta-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ta-text-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.ta-field select,
.ta-field option,
.ta-field optgroup {
  background: #172840;
  color: #eef4ff;
}

.ta-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--ta-border);
  background-color: #172840;
  color: #eef4ff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ta-field select:focus {
  border-color: rgba(77, 163, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.12);
}

.ta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.ta-btn:hover {
  transform: translateY(-1px);
}

.ta-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.ta-btn-primary {
  background: linear-gradient(135deg, #3ca1ff, #52d7ff);
  color: #05111c;
  box-shadow: 0 16px 34px rgba(77, 163, 255, 0.18);
}

.ta-btn-dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ta-text);
  border-color: var(--ta-border);
}

.ta-btn-block {
  width: 100%;
}

.ta-tv-side-stack {
  grid-template-columns: 1fr;
}

.ta-tv-sidebar-watch {
  margin-top: 4px;
}

.ta-watch-item,
.ta-indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ta-watch-item:last-child,
.ta-indicator-row:last-child {
  border-bottom: none;
}

.ta-watch-item strong,
.ta-indicator-row strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.ta-watch-item small,
.ta-indicator-row p {
  margin: 6px 0 0;
  color: var(--ta-text-faint);
  font-size: 0.8rem;
  line-height: 1.52;
}

.ta-watch-price {
  text-align: right;
}

.ta-watch-price .up {
  color: var(--ta-green);
}

.ta-watch-price .down {
  color: var(--ta-red);
}

.ta-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.ta-status-chip.green {
  background: rgba(46, 217, 139, 0.12);
  color: #dcfff1;
  border: 1px solid rgba(46, 217, 139, 0.16);
}

.ta-status-chip.gold {
  background: rgba(242, 196, 109, 0.14);
  color: #ffeaba;
  border: 1px solid rgba(242, 196, 109, 0.18);
}

.ta-tv-center {
  gap: 20px;
}

.ta-tv-chart-card {
  padding-bottom: 18px;
}

.ta-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ta-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--ta-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ta-text);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ta-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 163, 255, 0.25);
}

.ta-tab.active {
  background: rgba(77, 163, 255, 0.16);
  border-color: rgba(77, 163, 255, 0.28);
  color: #ecf5ff;
}

.ta-big-chart,
.ta-hero-preview-chart,
.ta-terminal-chart {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ta-tv-big-chart {
  height: 430px;
}

.ta-hero-preview-chart {
  height: 250px;
}

.ta-big-chart-grid,
.ta-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
}

.ta-big-chart-svg,
.ta-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ta-big-path-main,
.ta-path-main {
  fill: none;
  stroke: var(--ta-blue-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(77, 163, 255, 0.22));
}

.ta-big-path-fill,
.ta-path-fill {
  fill: rgba(77, 163, 255, 0.14);
}

.ta-line-marker,
.ta-chart-tag {
  position: absolute;
  right: 14px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 18, 31, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.ta-resistance-marker,
.ta-chart-tag-r {
  top: 16%;
  color: #ffdcb3;
}

.ta-pivot-marker,
.ta-chart-tag-p {
  top: 45%;
  color: #dcecff;
}

.ta-support-marker,
.ta-chart-tag-s {
  top: 74%;
  color: #d9ffef;
}

.ta-tv-center-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.ta-tv-confluence-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

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

.ta-score-badge,
.ta-bias-pill,
.ta-signal-pill,
.ta-membership-badge,
.ta-insight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ta-score-badge {
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--ta-border);
  color: #fff;
}

.ta-score-badge strong {
  font-size: 1rem;
}

.ta-bias-bullish,
.ta-signal-buy {
  background: rgba(46, 217, 139, 0.12);
  color: #dcfff1;
  border-color: rgba(46, 217, 139, 0.18);
}

.ta-bias-bearish,
.ta-signal-sell {
  background: rgba(255, 109, 135, 0.12);
  color: #ffe0e7;
  border-color: rgba(255, 109, 135, 0.18);
}

.ta-bias-neutral,
.ta-signal-neutral {
  background: rgba(242, 196, 109, 0.12);
  color: #ffeab8;
  border-color: rgba(242, 196, 109, 0.18);
}

.ta-membership-badge-premium {
  background: rgba(77, 163, 255, 0.12);
  color: #dcecff;
  border-color: rgba(77, 163, 255, 0.18);
}

.ta-membership-badge-premium::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 6px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcecff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='10' rx='2'/><path d='M7 11V8a5 5 0 0 1 10 0v3'/></svg>");
}

.ta-tv-advanced-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ta-tv-advanced-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--ta-border-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.022));
}

.ta-tv-advanced-box > span {
  display: block;
  margin-bottom: 10px;
  color: var(--ta-text-faint);
  font-size: 0.78rem;
}

.ta-advanced-ai-text-grid,
.ta-tv-advanced-notes {
  grid-template-columns: 1fr 1fr;
}

.ta-execution-box,
.ta-replay-history,
.ta-scenario-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--ta-border-soft);
}

.ta-execution-box p,
.ta-replay-history p,
.ta-scenario-box p {
  margin: 0 0 10px;
  color: var(--ta-text-soft);
  line-height: 1.7;
  font-size: 0.96rem;
}

.ta-execution-box p:last-child,
.ta-replay-history p:last-child,
.ta-scenario-box p:last-child {
  margin-bottom: 0;
}

.ta-tv-plan-grid {
  grid-template-columns: minmax(0, 1.25fr) 320px;
  align-items: stretch;
}

.ta-tv-plan-main {
  min-height: 100%;
}

.ta-tv-plan-side {
  grid-template-columns: 1fr;
}

.ta-tv-plan-stat {
  min-height: 120px;
}

#executionPlan p strong {
  color: #f8fbff;
}

.ta-tv-right {
  display: grid;
  gap: 20px;
  align-content: start;
}

.ta-orderflow-grid,
.ta-replay-stats,
.ta-telegram-status,
.ta-premium-grid,
.ta-orderflow-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ta-orderflow-bars {
  grid-template-columns: 1fr 1fr;
}

.ta-flow-bar-wrap strong {
  font-size: 1.5rem;
}

.ta-level-stack {
  display: grid;
  gap: 12px;
}

.ta-level-box.resistance {
  box-shadow: inset 0 0 0 1px rgba(255, 109, 135, 0.05);
}

.ta-level-box.pivot {
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.05);
}

.ta-level-box.support {
  box-shadow: inset 0 0 0 1px rgba(46, 217, 139, 0.05);
}

.ta-tv-premium-desk {
  padding-top: 24px;
}

.ta-tv-premium-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #79b6ff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ta-tv-premium-bias-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.ta-tv-premium-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.ta-premium-box,
.ta-premium-panel,
.ta-vip-panel,
.ta-locked-box,
.ta-insight-box {
  border: 1px solid var(--ta-border-soft);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ta-text);
  border-radius: 22px;
  padding: 20px;
}

.ta-premium-box,
.ta-premium-panel {
  appearance: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ta-premium-box:hover,
.ta-premium-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 163, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.ta-premium-box span,
.ta-insight-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--ta-text-faint);
  font-size: 0.78rem;
}

.ta-premium-box strong,
.ta-insight-box strong,
.ta-vip-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  color: #fff;
}

.ta-premium-box small,
.ta-insight-box small {
  color: var(--ta-text-faint);
  font-size: 0.79rem;
}

.ta-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.ta-breakdown-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ta-breakdown-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ta-breakdown-list span {
  color: var(--ta-text-faint);
}

.ta-breakdown-list strong {
  font-size: 1rem;
  color: #fff;
  text-align: right;
  max-width: 55%;
  overflow-wrap: anywhere;
}

.ta-tv-scenarios-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.ta-tv-desk-notes {
  display: grid;
  grid-template-columns: 1fr;
}

.ta-scenario-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--ta-text-faint);
  font-size: 0.78rem;
}

.ta-market-footer {
  margin-top: 2px;
}

.ta-footer-market-card {
  padding-top: 10px;
}

.ta-gated-card {
  position: relative;
}

.ta-card-lock,
.ta-section-lock {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: inherit;
  background: rgba(4, 10, 18, 0.74);
  backdrop-filter: blur(6px);
}

.ta-card-lock-content,
.ta-section-lock-inner {
  width: min(420px, 100%);
  padding: 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(77, 163, 255, 0.18);
  background: linear-gradient(180deg, rgba(15, 27, 49, 0.98), rgba(8, 16, 30, 0.98));
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.ta-card-lock-content strong,
.ta-section-lock-inner strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.08rem;
  color: #fff;
}

.ta-card-lock-content p,
.ta-section-lock-inner p {
  margin: 0;
  color: var(--ta-text-soft);
  line-height: 1.62;
}

.ta-lock-cta {
  margin-top: 14px;
}

.ta-force-locked > *:not(.ta-section-lock) {
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

.ta-insight-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.ta-insight-modal.is-open {
  display: block;
}

.ta-insight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.8);
  backdrop-filter: blur(8px);
}

.ta-insight-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 28px));
  margin: 52px auto;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 47, 0.98), rgba(9, 16, 28, 0.98));
  border: 1px solid var(--ta-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.ta-insight-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--ta-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ta-text);
  font-size: 1.4rem;
  cursor: pointer;
}

.ta-insight-head {
  padding-right: 54px;
  margin-bottom: 18px;
}

.ta-insight-head h3 {
  margin: 10px 0 6px;
  font-size: 1.4rem;
  color: #f8fbff;
}

.ta-insight-head p,
.ta-insight-content {
  color: var(--ta-text-soft);
}

.ta-insight-grid,
.ta-insight-replay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ta-insight-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ta-text-soft);
  line-height: 1.72;
}

.ta-insight-list li + li {
  margin-top: 8px;
}

.ta-adv-main {
  display: block;
  font-size: 1.02rem;
  line-height: 1.34;
  font-weight: 800;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.ta-adv-meta {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ta-text-faint);
}

.ta-adv-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 12px;
  margin-top: 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.ta-adv-score.good {
  background: rgba(46, 217, 139, 0.14);
  color: #dcfff2;
  border-color: rgba(46, 217, 139, 0.22);
}

.ta-adv-score.mid {
  background: rgba(242, 196, 109, 0.14);
  color: #ffeab8;
  border-color: rgba(242, 196, 109, 0.22);
}

.ta-adv-score.bad {
  background: rgba(255, 109, 135, 0.14);
  color: #ffe0e7;
  border-color: rgba(255, 109, 135, 0.22);
}

#aiMarketStructure,
#aiMomentum,
#aiDeltaPressure,
#aiImbalanceZone {
  display: block;
}

.ta-toast {
  font-family: inherit;
}

/* =========================
   JAUGE SCORE DEMI CERCLE
========================= */
.ta-tv-score-stat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ta-score-gauge {
  margin-top: 8px;
}

.ta-score-gauge-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 180px;
}

.ta-score-gauge-svg {
  width: 100%;
  height: auto;
  display: block;
}

.ta-score-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
  stroke-linecap: round;
}

.ta-score-gauge-progress {
  fill: none;
  stroke: var(--ta-gold);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease, stroke 0.35s ease;
}

.ta-score-gauge-center {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.ta-score-gauge-center strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: #fff;
}

.ta-score-gauge-center small {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ta-text-faint);
  font-weight: 700;
}

/* =========================
   COULEURS DIRECTIONNELLES
========================= */
.ta-bullish-text {
  color: var(--ta-green) !important;
}

.ta-bearish-text {
  color: var(--ta-red) !important;
}

.ta-neutral-text {
  color: var(--ta-gold) !important;
}

.ta-bullish-card {
  border-color: rgba(46, 217, 139, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(46, 217, 139, 0.05);
}

.ta-bearish-card {
  border-color: rgba(255, 109, 135, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 109, 135, 0.05);
}

.ta-neutral-card {
  border-color: rgba(242, 196, 109, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(242, 196, 109, 0.05);
}

@media (max-width: 1500px) {
  .ta-tv-main {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .ta-tv-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ta-tv-premium-bias-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-tv-scenarios-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1280px) {
  .ta-tv-header,
  .ta-tv-hero-grid,
  .ta-tv-main,
  .ta-tv-center-grid,
  .ta-tv-plan-grid,
  .ta-tv-premium-grid,
  .ta-tv-advanced-notes {
    grid-template-columns: 1fr;
  }

  .ta-tv-header-right,
  .ta-tv-bottom-stats,
  .ta-tv-market-grid,
  .ta-tv-exec-stats,
  .ta-tv-advanced-grid,
  .ta-orderflow-grid,
  .ta-orderflow-detail-grid,
  .ta-replay-stats,
  .ta-telegram-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ta-tv-confluence-top,
  .ta-tv-mtf-grid,
  .ta-insight-grid,
  .ta-insight-replay {
    grid-template-columns: 1fr 1fr;
  }

  .ta-tv-sidebar {
    position: static;
  }

  .ta-tv-right {
    grid-template-columns: 1fr;
  }

  .ta-tv-plan-side {
    grid-template-columns: 1fr 1fr;
  }

  .ta-tv-title-wrap {
    grid-template-columns: 1fr;
  }

  .ta-tv-head-signal {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .ta-shell {
    padding: 16px 12px 34px;
  }

  .ta-tv-header-left,
  .ta-tv-header-right,
  .ta-tv-center,
  .ta-tv-right,
  .ta-tv-plan-side,
  .ta-tv-side-stack,
  .ta-tv-main {
    gap: 14px;
  }

  .ta-tv-header-right,
  .ta-tv-bottom-stats,
  .ta-tv-market-grid,
  .ta-tv-exec-stats,
  .ta-tv-confluence-top,
  .ta-tv-mtf-grid,
  .ta-tv-advanced-grid,
  .ta-orderflow-grid,
  .ta-orderflow-detail-grid,
  .ta-orderflow-bars,
  .ta-replay-stats,
  .ta-telegram-status,
  .ta-tv-premium-bias-grid,
  .ta-insight-grid,
  .ta-insight-replay {
    grid-template-columns: 1fr;
  }

  .ta-tv-executive-card,
  .ta-tv-market-card,
  .ta-tv-sidebar,
  .ta-tv-chart-card,
  .ta-tv-confluence-card,
  .ta-tv-levels-card,
  .ta-tv-advanced-card,
  .ta-tv-plan-card,
  .ta-tv-right > .ta-glass-card,
  .ta-tv-premium-desk,
  .ta-footer-market-card {
    padding: 16px;
  }

  .ta-tv-title-wrap h1 {
    font-size: 2.2rem;
  }

  .ta-tv-big-chart {
    height: 320px;
  }

  .ta-watch-item,
  .ta-indicator-row,
  .ta-breakdown-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .ta-breakdown-list strong {
    max-width: 100%;
    text-align: left;
  }

  .ta-watch-price {
    text-align: left;
  }

  .ta-btn,
  .ta-btn-block {
    width: 100%;
  }

  .ta-insight-dialog {
    margin: 16px auto;
    padding: 18px;
  }
}