/* =============================================================================
   ROB E BANK AI — Trade X Workspace Theme
   Matches screenshot: dark bronze outer, slate-blue inner, premium controls
   ============================================================================= */

/* ── Trade X workspace wrapper ──────────────────────────────────────────────── */
.tradex-workspace {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

/* ── Settings card ───────────────────────────────────────────────────────────── */
.tx-settings-card {
  background: linear-gradient(150deg, #130f08 0%, #080604 100%);
  border: 1px solid rgba(165, 110, 28, 0.55);
  border-radius: 9px;
  padding: 13px 14px;
  box-shadow: 0 0 22px rgba(180, 120, 32, 0.22),
              0 2px 10px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(210, 152, 52, 0.10);
}
.tx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.tx-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #f0e4c8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-learn {
  background: rgba(239, 100, 38, 0.85);
  border: none;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s;
}
.btn-learn:hover { background: rgba(239, 100, 38, 1); }

/* Market / symbol / type row */
.tx-selectors-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.tx-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tx-field label {
  font-size: 9.5px;
  color: rgba(215, 188, 148, 0.72);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tx-select {
  background: rgba(8, 6, 2, 0.75);
  border: 1px solid rgba(138, 98, 26, 0.42);
  border-radius: 5px;
  color: #f0e4c8;
  font-size: 11px;
  font-family: inherit;
  padding: 5px 8px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s;
  width: 100%;
}
.tx-select:focus { border-color: rgba(200, 144, 42, 0.55); }
.tx-select option { background: #1a1005; }

/* Stake row */
.tx-stake-section { margin-bottom: 10px; }
.tx-stake-label {
  font-size: 9.5px;
  color: rgba(215, 188, 148, 0.72);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.tx-stake-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.stake-btn {
  background: rgba(20, 14, 4, 0.7);
  border: 1px solid rgba(138, 98, 26, 0.38);
  border-radius: 5px;
  color: rgba(215, 188, 148, 0.75);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.18s;
}
.stake-btn:hover { border-color: rgba(200, 144, 42, 0.55); color: #f0e4c8; }
.stake-btn.active {
  background: rgba(200, 144, 42, 0.2);
  border-color: rgba(200, 144, 42, 0.6);
  color: #e0a030;
  font-weight: 600;
}
.tx-custom-stake {
  background: rgba(8, 6, 2, 0.75);
  border: 1px solid rgba(138, 98, 26, 0.42);
  border-radius: 5px;
  color: #f0e4c8;
  font-size: 11px;
  font-family: inherit;
  padding: 5px 8px;
  width: 68px;
  outline: none;
}

/* ── Inner panel (Custom Trade Settings) ─────────────────────────────────────── */
.tx-inner-panel {
  background: rgba(15, 30, 55, 0.65);
  border: 1px solid rgba(50, 90, 160, 0.35);
  border-radius: 6px;
  padding: 11px 12px;
}
.tx-inner-title {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(150, 190, 255, 0.85);
  margin-bottom: 9px;
  letter-spacing: 0.02em;
}
.tx-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

/* ── Auto Trade panel ────────────────────────────────────────────────────────── */
.tx-auto-panel {
  background: rgba(60, 15, 25, 0.55);
  border: 1px solid rgba(180, 40, 60, 0.30);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 2px;
}
.tx-auto-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}
.tx-auto-title {
  font-size: 11px;
  font-weight: 700;
  color: #f0a030;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}
.tx-auto-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.tx-auto-status.off     { background: rgba(80,80,80,0.4); color: #aaa; border: 1px solid rgba(100,100,100,0.3); }
.tx-auto-status.scanning{ background: rgba(234,179,8,0.18); color: #fbbf24; border: 1px solid rgba(234,179,8,0.4); }
.tx-auto-status.ready   { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.tx-auto-status.placing { background: rgba(59,130,246,0.18); color: #60a5fa; border: 1px solid rgba(59,130,246,0.4); }
.tx-auto-status.cooldown{ background: rgba(168,85,247,0.18); color: #c084fc; border: 1px solid rgba(168,85,247,0.4); }
.tx-auto-status.error   { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.4); }

.tx-auto-desc {
  font-size: 9.5px;
  color: rgba(200, 175, 140, 0.55);
  margin-bottom: 8px;
  line-height: 1.45;
}
.tx-seq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-top: 1px solid rgba(180, 40, 60, 0.15);
}
.tx-seq-label {
  font-size: 10px;
  color: rgba(215, 188, 148, 0.65);
}

/* ── Toggle switch ───────────────────────────────────────────────────────────── */
.tx-toggle {
  width: 34px;
  height: 19px;
  background: rgba(58, 43, 18, 0.70);
  border: 1px solid rgba(118, 83, 18, 0.45);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.tx-toggle.on {
  background: rgba(34, 197, 94, 0.28);
  border-color: rgba(34, 197, 94, 0.5);
}
.tx-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(158, 120, 54, 0.82);
  transition: transform 0.25s, background 0.25s;
}
.tx-toggle.on .tx-toggle-knob {
  transform: translateX(15px);
  background: #22c55e;
}

/* ── Intelligent DIFFERS / MATCHES analyzer card ──────────────────────────────  */
.tx-analyzer-card {
  background: rgba(8, 16, 32, 0.88);
  border: 1px solid rgba(50, 100, 200, 0.40);
  border-radius: 9px;
  padding: 11px 13px;
  box-shadow: 0 0 18px rgba(40, 90, 180, 0.16),
              0 2px 8px rgba(0,0,0,0.40),
              inset 0 1px 0 rgba(70, 130, 240, 0.08);
}
.tx-analyzer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.tx-analyzer-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #e0d0a8;
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-on {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.tx-ticks-strip {
  font-size: 13px;
  font-weight: 700;
  color: #f0d080;
  letter-spacing: 3px;
  text-align: center;
  min-height: 22px;
  margin-bottom: 8px;
  font-family: monospace;
}

.tx-warmup-msg {
  font-size: 10px;
  font-weight: 600;
  color: #fbbf24;
  text-align: center;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.tx-recommendation {
  text-align: center;
  padding: 6px 0 2px;
}
.tx-rec-heading {
  font-size: 9.5px;
  color: rgba(200, 175, 140, 0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.tx-rec-digit {
  font-size: 32px;
  font-weight: 800;
  color: #22c55e;
  line-height: 1;
  margin-bottom: 4px;
}
.tx-rec-digit.waiting { color: rgba(200, 175, 140, 0.35); font-size: 20px; }
.tx-rec-label {
  font-size: 10px;
  color: rgba(200, 175, 140, 0.55);
}

/* ── Digit board ─────────────────────────────────────────────────────────────── */
.tx-digit-board {
  background: rgba(7, 12, 24, 0.85);
  border: 1px solid rgba(40, 80, 160, 0.34);
  border-radius: 9px;
  padding: 11px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.38),
              inset 0 1px 0 rgba(70, 130, 240, 0.06);
}
.tx-digit-board-title {
  font-size: 10px;
  color: rgba(215, 195, 155, 0.72);
  margin-bottom: 10px;
  line-height: 1.4;
}
.tx-digit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 9px;
}
.digit-btn-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.digit-btn {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 25, 12, 0.80);
  color: rgba(220, 195, 145, 0.75);
  border: 2px solid rgba(100, 78, 28, 0.35);
  position: relative;
  max-width: 48px;
  max-height: 48px;
}
.digit-btn:hover {
  background: rgba(60, 50, 20, 0.9);
  border-color: rgba(200, 144, 42, 0.55);
}
.digit-btn.selected {
  background: rgba(37, 99, 235, 0.75);
  border-color: rgba(96, 165, 250, 0.80);
  color: #fff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.45);
}
.digit-btn.recommended {
  background: rgba(22, 101, 52, 0.75);
  border-color: rgba(34, 197, 94, 0.75);
  color: #fff;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}
.digit-btn.hot {
  background: rgba(127, 29, 29, 0.70);
  border-color: rgba(239, 68, 68, 0.60);
  color: #fca5a5;
}
.digit-btn.selected.recommended {
  background: rgba(22, 101, 52, 0.85);
  border-color: rgba(34, 197, 94, 0.9);
}
.digit-check {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 8px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}
.digit-btn.selected .digit-check { display: flex; }
.digit-pct {
  font-size: 9px;
  color: rgba(200, 178, 130, 0.65);
  text-align: center;
}
.tx-digit-footer {
  font-size: 9.5px;
  color: rgba(185, 162, 115, 0.55);
  text-align: center;
  border-top: 1px solid rgba(50, 80, 130, 0.20);
  padding-top: 7px;
}
.tx-digit-footer .dot { color: rgba(185, 162, 115, 0.35); margin: 0 5px; }
.tx-digit-footer strong { color: rgba(225, 200, 130, 0.80); }

/* ── Digit result animation overlay ─────────────────────────────────────────── */
.tradex-digit-overlay {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%;
  max-width: 48px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  font-size: 17px;
  animation: tradex-digit-spin 0.65s linear infinite;
}
.tradex-digit-overlay-win {
  background: rgba(34, 197, 94, 0.28);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.60);
}
.tradex-digit-overlay-loss {
  background: rgba(239, 68, 68, 0.28);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.60);
}
@keyframes tradex-digit-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

/* ── Execution buttons ───────────────────────────────────────────────────────── */
.tx-exec-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.btn-place-trade {
  width: 100%;
  background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  border: 1px solid rgba(34, 197, 94, 0.40);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.20s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.28);
}
.btn-place-trade:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #28d668 100%);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.52),
              0 0 42px rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.65);
}
.btn-place-trade:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: none; }

.btn-auto-trade {
  width: 100%;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  border: 1px solid rgba(124, 58, 237, 0.38);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.20s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.26);
}
.btn-auto-trade:hover:not(:disabled) {
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.52),
              0 0 38px rgba(124, 58, 237, 0.18);
  border-color: rgba(139, 92, 246, 0.60);
}
.btn-auto-trade.running {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border-color: rgba(239, 68, 68, 0.50);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.38);
}
.btn-auto-trade:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: none; }

.btn-all-pair {
  width: 100%;
  background: linear-gradient(135deg, #091e3a 0%, #0d2f5c 55%, #133570 100%);
  border: 1px solid rgba(70, 140, 230, 0.52);
  color: rgba(165, 210, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(40, 110, 220, 0.15);
}
.btn-all-pair:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d2d55 0%, #133d78 55%, #1a4c96 100%);
  border-color: rgba(100, 170, 255, 0.72);
  box-shadow: 0 0 18px rgba(60, 140, 255, 0.30);
}
.btn-all-pair:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

.btn-accelerate {
  width: 100%;
  background: linear-gradient(135deg, #1a0835 0%, #320d60 55%, #4a1588 100%);
  border: 1px solid rgba(140, 55, 210, 0.48);
  color: rgba(200, 145, 255, 0.90);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(110, 40, 190, 0.14);
}
.btn-accelerate:hover:not(:disabled) {
  background: linear-gradient(135deg, #230c48 0%, #420f80 55%, #5e1aaa 100%);
  border-color: rgba(175, 80, 255, 0.68);
  box-shadow: 0 0 18px rgba(140, 55, 230, 0.32);
}
.btn-accelerate.active {
  background: linear-gradient(135deg, #2e0d58 0%, #5518a0 55%, #7228d8 100%);
  border-color: rgba(200, 110, 255, 0.72);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.42);
  color: #d4a0ff;
}
.btn-accelerate:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

/* ── Trade status message ────────────────────────────────────────────────────── */
.tx-status-bar {
  font-size: 10.5px;
  padding: 6px 10px;
  border-radius: 5px;
  display: none;
  line-height: 1.4;
}
.tx-status-bar.error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
  display: block;
}
.tx-status-bar.success {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
  display: block;
}
.tx-status-bar.info {
  background: rgba(59, 130, 246, 0.10);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: #93c5fd;
  display: block;
}

/* ── Trade History card ──────────────────────────────────────────────────────── */
.tx-history-card {
  background: rgba(6, 14, 28, 0.92);
  border: 1px solid rgba(38, 90, 175, 0.44);
  border-radius: 9px;
  padding: 13px 14px;
  box-shadow: 0 0 22px rgba(20, 60, 140, 0.20),
              0 2px 10px rgba(0,0,0,0.45),
              inset 0 1px 0 rgba(80, 140, 255, 0.08);
}
.tx-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.tx-history-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f0e4c8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-clear-hist {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #f87171;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.btn-clear-hist:hover { background: rgba(239, 68, 68, 0.28); }

.tx-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 11px;
}
.tx-stat-box {
  background: rgba(8, 18, 40, 0.80);
  border: 1px solid rgba(38, 90, 175, 0.34);
  border-radius: 7px;
  padding: 9px 11px;
  box-shadow: inset 0 1px 0 rgba(80, 140, 255, 0.06);
}
.tx-stat-label {
  font-size: 9px;
  color: rgba(175, 195, 240, 0.58);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tx-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: #f5e9cd;
  letter-spacing: -0.01em;
}
.tx-stat-value.green {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.40);
}
.tx-stat-value.red   {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.38);
}
.tx-win-rate-sub {
  font-size: 10px;
  color: rgba(175, 195, 240, 0.46);
  margin-top: 2px;
}

.tx-filter-row {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.tx-filter-btn {
  flex: 1;
  background: rgba(14, 24, 46, 0.65);
  border: 1px solid rgba(40, 80, 150, 0.32);
  color: rgba(175, 200, 245, 0.60);
  font-size: 10.5px;
  font-weight: 500;
  font-family: inherit;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.20s;
  text-align: center;
}
.tx-filter-btn:hover {
  background: rgba(30, 50, 90, 0.65);
  border-color: rgba(60, 120, 220, 0.42);
  color: rgba(175, 210, 255, 0.85);
}
.tx-filter-btn.active {
  background: rgba(37, 99, 235, 0.22);
  border-color: rgba(96, 165, 250, 0.58);
  color: #93c5fd;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.22);
}

/* ── Trade history cards ─────────────────────────────────────────────────────── */
/* Internal scroll container — header, stats, and tabs stay pinned above this. */
.tx-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;     /* smooth momentum scroll on iOS      */
  scrollbar-width: thin;                 /* Firefox                             */
  scrollbar-color: rgba(50, 90, 160, 0.4) transparent;
}
/* Webkit scrollbar (Chrome / Safari / Edge / Android) */
.tx-history-list::-webkit-scrollbar        { width: 4px; }
.tx-history-list::-webkit-scrollbar-track  { background: transparent; }
.tx-history-list::-webkit-scrollbar-thumb  {
  background: rgba(50, 90, 160, 0.42);
  border-radius: 4px;
}
.tx-history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(80, 130, 220, 0.65);
}
.tx-history-empty {
  text-align: center;
  font-size: 11px;
  color: rgba(175, 195, 240, 0.35);
  padding: 24px 0;
}

.trade-card {
  background: rgba(10, 18, 36, 0.85);
  border: 1px solid rgba(40, 80, 150, 0.30);
  border-radius: 7px;
  padding: 9px 11px;
  transition: border-color 0.20s, box-shadow 0.20s;
}
.trade-card.won  {
  border-color: rgba(34, 197, 94, 0.44);
  background: rgba(8, 24, 16, 0.80);
}
.trade-card.lost {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(24, 8, 8, 0.80);
}
.trade-card.error{
  border-color: rgba(234, 179, 8, 0.36);
  background: rgba(24, 20, 4, 0.75);
}

.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tc-sym {
  font-size: 10.5px;
  font-weight: 700;
  color: #f0e4c8;
  background: rgba(30, 55, 100, 0.55);
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 6px;
}
.tc-status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}
.tc-status-pill.pending { background: rgba(234,179,8,0.18); color: #fbbf24; border: 1px solid rgba(234,179,8,0.38); }
.tc-status-pill.won     { background: rgba(34,197,94,0.18); color: #4ade80; border: 1px solid rgba(34,197,94,0.38); }
.tc-status-pill.lost    { background: rgba(239,68,68,0.18); color: #f87171; border: 1px solid rgba(239,68,68,0.35); }
.tc-status-pill.error   { background: rgba(234,179,8,0.18); color: #fde68a; border: 1px solid rgba(234,179,8,0.35); }

.tc-pl {
  font-size: 12.5px;
  font-weight: 800;
  margin-left: auto;
  letter-spacing: 0.01em;
}
.tc-pl.pos {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}
.tc-pl.neg {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.52);
}
.tc-pl.pending-pl { color: rgba(175, 195, 240, 0.55); font-size: 10.5px; }

.tc-strategy {
  font-size: 9.5px;
  color: rgba(150, 180, 240, 0.70);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tc-strategy-badge {
  font-size: 8.5px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #93c5fd;
  padding: 1px 5px;
  border-radius: 4px;
}

.tc-rows { display: flex; flex-direction: column; gap: 3px; }
.tc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.tc-row-label { color: rgba(175, 195, 240, 0.50); }
.tc-row-value { color: rgba(220, 205, 170, 0.85); font-weight: 500; }
.tc-pill {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.tc-pill.differs {
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: #c084fc;
}
.tc-pill.matches {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #6ee7b7;
}
.tc-status-label {
  font-size: 9.5px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(40, 80, 150, 0.18);
  display: flex;
  align-items: center;
  gap: 4px;
}
.tc-status-label.won  { color: #4ade80; }
.tc-status-label.lost { color: #f87171; }
.tc-status-label.pending { color: #fbbf24; }
.tc-status-label.error   { color: #fde68a; }

/* ── Pending spinner ─────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.tc-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Aloe Point rapid-fire button ───────────────────────────────────────────── */
.btn-aloe-point {
  width: 100%;
  background: linear-gradient(135deg, #78350f 0%, #b45309 45%, #d97706 100%);
  border: 1px solid rgba(251, 191, 36, 0.50);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.22);
}
.btn-aloe-point:hover:not(:disabled) {
  background: linear-gradient(135deg, #92400e 0%, #d97706 45%, #fbbf24 100%);
  border-color: rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.40);
}
.btn-aloe-point.active {
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 50%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.42);
}
.btn-aloe-point.active:hover:not(:disabled) {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #ef4444 100%);
  border-color: rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.58);
}
.btn-aloe-point:disabled { opacity: 0.42; cursor: not-allowed; box-shadow: none; }

/* ── Instant 5 Trades button ─────────────────────────────────────────────────── */
.btn-instant5 {
  width: 100%;
  background: linear-gradient(135deg, #92400e 0%, #d97706 100%);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}
.btn-instant5:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%);
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.40);
}
.btn-instant5:disabled { opacity: 0.42; cursor: not-allowed; }

/* ── Execution label badges (inside trade history cards) ─────────────────────── */
.tc-exec-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: middle;
  /* default: manual */
  background: rgba(100, 78, 28, 0.28);
  border: 1px solid rgba(180, 140, 50, 0.40);
  color: rgba(215, 188, 148, 0.85);
}
.tc-exec-badge.instant-5 {
  background: rgba(180, 83, 9, 0.28);
  border: 1px solid rgba(245, 158, 11, 0.50);
  color: #fbbf24;
}
.tc-exec-badge.auto {
  background: rgba(91, 33, 182, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #c084fc;
}
.tc-exec-badge.all-pair {
  background: rgba(14, 60, 120, 0.32);
  border: 1px solid rgba(96, 165, 250, 0.42);
  color: #93c5fd;
}
.tc-exec-badge.aloe-point {
  background: rgba(180, 83, 9, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: #fbbf24;
}

/* ── Error note inside trade card ───────────────────────────────────────────── */
.tc-err-note {
  font-size: 9px;
  color: rgba(251, 191, 36, 0.70);
  font-style: italic;
  margin-left: 3px;
}
