/* =============================================================================
   GOON X STRATEGY — Styles
   Reuses .tx-* structural classes from tradex.css.
   Adds Goon X-specific components and purple accent theme.
   Load order: after glow.css, before mobile.css.
   ============================================================================= */

/* ── Purple badge variant ────────────────────────────────────────────────────── */
.badge-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.34);
}

/* ── Goon X workspace wrapper ─────────────────────────────────────────────────── */
.goonx-workspace {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Glow animation offsets — managed by glow.css v2 (2026-05-03 glowup) ──── */
/* .goonx-workspace card glows are now declared in glow.css to keep one source */

/* ── Module block (reinvest / secure profit / streak mode) ───────────────────── */
.gx-module-block {
  margin-top: 10px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
}

.gx-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
  user-select: none;
}

.gx-module-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(220, 195, 155, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.gx-module-body {
  margin-top: 9px;
  display: none;
}

.gx-module-body.visible { display: block; }

/* ── Mini toggle (used inside module blocks) ──────────────────────────────────── */
.gx-mini-toggle {
  width: 30px;
  height: 17px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.22s;
  flex-shrink: 0;
}

.gx-mini-toggle.on {
  background: rgba(34, 197, 94, 0.26);
  border-color: rgba(34, 197, 94, 0.55);
}

.gx-mini-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.65);
  transition: all 0.22s;
}

.gx-mini-toggle.on .gx-mini-knob {
  transform: translateX(13px);
  background: #22c55e;
}

/* ── Module split/option buttons ─────────────────────────────────────────────── */
.gx-opt-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.gx-opt-btn {
  padding: 4px 11px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(175, 195, 240, 0.70);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.gx-opt-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

.gx-opt-btn.active {
  background: rgba(168, 85, 247, 0.20);
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.18);
}

/* ── Progress bar (secure profit) ────────────────────────────────────────────── */
.gx-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.gx-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 3px;
}

.gx-progress-text {
  font-size: 10px;
  color: rgba(175, 195, 240, 0.60);
}

/* ── Module note text ────────────────────────────────────────────────────────── */
.gx-module-note {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.45);
  margin-top: 6px;
  line-height: 1.4;
}

.gx-module-note.active-note {
  color: rgba(34, 197, 94, 0.75);
}

/* ── Target input ────────────────────────────────────────────────────────────── */
.gx-target-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

.gx-target-row label {
  font-size: 10px;
  color: rgba(175, 195, 240, 0.60);
  white-space: nowrap;
}

.gx-target-input {
  background: rgba(8, 6, 2, 0.70);
  border: 1px solid rgba(168, 85, 247, 0.30);
  border-radius: 5px;
  color: #f0e4c8;
  font-size: 12px;
  font-family: inherit;
  padding: 4px 8px;
  width: 90px;
  outline: none;
}

.gx-target-input:focus {
  border-color: rgba(168, 85, 247, 0.60);
}

/* ── Multiplier row ───────────────────────────────────────────────────────────── */
.gx-multiplier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gx-mult-label {
  font-size: 11px;
  color: rgba(215, 188, 148, 0.72);
  white-space: nowrap;
  min-width: 66px;
  font-weight: 500;
}

.gx-mult-btns {
  display: flex;
  gap: 5px;
}

.gx-mult-btn {
  padding: 5px 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(175, 195, 240, 0.70);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.gx-mult-btn:hover {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.36);
  color: #c084fc;
}

.gx-mult-btn.active {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.58);
  color: #c084fc;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.22);
}

/* ── Cooldown buttons ─────────────────────────────────────────────────────────── */
.gx-cd-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.gx-cd-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(175, 195, 240, 0.65);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
  font-family: inherit;
}

.gx-cd-btn:hover {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.40);
  color: #a5b4fc;
}

.gx-cd-btn.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.58);
  color: #a5b4fc;
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.18);
}

/* ── Goon X stake buttons ─────────────────────────────────────────────────────── */
.gx-stake-btn {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(175, 195, 240, 0.70);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.gx-stake-btn:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.32);
  color: #c084fc;
}

.gx-stake-btn.active {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.58);
  color: #c084fc;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.20);
}

/* ── Scanner card ─────────────────────────────────────────────────────────────── */
.gx-scanner-card {
  background: rgba(10, 14, 28, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 8px;
  padding: 11px 13px;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.09);
}

.gx-scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.gx-scanner-title {
  font-size: 12px;
  font-weight: 700;
  color: #e0d0a8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gx-scanner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Scanner toggle — smaller variant of the main app toggle ──────────────── */
/* theme.css sets .toggle-switch { pointer-events: none } and only re-enables  */
/* it inside .strategy-row.unlocked. The scanner toggle lives in               */
/* .gx-scanner-card, so we must explicitly restore pointer-events here.        */
.gx-scanner-toggle {
  width: 34px;
  height: 19px;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
}

.gx-scanner-toggle .toggle-knob {
  width: 13px;
  height: 13px;
  top: 2px;
  left: 2px;
}

.gx-scanner-toggle.on .toggle-knob {
  transform: translateX(15px);
}

/* ── Scanner body (collapsible) — no CSS transition to avoid layout jump ──── */
.gx-scanner-body {
  margin-top: 8px;
}

/* ── Stable row height: prevents layout jumping when content changes ─────── */
.gx-scan-row {
  min-height: 38px;
}

.gx-scanner-status {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.gx-scanner-status.idle {
  background: rgba(100, 100, 100, 0.15);
  border: 1px solid rgba(150, 150, 150, 0.22);
  color: #94a3b8;
}

.gx-scanner-status.scanning {
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.36);
  color: #fbbf24;
}

.gx-scanner-status.ready {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #4ade80;
}

.gx-scanner-status.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #f87171;
}

.gx-scanner-status.warming {
  background: rgba(99, 102, 241, 0.13);
  border: 1px solid rgba(99, 102, 241, 0.30);
  color: #818cf8;
}

.gx-scan-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.gx-scan-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.18);
}

.gx-scan-btn:disabled {
  opacity: 0.40;
  cursor: not-allowed;
}

.gx-scanner-hint {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.42);
  margin-bottom: 8px;
}

.gx-scanner-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gx-scan-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto auto;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: default;
  transition: all 0.15s;
}

.gx-scan-row:hover:not(.error-row) {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.28);
}

.gx-scan-row.selected {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.45);
}

/* Error rows: dimmed, no pointer, no hover highlight */
.gx-scan-row.error-row {
  opacity: 0.48;
  cursor: default;
}

.gx-scan-sym {
  font-size: 10.5px;
  font-weight: 600;
  color: #f0e4c8;
  line-height: 1.4;
}

/* Small market-type label below symbol name */
.gx-scan-mkt {
  font-size: 9px;
  font-weight: 400;
  color: rgba(175, 195, 240, 0.45);
  display: inline;
}

/* ── Per-row status badge: READY / WAIT / SKIP / ERROR ──────────────────────── */
.gx-scan-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

.gx-scan-badge.ready {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.gx-scan-badge.wait {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.gx-scan-badge.skip {
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(148, 163, 184, 0.65);
}

.gx-scan-badge.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #f87171;
}

.gx-scan-badge.warming {
  background: rgba(99, 102, 241, 0.13);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #818cf8;
}

.gx-scan-badge.waiting {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(148, 163, 184, 0.55);
}

.gx-scan-side {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.gx-scan-side.over {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #4ade80;
}

.gx-scan-side.under {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}

.gx-scan-pct {
  font-size: 11px;
  font-weight: 700;
  color: #c084fc;
  min-width: 42px;
  text-align: right;
}

.gx-scan-recent {
  font-size: 10px;
  font-family: monospace;
  color: rgba(200, 180, 140, 0.55);
  letter-spacing: 2px;
  min-width: 48px;
  text-align: right;
}

.gx-scan-empty {
  text-align: center;
  font-size: 11px;
  color: rgba(175, 195, 240, 0.35);
  padding: 18px 0;
}

/* ── Live analysis extra stats ────────────────────────────────────────────────── */
.gx-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 7px;
  margin-top: 11px;
}

.gx-stat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 7px 9px;
  text-align: center;
}

.gx-stat-label {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.gx-stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}

.gx-stat-value.high { color: #22c55e; }
.gx-stat-value.low  { color: #ef4444; }
.gx-stat-value.warn { color: #f59e0b; }

/* ── Detail row (last digit / tick count / bias) ──────────────────────────────── */
.gx-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 9px;
}

.gx-detail-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.gx-detail-label {
  font-size: 9px;
  color: rgba(175, 195, 240, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.gx-detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}

.gx-detail-value.over  { color: #4ade80; }
.gx-detail-value.under { color: #fbbf24; }

/* ── Digit distribution bars ──────────────────────────────────────────────────── */
.gx-dist-section-title {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.48);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
  margin-bottom: 6px;
}

.gx-dist-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gx-dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 26px;
  gap: 6px;
  align-items: center;
}

.gx-dist-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(200, 178, 130, 0.68);
  text-align: right;
  font-family: monospace;
}

.gx-dist-label.danger { color: #f87171; }

.gx-dist-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.gx-dist-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.45s ease;
}

.gx-dist-fill.safe    { background: linear-gradient(90deg, rgba(34,197,94,0.55), #4ade80); }
.gx-dist-fill.danger  { background: linear-gradient(90deg, rgba(239,68,68,0.55),  #f87171); }
.gx-dist-fill.neutral { background: linear-gradient(90deg, rgba(99,102,241,0.50), #818cf8); }

.gx-dist-count {
  font-size: 9px;
  color: rgba(175, 195, 240, 0.48);
  text-align: left;
  font-family: monospace;
}

/* ── Analyzer tick danger highlight ───────────────────────────────────────────── */
.gx-tick-danger {
  color: #ef4444 !important;
  font-weight: 700;
}

/* ── Streak warning banner ────────────────────────────────────────────────────── */
.gx-warning {
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(239, 68, 68, 0.11);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 7px;
  color: #f87171;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

/* ── Auto status info bar ─────────────────────────────────────────────────────── */
.gx-auto-info {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gx-auto-info.scanning {
  background: rgba(234, 179, 8, 0.09);
  border: 1px solid rgba(234, 179, 8, 0.26);
  color: #fbbf24;
}

.gx-auto-info.placing {
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.26);
  color: #4ade80;
}

.gx-auto-info.cooldown {
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.26);
  color: #c084fc;
}

.gx-auto-info.error {
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.26);
  color: #f87171;
}

.gx-auto-info.hidden { display: none; }

.gx-cd-remaining {
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
}

/* ── Place Trade button ───────────────────────────────────────────────────────── */
.gx-btn-trade {
  width: 100%;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid rgba(168, 85, 247, 0.50);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(139, 92, 246, 0.14));
  color: #c084fc;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.gx-btn-trade:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(139, 92, 246, 0.22));
  border-color: rgba(168, 85, 247, 0.72);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
}

.gx-btn-trade:disabled { opacity: 0.36; cursor: not-allowed; }

/* ── Auto Trade button ────────────────────────────────────────────────────────── */
.gx-btn-auto {
  width: 100%;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  background: rgba(168, 85, 247, 0.09);
  color: #a78bfa;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.gx-btn-auto:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.58);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.22);
}

.gx-btn-auto.running {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.11);
  color: #f87171;
  animation: premiumRedButtonBreathe 3s ease-in-out infinite;
}

.gx-btn-auto:disabled { opacity: 0.36; cursor: not-allowed; }

/* ── Filter buttons ───────────────────────────────────────────────────────────── */
.gx-filter-btn {
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(175, 195, 240, 0.60);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s;
  white-space: nowrap;
  font-family: inherit;
}

.gx-filter-btn:hover {
  background: rgba(168, 85, 247, 0.10);
  border-color: rgba(168, 85, 247, 0.28);
  color: #c084fc;
}

.gx-filter-btn.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.46);
  color: #c084fc;
}

/* ── Trade card pill variants ────────────────────────────────────────────────── */
.tc-pill.over {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.30);
}

.tc-pill.under {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.30);
}

/* ── Card header (shared: manual exec + auto brain) ───────────────────────── */
.gx-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.gx-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #e0d0a8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gx-card-sub {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.42);
}

/* ── Manual Execution card ────────────────────────────────────────────────── */
.gx-manual-exec-card {
  background: rgba(10, 14, 28, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 8px;
  padding: 12px 13px;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.08);
  animation: premiumGoldBreathe 5.0s ease-in-out infinite 0.8s;
}

.gx-manual-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.gx-side-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gx-side-label.over  { color: rgba(74, 222, 128, 0.80); }
.gx-side-label.under { color: rgba(251, 191, 36, 0.80); }

.gx-side-stake {
  background: rgba(8, 6, 2, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  color: #f0e4c8;
  font-size: 13px;
  font-family: inherit;
  padding: 5px 8px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
}

.gx-side-stake:focus {
  border-color: rgba(168, 85, 247, 0.50);
}

/* OVER 0 manual button — green */
.gx-btn-manual-over {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.50);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.20), rgba(22, 163, 74, 0.12));
  color: #4ade80;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.gx-btn-manual-over:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.32), rgba(22, 163, 74, 0.20));
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.24);
}

.gx-btn-manual-over:disabled { opacity: 0.35; cursor: not-allowed; }

/* UNDER 9 manual button — amber */
.gx-btn-manual-under {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.50);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.20), rgba(217, 119, 6, 0.12));
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.gx-btn-manual-under:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.32), rgba(217, 119, 6, 0.20));
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.22);
}

.gx-btn-manual-under:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Auto Brain card ─────────────────────────────────────────────────────── */
.gx-auto-brain-card {
  background: rgba(10, 14, 28, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.30);
  border-radius: 8px;
  padding: 12px 13px;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.10);
  animation: premiumBlueBreathe 5.5s ease-in-out infinite 2.0s;
}

/* ── Brain snapshot row ──────────────────────────────────────────────────── */
.gx-brain-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 12px;
}

.gx-snap-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 7px 9px;
  text-align: center;
}

.gx-snap-label {
  font-size: 9px;
  color: rgba(175, 195, 240, 0.50);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 3px;
}

.gx-snap-val {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.gx-snap-val.over     { color: #4ade80; }
.gx-snap-val.under    { color: #fbbf24; }
.gx-snap-val.high     { color: #22c55e; }
.gx-snap-val.low      { color: #ef4444; }
.gx-snap-val.active   { color: #818cf8; }
.gx-snap-val.cooldown { color: #c084fc; }
.gx-snap-val.error    { color: #f87171; }

/* ── Brain OVER / UNDER rows ─────────────────────────────────────────────── */
.gx-brain-side-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}

.gx-brain-side-header {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.gx-side-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.gx-side-badge.over {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.gx-side-badge.under {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}

.gx-brain-side-label {
  font-size: 10px;
  color: rgba(175, 195, 240, 0.55);
  white-space: nowrap;
}

/* Brain side toggle — must override theme.css pointer-events: none */
.gx-brain-toggle {
  width: 34px;
  height: 19px;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: pointer;
}

.gx-brain-toggle .toggle-knob {
  width: 13px;
  height: 13px;
  top: 2px;
  left: 2px;
}

.gx-brain-toggle.on .toggle-knob {
  transform: translateX(15px);
}

.gx-brain-side-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.gx-inp-label {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.50);
  white-space: nowrap;
}

.gx-brain-stake-inp {
  background: rgba(8, 6, 2, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 5px;
  color: #f0e4c8;
  font-size: 12px;
  font-family: inherit;
  padding: 4px 7px;
  width: 72px;
  outline: none;
}

.gx-brain-stake-inp:focus {
  border-color: rgba(99, 102, 241, 0.50);
}

.gx-brain-stake-inp:disabled {
  opacity: 0.45;
}

/* ── Brain settings row (confidence + cooldown) ──────────────────────────── */
.gx-brain-settings-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gx-brain-setting {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 100px;
}

/* Confidence preset buttons (75 / 85 / 90 / 95) */
.gx-brain-conf-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.gx-brain-conf-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.30);
  background: rgba(99, 102, 241, 0.08);
  color: rgba(165, 180, 252, 0.65);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.gx-brain-conf-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.55);
  color: #a5b4fc;
}

.gx-brain-conf-btn.active {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(99, 102, 241, 0.70);
  color: #c7d2fe;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.22);
}

.gx-brain-conf-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Streak Filter panel (inside Auto Brain card) ───────────────────────── */
.gx-brain-streak-block {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.gx-brain-streak-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.gx-brain-streak-title {
  font-size: 12px;
  font-weight: 600;
  color: #d8b4fe;
}

/* Body: collapsed by default, expanded via .visible */
.gx-brain-streak-body {
  display: none;
  margin-top: 10px;
}

.gx-brain-streak-body.visible {
  display: block;
}

.gx-streak-threshold-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.gx-streak-threshold-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.gx-streak-th-btn {
  background: rgba(168, 85, 247, 0.10);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: #c4b5fd;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.gx-streak-th-btn:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.20);
  border-color: rgba(168, 85, 247, 0.50);
  color: #e9d5ff;
}

.gx-streak-th-btn.active {
  background: rgba(168, 85, 247, 0.32);
  border-color: #a855f7;
  color: #f3e8ff;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.38);
}

.gx-streak-th-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.gx-streak-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Live progress panel (shown only when auto is running) */
.gx-streak-progress {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.12);
  border-radius: 8px;
}

.gx-streak-prog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.gx-streak-prog-label { color: #94a3b8; }

.gx-streak-prog-val {
  color: #e2e8f0;
  font-weight: 600;
  max-width: 160px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gx-streak-prog-bar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 5px;
}

.gx-streak-prog-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.gx-streak-prog-text {
  font-size: 11px;
  color: #c4b5fd;
  text-align: center;
  font-weight: 600;
  margin-bottom: 3px;
}

.gx-streak-pairs-note {
  font-size: 10px;
  color: #64748b;
  text-align: right;
}

/* Current trading symbol row (shows when best pair differs from selected) */
.gx-streak-current-row {
  display: none;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
  padding: 5px 8px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.20);
  border-radius: 5px;
}
.gx-streak-current-text {
  font-size: 11px;
  color: #c084fc;
  line-height: 1.4;
}

/* ── Section divider (e.g. "NORMAL AUTO" label line) ────────────────────── */
.gx-section-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}
.gx-section-divider::before,
.gx-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(99, 102, 241, 0.25);
}
.gx-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(165, 180, 252, 0.55);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Brain Start / Stop button row ──────────────────────────────────────── */
.gx-brain-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.gx-btn-brain-start {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.55);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.14));
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.gx-btn-brain-start:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(79, 70, 229, 0.22));
  border-color: rgba(99, 102, 241, 0.80);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.26);
}

.gx-btn-brain-start:disabled { opacity: 0.35; cursor: not-allowed; }

.gx-btn-brain-stop {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.10);
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.gx-btn-brain-stop:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.20);
  border-color: rgba(239, 68, 68, 0.70);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.20);
  animation: premiumRedButtonBreathe 2s ease-in-out infinite;
}

.gx-btn-brain-stop:disabled { opacity: 0.30; cursor: not-allowed; }

/* ── Auto Brain — side-by-side UNDER/OVER columns ────────────────────────── */
.gx-brain-sides-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.gx-brain-side-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
}

.gx-brain-side-col .gx-brain-side-header {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.gx-brain-side-col .gx-brain-side-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
}

/* ── Manual Execution — stake display (replaces per-side inputs) ──────────── */
.gx-manual-stake-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 6px;
  margin-bottom: 9px;
}

.gx-manual-stake-note {
  font-size: 9.5px;
  color: rgba(175, 195, 240, 0.50);
  font-style: italic;
}

.gx-manual-stake-display {
  font-size: 12px;
  font-weight: 700;
  color: rgba(168, 85, 247, 0.85);
  font-variant-numeric: tabular-nums;
}

/* ── Scanner — Use Pair button ────────────────────────────────────────────── */
.gx-use-pair-btn {
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.10);
  color: #c084fc;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.gx-scan-trap {
  display: inline-block;
  margin-left: 6px;
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
}

.gx-use-pair-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.70);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.20);
}

/* ── Mobile ───────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gx-stats-grid        { grid-template-columns: 1fr 1fr; }
  .gx-detail-row        { grid-template-columns: 1fr 1fr; }
  .gx-scan-row          { grid-template-columns: 1fr auto auto auto auto; }
  .gx-scan-recent       { display: none; }
  .gx-scan-mkt          { display: none; }
  .gx-btn-trade,
  .gx-btn-auto          { font-size: 13px; padding: 11px 14px; }
  .gx-cd-btns           { gap: 4px; }
  .gx-manual-btn-row    { grid-template-columns: 1fr; }
  .gx-brain-snapshot    { grid-template-columns: 1fr 1fr; }
  .gx-brain-sides-row   { flex-direction: column; }
  .gx-brain-side-row    { flex-wrap: wrap; gap: 8px; }
  .gx-brain-side-inputs { margin-left: 0; }
  .gx-brain-conf-btns   { gap: 4px; }
  .gx-brain-btn-row     { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .gx-multiplier-row    { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gx-stats-grid        { grid-template-columns: 1fr 1fr; gap: 5px; }
  .gx-stat-value        { font-size: 14px; }
  .gx-detail-row        { grid-template-columns: 1fr 1fr; }
  .gx-brain-snapshot    { grid-template-columns: 1fr 1fr; }
  .gx-brain-settings-row{ flex-direction: column; }
}
