/* ══════════════════════════════════════════════════════════════════════════════
   Fresh X — DIGITDIFF Differs Strategy CSS
   Accent: Cyan  #06b6d4   (Tailwind cyan-500)
   All classes prefixed fx- to avoid collision with Trade X (tx-) and Goon X (gx-)
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --fx-accent:       #06b6d4;
  --fx-accent-dark:  #0891b2;
  --fx-accent-glow:  rgba(6,182,212,0.35);
  --fx-accent-soft:  rgba(6,182,212,0.12);
  --fx-warn:         #f59e0b;
  --fx-green:        #22c55e;
  --fx-red:          #ef4444;
}

/* badge-cyan used by Fresh X strategy row badge */
.badge.badge-cyan {
  background: rgba(6,182,212,0.18);
  color: #06b6d4;
  border: 1px solid rgba(6,182,212,0.35);
}

/* ── Workspace layout ──────────────────────────────────────────────────────── */

.freshx-workspace {
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* ── Digit picker row ──────────────────────────────────────────────────────── */

.fx-digit-row {
  margin-bottom: 10px;
}

.fx-digit-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(175,195,240,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.fx-digit-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fx-digit-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.06);
  color: rgba(175,195,240,0.75);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-digit-btn:hover {
  border-color: var(--fx-accent);
  background: rgba(6,182,212,0.15);
  color: #06b6d4;
}

.fx-digit-btn.active {
  background: rgba(6,182,212,0.22);
  border-color: var(--fx-accent);
  color: #06b6d4;
  box-shadow: 0 0 8px rgba(6,182,212,0.3);
}

/* Fresh digit highlighted in the picker */
.fx-digit-btn.fresh {
  border-color: var(--fx-green);
  background: rgba(34,197,94,0.12);
  color: #22c55e;
}

.fx-digit-btn.fresh.active {
  background: rgba(34,197,94,0.22);
  box-shadow: 0 0 8px rgba(34,197,94,0.3);
}

/* Hot digit (appeared many times) */
.fx-digit-btn.hot {
  border-color: rgba(239,68,68,0.4);
  color: rgba(239,68,68,0.6);
}

/* ── Stake buttons ─────────────────────────────────────────────────────────── */

.fx-stake-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.06);
  color: rgba(175,195,240,0.75);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-stake-btn:hover {
  border-color: var(--fx-accent);
  background: rgba(6,182,212,0.14);
  color: #06b6d4;
}

.fx-stake-btn.active {
  background: rgba(6,182,212,0.2);
  border-color: var(--fx-accent);
  color: #06b6d4;
  box-shadow: 0 0 6px rgba(6,182,212,0.25);
}

/* ── Multiplier buttons ────────────────────────────────────────────────────── */

.fx-mult-btn {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.25);
  background: rgba(6,182,212,0.06);
  color: rgba(175,195,240,0.75);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-mult-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-mult-btn.active {
  background: rgba(6,182,212,0.2);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* ── Cooldown buttons ──────────────────────────────────────────────────────── */

.fx-cd-btn {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(6,182,212,0.2);
  background: transparent;
  color: rgba(175,195,240,0.6);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-cd-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-cd-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* ── Option buttons (reinvest split) ───────────────────────────────────────── */

.fx-opt-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(6,182,212,0.2);
  background: transparent;
  color: rgba(175,195,240,0.6);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-opt-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-opt-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* ── Filter buttons (history) ──────────────────────────────────────────────── */

.fx-filter-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.2);
  background: transparent;
  color: rgba(175,195,240,0.6);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-filter-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-filter-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* ── Scanner card ──────────────────────────────────────────────────────────── */

.fx-scanner-card {
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.18);
}

.fx-scan-btn {
  padding: 5px 14px;
  border-radius: 7px;
  border: 1px solid rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.12);
  color: #06b6d4;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fx-scan-btn:hover:not(:disabled) {
  background: rgba(6,182,212,0.22);
  box-shadow: 0 0 10px rgba(6,182,212,0.3);
}

.fx-scan-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fx-scan-btn.scanning {
  animation: fx-pulse 1.2s ease-in-out infinite;
}

@keyframes fx-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Scanner row: matches goon X scanner-row style but cyan */
.fx-scanner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.12);
  cursor: pointer;
  margin-bottom: 5px;
  transition: all 0.18s ease;
}

.fx-scanner-row:hover {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.35);
}

.fx-scanner-row.ready  { border-left: 3px solid #22c55e; }
.fx-scanner-row.wait   { border-left: 3px solid #f59e0b; }
.fx-scanner-row.skip   { border-left: 3px solid #6b7280; }
.fx-scanner-row.error  { border-left: 3px solid #ef4444; }

.fx-scan-sym   { font-size: 11px; font-weight: 700; color: rgba(200,215,255,0.9); }
.fx-scan-fresh { font-size: 10px; color: #22c55e; font-weight: 600; }
.fx-scan-conf  { font-size: 10px; color: rgba(175,195,240,0.6); }
.fx-scan-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.fx-scan-badge.ready  { background: rgba(34,197,94,0.15);  color: #22c55e; }
.fx-scan-badge.wait   { background: rgba(245,158,11,0.15); color: #f59e0b; }
.fx-scan-badge.skip   { background: rgba(107,114,128,0.15);color: #9ca3af; }
.fx-scan-badge.error  { background: rgba(239,68,68,0.15);  color: #ef4444; }

/* ── Frequency grid ────────────────────────────────────────────────────────── */

.fx-freq-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.fx-freq-cell {
  display: flex;
  flex-direction: column;
  cursor: pointer;         /* all cells are clickable to select barrier */
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid rgba(6,182,212,0.14);
  background: rgba(6,182,212,0.04);
  transition: all 0.18s ease;
  cursor: default;
  min-width: 0;
}

.fx-freq-cell.fresh {
  border-color: rgba(34,197,94,0.45);
  background: rgba(34,197,94,0.1);
}

.fx-freq-cell.hot {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.07);
}

.fx-freq-digit {
  font-size: 15px;
  font-weight: 800;
  color: rgba(175,195,240,0.9);
  line-height: 1;
}

.fx-freq-cell.fresh .fx-freq-digit  { color: #22c55e; }
.fx-freq-cell.hot   .fx-freq-digit  { color: #ef4444; }

.fx-freq-count {
  font-size: 9px;
  font-weight: 600;
  color: rgba(175,195,240,0.5);
}

.fx-freq-cell.fresh .fx-freq-count { color: rgba(34,197,94,0.75); }
.fx-freq-cell.hot   .fx-freq-count { color: rgba(239,68,68,0.65); }

.fx-freq-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: transparent;
}

.fx-freq-cell.fresh .fx-freq-label {
  color: rgba(34,197,94,0.7);
  content: "FRESH";
}

.fx-freq-cell.hot .fx-freq-label {
  color: rgba(239,68,68,0.6);
}

/* ── Freq cell hover / selected / freshest states ───────────────────────────── */

.fx-freq-cell:hover {
  border-color: rgba(6,182,212,0.45);
  background: rgba(6,182,212,0.08);
  transform: translateY(-1px);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

/* Selected barrier digit — bright cyan ring */
.fx-freq-cell.selected {
  border-color: #06b6d4 !important;
  background: rgba(6,182,212,0.18) !important;
  box-shadow: 0 0 10px rgba(6,182,212,0.45), 0 0 20px rgba(6,182,212,0.2);
}
.fx-freq-cell.selected .fx-freq-digit {
  color: #67e8f9 !important;
  text-shadow: 0 0 8px rgba(6,182,212,0.7);
}
.fx-freq-cell.selected .fx-freq-label::after { content: " ✓"; }

/* Freshest digit — pulsing green glow */
.fx-freq-cell.freshest {
  box-shadow: 0 0 12px rgba(34,197,94,0.5), 0 0 24px rgba(34,197,94,0.22);
  animation: fx-freshest-pulse 2s ease-in-out infinite;
}
@keyframes fx-freshest-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(34,197,94,0.45), 0 0 20px rgba(34,197,94,0.18); }
  50%       { box-shadow: 0 0 18px rgba(34,197,94,0.7),  0 0 34px rgba(34,197,94,0.32); }
}

/* ── Execution card ────────────────────────────────────────────────────────── */

.fx-exec-card {
  background: rgba(6,12,25,0.55);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-barrier-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.18);
  border-radius: 8px;
}

.fx-barrier-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(175,195,240,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.fx-barrier-val {
  font-size: 22px;
  font-weight: 900;
  color: #06b6d4;
  text-shadow: 0 0 12px rgba(6,182,212,0.5);
  min-width: 28px;
  text-align: center;
}

.fx-barrier-note {
  font-size: 10px;
  color: rgba(34,197,94,0.75);
  font-weight: 600;
}

.fx-btn-place {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(6,182,212,0.4);
  background: linear-gradient(135deg, rgba(6,182,212,0.22), rgba(8,145,178,0.18));
  color: #06b6d4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.fx-btn-place:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(6,182,212,0.35), rgba(8,145,178,0.28));
  box-shadow: 0 0 20px rgba(6,182,212,0.35), 0 4px 16px rgba(6,182,212,0.2);
  transform: translateY(-1px);
}

.fx-btn-place:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.fx-btn-place.placing {
  animation: fx-pulse 0.8s ease-in-out infinite;
  pointer-events: none;
}

/* ── Auto Brain card ───────────────────────────────────────────────────────── */

.fx-auto-brain-card {
  background: rgba(6,12,25,0.55);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Start / Stop buttons */

.fx-btn-brain-start {
  flex: 1;
  padding: 11px 16px;
  border-radius: 9px;
  border: 1px solid rgba(6,182,212,0.45);
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(8,145,178,0.15));
  color: #06b6d4;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fx-btn-brain-start:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(6,182,212,0.32), rgba(8,145,178,0.25));
  box-shadow: 0 0 16px rgba(6,182,212,0.35);
}

.fx-btn-brain-start:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.fx-btn-brain-start.running {
  background: linear-gradient(135deg, rgba(6,182,212,0.28), rgba(8,145,178,0.22));
  box-shadow: 0 0 12px rgba(6,182,212,0.3);
  animation: fx-pulse 2s ease-in-out infinite;
}

.fx-btn-brain-stop {
  flex: 1;
  padding: 11px 16px;
  border-radius: 9px;
  border: 1px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: rgba(239,68,68,0.75);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fx-btn-brain-stop:hover:not(:disabled) {
  background: rgba(239,68,68,0.16);
  box-shadow: 0 0 14px rgba(239,68,68,0.25);
  color: #ef4444;
}

.fx-btn-brain-stop:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Snap val colour variants for Fresh X ──────────────────────────────────── */

#fx-brain-digit  { color: #06b6d4; font-weight: 900; font-size: 18px; }
#fx-brain-conf   { color: #06b6d4; }
#fx-brain-status { color: rgba(175,195,240,0.75); }

/* ── Mobile responsive ─────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .fx-digit-btns {
    gap: 4px;
  }

  .fx-digit-btn {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .fx-freq-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .fx-freq-cell {
    padding: 5px 2px;
  }

  .fx-freq-digit {
    font-size: 13px;
  }

  .fx-btn-place,
  .fx-btn-brain-start,
  .fx-btn-brain-stop {
    font-size: 12px;
    padding: 11px 10px;
  }

  .fx-barrier-val {
    font-size: 18px;
  }

  .fx-exec-card,
  .fx-auto-brain-card {
    padding: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEW ELEMENTS — Scanner digit-matrix, Exec info grid, Auto Brain additions
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Scanner mode filter row ─────────────────────────────────────────────── */

.fx-scan-mode-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fx-scan-mode-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid rgba(6,182,212,0.2);
  background: transparent;
  color: rgba(175,195,240,0.6);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-scan-mode-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-scan-mode-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* Scanner header legend */
.fx-scan-fresh-rule {
  font-size: 9px;
  color: rgba(34,197,94,0.65);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Scanner hint text */
.fx-scanner-hint {
  font-size: 10px;
  color: rgba(175,195,240,0.5);
  margin: 4px 0 8px;
  line-height: 1.5;
}

/* ── Scanner symbol block ─────────────────────────────────────────────────── */

.fx-scan-sym-block {
  background: rgba(6,182,212,0.03);
  border: 1px solid rgba(6,182,212,0.14);
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 8px;
  transition: border-color 0.18s ease;
}

.fx-scan-sym-block:hover {
  border-color: rgba(6,182,212,0.28);
}

.fx-scan-sym-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.fx-scan-sym-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fx-scan-sym-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.fx-scan-sym-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(200,215,255,0.9);
  white-space: nowrap;
}

.fx-scan-fresh-count {
  font-size: 9.5px;
  color: rgba(34,197,94,0.7);
  font-weight: 600;
}

/* ── Scanner digit grid (10 cells per symbol) ─────────────────────────────── */

.fx-scan-digit-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.fx-scan-digit-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 2px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.12);
  background: rgba(6,182,212,0.03);
  cursor: default;
  transition: all 0.15s ease;
  min-width: 0;
}

.fx-scan-digit-cell.fresh {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.1);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(34,197,94,0.18);
}

.fx-scan-digit-cell.fresh:hover {
  border-color: rgba(34,197,94,0.7);
  background: rgba(34,197,94,0.19);
  box-shadow: 0 0 10px rgba(34,197,94,0.32);
  transform: translateY(-1px);
}

.fx-scan-digit-cell.hot {
  border-color: rgba(239,68,68,0.18);
  background: rgba(239,68,68,0.04);
  opacity: 0.7;
}

.fx-scan-d-num {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: rgba(175,195,240,0.8);
}

.fx-scan-digit-cell.fresh .fx-scan-d-num { color: #22c55e; }
.fx-scan-digit-cell.hot   .fx-scan-d-num { color: rgba(239,68,68,0.65); }

.fx-scan-d-count {
  font-size: 8px;
  font-weight: 600;
  color: rgba(175,195,240,0.4);
  margin-top: 2px;
}

.fx-scan-digit-cell.fresh .fx-scan-d-count { color: rgba(34,197,94,0.65); }
.fx-scan-digit-cell.hot   .fx-scan-d-count { color: rgba(239,68,68,0.5); }

/* ── "▶ Use" button ──────────────────────────────────────────────────────── */

.fx-use-sym-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.12);
  color: #06b6d4;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.fx-use-sym-btn:hover {
  background: rgba(6,182,212,0.22);
  box-shadow: 0 0 8px rgba(6,182,212,0.28);
}

/* ── Manual Execution info grid ─────────────────────────────────────────── */

.fx-exec-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.fx-exec-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(6,182,212,0.04);
  border: 1px solid rgba(6,182,212,0.14);
  border-radius: 7px;
}

.fx-exec-info-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(175,195,240,0.5);
}

.fx-exec-info-val {
  font-size: 13px;
  font-weight: 700;
  color: rgba(200,215,255,0.9);
  word-break: break-word;
}

.fx-exec-info-val.fx-barrier-val {
  font-size: 20px;
  font-weight: 900;
  color: #06b6d4;
  text-shadow: 0 0 10px rgba(6,182,212,0.45);
}

/* ── Auto Brain snapshot row ─────────────────────────────────────────────── */

.fx-brain-snapshot-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.fx-brain-snapshot-row .gx-snap-item {
  flex: 1;
  min-width: 60px;
}

/* ── Brain mode row (Cooldown / Instant) ─────────────────────────────────── */

.fx-brain-mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.fx-brain-mode-btns {
  display: flex;
  gap: 5px;
}

.fx-brain-mode-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.22);
  background: transparent;
  color: rgba(175,195,240,0.65);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-brain-mode-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-brain-mode-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

/* ── Confidence preset buttons ───────────────────────────────────────────── */

.fx-conf-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.fx-conf-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.22);
  background: transparent;
  color: rgba(175,195,240,0.65);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fx-conf-btn:hover {
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-conf-btn.active {
  background: rgba(6,182,212,0.18);
  border-color: var(--fx-accent);
  color: #06b6d4;
}

.fx-conf-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* ── Max loss row ────────────────────────────────────────────────────────── */

.fx-brain-maxloss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(6,182,212,0.03);
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: 7px;
  margin-bottom: 6px;
  gap: 8px;
}

/* Hint span inside labels */
.fx-inp-hint {
  font-size: 9px;
  color: rgba(175,195,240,0.4);
  font-weight: 400;
  margin-left: 4px;
}

/* ── Mobile responsive additions ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .fx-scan-digit-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }

  .fx-scan-d-num {
    font-size: 11px;
  }

  .fx-exec-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .fx-brain-snapshot-row .gx-snap-item {
    flex: 0 0 calc(50% - 4px);
  }

  .fx-brain-mode-btn,
  .fx-conf-btn {
    font-size: 9px;
    padding: 4px 8px;
  }

  .fx-scan-sym-header {
    flex-wrap: wrap;
  }
}

/* ── Tick-strip freshest-digit highlight ─────────────────────────────────────
   _renderTickStrip() adds class "danger" to the span for the freshest DIFFER
   digit. "danger" is the correct class name (mirrors tradex.css convention).
   We colour it bright green — it is the digit to bet AGAINST (DIFFER wins
   when exit digit ≠ barrier), so visually it marks the "hot" digit.        */
.tx-ticks-strip span.danger {
  color: #22c55e;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
}
