/* ==========================================================================
   gTrader Pro - Clean Minimal Light Theme (Mint & Sky Nordic Fintech)
   ========================================================================== */

:root {
  --bg-main: #f1f5f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-subtle: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-accent: rgba(13, 148, 136, 0.3);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --color-bullish: #059669;
  --color-bullish-glow: rgba(5, 150, 105, 0.15);
  --color-bullish-bg: #d1fae5;
  --color-bullish-text: #065f46;
  
  --color-bearish: #e11d48;
  --color-bearish-glow: rgba(225, 29, 72, 0.15);
  --color-bearish-bg: #ffe4e6;
  --color-bearish-text: #9f1239;

  --color-primary: #0d9488;
  --color-primary-glow: rgba(13, 148, 136, 0.25);
  --color-primary-light: #ccfbf1;
  --color-primary-dark: #0f766e;
  
  --color-accent: #0284c7;
  --color-accent-light: #e0f2fe;
  --color-gold: #d97706;
  --color-gold-bg: #fef3c7;
  --color-purple: #7c3aed;
  --color-purple-bg: #ede9fe;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px #e2e8f0;
  --shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px #cbd5e1;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(241, 245, 244, 0.8) 0%, transparent 80%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* App Container */
.app-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header Section (Consistent Across All Pages) */
.top-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  gap: 1.25rem;
  min-height: 68px;
  box-sizing: border-box;
  margin-bottom: 0;
}

/* Dedicated Main Navigation Bar (Single Component, Zero Jitter) */
.main-navigation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.85rem;
  margin-bottom: 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  gap: 1rem;
  min-height: 48px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.nav-links-grid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-navigation-bar .nav-tab {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  box-sizing: border-box;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.main-navigation-bar .nav-tab:hover {
  color: var(--text-primary);
  background: #ffffff;
  border-color: var(--border-accent);
  transform: translateY(-1px);
}

.main-navigation-bar .nav-tab.active {
  color: white;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 2px 10px var(--color-primary-glow);
}

.nav-right-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 240px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: white;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-info h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.brand-info h1 span {
  font-weight: 500;
  color: var(--color-primary);
}

.brand-info .badge {
  font-size: 0.7rem;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  border: 1px solid rgba(13, 148, 136, 0.2);
  white-space: nowrap;
}

/* Symbol & Live Price Header */
.market-quick-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  border-left: 1px solid var(--border-subtle);
  padding-left: 1.25rem;
}

.price-main {
  display: flex;
  flex-direction: column;
}

.price-main .pair-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--color-bullish);
  font-weight: 700;
  background: var(--color-bullish-bg);
  padding: 2px 6px;
  border-radius: 12px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-bullish);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-bullish);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-price-val {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.price-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.price-change-pill.bullish {
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.price-change-pill.bearish {
  background: var(--color-bearish-bg);
  color: var(--color-bearish-text);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-item .val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Update Control Panel */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.update-selector {
  display: flex;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.update-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.update-btn:hover {
  color: var(--text-primary);
  background: #ffffff;
}

.update-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.refresh-btn {
  background: var(--color-primary-light);
  border: 1px solid var(--border-accent);
  color: var(--color-primary-dark);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.refresh-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg);
}

/* Auto Update Progress Bar */
.countdown-container {
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.countdown-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0d9488, #0284c7, #059669);
  transition: width 1s linear;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
}

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

/* Chart Container & Card */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chart-toolbar {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #ffffff;
}

.timeframe-group, .indicator-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tf-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tf-btn:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.tf-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s, transform 0.1s;
}

.indicator-chip.ema20 { background: #ffedd5; color: #c2410c; border: 1px solid #fdba74; }
.indicator-chip.ema50 { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.indicator-chip.ema200 { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.indicator-chip.rsi { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; }
.indicator-chip.inactive { opacity: 0.35; }

.chart-viewport {
  width: 100%;
  height: 480px;
  position: relative;
  background: #ffffff;
}

.rsi-viewport {
  width: 100%;
  height: 140px;
  position: relative;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
}

/* Side Metrics Column */
.side-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--color-primary);
}

/* Bias Gauge & Signal Meter */
.signal-box {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.signal-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.signal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

.strong-buy { color: #059669; }
.buy { color: #10b981; }
.neutral { color: #d97706; }
.sell { color: #f43f5e; }
.strong-sell { color: #e11d48; }

/* RSI Meter */
.meter-wrapper {
  margin-top: 1rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.meter-track {
  height: 8px;
  background: linear-gradient(90deg, #059669 0%, #d97706 50%, #e11d48 100%);
  border-radius: 4px;
  position: relative;
}

.meter-thumb {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #0f172a;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* S/R Level Rows */
.level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.level-row:hover {
  background: #e2e8f0;
}

.level-row.resistance {
  border-left-color: var(--color-bearish);
}

.level-row.support {
  border-left-color: var(--color-bullish);
}

.level-label {
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.level-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.level-diff {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-left: 8px;
}

.level-diff.up { color: var(--color-bearish); }
.level-diff.down { color: var(--color-bullish); }

/* Multi-coin Watchlist */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.coin-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.coin-chip:hover, .coin-chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}

.coin-chip .name {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.coin-chip .price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Trading Plan Box */
.trade-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .trade-plan-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.plan-card.long { border-top: 3px solid var(--color-bullish); }
.plan-card.short { border-top: 3px solid var(--color-bearish); }

.plan-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}

.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.plan-item .k { color: var(--text-secondary); font-weight: 600; }
.plan-item .v { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); }

/* R:R Tags & Badges */
.rr-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-family: var(--font-mono);
}

.rr-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-bullish-text);
  background: var(--color-bullish-bg);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
}

.rr-tag.sl {
  color: var(--color-bearish-text);
  background: var(--color-bearish-bg);
}

/* Live Action Trigger Card */
.live-action-card {
  background: #ffffff;
  border-left: 4px solid var(--color-gold);
  border: 1px solid var(--border-subtle);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.live-action-card.buy-active {
  border-left-color: var(--color-bullish);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.15);
}

.live-action-card.sell-active {
  border-left-color: var(--color-bearish);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.15);
}

.action-pulse-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-gold-bg);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.action-pulse-icon.buy {
  background: var(--color-bullish-bg);
  color: var(--color-bullish);
  animation: pulse-glow 1.5s infinite;
}

.action-pulse-icon.sell {
  background: var(--color-bearish-bg);
  color: var(--color-bearish);
  animation: pulse-glow 1.5s infinite;
}

.sound-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sound-toggle-btn:hover {
  color: var(--text-primary);
  background: #ffffff;
}

.sound-toggle-btn.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--border-accent);
}

/* Signal History Table */
.signal-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.signal-history-table th {
  padding: 10px 12px;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.72rem;
  background: var(--bg-card-subtle);
}

.signal-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.signal-history-table tr:hover td {
  background: var(--bg-card-subtle);
}

.sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
}

.sig-badge.buy {
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.sig-badge.sell {
  background: var(--color-bearish-bg);
  color: var(--color-bearish-text);
  border: 1px solid rgba(225, 29, 72, 0.2);
}

/* Navigation Tabs */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.nav-tab {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-primary);
  background: #ffffff;
}

.nav-tab.active {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

/* Portfolio Performance Bar */
.portfolio-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.port-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.port-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-val.highlight {
  color: var(--color-primary);
}

.stat-val.positive {
  color: var(--color-bullish);
}

.stat-val.negative {
  color: var(--color-bearish);
}

#sim-bot-selector {
  width: 175px;
  max-width: 175px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 5px 8px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Bot Control Buttons */
.bot-toggle-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bot-toggle-btn:hover {
  background: #ffffff;
  color: var(--text-primary);
}

.bot-toggle-btn.active {
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border-color: rgba(5, 150, 105, 0.3);
}

.reset-btn {
  background: var(--color-bearish-bg);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--color-bearish-text);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reset-btn:hover {
  background: var(--color-bearish);
  color: white;
}

/* Dual Active Positions Grid (Hedge Mode) */
.dual-positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.empty-position-box {
  background: var(--bg-card-subtle);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-position-box.dual {
  padding: 1.75rem 1rem;
  min-height: 180px;
}

.position-active-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.position-active-card.long {
  border-left: 4px solid var(--color-bullish);
}

.position-active-card.short {
  border-left: 4px solid var(--color-bearish);
}

/* Dual Signal Radars */
.dual-signals-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signal-radar-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.signal-radar-box.long {
  border-left: 3px solid var(--color-bullish);
}

.signal-radar-box.short {
  border-left: 3px solid var(--color-bearish);
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-score {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.radar-msg {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 8px;
}

.pos-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.pos-badge.long {
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.pos-badge.short {
  background: var(--color-bearish-bg);
  color: var(--color-bearish-text);
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.close-pos-btn {
  background: var(--color-bearish-bg);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: var(--color-bearish-text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-pos-btn:hover {
  background: var(--color-bearish);
  color: white;
}

.pos-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 1rem;
}

.pos-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pos-stat-item .k {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.pos-stat-item .v {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pnl-hero {
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-subtle);
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 520px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Action Buttons */
.btn-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--color-primary-glow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

/* Kill Switch Button */
.btn-kill-switch, .kill-switch-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-kill-switch:hover, .kill-switch-btn:hover {
  background: #ef4444;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Create Bot Button */
.btn-create-bot {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: 7px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transition: all 0.2s ease;
}

.btn-create-bot:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Bot Fleet Grid & Cards (bots.html) */
.bot-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.bot-fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.bot-fleet-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-accent);
}

.bot-fleet-card.active {
  border-left: 4px solid var(--color-primary);
}

.bot-fleet-card.paused {
  border-left: 4px solid #94a3b8;
  opacity: 0.88;
}

.bot-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.bot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.bot-status-dot.running {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

.bot-status-dot.paused {
  background: #94a3b8;
}

.btn-bot-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-bot-toggle.pause {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-bot-toggle.pause:hover {
  background: #ef4444;
  color: white;
}

.btn-bot-toggle.resume {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.btn-bot-toggle.resume:hover {
  background: #10b981;
  color: white;
}

.bot-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.bot-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-metric-cell .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.bot-metric-cell .val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.bot-metric-cell .sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.bot-signals-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sig-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
}

.sig-pill.active-buy {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 800;
}

.sig-pill.active-sell {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
  font-weight: 800;
}

.bot-positions-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.pos-mini-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}

.pos-mini-tag.long {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.pos-mini-tag.short {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.pos-mini-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.bot-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-delete-bot {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.btn-delete-bot:hover {
  background: #ef4444;
  color: white;
}

/* Modal Dialog Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1rem 1.25rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-form {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.form-input, .form-select {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
}

.form-readonly-pill {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-modal-cancel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.btn-modal-submit {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transition: all 0.2s;
}

.btn-modal-submit:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Terminal Window (logs.html) */
.terminal-window {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  height: 650px;
}

.terminal-titlebar {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.terminal-window-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-window-controls .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-window-controls .dot.red { background: #ef4444; }
.terminal-window-controls .dot.yellow { background: #f59e0b; }
.terminal-window-controls .dot.green { background: #10b981; }

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  margin-left: 8px;
}

.terminal-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0f172a;
  padding: 2px 4px;
  border-radius: 6px;
  border: 1px solid #334155;
}

.term-filter-chip {
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-filter-chip:hover {
  color: #f8fafc;
  background: #1e293b;
}

.term-filter-chip.active {
  color: #ffffff;
  background: var(--color-primary);
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.term-btn:hover {
  color: #ffffff;
  background: #334155;
}

.term-btn.active {
  color: #34d399;
  border-color: #059669;
  background: rgba(5, 150, 105, 0.15);
}

.terminal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #cbd5e1;
  background: #0b1120;
}

.log-entry {
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  word-break: break-all;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-time {
  color: #64748b;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.log-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.log-badge.system { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.log-badge.trade { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.log-badge.signal { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.log-badge.error { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.log-msg {
  flex: 1;
}

.terminal-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.terminal-prompt {
  color: #34d399;
  font-weight: 800;
}

/* Status Badges */
.status-badge-paper {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-badge-testnet {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-badge-live {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  animation: liveModePulse 1.5s infinite;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1rem;
}

/* ==========================================================================
   Equity Growth Curve (Task 8 — Daisy 2026-08-18)
   ========================================================================== */

.equity-chart-viewport {
  width: 100%;
  height: 240px;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.equity-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.equity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.equity-chip strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-primary);
}

.equity-chip.up strong { color: var(--color-bullish); }
.equity-chip.down strong { color: var(--color-bearish); }

/* Outcome Badges (W / D / L / TP1 50%) */
.outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.outcome-badge.win {
  background: var(--color-bullish-bg);
  color: var(--color-bullish-text);
  border-color: rgba(5, 150, 105, 0.3);
}

.outcome-badge.draw {
  background: var(--color-gold-bg);
  color: #92400e;
  border-color: rgba(217, 119, 6, 0.3);
}

.outcome-badge.tp1 {
  background: #e0f2fe;
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
}

.outcome-badge.loss {
  background: var(--color-bearish-bg);
  color: var(--color-bearish-text);
  border-color: rgba(225, 29, 72, 0.3);
}

/* Micro-animation: แถว/ป้ายไม้ใหม่ในตาราง */
@keyframes tradeRowIn {
  from { opacity: 0; transform: translateY(-6px); background-color: rgba(13, 148, 136, 0.18); }
  to   { opacity: 1; transform: translateY(0); background-color: transparent; }
}

.trade-row-new { animation: tradeRowIn 0.9s ease-out; }

@keyframes pillPop {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

.outcome-pill-new { animation: pillPop 0.5s ease-out; }

/* Recent Trades Strip (bots.html — Fleet Equity Card) */
.recent-trades-strip {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.recent-trade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  transition: background 0.15s ease;
}

.recent-trade-item:hover {
  background: #ffffff;
}

.rt-symbol {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.rt-reason {
  flex: 1;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt-pnl {
  font-family: var(--font-mono);
  font-weight: 800;
  white-space: nowrap;
}

.rt-pnl.up { color: var(--color-bullish); }
.rt-pnl.down { color: var(--color-bearish); }

.rt-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.recent-trades-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 14px 0;
}
