/* ══════════════════════════════════════════════════════════════════════════
   RISKOS 24/7 AUTONOMOUS BOT FLEET & RANKER STYLESHEET (fleet.css)
   ══════════════════════════════════════════════════════════════════════════ */

.fleet-page {
  background-color: #000000;
  color: #e4e4e7;
  font-family: 'Inter', -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Action Buttons */
.fleet-ctrl-btn {
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.start-btn { background: #10b981; color: #000; }
.start-btn:hover { background: #34d399; }
.pause-btn { background: #fab005; color: #000; }
.pause-btn:hover { background: #fcc419; }
.kill-btn { background: #f43f5e; color: #fff; }
.kill-btn:hover { background: #fb7185; }

/* Marquee Animation */
@keyframes marqueeScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Telemetry Grid */
.telemetry-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tel-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #a1a1aa;
  text-transform: uppercase;
  font-weight: 700;
}

.tel-val {
  font-size: 1.22rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
  font-family: 'JetBrains Mono', monospace;
}

.tel-sub {
  font-size: 0.68rem;
  color: #71717a;
}

/* Time Travel Accelerator Bar */
.time-travel-bar {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.time-travel-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.time-badge {
  font-size: 0.78rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-travel-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-time-travel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-time-travel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #22d3ee;
}

.btn-time-travel.highlight {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #51CF66;
}

.btn-time-travel.highlight:hover {
  background: rgba(16, 185, 129, 0.35);
}

.btn-time-travel.reset {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

/* Control & Filter Strip */
.fleet-control-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.market-pills {
  display: flex;
  gap: 8px;
}

.market-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #a1a1aa;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.market-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.market-pill-btn.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
  color: #22d3ee;
  font-weight: 700;
}

.view-mode-toggle-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.view-toggle-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: #aaa;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-btn.active {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

.search-filter-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon-mini {
  position: absolute;
  left: 10px;
  color: #71717a;
  font-size: 0.75rem;
}

.bot-filter-input {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 12px 6px 28px;
  border-radius: 8px;
  font-size: 0.76rem;
  width: 220px;
  outline: none;
}

.bot-filter-input:focus {
  border-color: #22d3ee;
}

/* 20-Bot Matrix Grid */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bot-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.bot-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.bot-card.paused {
  opacity: 0.65;
  border-color: rgba(250, 176, 5, 0.3);
}

.bot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.bot-card-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bot-id-badge {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: #71717a;
  font-weight: 700;
}

.bot-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.bot-sector-tag {
  font-size: 0.68rem;
  color: #22d3ee;
  font-weight: 600;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.04em;
}

.status-running {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-paused {
  background: rgba(250, 176, 5, 0.15);
  color: #fab005;
  border: 1px solid rgba(250, 176, 5, 0.3);
}

.bot-math-badge {
  font-size: 0.68rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bot-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.bot-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px 8px;
}

.bot-stat-label {
  font-size: 0.6rem;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 700;
}

.bot-stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.bot-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-btn-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #aaa;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bot-btn-mini:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.bot-btn-toggle {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ═══════════════════ LEADERBOARD RANKER TABLE ═══════════════════ */
.ranker-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.ranker-select {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #22d3ee;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.ranker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.ranker-table th {
  color: #71717a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ranker-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ranker-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.rank-badge {
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.rank-1 { background: rgba(250, 176, 5, 0.25); color: #fab005; border: 1px solid rgba(250, 176, 5, 0.5); }
.rank-2 { background: rgba(228, 228, 231, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.rank-3 { background: rgba(217, 119, 6, 0.2); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.4); }
.rank-other { color: #71717a; }

/* Tier Badges */
.tier-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-block;
}

.tier-s { background: linear-gradient(135deg, rgba(250, 176, 5, 0.3), rgba(244, 63, 94, 0.3)); color: #fab005; border: 1px solid rgba(250, 176, 5, 0.5); }
.tier-a { background: rgba(34, 211, 238, 0.15); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.4); }
.tier-b { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Analytics Row */
.fleet-analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.obs-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.obs-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.obs-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs-card-title h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.blotter-stream {
  max-height: 260px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blotter-row {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #10b981;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
}

.blotter-row.sell {
  border-left-color: #f43f5e;
}

/* Modal */
.bot-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
}

.bot-modal-content {
  background: #0c101c;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 14px;
  width: 92%;
  max-width: 820px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}

.bot-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.btn-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-close:hover {
  color: #fff;
}

@media (max-width: 992px) {
  .fleet-analytics-row {
    grid-template-columns: 1fr;
  }
  .bot-grid {
    grid-template-columns: 1fr;
  }
}


/* Speed toggles */
.speed-toggle-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.speed-btn.active {
  background: rgba(34, 211, 238, 0.25);
  border-color: #22d3ee;
  color: #22d3ee;
}

/* Blotter view toggles */
.blotter-view-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.blot-toggle-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.blot-toggle-btn.active {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

/* Modal Tab Bar */
.modal-tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.modal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #a1a1aa;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.modal-tab-btn.active {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
}

/* Level 2 Depth styling in modal */
.l2-book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
}

.l2-col-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.l2-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  position: relative;
}

.l2-bid-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(16, 185, 129, 0.12);
  z-index: 1;
}

.l2-ask-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: rgba(244, 63, 94, 0.12);
  z-index: 1;
}

.l2-val {
  position: relative;
  z-index: 2;
}

/* Order state badges */
.order-state-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-scanning { background: rgba(113, 113, 122, 0.2); color: #a1a1aa; border: 1px solid rgba(113, 113, 122, 0.3); }
.badge-routing { background: rgba(250, 176, 5, 0.2); color: #fab005; border: 1px solid rgba(250, 176, 5, 0.4); }
.badge-holding { background: rgba(34, 211, 238, 0.2); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.4); }
.badge-filled { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }


/* ══════════════════════════════════════════════════════════════════════════
   MATHJAX 3 FORMULA CARDS & RENDERING
   ══════════════════════════════════════════════════════════════════════════ */
.bot-math-card {
  background: rgba(4, 6, 10, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bot-math-title {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.math-jax-block {
  color: #22d3ee;
  font-size: 0.82rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  text-align: center;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.math-jax-block .katex-display {
  margin: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.4) transparent;
}

.math-jax-block .katex {
  color: #22d3ee !important;
  font-size: 0.95em;
  text-rendering: auto;
}

.math-jax-block .katex-html {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-jax-block mjx-container {
  margin: 0 !important;
  color: #22d3ee !important;
  outline: none !important;
}

.math-jax-block-mini {
  color: #22d3ee;
  font-size: 0.76rem;
  overflow-x: auto;
  padding: 2px 0;
  max-width: 260px;
}

.math-jax-block-mini mjx-container {
  margin: 0 !important;
  outline: none !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   GREEK MYTHOLOGY NICKNAMES & QUICK RANKER STYLING
   ══════════════════════════════════════════════════════════════════════════ */
.greek-myth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.22) 0%, rgba(34, 211, 238, 0.15) 100%);
  border: 1px solid rgba(255, 176, 0, 0.45);
  color: #ffb000;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(255, 176, 0, 0.15);
}

.greek-myth-sub {
  font-size: 0.65rem;
  color: #a1a1aa;
  font-weight: 500;
  margin-left: 4px;
}

.quick-rank-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.quick-rank-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.quick-rank-pill.active {
  background: rgba(255, 176, 0, 0.2);
  border-color: #ffb000;
  color: #ffb000;
  box-shadow: 0 0 12px rgba(255, 176, 0, 0.25);
}


/* ══════════════════════════════════════════════════════════════════════════
   FLEET MISSION RUNTIME BANNER & REAL-TIME STREAMING TELEMETRY STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.fleet-runtime-banner {
  background: linear-gradient(90deg, #050811 0%, #0c1222 50%, #050811 100%);
  border-bottom: 1px solid rgba(255, 176, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 24px;
}

.runtime-banner-inner {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.runtime-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
}

.runtime-banner-left strong {
  color: #22d3ee;
}

.runtime-counter-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 176, 0, 0.45);
  padding: 5px 16px;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 176, 0, 0.15);
}

.runtime-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.70rem;
  font-weight: 800;
  color: #ffb000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.runtime-clock-digits {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffffff;
}

.clock-segment {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.clock-segment .digit {
  color: #ffb000;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.45);
  min-width: 22px;
  text-align: right;
}

.clock-segment .unit {
  font-size: 0.60rem;
  color: #a1a1aa;
  font-weight: 700;
  margin-right: 2px;
}

.clock-colon {
  color: #71717a;
  font-weight: 900;
  font-size: 0.92rem;
  animation: colonBlink 1s infinite;
}

@keyframes colonBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.runtime-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pulse-green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-latency {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Real-Time Price Flash Animations */
.tick-flash-up {
  animation: flashGreen 0.6s ease;
}

.tick-flash-down {
  animation: flashRed 0.6s ease;
}

@keyframes flashGreen {
  0% { background-color: rgba(16, 185, 129, 0.4); color: #10b981; }
  100% { background-color: transparent; }
}

@keyframes flashRed {
  0% { background-color: rgba(244, 63, 94, 0.4); color: #f43f5e; }
  100% { background-color: transparent; }
}

.ticker-item-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.bot-card-uptime-tag {
  font-size: 0.62rem;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ══════════════════════════════════════════════════════════════════════════
   PANTHEON DIVISIONS & SENTIMENT WIDGET STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.pantheon-scoreboard-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .pantheon-scoreboard-strip {
    grid-template-columns: 1fr;
  }
}

.division-score-card {
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.olympus-card {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.08) 0%, rgba(34, 211, 238, 0.04) 100%);
  border: 1px solid rgba(255, 176, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 176, 0, 0.08);
}

.valhalla-card {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(244, 63, 94, 0.04) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.08);
}

.div-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.div-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.olympus-badge {
  background: rgba(255, 176, 0, 0.2);
  color: #ffb000;
  border: 1px solid rgba(255, 176, 0, 0.5);
}

.valhalla-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.5);
}

.div-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: #a1a1aa;
}

.div-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.div-stat {
  display: flex;
  flex-direction: column;
}

.div-stat-lbl {
  font-size: 0.64rem;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 600;
}

.div-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Greek vs Norse Badges */
.myth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.myth-badge-greek {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.22) 0%, rgba(34, 211, 238, 0.15) 100%);
  border: 1px solid rgba(255, 176, 0, 0.45);
  color: #ffb000;
  box-shadow: 0 2px 8px rgba(255, 176, 0, 0.15);
}

.myth-badge-norse {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.22) 0%, rgba(244, 63, 94, 0.15) 100%);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}

.myth-badge-egyptian {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(245, 158, 11, 0.18) 100%);
  border: 1px solid rgba(234, 179, 8, 0.55);
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.2);
}

/* Dynamic Sentiment Barometer on Cards */
.sentiment-barometer-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.sentiment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
}

.sentiment-meter-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.sentiment-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease, background 0.4s ease;
}

.sentiment-signal-text {
  font-size: 0.62rem;
  color: #a1a1aa;
  margin-top: 3px;
  line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════════════════════
   7 QUANTUM BREAKTHROUGH FEATURES TOOLBAR & MODAL STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.quantum-feature-strip {
  background: rgba(18, 18, 24, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
}

.q-feature-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-quantum-feature {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-quantum-feature:hover {
  background: #27272a;
  border-color: #ffb000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 176, 0, 0.15);
}

.btn-quantum-feature.highlight-memo {
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: #ffb000;
  color: #ffb000;
}

.btn-quantum-feature.defcon-btn {
  border-color: rgba(16, 185, 129, 0.4);
}

.copilot-bubble {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.copilot-bubble.assistant {
  background: #1e1b4b;
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
}

.copilot-bubble.user {
  background: #27272a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  align-self: flex-end;
}

.defcon-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.defcon-option-row:hover {
  background: #27272a;
  border-color: #ffb000;
}

.defcon-option-row.active {
  border-color: #ffb000;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.2);
}



/* ══════════════════════════════════════════════════════════════════════════
   TRADED STOCKS & REAL-TIME EXECUTION BLOTTER (PER-BOT INTELLIGENCE)
   ══════════════════════════════════════════════════════════════════════════ */
.bot-traded-stocks-box {
  background: rgba(10, 14, 23, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5);
}

.traded-stocks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.traded-stocks-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}

.traded-stock-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.traded-vol-tally {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
}

.tally-buy {
  color: #10b981;
  font-weight: 700;
}

.tally-sell {
  color: #f43f5e;
  font-weight: 700;
}

.tally-divider {
  color: #52525b;
}

.mini-blotter-container {
  background: rgba(4, 6, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
}

.mini-blotter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  color: #71717a;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mini-blotter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.67rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
  gap: 4px;
}

.mini-blotter-row:last-child {
  border-bottom: none;
}

.mini-side-tag {
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-buy {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.tag-sell {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.mini-trade-stock {
  color: #fff;
  font-weight: 700;
}

.mini-trade-qty {
  color: #d4d4d8;
}

.mini-trade-time {
  color: #71717a;
  font-size: 0.62rem;
}

.mini-trade-pnl {
  font-size: 0.66rem;
}

/* Modal Blotter Ribbon & Table */
.audit-summary-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.audit-kpi-card {
  background: rgba(4, 6, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.audit-kpi-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  display: block;
  margin-bottom: 4px;
}

.audit-kpi-val {
  font-size: 1.1rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.audit-kpi-sub {
  font-size: 0.65rem;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
}

.audit-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.audit-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audit-filter-btn:hover, .audit-filter-btn.active {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22d3ee;
  color: #22d3ee;
}

/* ══════════════════════════════════════════════════════════════════════════
   PANTHEON DIVISION TELEMETRY SCORECARD & TOTAL FLEET PROFIT HERO STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.pantheon-scoreboard-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.division-score-card {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.division-score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.olympus-card {
  border-color: rgba(245, 158, 11, 0.3);
}

.valhalla-card {
  border-color: rgba(34, 211, 238, 0.3);
}

.egyptian-card {
  border-color: rgba(234, 179, 8, 0.4);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.05) 0%, rgba(9, 13, 22, 0.98) 100%);
}

.grand-total-card {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(9, 13, 22, 0.98) 100%);
}

.div-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.div-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.olympus-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.valhalla-badge {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.div-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.div-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.div-stat-lbl {
  font-size: 0.65rem;
  color: #a1a1aa;
  font-weight: 700;
  text-transform: uppercase;
}

.div-stat-val {
  font-size: 0.98rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}


/* ══════════════════════════════════════════════════════════════════════════
   REAL-TIME LIVE PRICE STRIP & TOAST NOTIFICATION STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.bot-live-price-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 6px 0 10px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  flex-wrap: wrap;
}

.bot-live-price-strip .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 1.5s infinite ease-in-out;
  display: inline-block;
}

.bot-live-price-strip .live-symbol {
  color: #a1a1aa;
  font-weight: 600;
}

.bot-live-price-strip .live-price {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
}

.bot-live-price-strip .live-chg {
  font-weight: 700;
  font-size: 0.74rem;
}

.bot-live-price-strip .live-src-badge {
  margin-left: auto;
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.25);
  text-transform: uppercase;
  font-weight: 700;
}

/* Fleet Live Toast Notifications */
.fleet-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.fleet-toast-msg {
  background: rgba(9, 13, 22, 0.96);
  border: 1px solid #10b981;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(16, 185, 129, 0.35);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fleet-toast-msg.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

@keyframes pulseBeacon {
  0% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.6; box-shadow: 0 0 4px #10b981; }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BEGINNER-FRIENDLY DASHBOARD & INTERACTION SUITE
   ========================================================================== */

/* KaTeX duplicate formula copy fix: hide internal MathML rendering during copy/select */
.katex-mathml {
  display: none !important;
}

/* 1. Beginner Quick-Start Onboarding Guide Banner */
.beginner-onboarding-banner {
  margin-bottom: 16px;
  animation: cardEntrance 0.35s ease-out;
}

.beginner-guide-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(245, 158, 11, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #ffffff;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-dismiss-guide {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-dismiss-guide:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fb7185;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.guide-col {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-col:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.guide-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.bg-cyan-soft { background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.3); }
.bg-purple-soft { background: rgba(168, 85, 247, 0.14); border: 1px solid rgba(168, 85, 247, 0.3); }
.bg-green-soft { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-amber-soft { background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.3); }

.guide-body h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
}

.guide-body p {
  font-size: 0.72rem;
  color: #a1a1aa;
  line-height: 1.45;
  margin: 0;
}

/* 2. Collapsible Tools & Speed Drawer */
.tools-drawer-wrapper {
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.tools-drawer-wrapper:hover {
  border-color: rgba(34, 211, 238, 0.45);
}

.tools-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.tools-drawer-header:hover {
  background: rgba(30, 41, 59, 0.75);
}

.drawer-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.drawer-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #22d3ee;
  font-size: 0.8rem;
}

.drawer-chevron.rotated {
  transform: rotate(180deg);
}

.tools-drawer-content {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: cardEntrance 0.25s ease-out;
}

/* Guide Toggle Button in strip */
.guide-toggle-btn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.guide-toggle-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef08a;
}

/* 3. Beginner Card Architecture */
.beginner-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 20, 32, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
  padding: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.beginner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(34, 211, 238, 0.1);
}

.beginner-explainer-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
}

.explainer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.explainer-text {
  font-size: 0.74rem;
  color: #d4d4d8;
  line-height: 1.45;
  margin: 0;
}

.risk-level-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.risk-low {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.risk-mod {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.risk-growth {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.beginner-asset-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 7px 12px;
  margin: 10px 0;
  gap: 10px;
  min-height: 38px;
  box-sizing: border-box;
  overflow: hidden;
}

.asset-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.asset-label {
  font-size: 0.65rem;
  color: #71717a;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.asset-symbol {
  font-family: 'JetBrains Mono', monospace;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.asset-name {
  color: #a1a1aa;
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.asset-quote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  white-space: nowrap;
}

.asset-quote .quote-val {
  color: #e4e4e7;
  font-size: 0.82rem;
  font-weight: 800;
}

.asset-quote .quote-chg {
  font-size: 0.72rem;
  font-weight: 700;
}

.beginner-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.b-stat-card {
  background: rgba(10, 14, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.b-stat-lbl {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b-stat-sub {
  font-size: 0.62rem;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beginner-live-status {
  background: rgba(4, 6, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.live-status-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #a1a1aa;
  letter-spacing: 0.04em;
}

.live-status-body {
  font-size: 0.72rem;
  overflow: hidden;
  word-break: break-word;
}

.collapsible-math-wrap {
  margin-bottom: 12px;
}

.btn-expand-math {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 6px;
  padding: 6px 10px;
  color: #22d3ee;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-expand-math:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.45);
}

.math-chevron {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.math-chevron.open {
  transform: rotate(180deg);
}

.math-drawer-content {
  padding: 10px;
  background: rgba(2, 4, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-radius: 0 0 6px 6px;
  animation: cardEntrance 0.2s ease-out;
}

/* ==========================================================================
   PANTHEON DIVISION SECTION HEADERS & DISTINCT THEME ACCENTS
   ========================================================================== */

.pantheon-division-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 22px;
  margin-bottom: 4px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.pantheon-division-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
}

/* 1. Mount Olympus Division */
.division-header-olympus {
  border-color: rgba(255, 176, 0, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 176, 0, 0.08);
}
.division-header-olympus::before {
  background: linear-gradient(180deg, #ffb000 0%, #d97706 100%);
}

/* 2. Valhalla Division */
.division-header-valhalla {
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(96, 165, 250, 0.08);
}
.division-header-valhalla::before {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

/* 3. Duat & Karnak Division */
.division-header-egyptian {
  border-color: rgba(234, 179, 8, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(234, 179, 8, 0.08);
}
.division-header-egyptian::before {
  background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
}

.div-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.div-icon-symbol {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.div-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.div-flag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.div-sub {
  font-size: 0.74rem;
  color: #a1a1aa;
}

.div-status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseBeacon 1.8s infinite;
}

.div-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.div-metric-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  text-align: right;
}

.div-metric-chip.profit {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.chip-lbl {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #71717a;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.chip-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 800;
}

/* Card Pantheon Accents */
.card-pantheon-greek {
  border-color: rgba(255, 176, 0, 0.22);
}
.card-pantheon-greek:hover {
  border-color: rgba(255, 176, 0, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 176, 0, 0.12);
}

.card-pantheon-norse {
  border-color: rgba(96, 165, 250, 0.22);
}
.card-pantheon-norse:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(96, 165, 250, 0.12);
}

.card-pantheon-egyptian {
  border-color: rgba(234, 179, 8, 0.22);
}
.card-pantheon-egyptian:hover {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(234, 179, 8, 0.12);
}

/* Card Entrance & Smooth Transitions */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-card {
  animation: cardEntrance 0.25s ease-out;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
}

