/* ── Backtester Panel ───────────────────────────────────────────────────── */
.cc-backtester-input {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cc-backtester-input input[type="text"] {
  background: #030d1a;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: .8rem;
  padding: 6px 10px;
  width: 110px;
  font-family: inherit;
}
.cc-backtester-input input[type="text"]::placeholder { color: #475569; }
.cc-backtester-input select {
  background: #030d1a;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: .8rem;
  padding: 6px 10px;
  font-family: inherit;
  cursor: pointer;
}
.cc-backtest-run-btn {
  background: #0e2e47;
  border: 1px solid #1e5f8a;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: .8rem;
  padding: 6px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.cc-backtest-run-btn:hover { background: #1e3a5f; }
.cc-backtest-run-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Stats Grid ─────────────────────────────────────────────────────────── */
.cc-backtest-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .cc-backtest-stats { grid-template-columns: repeat(2, 1fr); }
}
.cc-stat-tile {
  background: #030d1a;
  border: 1px solid #0d2035;
  border-radius: 8px;
  padding: 10px 12px;
  position: relative;
}
.cc-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.2;
}
.cc-stat-value--positive { color: #4ade80; }
.cc-stat-value--negative { color: #f87171; }
.cc-stat-label-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}
.cc-stat-label {
  font-size: .6rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cc-stat-info {
  font-size: .65rem;
  color: #1e3a5f;
  cursor: pointer;
  position: relative;
  line-height: 1;
}
.cc-stat-info:hover { color: #94a3b8; }

/* ── Tooltip ────────────────────────────────────────────────────────────── */
.cc-stat-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #0a2038;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  color: #94a3b8;
  font-size: .62rem;
  line-height: 1.5;
  padding: 6px 10px;
  width: 180px;
  z-index: 20;
  white-space: normal;
  pointer-events: none;
}
.cc-stat-info:hover .cc-stat-tooltip,
.cc-stat-info:focus .cc-stat-tooltip { display: block; }

/* ── Equity Chart ───────────────────────────────────────────────────────── */
.cc-equity-chart-wrap {
  background: #030d1a;
  border: 1px solid #0d2035;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cc-equity-chart-title {
  font-size: .6rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.cc-equity-chart-canvas {
  height: 140px;
  width: 100%;
}

/* ── Nudge ──────────────────────────────────────────────────────────────── */
.cc-backtest-nudge {
  font-size: .7rem;
  color: #94a3b8;
  background: #040c18;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.5;
}
.cc-backtest-nudge strong { color: #06b6d4; }

/* ── Error / Loading ────────────────────────────────────────────────────── */
.cc-backtest-error {
  font-size: .75rem;
  color: #f87171;
  margin-top: 8px;
}
