/* TTI Demo - Transparent Trading Intelligence */

/* Hero Section */
.tti-hero {
  padding: 140px 20px 40px;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(77, 201, 255, 0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.tti-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 201, 255, 0.12) 0%, transparent 70%);
  animation: heroGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.tti-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.tti-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.tti-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tti-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Hero Links */
.hero-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.hero-link-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 24px 40px;
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-subtle);
}

/* Hero CTA */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  color: #05080f;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(77, 201, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(77, 201, 255, 0.4);
}

.cta-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Demo Section - Vertical Layout */
.tti-demo-section {
  padding: 30px 20px 80px;
}

.tti-container-vertical {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Chart Panel */
.chart-panel {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.symbol {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* Asset Selector */
.asset-selector {
  position: relative;
}

.asset-selector-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  transition: color 0.2s;
}

.asset-selector-btn:hover {
  color: var(--accent);
}

.asset-selector-btn svg {
  transition: transform 0.2s;
}

.asset-selector.open .asset-selector-btn svg {
  transform: rotate(180deg);
}

.asset-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 140px;
  background: rgba(10, 12, 20, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.asset-selector.open .asset-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.asset-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
}

.asset-option:hover {
  background: rgba(77, 201, 255, 0.1);
  color: var(--text-main);
}

.asset-option.active {
  background: rgba(77, 201, 255, 0.15);
  color: var(--accent);
}

.timeframe {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(77, 201, 255, 0.08);
  border-radius: 4px;
}

/* Price Display */
.price-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border-subtle);
}

.current-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.price-change {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.price-change.positive {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.price-change.negative {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.model-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.chart-area {
  padding: 16px 20px;
  position: relative;
}

.kline-chart {
  width: 100%;
  height: auto;
  display: block;
}

/* Signal markers - Fixed hover */
.signal-group {
  cursor: pointer;
}

.signal-hitarea {
  fill: transparent;
  pointer-events: all;
}

.signal-glow {
  transition: fill 0.2s ease;
  pointer-events: none;
  animation: signalPulse 2.5s ease-in-out infinite;
}

.signal-dot {
  transition: r 0.2s ease;
  pointer-events: none;
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.signal-group:hover .signal-glow {
  fill: rgba(77, 201, 255, 0.4);
  animation: none;
}

.signal-group:hover .signal-dot {
  r: 7;
}

.signal-group.sell .signal-glow {
  animation: signalPulseSell 2.5s ease-in-out infinite;
}

@keyframes signalPulseSell {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.signal-group.sell:hover .signal-glow {
  fill: rgba(245, 158, 11, 0.4);
  animation: none;
}

.signal-group.active .signal-dot {
  r: 8;
}

.signal-group.active .signal-glow {
  fill: rgba(77, 201, 255, 0.35);
  animation: none;
}

.signal-group.sell.active .signal-glow {
  fill: rgba(245, 158, 11, 0.35);
  animation: none;
}

/* Tooltip */
.signal-tooltip {
  position: absolute;
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: 220px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.signal-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.signal-tooltip .tooltip-action {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--accent);
}

.signal-tooltip.sell .tooltip-action {
  color: #f59e0b;
}

.signal-tooltip .tooltip-reason {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Chart footer */
.chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
}

.legend {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.cyan { background: var(--accent); }
.dot.amber { background: #f59e0b; }

.chart-hint {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Decision Card - Horizontal Layout */
.decision-card-horizontal {
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 200px;
}

/* Signal Navigator */
.signal-navigator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(10, 12, 20, 0.6);
  border-radius: var(--radius-lg);
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: rgba(77, 201, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-arrow:hover:not(:disabled) {
  background: rgba(77, 201, 255, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.signal-dots {
  display: flex;
  gap: 8px;
}

.signal-dot-nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signal-dot-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.signal-dot-nav.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

.signal-dot-nav.sell.active {
  background: #f59e0b;
  border-color: #f59e0b;
}

.nav-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-left: 12px;
}

.card-left {
  padding: 20px 24px;
  border-right: 1px solid var(--border-subtle);
}

.card-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.action-label {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.action-label.aggressive {
  background: rgba(77, 201, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(77, 201, 255, 0.25);
}

.action-label.defensive {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.signal-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.card-close:hover {
  color: var(--text-main);
}

/* Narrative Block */
.narrative-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.narrative-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.narrative-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.narrative-item.main .narrative-label { color: var(--accent); }
.narrative-item.conflict .narrative-label { color: #f59e0b; }
.narrative-item.execution .narrative-label { color: var(--text-muted); }

.narrative-item p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.narrative-item.main p {
  color: var(--text-main);
}

.narrative-item.conflict p {
  color: rgba(245, 158, 11, 0.85);
}

.narrative-item.execution p {
  font-style: italic;
  color: var(--text-muted);
}

/* Signal Result Badge */
.signal-result {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: auto;
}

.signal-result.profit {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.signal-result.loss {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.signal-result.pending {
  background: rgba(77, 201, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(77, 201, 255, 0.25);
}

/* Card Right */
.card-right {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-block {
  display: flex;
  justify-content: center;
}

.radar {
  width: 160px;
  height: 160px;
}

.radar-ring {
  fill: none;
  stroke: rgba(77, 201, 255, 0.12);
  stroke-width: 1;
}

.radar-ring.inner {
  stroke: rgba(77, 201, 255, 0.08);
}

.radar-ring.innermost {
  stroke: rgba(77, 201, 255, 0.05);
}

.radar-fill {
  fill: rgba(77, 201, 255, 0.15);
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: all 0.4s ease;
}

.radar-labels text {
  font-size: 8px;
  fill: var(--text-muted);
  text-anchor: middle;
}

.radar-labels text:nth-child(2),
.radar-labels text:nth-child(3) {
  text-anchor: start;
}

.radar-labels text:nth-child(5),
.radar-labels text:nth-child(6) {
  text-anchor: end;
}

/* Confidence Block */
.confidence-block {
  padding: 0;
}

.confidence-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.confidence-pct {
  color: var(--accent);
  font-weight: 600;
}

.confidence-track {
  height: 4px;
  background: rgba(77, 201, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.card-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
  margin-top: auto;
}

/* Volume bars */
.volume-bar {
  opacity: 0.5;
}

/* Trade History Panel */
.trade-history-panel {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Performance Panel */
.performance-panel {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Questions Panel - AI Chat */
.questions-panel {
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.questions-panel.collapsed .chat-body {
  display: none;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.2s;
}

.questions-panel.collapsed .chat-header {
  border-bottom: none;
}

.chat-header:hover {
  background: rgba(77, 201, 255, 0.03);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.chat-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.questions-panel.collapsed .chat-toggle {
  transform: rotate(-90deg);
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.chat-messages {
  padding: 16px 20px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.chat-message.ai {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(77, 201, 255, 0.15);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-message.user .message-avatar {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.message-content {
  background: rgba(77, 201, 255, 0.08);
  border: 1px solid rgba(77, 201, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
}

.chat-message.user .message-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.message-content p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #05080f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.chat-send:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 16px;
}

.suggestion-chip {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* Page Links */
.page-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(10, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-link-card:hover {
  border-color: var(--accent);
  background: rgba(77, 201, 255, 0.05);
}

.link-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 201, 255, 0.1);
  border-radius: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.link-card-content {
  flex: 1;
}

.link-card-content h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.link-card-content p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-card-arrow {
  color: var(--text-muted);
  transition: transform 0.2s, color 0.2s;
}

.page-link-card:hover .link-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .page-links {
    grid-template-columns: 1fr;
  }
}

/* Back Link */
.back-link-container {
  text-align: center;
  padding: 20px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

.perf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.perf-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.perf-period-selector {
  display: flex;
  gap: 4px;
}

.period-btn {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.period-btn.active {
  background: rgba(77, 201, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

.perf-content {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  padding: 20px;
}

.perf-chart-section {
  min-width: 0;
}

.nav-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend-row {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  padding-left: 40px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-line {
  width: 20px;
  height: 2px;
  border-radius: 1px;
}

.legend-line.cyan {
  background: var(--accent);
}

.legend-line.gray {
  background: #7a8a9a;
}

.legend-line.dashed {
  background: repeating-linear-gradient(90deg, #7a8a9a 0, #7a8a9a 4px, transparent 4px, transparent 8px);
}

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

.metric-card {
  background: rgba(77, 201, 255, 0.04);
  border: 1px solid rgba(77, 201, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.metric-card.highlight {
  background: rgba(77, 201, 255, 0.08);
  border-color: rgba(77, 201, 255, 0.2);
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-value.negative {
  color: #ef4444;
}

.metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trade History Panel */

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.history-summary {
  display: flex;
  gap: 20px;
}

.summary-item {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.summary-item.profit .summary-value {
  color: #22c55e;
}

.summary-value {
  font-weight: 600;
  color: var(--accent);
  margin-right: 4px;
}

.trade-list {
  padding: 8px 0;
}

.trade-item {
  display: grid;
  grid-template-columns: 100px 1fr 80px 80px;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(77, 201, 255, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
}

.trade-item:last-child {
  border-bottom: none;
}

.trade-item:hover {
  background: rgba(77, 201, 255, 0.06);
}

.trade-item.clickable:hover {
  background: rgba(77, 201, 255, 0.1);
}

.trade-item.clickable:hover .trade-action-desc {
  color: var(--accent);
}

.trade-date {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.trade-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-action-type {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trade-action-type.long {
  background: rgba(77, 201, 255, 0.12);
  color: var(--accent);
}

.trade-action-type.reduce {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.trade-action-desc {
  color: var(--text-secondary);
}

.trade-price {
  color: var(--text-muted);
  text-align: right;
}

.trade-result {
  text-align: right;
  font-weight: 600;
}

.trade-result.profit {
  color: #22c55e;
}

.trade-result.loss {
  color: #ef4444;
}

.trade-result.pending {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 800px) {
  .decision-card-horizontal {
    grid-template-columns: 1fr;
  }

  .card-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .card-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .radar-block {
    flex: 0 0 auto;
  }

  .confidence-block {
    flex: 1;
    min-width: 200px;
  }

  .card-meta {
    width: 100%;
  }

  .perf-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .tti-hero {
    padding: 120px 20px 30px;
  }

  .tti-title {
    letter-spacing: 0.05em;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px 30px;
  }

  .hero-stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }

  .chart-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .panel-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .card-header-row {
    flex-wrap: wrap;
  }

  .signal-time {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }

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

  .history-summary {
    width: 100%;
    justify-content: space-between;
  }

  .trade-item {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .trade-action {
    grid-column: 1 / -1;
    order: -1;
  }

  .trade-date {
    order: 1;
  }

  .trade-price {
    text-align: left;
    order: 2;
  }

  .trade-result {
    text-align: right;
    order: 3;
  }

  .signal-navigator {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-hint {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 4px;
  }

  .perf-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

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

  .metric-value {
    font-size: 1.1rem;
  }
}
