:root {
  --bg: #070b12;
  --bg-soft: rgba(13, 19, 30, 0.86);
  --border: rgba(232, 199, 132, 0.16);
  --text: #f5efe3;
  --muted: #a9b4c5;
  --green: #18d6a3;
  --red: #ff637d;
  --blue: #5bb7ff;
  --gold: #e6b75f;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(135deg, rgba(230, 183, 95, 0.12) 0 1px, transparent 1px 100%),
    linear-gradient(225deg, rgba(91, 183, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #05070c 0%, #0a1019 48%, #111827 100%);
  background-size: 42px 42px, 58px 58px, auto;
  color: var(--text);
  overflow-x: hidden;
}

.ambient {
  display: none;
}

.ambient-one {
  top: -6rem;
  right: -4rem;
  background: #ffb85c;
}

.ambient-two {
  left: -7rem;
  bottom: -5rem;
  background: #55b8d9;
}

.app-shell {
  width: min(1240px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.15rem 0 3rem;
}

.glass-card {
  background: var(--bg-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  margin-bottom: 1rem;
  background:
    linear-gradient(90deg, rgba(230, 183, 95, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(13, 19, 30, 0.95), rgba(9, 14, 22, 0.92));
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--blue));
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--gold);
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-row h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 900;
}

.hero-copy {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 50rem;
}

.hero-badge {
  white-space: nowrap;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: rgba(24, 214, 163, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 240, 168, 0.2);
}

.mini-btn {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.metric-card,
.info-card {
  padding: 1rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 8rem;
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: currentColor;
  opacity: 0.7;
}

.metric-card span,
.info-card span,
.levels-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.metric-card strong,
.info-card strong,
.levels-card strong {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.55rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.metric-card small,
.info-card small {
  color: var(--muted);
}

.accent-green {
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(24, 214, 163, 0.1), var(--shadow);
}

.accent-red {
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(255, 99, 125, 0.1), var(--shadow);
}

.accent-blue {
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(91, 183, 255, 0.1), var(--shadow);
}

.accent-blue-soft {
  color: #8fd4ff;
  box-shadow: inset 0 0 0 1px rgba(143, 212, 255, 0.1), var(--shadow);
}

.accent-green-soft {
  color: #6ee7c4;
  box-shadow: inset 0 0 0 1px rgba(110, 231, 196, 0.1), var(--shadow);
}

.accent-gold {
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(230, 183, 95, 0.12), var(--shadow);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

.panel-block {
  padding: 0.3rem;
}

.analysis-column,
.live-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-heading h2 {
  margin: 0;
}

.panel-heading p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.signal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.signal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auto-feed-status {
  margin: 0 0 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(74, 199, 255, 0.12);
  background: rgba(74, 199, 255, 0.08);
  color: var(--blue);
}

.signal-form span {
  color: var(--muted);
  font-size: 0.85rem;
}

.signal-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.signal-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.signal-form select option {
  color: #000;
  background: #fff;
}

.signal-form input:focus,
.signal-form select:focus {
  border-color: rgba(74, 199, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(74, 199, 255, 0.08);
}

.signal-form input[readonly] {
  background: rgba(255, 255, 255, 0.025);
  color: #d7e7f2;
  cursor: not-allowed;
}

.form-actions,
.trade-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--green), #00c38a);
  color: #03140f;
}

.secondary-btn {
  background: linear-gradient(135deg, var(--blue), #2f8dff);
  color: #04111d;
}

.success-btn {
  background: rgba(0, 240, 168, 0.14);
  color: var(--green);
}

.danger-btn {
  background: rgba(255, 79, 122, 0.14);
  color: var(--red);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.signal-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.signal-tag {
  min-width: 6rem;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-banner p {
  margin: 0;
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.9rem 0;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.performance-radar-shell {
  margin-bottom: 0.95rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(24, 214, 163, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(91, 183, 255, 0.04));
  border: 1px solid rgba(24, 214, 163, 0.14);
  border-radius: 20px;
}

.performance-radar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.performance-card {
  min-height: 9rem;
  background: rgba(7, 11, 18, 0.72);
  border-color: rgba(24, 214, 163, 0.14);
  box-shadow: inset 0 0 0 1px rgba(24, 214, 163, 0.04);
}

.performance-card strong {
  color: #baffea;
}

.predictive-engine-shell {
  margin-bottom: 0.95rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.predictive-heading {
  margin-bottom: 0.85rem;
}

.predictive-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.predictive-card {
  min-height: 8.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(74, 199, 255, 0.06));
}

.intelligence-card {
  min-height: 9.5rem;
}

.info-card,
.levels-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.levels-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.export-card {
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.export-payload {
  margin: 0;
  padding: 1rem;
  background: rgba(5, 9, 17, 0.92);
  border: 1px solid rgba(74, 199, 255, 0.12);
  border-radius: 16px;
  color: #d9f4ff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.84rem;
  line-height: 1.65;
  max-height: 16rem;
  overflow: auto;
  direction: ltr;
  text-align: left;
}

.levels-card div {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 0.85rem;
}

.platform-card {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.platform-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(74, 199, 255, 0.14);
}

.platform-btn:hover,
.platform-btn:focus-visible {
  background: rgba(74, 199, 255, 0.14);
  outline: none;
}

.custom-platform-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.custom-platform-row input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.custom-platform-row input:focus {
  border-color: rgba(74, 199, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(74, 199, 255, 0.08);
}

.platform-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.platform-note,
.platform-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.platform-status {
  color: var(--blue);
}

.broker-card {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.broker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.broker-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.broker-grid span {
  color: var(--muted);
  font-size: 0.85rem;
}

.broker-grid input,
.broker-grid select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.broker-grid select option {
  color: #000;
  background: #fff;
}

.broker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.broker-note,
.broker-status {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.broker-status {
  color: var(--blue);
}

.live-trading-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
}

.live-market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.live-market-tile {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.live-market-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.live-market-tile strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.08rem;
}

.live-controls-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.75rem;
}

.live-controls-row label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.live-controls-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

.live-controls-row input,
.live-controls-row select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.live-controls-row select option {
  color: #000;
  background: #fff;
}

.live-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.chart-frame-shell {
  position: relative;
  margin-top: 0.95rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #050911;
}

.chart-signal-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 9, 17, 0.18) 0%, rgba(5, 9, 17, 0.02) 25%, rgba(5, 9, 17, 0.26) 100%);
}

.chart-overlay-top {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.current-signal-marker {
  position: absolute;
  left: 50%;
  top: 16%;
  z-index: 4;
  min-width: 5.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.02em;
  color: #fffdf8;
  background: rgba(42, 47, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.current-signal-marker.buy {
  background: rgba(8, 153, 129, 0.94);
}

.current-signal-marker.sell {
  background: rgba(242, 54, 69, 0.94);
}

.current-signal-marker.wait {
  background: rgba(104, 114, 132, 0.92);
}

.chart-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chart-pill-signal.buy {
  color: var(--green);
  border-color: rgba(0, 240, 168, 0.28);
}

.chart-pill-signal.sell {
  color: var(--red);
  border-color: rgba(255, 79, 122, 0.28);
}

.chart-pill-signal.wait {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.28);
}

.chart-pill-ai {
  color: var(--blue);
}

.chart-pill-bias {
  color: #d6dfec;
  max-width: min(15rem, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-pill-bias.bullish {
  color: var(--green);
  border-color: rgba(0, 240, 168, 0.3);
  background: rgba(8, 153, 129, 0.14);
}

.chart-pill-bias.bearish {
  color: var(--red);
  border-color: rgba(255, 79, 122, 0.3);
  background: rgba(242, 54, 69, 0.14);
}

.chart-pill-bias.conflict {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.36);
  background: rgba(255, 209, 102, 0.13);
}

.chart-pill-bias.neutral {
  color: #aeb8c7;
  border-color: rgba(174, 184, 199, 0.22);
}

.chart-overlay-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.chart-overlay-card {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(7, 11, 18, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.chart-overlay-card-wide {
  grid-column: span 2;
}

.chart-overlay-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-overlay-card strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.4;
}

.chart-frame-shell iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.full-chart-body {
  background:
    radial-gradient(circle at top left, rgba(91, 183, 255, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(230, 183, 95, 0.1), transparent 28%),
    linear-gradient(180deg, #05070c 0%, #0a1019 52%, #111827 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.full-chart-body .ambient {
  display: none;
}

.full-chart-shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.full-chart-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1.15rem;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: rgba(8, 13, 21, 0.94);
  box-shadow: none;
}

.full-chart-title h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.full-chart-title p,
.full-chart-meta,
.full-chart-status {
  margin: 0.35rem 0 0;
  color: #a9b4c5;
}

.full-chart-live-price {
  position: relative;
  min-width: 12.5rem;
  padding: 0.58rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 199, 132, 0.18);
  background: rgba(3, 9, 15, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.full-chart-topbar-metrics {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.full-chart-candle-target {
  position: relative;
  min-width: 12.5rem;
  padding: 0.58rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(95, 189, 255, 0.2);
  background: rgba(3, 9, 15, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.full-chart-live-price span,
.full-chart-live-price small,
.full-chart-candle-target span,
.full-chart-candle-target small,
.full-chart-candle-target em {
  display: block;
  color: #a9b4c5;
  font-size: 0.68rem;
  line-height: 1.2;
  font-style: normal;
}

.full-chart-live-price strong,
.full-chart-candle-target strong {
  display: block;
  margin-top: 0.12rem;
  color: #f8fbff;
  font-size: 1.32rem;
  line-height: 1.08;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.full-chart-live-price b,
.full-chart-candle-target b {
  position: absolute;
  top: 0.52rem;
  left: 0.6rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffcb6b;
  font-size: 0.55rem;
  letter-spacing: 0;
}

.full-chart-live-price.live-price-buy {
  border-color: rgba(24, 214, 163, 0.38);
  background: rgba(0, 96, 70, 0.18);
}

.full-chart-live-price.live-price-buy strong,
.full-chart-live-price.live-price-buy b {
  color: #18d6a3;
}

.full-chart-live-price.live-price-sell {
  border-color: rgba(255, 99, 125, 0.38);
  background: rgba(118, 24, 42, 0.2);
}

.full-chart-live-price.live-price-sell strong,
.full-chart-live-price.live-price-sell b {
  color: #ff637d;
}

.full-chart-live-price.live-price-stale {
  border-color: rgba(255, 203, 107, 0.28);
}

.full-chart-candle-target.candle-target-buy {
  border-color: rgba(24, 214, 163, 0.38);
  background: rgba(0, 96, 70, 0.16);
}

.full-chart-candle-target.candle-target-buy strong,
.full-chart-candle-target.candle-target-buy b {
  color: #18d6a3;
}

.full-chart-candle-target.candle-target-sell {
  border-color: rgba(255, 99, 125, 0.38);
  background: rgba(118, 24, 42, 0.18);
}

.full-chart-candle-target.candle-target-sell strong,
.full-chart-candle-target.candle-target-sell b {
  color: #ff637d;
}

.full-chart-candle-target.candle-target-wait {
  border-color: rgba(255, 203, 107, 0.26);
}

.full-chart-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.full-chart-main {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100vh - 5.4rem);
}

.full-chart-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  gap: 0;
  direction: ltr;
}

.full-chart-chart-area {
  position: relative;
  min-width: 0;
  direction: rtl;
}

.full-chart-side-panel {
  position: relative;
  z-index: 5;
  direction: rtl;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem;
  min-height: 24rem;
  height: min(68vh, calc(100vh - 17.5rem));
  background: linear-gradient(180deg, rgba(8, 13, 21, 0.97), rgba(17, 21, 27, 0.95));
  border-left: 1px solid rgba(232, 199, 132, 0.2);
  border-right: 1px solid rgba(91, 183, 255, 0.16);
  box-shadow: 10px 0 34px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.side-panel-heading {
  display: grid;
  gap: 0.2rem;
  padding: 0.25rem 0.2rem 0.55rem;
  border-bottom: 1px solid rgba(232, 199, 132, 0.16);
}

.side-panel-heading span,
.side-signal-card span {
  color: #7c7164;
  font-size: 0.72rem;
  font-weight: 800;
}

.side-panel-heading strong {
  color: #f8fbff;
  font-size: 0.82rem;
  line-height: 1.35;
}

.full-chart-side-panel .side-panel-heading span,
.full-chart-side-panel .side-signal-card span {
  color: rgba(232, 199, 132, 0.8);
}

.side-signal-list {
  display: grid;
  gap: 0.42rem;
  overflow: auto;
  padding-inline-end: 0.15rem;
}

.side-signal-card {
  position: relative;
  display: grid;
  gap: 0.18rem;
  min-height: 3.45rem;
  padding: 0.5rem 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(112, 91, 64, 0.18);
  background: rgba(15, 21, 30, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.side-signal-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -0.38rem;
  width: 0.72rem;
  height: 0.72rem;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid rgba(112, 91, 64, 0.14);
  border-right: 1px solid rgba(112, 91, 64, 0.14);
  background: inherit;
}

.side-signal-card strong {
  color: #f8fbff;
  font-size: 0.84rem;
  line-height: 1.3;
}

.side-signal-card small {
  color: rgba(214, 223, 235, 0.76);
  font-size: 0.66rem;
  line-height: 1.35;
}

.side-execution-card {
  position: relative;
  display: grid;
  gap: 0.36rem;
  padding: 0.68rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 199, 132, 0.34);
  background: linear-gradient(145deg, rgba(24, 31, 43, 0.98), rgba(11, 16, 24, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 14px 30px rgba(0, 0, 0, 0.24);
}

.side-execution-card span,
.side-execution-card small {
  color: rgba(214, 223, 235, 0.78);
  font-size: 0.66rem;
  font-weight: 800;
}

.side-execution-card strong {
  color: #f8fbff;
  font-size: 1.05rem;
  line-height: 1.2;
}

.side-execution-buy {
  border-color: rgba(0, 240, 168, 0.48);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 168, 0.12), 0 15px 30px rgba(0, 178, 109, 0.18);
}

.side-execution-sell {
  border-color: rgba(255, 79, 122, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 122, 0.12), 0 15px 30px rgba(225, 66, 66, 0.18);
}

.side-execution-wait {
  border-color: rgba(232, 199, 132, 0.36);
}

.side-probability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.side-probability-row b {
  color: #f8fbff;
  font-size: 0.76rem;
}

.side-probability-track {
  position: relative;
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.side-probability-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 260ms ease;
}

.side-probability-buy i {
  background: linear-gradient(90deg, #00f0a8, #68ffd1);
}

.side-probability-sell i {
  background: linear-gradient(90deg, #ff4f7a, #ffc0cb);
}

.side-signal-buy {
  border-color: rgba(0, 178, 109, 0.46);
  background: linear-gradient(135deg, rgba(0, 178, 109, 0.24), rgba(12, 34, 28, 0.94));
  box-shadow: 0 10px 24px rgba(0, 178, 109, 0.16);
}

.side-signal-sell {
  border-color: rgba(225, 66, 66, 0.48);
  background: linear-gradient(135deg, rgba(225, 66, 66, 0.22), rgba(36, 18, 18, 0.94));
  box-shadow: 0 10px 24px rgba(225, 66, 66, 0.16);
}

.side-signal-info {
  border-color: rgba(50, 128, 220, 0.46);
  background: linear-gradient(135deg, rgba(50, 128, 220, 0.22), rgba(16, 26, 40, 0.94));
  box-shadow: 0 10px 24px rgba(50, 128, 220, 0.15);
}

.side-signal-warn {
  border-color: rgba(232, 154, 30, 0.5);
  background: linear-gradient(135deg, rgba(232, 154, 30, 0.25), rgba(38, 28, 14, 0.94));
  box-shadow: 0 10px 24px rgba(232, 154, 30, 0.15);
}

.side-signal-wait,
.side-signal-neutral {
  border-color: rgba(181, 133, 54, 0.42);
  background: linear-gradient(135deg, rgba(181, 133, 54, 0.24), rgba(31, 25, 17, 0.94));
  box-shadow: 0 10px 24px rgba(181, 133, 54, 0.14);
}

.side-arrow-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.side-arrow-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 8px rgba(64, 48, 28, 0.16));
}

.side-arrow-dot {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.8;
}

.full-chart-side-panel .side-docked-forecast {
  position: static;
  inset: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin-top: 0.2rem;
  opacity: 1;
  z-index: 1;
}

.full-chart-side-panel .side-docked-forecast strong,
.full-chart-side-panel .side-docked-forecast small,
.full-chart-side-panel .side-docked-forecast span {
  overflow-wrap: anywhere;
}

.full-chart-frame-shell {
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: rgba(255, 250, 242, 0.92);
}

.full-chart-canvas {
  display: block;
  width: 100%;
  height: min(68vh, calc(100vh - 17.5rem));
  min-height: 24rem;
}

.full-chart-tv-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #ffffff;
}

.full-chart-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem 1rem 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.35) 0%, rgba(255, 248, 239, 0.08) 26%, transparent 100%);
}

.chart-overlay-top {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.full-chart-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.full-chart-data-dock {
  margin-top: 0;
  padding: 0.45rem 0.75rem 0.85rem;
  background: rgba(255, 247, 236, 0.72);
  border-top: 1px solid rgba(104, 82, 57, 0.12);
}

.full-chart-bottom-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.2rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.buy-percent-card strong {
  color: var(--green);
}

.sell-percent-card strong {
  color: var(--red);
}

.exit-guard-card {
  border-color: rgba(232, 199, 132, 0.36);
  background: linear-gradient(145deg, rgba(255, 247, 236, 0.94), rgba(255, 235, 196, 0.76));
}

.exit-guard-card strong {
  color: #7b4d00;
}

@media (max-width: 980px) {
  .full-chart-main {
    min-height: 0;
  }

  .full-chart-stage {
    grid-template-columns: 1fr;
  }

  .full-chart-side-panel {
    order: 2;
    height: auto;
    min-height: 0;
    max-height: none;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid rgba(115, 88, 59, 0.14);
    box-shadow: none;
  }

  .side-signal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .side-signal-card::after,
  .side-arrow-layer {
    display: none;
  }

  .full-chart-canvas {
    height: 58vh;
    min-height: 20rem;
  }

  .full-chart-bottom-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .side-signal-list {
    grid-template-columns: 1fr;
  }

  .full-chart-canvas {
    height: 50vh;
    min-height: 17rem;
  }

  .full-chart-bottom-insights {
    grid-template-columns: 1fr;
  }
}

.bottom-insight-card strong {
  font-size: 0.85rem;
  line-height: 1.35;
}

.bottom-insight-card {
  min-height: 5.5rem;
}

.chart-insight-stack {
  position: absolute;
  left: 50%;
  top: 4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translate(-50%, -100%);
  min-width: 10.5rem;
  max-width: 13rem;
  opacity: 0;
  transition: top 180ms ease, left 180ms ease, opacity 180ms ease;
}

.candle-forecast-panel {
  position: absolute;
  left: 50%;
  top: 8rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 11.5rem;
  max-width: 14.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 249, 241, 0.96);
  border: 1px solid rgba(125, 97, 69, 0.18);
  box-shadow: 0 12px 28px rgba(144, 105, 59, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: top 180ms ease, left 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.candle-forecast-kicker {
  color: #927862;
  font-size: 0.66rem;
  font-weight: 800;
}

.candle-forecast-panel strong {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
}

.candle-forecast-panel small {
  color: #786e64;
  font-size: 0.68rem;
  line-height: 1.35;
}

.candle-forecast-buy {
  border-color: rgba(0, 178, 109, 0.52);
  background: linear-gradient(135deg, rgba(212, 255, 237, 0.98), rgba(238, 255, 248, 0.96));
  box-shadow: 0 12px 28px rgba(0, 178, 109, 0.18);
}

.candle-forecast-sell {
  border-color: rgba(225, 66, 66, 0.52);
  background: linear-gradient(135deg, rgba(255, 222, 222, 0.98), rgba(255, 241, 240, 0.96));
  box-shadow: 0 12px 28px rgba(225, 66, 66, 0.18);
}

.candle-forecast-neutral {
  border-color: rgba(181, 133, 54, 0.46);
  background: linear-gradient(135deg, rgba(255, 239, 207, 0.98), rgba(255, 250, 240, 0.96));
  box-shadow: 0 12px 28px rgba(181, 133, 54, 0.15);
}

.candle-forecast-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 99, 70, 0.08);
  border: 1px solid rgba(124, 99, 70, 0.12);
  color: #584f47;
  font-size: 0.68rem;
  font-weight: 800;
}

.candle-forecast-test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 99, 70, 0.08);
  border: 1px solid rgba(124, 99, 70, 0.12);
  color: #5f564d;
  font-size: 0.64rem;
  font-weight: 800;
}

.candle-forecast-test-yes {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.26);
}

.candle-forecast-test-no {
  color: var(--green);
  border-color: rgba(0, 240, 168, 0.24);
}

.candle-forecast-test-neutral {
  color: var(--blue);
  border-color: rgba(74, 199, 255, 0.24);
}

.prediction-zone {
  position: absolute;
  z-index: 1;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.prediction-zone-up {
  background: linear-gradient(90deg, rgba(0, 240, 168, 0.04), rgba(0, 240, 168, 0.15));
  border: 1px solid rgba(0, 240, 168, 0.16);
}

.prediction-zone-down {
  background: linear-gradient(90deg, rgba(255, 79, 122, 0.04), rgba(255, 79, 122, 0.15));
  border: 1px solid rgba(255, 79, 122, 0.16);
}

.prediction-zone-neutral {
  background: linear-gradient(90deg, rgba(74, 199, 255, 0.03), rgba(74, 199, 255, 0.12));
  border: 1px solid rgba(74, 199, 255, 0.14);
}

.prediction-zone-retest-up {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.04), rgba(0, 240, 168, 0.12));
  border: 1px solid rgba(255, 209, 102, 0.18);
}

.prediction-zone-retest-down {
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.04), rgba(255, 79, 122, 0.12));
  border: 1px solid rgba(255, 209, 102, 0.18);
}

.candle-forecast-next-up {
  color: var(--green);
  border-color: rgba(0, 240, 168, 0.22);
}

.candle-forecast-next-down {
  color: var(--red);
  border-color: rgba(255, 79, 122, 0.22);
}

.candle-forecast-next-neutral {
  color: var(--blue);
  border-color: rgba(74, 199, 255, 0.22);
}

.next-candle-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  min-width: 3.6rem;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: top 180ms ease, left 180ms ease, opacity 180ms ease;
}

.next-candle-range-box {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 4rem;
  border-radius: 0.6rem;
  background: rgba(19, 23, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.next-candle-range-fill {
  position: absolute;
  left: 0.12rem;
  right: 0.12rem;
  bottom: 0.12rem;
  top: 0.12rem;
  border-radius: 0.45rem;
  background: rgba(74, 199, 255, 0.2);
  border: 1px solid rgba(74, 199, 255, 0.4);
}

.next-candle-inline-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.08rem 0.22rem;
  border-radius: 999px;
  background: rgba(19, 23, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e7f3fb;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}

.next-candle-inline-open {
  top: 0.22rem;
}

.next-candle-inline-close {
  bottom: 0.22rem;
}

.next-candle-marker small {
  color: #dce8f2;
  font-size: 0.6rem;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.next-candle-price-label {
  position: absolute;
  right: calc(100% + 0.35rem);
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: rgba(19, 23, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce8f2;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.next-candle-price-high {
  top: -0.2rem;
}

.next-candle-price-low {
  bottom: 1rem;
}

.next-candle-up .next-candle-range-box {
  border-color: rgba(0, 240, 168, 0.3);
}

.next-candle-up .next-candle-range-fill {
  border-color: rgba(0, 240, 168, 0.4);
  background: linear-gradient(180deg, rgba(0, 240, 168, 0.08), rgba(0, 240, 168, 0.22));
}

.next-candle-down .next-candle-range-box {
  border-color: rgba(255, 79, 122, 0.3);
}

.next-candle-down .next-candle-range-fill {
  border-color: rgba(255, 79, 122, 0.4);
  background: linear-gradient(180deg, rgba(255, 79, 122, 0.22), rgba(255, 79, 122, 0.08));
}

.next-candle-neutral .next-candle-range-box {
  border-color: rgba(74, 199, 255, 0.28);
}

.next-candle-neutral .next-candle-range-fill {
  border-color: rgba(74, 199, 255, 0.36);
  background: linear-gradient(180deg, rgba(74, 199, 255, 0.12), rgba(74, 199, 255, 0.2));
}

.next-candle-retest-up .next-candle-range-box {
  border-color: rgba(255, 209, 102, 0.26);
}

.next-candle-retest-up .next-candle-range-fill {
  border-color: rgba(255, 209, 102, 0.36);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.1), rgba(0, 240, 168, 0.18));
}

.next-candle-retest-down .next-candle-range-box {
  border-color: rgba(255, 209, 102, 0.26);
}

.next-candle-retest-down .next-candle-range-fill {
  border-color: rgba(255, 209, 102, 0.36);
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.12), rgba(255, 79, 122, 0.18));
}

.tv-action-label {
  position: absolute;
  left: 72%;
  top: 28%;
  z-index: 3;
  min-width: 7.2rem;
  max-width: 11rem;
  padding: 0.42rem 0.7rem;
  border-radius: 8px;
  transform: translate(-50%, -120%);
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef7ff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: left 180ms ease, top 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.tv-action-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0;
  height: 0;
  border-inline: 0.42rem solid transparent;
  border-top: 0.46rem solid rgba(17, 24, 39, 0.9);
  transform: translateX(-50%);
}

.tv-action-buy {
  border-color: rgba(0, 240, 168, 0.45);
  color: var(--green);
}

.tv-action-sell {
  border-color: rgba(255, 79, 122, 0.45);
  color: var(--red);
}

.tv-action-neutral {
  border-color: rgba(74, 199, 255, 0.32);
  color: var(--blue);
}

.tv-volatility-box {
  position: absolute;
  z-index: 1;
  min-width: 3.4rem;
  min-height: 2.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0;
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.tv-volatility-box span {
  position: absolute;
  right: 0.35rem;
  top: -1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.92);
  color: #f8fbff;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.tv-volatility-strong {
  border: 2px solid rgba(255, 209, 102, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.18), 0 0 22px rgba(255, 209, 102, 0.16);
}

.tv-volatility-strong span {
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.34);
}

.tv-volatility-weak {
  border: 2px solid rgba(74, 199, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(74, 199, 255, 0.16), 0 0 22px rgba(74, 199, 255, 0.12);
}

.tv-volatility-weak span {
  color: var(--blue);
  border: 1px solid rgba(74, 199, 255, 0.32);
}

.tv-candle-path {
  position: absolute;
  z-index: 2;
  left: 78%;
  top: 32%;
  width: 0;
  min-height: 2.4rem;
  border-left: 3px dashed rgba(74, 199, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: left 180ms ease, top 180ms ease, height 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.tv-candle-path::after {
  content: "";
  position: absolute;
  left: -0.44rem;
  width: 0;
  height: 0;
  border-inline: 0.34rem solid transparent;
}

.tv-candle-path-up::after {
  top: -0.1rem;
  border-bottom: 0.58rem solid var(--green);
}

.tv-candle-path-down::after {
  bottom: -0.1rem;
  border-top: 0.58rem solid var(--red);
}

.tv-candle-path-up {
  border-left-color: rgba(0, 240, 168, 0.78);
}

.tv-candle-path-down {
  border-left-color: rgba(255, 79, 122, 0.78);
}

.tv-candle-path-neutral {
  border-left-color: rgba(74, 199, 255, 0.72);
}

.tv-candle-path span {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8rem;
  max-width: 10.5rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f8ff;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.chart-insight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.95);
  border: 1px solid rgba(125, 97, 69, 0.16);
  color: #4a443e;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.chart-insight-buy {
  color: var(--green);
  border-color: rgba(0, 240, 168, 0.22);
}

.chart-insight-sell {
  color: var(--red);
  border-color: rgba(255, 79, 122, 0.22);
}

.chart-insight-warn {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.22);
}

.chart-insight-info {
  color: var(--blue);
  border-color: rgba(74, 199, 255, 0.22);
}

.chart-insight-neutral {
  color: #dce8f2;
  border-color: rgba(255, 255, 255, 0.12);
}

.trade-zone {
  position: absolute;
  left: 72%;
  width: 3.2rem;
  min-width: 3.2rem;
  max-width: 3.2rem;
  height: 4.4rem;
  padding: 0;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  transition: top 180ms ease, opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  opacity: 0.96;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.trade-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid currentColor;
  opacity: 0.98;
}

.trade-zone::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  opacity: 0.5;
}

.trade-zone-buy {
  color: #089981;
  background: rgba(8, 153, 129, 0.08);
}

.trade-zone-sell {
  color: #f23645;
  background: rgba(242, 54, 69, 0.08);
}

.trade-zone-badge {
  position: absolute;
  top: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.95);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.trade-zone strong {
  position: absolute;
  top: 100%;
  margin-top: 0.35rem;
  left: 50%;
  width: 5.2rem;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.72rem;
  color: var(--text);
}

.trade-zone small {
  position: absolute;
  top: calc(100% + 1.35rem);
  left: 50%;
  width: 5.6rem;
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  line-height: 1.2;
  font-size: 0.65rem;
}

.full-chart-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: stretch;
}

.full-chart-predictive-shell {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(8, 13, 21, 0.78);
  border: 1px solid rgba(232, 199, 132, 0.12);
}

.full-chart-ladder-shell {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(24, 214, 163, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(8, 13, 21, 0.82), rgba(11, 19, 31, 0.92));
  border: 1px solid rgba(24, 214, 163, 0.14);
}

.full-chart-ladder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.ladder-chart-card {
  min-height: 5.5rem;
  background: linear-gradient(180deg, rgba(12, 20, 31, 0.96), rgba(8, 13, 21, 0.9));
  border-color: rgba(24, 214, 163, 0.12);
}

.ladder-chart-card strong {
  color: #baffea;
}

.ladder-chart-card small {
  display: block;
  margin-top: 0.35rem;
  color: #a9b4c5;
  font-size: 0.72rem;
  line-height: 1.25;
}
.full-chart-timeline-shell {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at top left, rgba(91, 183, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(8, 13, 21, 0.82), rgba(9, 16, 27, 0.94));
  border: 1px solid rgba(91, 183, 255, 0.14);
}
.full-chart-timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.timeline-stage {
  position: relative;
  min-height: 5.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(10, 16, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline-stage::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 10px 0 0 10px;
  background: currentColor;
  opacity: 0.75;
}
.timeline-stage span {
  display: block;
  color: #a9b4c5;
  font-size: 0.72rem;
}
.timeline-stage strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.25;
}
.timeline-stage small {
  display: block;
  margin-top: 0.35rem;
  color: #a9b4c5;
  font-size: 0.71rem;
  line-height: 1.25;
}
.timeline-stage-buy {
  color: var(--green);
}
.timeline-stage-sell {
  color: var(--red);
}
.timeline-stage-wait {
  color: var(--gold);
}
.timeline-stage-warn {
  color: #ff8f5a;
}
.timeline-stage-neutral {
  color: #8fa2b7;
}

.full-chart-predictive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.predictive-chart-card {
  min-height: 5.3rem;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.94), rgba(8, 13, 21, 0.9));
}

.predictive-chart-card small {
  display: block;
  margin-top: 0.35rem;
  color: #a9b4c5;
  font-size: 0.72rem;
  line-height: 1.25;
}

.full-chart-card {
  min-height: 4.8rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(10, 16, 25, 0.84);
  border: 1px solid rgba(232, 199, 132, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.full-chart-card span {
  display: block;
  color: #a9b4c5;
  font-size: 0.72rem;
}

.full-chart-topbar .ghost-btn,
.full-chart-topbar .secondary-btn,
.full-chart-topbar .success-btn,
.full-chart-topbar .primary-btn {
  min-height: 2.3rem;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 199, 132, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f5efe3;
}

.full-chart-topbar .primary-btn {
  background: linear-gradient(135deg, #ffe4b5, #ffd089);
  color: #7a4b00;
  border-color: rgba(215, 157, 58, 0.32);
}

.full-chart-topbar .secondary-btn {
  background: linear-gradient(135deg, #59b6f2, #2f8fda);
  color: #fffdf9;
  border-color: rgba(47, 143, 218, 0.34);
}

.full-chart-topbar .success-btn,
.live-mode-active {
  background: linear-gradient(135deg, #18d6a3, #0ea58a) !important;
  color: #03130e !important;
  border-color: rgba(24, 214, 163, 0.44) !important;
}

.full-chart-topbar .ghost-btn:hover,
.full-chart-topbar .secondary-btn:hover,
.full-chart-topbar .success-btn:hover,
.full-chart-topbar .primary-btn:hover {
  filter: brightness(1.04);
}

.chart-pill {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(8, 13, 21, 0.9);
  border: 1px solid rgba(232, 199, 132, 0.14);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chart-pill-signal.buy {
  color: #089981;
  border-color: rgba(8, 153, 129, 0.4);
}

.chart-pill-signal.sell {
  color: #f23645;
  border-color: rgba(242, 54, 69, 0.4);
}

.chart-pill-signal.wait {
  color: #ffcb6b;
  border-color: rgba(255, 203, 107, 0.32);
}

.chart-pill-ai {
  color: #4fc3f7;
}

.chart-pill-bias {
  max-width: min(15rem, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-pill-bias.bullish {
  color: #18d6a3;
  border-color: rgba(24, 214, 163, 0.38);
  background: rgba(24, 214, 163, 0.12);
}

.chart-pill-bias.bearish {
  color: #ff637d;
  border-color: rgba(255, 99, 125, 0.38);
  background: rgba(255, 99, 125, 0.12);
}

.chart-pill-bias.conflict {
  color: #ffcb6b;
  border-color: rgba(255, 203, 107, 0.38);
  background: rgba(255, 203, 107, 0.12);
}

.chart-pill-bias.neutral {
  color: #aeb8c7;
  border-color: rgba(174, 184, 199, 0.22);
}

.full-chart-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.25;
  max-height: 2.5em;
  overflow: hidden;
}

.full-chart-card-wide {
  grid-column: span 2;
}

.full-chart-lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 9, 17, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.full-chart-lock.active {
  display: flex;
}

.full-chart-lock-card {
  width: min(32rem, 100%);
  padding: 1.4rem;
  text-align: center;
}

.full-chart-lock-card h2 {
  margin: 0 0 0.6rem;
}

.full-chart-lock-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.full-chart-lock-card .primary-btn,
.full-chart-lock-card .ghost-btn {
  pointer-events: auto;
}

.protection-note {
  margin-top: 0.7rem;
  color: var(--gold);
}

.live-chart-status {
  margin: 0.8rem 0 0;
  color: var(--blue);
}

.signal-buy .signal-tag {
  background: rgba(0, 240, 168, 0.18);
  color: var(--green);
}

.signal-sell .signal-tag {
  background: rgba(255, 79, 122, 0.18);
  color: var(--red);
}

.signal-wait .signal-tag {
  background: rgba(255, 209, 102, 0.18);
  color: var(--gold);
}

@media (max-width: 900px) {
  .dashboard-grid,
  .layout-grid,
  .signal-form,
  .mini-grid,
  .intelligence-grid,
  .predictive-engine-grid,
  .levels-card,
  .live-market-grid,
  .live-controls-row,
  .broker-grid,
  .platform-grid,
  .custom-platform-row {
    grid-template-columns: 1fr;
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .metric-card strong,
  .info-card strong,
  .levels-card strong {
    font-size: 1.45rem;
  }

  .chart-overlay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-overlay-card-wide {
    grid-column: span 2;
  }

  .full-chart-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .full-chart-topbar-metrics,
  .full-chart-live-price,
  .full-chart-candle-target {
    width: 100%;
  }

  .full-chart-actions {
    justify-content: flex-start;
  }

  .full-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .full-chart-predictive-grid {
    grid-template-columns: 1fr;
  }

  .full-chart-card-wide {
    grid-column: span 2;
  }

  .full-chart-card {
    min-height: 4.3rem;
    padding: 0.55rem 0.65rem;
  }

  .full-chart-card strong {
    font-size: 0.82rem;
  }

  .full-chart-canvas {
    height: 78vh;
    min-height: 78vh;
  }

  .trade-zone {
    left: 69%;
    width: 2.6rem;
    min-width: 2.6rem;
    max-width: 2.6rem;
    height: 3.8rem;
  }

  .chart-insight-stack {
    min-width: 9rem;
    max-width: 11rem;
  }

  .candle-forecast-panel {
    min-width: 9.8rem;
    max-width: 12rem;
    padding: 0.55rem 0.65rem;
  }

  .candle-forecast-panel strong {
    font-size: 0.76rem;
  }

  .candle-forecast-panel small,
  .candle-forecast-next,
  .candle-forecast-kicker,
  .candle-forecast-test {
    font-size: 0.61rem;
  }

  .next-candle-range-box {
    width: 1rem;
    height: 3.4rem;
  }

  .next-candle-inline-label {
    font-size: 0.46rem;
  }

  .next-candle-price-label {
    font-size: 0.54rem;
  }

  .next-candle-marker small {
    font-size: 0.56rem;
  }

  .chart-insight-badge {
    font-size: 0.61rem;
    min-height: 1.7rem;
    padding: 0.28rem 0.55rem;
  }

  .trade-zone strong {
    width: 4.2rem;
    font-size: 0.64rem;
  }

  .trade-zone small {
    width: 4.6rem;
    font-size: 0.58rem;
  }
}

.full-chart-body {
  --bg: #070b12;
  --bg-soft: rgba(13, 19, 30, 0.86);
  --border: rgba(232, 199, 132, 0.16);
  --text: #f5efe3;
  --muted: #a9b4c5;
  --green: #18d6a3;
  --red: #ff637d;
  --blue: #5bb7ff;
  --gold: #e6b75f;
}

.signal-form input,
.signal-form select,
.live-controls-row input,
.live-controls-row select,
.broker-grid input,
.broker-grid select,
.custom-platform-row input {
  border-color: rgba(232, 199, 132, 0.14);
  border-radius: 8px;
  background: rgba(4, 8, 14, 0.54);
  color: var(--text);
}

.signal-form input[readonly] {
  background: rgba(4, 8, 14, 0.38);
  color: #c9d7e8;
}

button,
.signal-banner,
.signal-tag,
.predictive-engine-shell,
.info-card,
.levels-card,
.levels-card div,
.export-card,
.platform-card,
.broker-card,
.live-trading-card,
.live-market-tile,
.chart-frame-shell,
.chart-overlay-card,
.chart-pill,
.auto-feed-status {
  border-radius: 8px;
}

.info-card,
.levels-card,
.export-card,
.platform-card,
.broker-card,
.live-trading-card,
.live-market-tile,
.predictive-engine-shell,
.signal-banner {
  background: rgba(10, 16, 25, 0.78);
  border: 1px solid rgba(232, 199, 132, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.panel-heading h2,
.metric-card strong,
.info-card strong,
.levels-card strong {
  color: var(--text);
}

.auto-feed-status,
.platform-status,
.broker-status,
.live-chart-status {
  background: rgba(91, 183, 255, 0.08);
  border: 1px solid rgba(91, 183, 255, 0.16);
  color: #9bd7ff;
}

.primary-btn,
.secondary-btn,
.success-btn,
.danger-btn,
.ghost-btn,
.platform-btn {
  min-height: 2.8rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.success-btn:hover,
.danger-btn:hover,
.ghost-btn:hover,
.platform-btn:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.platform-btn {
  border: 1px solid rgba(232, 199, 132, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.layout-grid {
  background: rgba(8, 13, 21, 0.76);
}

@media (max-width: 1180px) {
  .full-chart-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .full-chart-ladder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .full-chart-timeline-grid {
    grid-template-columns: 1fr;
  }
  .full-chart-ladder-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard-grid,
  .layout-grid,
  .signal-form,
  .mini-grid,
  .intelligence-grid,
  .advanced-grid,
  .predictive-engine-grid,
  .levels-card,
  .live-market-grid,
  .live-controls-row,
  .broker-grid,
  .platform-grid,
  .custom-platform-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .form-actions,
  .trade-actions,
  .broker-actions,
  .platform-actions,
  .live-actions-row {
    width: 100%;
  }

  .hero-actions > *,
  .form-actions > *,
  .trade-actions > *,
  .broker-actions > *,
  .platform-actions > *,
  .live-actions-row > * {
    flex: 1 1 100%;
  }
}