/* ===================================================================
   TRAINQUANTS IRL QUANT DESK SIMULATIONS — STYLESHEET
   The Premier Hands-On Quantitative Engineering System Builder (USP)
   Architecture Design • Modular Implementation • Live L2 Tick Simulation
   =================================================================== */

:root {
  --sim-bg-void: #000000;
  --sim-bg-surface: #0a0c12;
  --sim-bg-card: rgba(14, 18, 28, 0.75);
  --sim-bg-elevated: rgba(22, 26, 38, 0.88);

  --sim-blue: #2997ff;
  --sim-blue-glow: rgba(41, 151, 255, 0.28);
  --sim-cyan: #70b4ff;
  --sim-cyan-glow: rgba(41, 151, 255, 0.2);
  --sim-emerald: #10b981;
  --sim-emerald-glow: rgba(16, 185, 129, 0.25);
  --sim-amber: #f59e0b;
  --sim-rose: #f43f5e;
  --sim-purple: #a855f7;

  --sim-border: rgba(255, 255, 255, 0.08);
  --sim-border-bright: rgba(255, 255, 255, 0.16);
  --sim-border-accent: rgba(41, 151, 255, 0.4);

  --sim-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", 'Syne', sans-serif;
  --sim-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", 'Plus Jakarta Sans', sans-serif;
  --sim-font-mono: "SF Mono", 'JetBrains Mono', monospace;
}

/* Base Container & Header Adjustments */
.sim-container {
  max-width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 16px 80px 16px;
  box-sizing: border-box;
}

/* USP Tag in Header */
.qt-nav-btn.usp-highlight {
  position: relative;
  background: rgba(41, 151, 255, 0.12) !important;
  border-color: rgba(41, 151, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.2);
}

.qt-nav-btn.usp-highlight .usp-tag {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #2997ff, #38bdf8);
  color: #000;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

/* ===================================================================
   HERO INTRO SECTION
   =================================================================== */
.sim-hero-section {
  padding: 36px 0 28px 0;
  text-align: center;
  position: relative;
}

.sim-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: 999px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #70b4ff;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.12);
}

.sim-hero-badge i {
  color: var(--sim-blue);
}

.sim-hero-title {
  font-family: var(--sim-font-display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.sim-hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #70b4ff 60%, #2997ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sim-hero-desc {
  max-width: 820px;
  margin: 0 auto 24px auto;
  font-family: var(--sim-font-sans);
  font-size: 15.5px;
  color: #a1a1aa;
  line-height: 1.6;
}

.sim-usp-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.sim-usp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: var(--sim-font-mono);
  font-size: 11.5px;
  color: #cbd5e1;
}

.sim-usp-pill i {
  color: var(--sim-cyan);
}

/* ===================================================================
   FLAGSHIP SCENARIO SELECTOR CAROUSEL
   =================================================================== */
.sim-scenario-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.sim-scenario-tab {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: rgba(14, 18, 28, 0.72);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sim-scenario-tab:hover {
  background: rgba(22, 28, 42, 0.88);
  border-color: rgba(41, 151, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(41, 151, 255, 0.15);
}

.sim-scenario-tab.active {
  background: rgba(16, 24, 44, 0.95);
  border-color: rgba(41, 151, 255, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 28px rgba(41, 151, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sim-scenario-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2997ff, #38bdf8);
}

.sim-scenario-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-scenario-id {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  color: var(--sim-cyan);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sim-scenario-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--sim-font-mono);
}

.sim-scenario-status.live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-scenario-status.preview {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-scenario-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.sim-scenario-desk {
  font-size: 11.5px;
  color: #94a3b8;
}

/* ===================================================================
   PROGRESSIVE 4-STEP PIPELINE STEPPER NAV
   =================================================================== */
.sim-pipeline-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 30px;
  position: sticky;
  top: 76px;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sim-step-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #94a3b8;
  font-family: var(--sim-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sim-step-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.sim-step-btn.active {
  background: rgba(41, 151, 255, 0.14);
  border-color: rgba(41, 151, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.15);
}

.sim-step-num {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.sim-step-btn.active .sim-step-num {
  background: #2997ff;
  color: #000000;
}

.sim-step-status-icon {
  font-size: 11px;
  margin-left: 2px;
}

.sim-step-btn.completed .sim-step-status-icon {
  color: #10b981;
}

/* ===================================================================
   STEP 1: BASIC STRUCTURE & PROBLEM FORMULATION
   =================================================================== */
.sim-view-panel {
  display: none;
  animation: simFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sim-view-panel.active {
  display: block;
}

@keyframes simFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-brief-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.sim-panel-card {
  background: rgba(14, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.sim-card-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sim-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-card-title i {
  color: var(--sim-cyan);
}

.sim-desk-badge {
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.sim-mandate-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--sim-blue);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.sim-specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.sim-spec-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
}

.sim-spec-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-spec-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-spec-tag {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.sim-spec-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 8px;
}

.sim-formula-snippet {
  font-family: var(--sim-font-mono);
  font-size: 11.5px;
  background: #04060a;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #70b4ff;
}

/* ===================================================================
   ACTIVE PROBLEM BANNER & WORKSPACE LAUNCHPAD
   =================================================================== */
.sim-active-problem-banner {
  background: linear-gradient(135deg, rgba(16, 24, 44, 0.95), rgba(10, 14, 26, 0.9));
  border: 1px solid rgba(41, 151, 255, 0.35);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

.sim-active-problem-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.sim-active-id-badge {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 800;
  background: #2997ff;
  color: #000000;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sim-active-desk-badge {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.sim-active-tier-badge {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.sim-active-sandbox-badge {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sim-active-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.sim-active-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.btn-sim-launch-sandbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #2997ff, #0284c7);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--sim-font-sans);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(41, 151, 255, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sim-launch-sandbox:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(41, 151, 255, 0.5);
  background: linear-gradient(135deg, #38bdf8, #2997ff);
}

.sim-card-solve-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.35);
  color: #70b4ff;
  transition: all 0.2s ease;
  width: fit-content;
}

.sim-scenario-tab:hover .sim-card-solve-pill,
.sim-scenario-tab.active .sim-card-solve-pill {
  background: #2997ff;
  color: #000000;
  border-color: #2997ff;
}

/* ===================================================================
   CANDIDATE API KEY & DATA FILE ASSETS HUB
   =================================================================== */
.sim-api-key-container {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(41, 151, 255, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.sim-api-key-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-key-status-dot {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  margin-left: 8px;
}

.sim-key-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-key-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.4);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-key-action:hover {
  background: rgba(41, 151, 255, 0.3);
  border-color: #2997ff;
  color: #ffffff;
}

.btn-key-action.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.btn-key-action.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sim-key-display-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #030508;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  flex-wrap: wrap;
}

.sim-key-label {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.06em;
}

.sim-key-token {
  font-family: var(--sim-font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  background: transparent;
  user-select: all;
}

.sim-key-header-hint {
  margin-left: auto;
  font-size: 11px;
  color: #64748b;
  font-family: var(--sim-font-mono);
}

.sim-code-cyan {
  color: #38bdf8;
}

/* Data Assets Download Hub */
.sim-data-assets-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
}

.sim-data-assets-header {
  margin-bottom: 12px;
}

.sim-data-assets-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sim-data-assets-sub {
  font-size: 12px;
  color: #94a3b8;
}

.sim-download-btns-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.btn-download-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-download-file.primary {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.btn-download-file.primary:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.2);
}

.btn-download-file.secondary {
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.3);
  color: #cbd5e1;
}

.btn-download-file.secondary:hover {
  background: rgba(41, 151, 255, 0.16);
  border-color: #2997ff;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(41, 151, 255, 0.2);
}

.btn-dl-icon {
  font-size: 18px;
  color: #10b981;
}

.btn-download-file.secondary .btn-dl-icon {
  color: #38bdf8;
}

.btn-dl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.btn-dl-name {
  font-family: var(--sim-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.btn-dl-meta {
  font-size: 11px;
  color: #94a3b8;
}

.btn-dl-arrow {
  font-size: 13px;
  color: #94a3b8;
}

/* ===================================================================
   STRATEGY ENTRY AND EXIT SIGNALS BRIEFING
   =================================================================== */
.sim-signals-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.sim-signal-brief-card {
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.sim-signal-brief-card:hover {
  transform: translateY(-2px);
}

.sim-signal-brief-card.long {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(10, 14, 24, 0.8));
}

.sim-signal-brief-card.short {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.05), rgba(10, 14, 24, 0.8));
}

.sim-signal-brief-card.exit {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(10, 14, 24, 0.8));
}

.sim-signal-brief-card.stop {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(10, 14, 24, 0.8));
}

.sim-signal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-signal-pill {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sim-signal-pill.long {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.sim-signal-pill.short {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.sim-signal-pill.exit {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.sim-signal-pill.stop {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.sim-signal-rule-tag {
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-signal-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.sim-signal-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.sim-signal-action-badge {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 5px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  color: #cbd5e1;
}

.sim-signal-brief-card.long .sim-signal-action-badge {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.sim-signal-brief-card.short .sim-signal-action-badge {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.25);
}

.sim-signal-brief-card.exit .sim-signal-action-badge {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

.sim-signal-brief-card.stop .sim-signal-action-badge {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

/* ===================================================================
   SMALL SAMPLE CHART WITH STRATEGY ENTRY & EXIT SIGNALS
   =================================================================== */
.sim-sample-chart-container {
  background: rgba(4, 7, 14, 0.88);
  border: 1px solid rgba(41, 151, 255, 0.28);
  border-radius: 14px;
  padding: 18px;
  margin-top: 14px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sim-sample-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-sample-chart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sim-chart-indicator-title {
  font-family: var(--sim-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.sim-chart-live-chip {
  font-family: var(--sim-font-mono);
  font-size: 9px;
  font-weight: 800;
  background: rgba(41, 151, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(41, 151, 255, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}

.sim-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
  color: #94a3b8;
}

.sim-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-color-dot.long { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-color-dot.short { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.legend-color-dot.exit { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.legend-color-dot.band { background: #38bdf8; }

.sim-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 8px;
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

#simSampleChart {
  width: 100%;
  height: 100%;
  display: block;
}

.sim-chart-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(41, 151, 255, 0.5);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  z-index: 30;
  line-height: 1.4;
  white-space: nowrap;
}

.sim-chart-footer-caption {
  margin-top: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.sim-target-hero-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(41, 151, 255, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

/* Sidebar Parameters */
.sim-params-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sim-param-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 12.5px;
}

.sim-param-label {
  color: #94a3b8;
}

.sim-param-val {
  font-family: var(--sim-font-mono);
  font-weight: 700;
  color: #ffffff;
}

.sim-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.sim-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.sim-check-item i {
  color: #10b981;
  font-size: 14px;
}

.btn-sim-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-decoration: none;
}

.btn-sim-action.primary {
  background: linear-gradient(135deg, #0071e3, #2997ff);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 18px rgba(41, 151, 255, 0.35);
}

.btn-sim-action.primary:hover {
  background: linear-gradient(135deg, #0077ed, #47a6ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(41, 151, 255, 0.5);
}

/* ===================================================================
   STEP 2: QUANTITATIVE SYSTEM ARCHITECTURE BLUEPRINT
   =================================================================== */
.sim-arch-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.sim-arch-diagram-canvas {
  background: rgba(6, 9, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.sim-arch-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-family: var(--sim-font-mono);
  color: #94a3b8;
}

.sim-arch-nodes-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.sim-arch-node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sim-arch-node-card:hover {
  border-color: rgba(41, 151, 255, 0.5);
  background: rgba(20, 30, 56, 0.95);
  transform: translateX(4px);
}

.sim-arch-node-card.selected {
  border-color: #2997ff;
  background: rgba(24, 36, 68, 0.95);
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.22);
}

.sim-node-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-node-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.sim-node-icon-box.cyan { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.sim-node-icon-box.blue { background: rgba(41, 151, 255, 0.14); color: #2997ff; border: 1px solid rgba(41, 151, 255, 0.3); }
.sim-node-icon-box.purple { background: rgba(168, 85, 247, 0.14); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.sim-node-icon-box.amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.sim-node-icon-box.emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.sim-node-icon-box.rose { background: rgba(244, 63, 94, 0.14); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }

.sim-node-details h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.sim-node-details p {
  font-size: 12px;
  color: #94a3b8;
}

.sim-node-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-node-latency {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  color: var(--sim-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.sim-node-state-pill {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* Node Inspector Card */
.sim-inspector-card {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
}

.sim-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-inspector-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.sim-inspector-field {
  margin-bottom: 16px;
}

.sim-field-label {
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.05em;
}

.sim-field-val {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

.sim-field-code {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 12px;
  color: #38bdf8;
  display: block;
}

/* ===================================================================
   STEP 3: MODULAR CODE IMPLEMENTATION
   =================================================================== */
.sim-code-studio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
}

.sim-module-sidebar {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-module-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #cbd5e1;
  text-align: left;
}

.sim-module-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.sim-module-tab-btn.active {
  background: rgba(41, 151, 255, 0.14);
  border-color: rgba(41, 151, 255, 0.45);
  color: #ffffff;
}

.sim-mod-name {
  font-family: var(--sim-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-mod-status {
  font-size: 10px;
  color: #10b981;
}

/* Code Editor Window */
.sim-code-main-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-editor-window {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.sim-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-editor-file-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sim-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.sim-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-editor-tool {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-family: var(--sim-font-mono);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-editor-tool:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-run-tests {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-run-tests:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.sim-code-area {
  padding: 18px 20px;
  font-family: var(--sim-font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  max-height: 480px;
  overflow-y: auto;
  background: #04060b;
}

/* Syntax Highlights */
.code-kw { color: #f43f5e; font-weight: 600; }
.code-fn { color: #38bdf8; font-weight: 600; }
.code-str { color: #10b981; }
.code-num { color: #fbbf24; }
.code-comment { color: #64748b; font-style: italic; }

/* Test Console */
.sim-test-console {
  background: #030509;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: var(--sim-font-mono);
  font-size: 12px;
}

.sim-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 11px;
}

.sim-console-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-line.pass { color: #34d399; }
.console-line.info { color: #38bdf8; }
.console-line.benchmark { color: #a855f7; }

/* ===================================================================
   STEP 4: LIVE L2 MARKET SIMULATION & STRESS-TEST
   =================================================================== */
.sim-live-battleground {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sim-controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 20, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.sim-control-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-playback {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-playback:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-playback.active {
  background: var(--sim-blue);
  color: #000;
  border-color: var(--sim-blue);
  box-shadow: 0 0 14px rgba(41, 151, 255, 0.4);
}

.sim-speed-selector,
.sim-regime-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--sim-font-mono);
  font-size: 12px;
  color: #ffffff;
  cursor: pointer;
}

/* Telemetry Bento Grid */
.sim-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sim-telemetry-card {
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-telem-label {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.sim-telem-val {
  font-family: var(--sim-font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.sim-telem-val.green { color: #34d399; }
.sim-telem-val.cyan { color: #38bdf8; }
.sim-telem-val.purple { color: #c084fc; }

.sim-telem-sub {
  font-size: 10.5px;
  color: #64748b;
}

/* Chart & Blotter Split */
.sim-arena-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.sim-chart-card {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.sim-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sim-chart-canvas-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}

.sim-chart-hud-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(41, 151, 255, 0.35);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
  color: #70b4ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Order Blotter & Tape */
.sim-blotter-card {
  background: #060911;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.sim-blotter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sim-tape-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 290px;
  padding-right: 4px;
}

.sim-tape-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 6px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
}

.sim-tape-row.buy { border-left: 2px solid #10b981; }
.sim-tape-row.sell { border-left: 2px solid #f43f5e; }

.sim-tape-side.buy { color: #34d399; font-weight: 700; }
.sim-tape-side.sell { color: #fb7185; font-weight: 700; }

/* Verified Dossier Verdict Box */
.sim-dossier-verdict-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(41, 151, 255, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.sim-verdict-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sim-verdict-stamp {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.16);
  border: 2px solid #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.sim-verdict-details h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.sim-verdict-details p {
  font-size: 13px;
  color: #cbd5e1;
}

.btn-stamp-dossier {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

/* ===================================================================
   API DATA EXPLORER & ENDPOINT INSPECTOR
   =================================================================== */
.sim-api-box {
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.sim-api-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.sim-api-badge-tag {
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.15);
  color: var(--sim-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}

.sim-endpoint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-family: var(--sim-font-mono);
  font-size: 12px;
  flex-wrap: wrap;
}

.sim-method-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sim-method-badge.get { background: #10b981; color: #000; }
.sim-method-badge.wss { background: #8b5cf6; color: #fff; }

.sim-endpoint-url {
  color: #70b4ff;
  font-weight: 600;
  word-break: break-all;
  flex: 1;
}

.btn-test-api {
  background: rgba(41, 151, 255, 0.2);
  border: 1px solid rgba(41, 151, 255, 0.5);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-test-api:hover {
  background: var(--sim-blue);
  color: #000;
}

.sim-api-json-viewer {
  background: #020408;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--sim-font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: #cbd5e1;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre;
}

/* ===================================================================
   INTERACTIVE SANDBOX & MODE TOGGLE (BUILD YOURSELF vs REFERENCE)
   =================================================================== */
.sim-sandbox-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px;
}

.sim-mode-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sim-mode-btn:hover {
  color: #fff;
}

.sim-mode-btn.active {
  background: rgba(41, 151, 255, 0.2);
  color: #70b4ff;
  border: 1px solid rgba(41, 151, 255, 0.4);
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.2);
}

.sim-editor-textarea {
  width: 100%;
  height: 480px;
  background: #04060b;
  border: none;
  padding: 18px 20px;
  font-family: var(--sim-font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.sim-editor-textarea:focus {
  background: #050810;
}

.btn-sandbox-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-sandbox-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-run-backtest-sandbox {
  background: linear-gradient(135deg, #2997ff, #0284c7);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 14px rgba(41, 151, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-run-backtest-sandbox:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.6);
}

/* ===================================================================
   BACKTEST RESULT MATCHER & CONCURRENCE AUDITOR
   =================================================================== */
.sim-matcher-banner {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sim-concurrence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
  font-family: var(--sim-font-mono);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.sim-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}

.sim-audit-table th {
  background: rgba(0, 0, 0, 0.5);
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-audit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--sim-font-mono);
  color: #e2e8f0;
}

.sim-audit-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.audit-metric-name {
  font-family: var(--sim-font-sans);
  font-weight: 600;
  color: #ffffff;
}

.audit-target-val {
  color: var(--sim-amber);
  font-weight: 700;
}

.audit-user-val {
  color: var(--sim-cyan);
  font-weight: 700;
}

.audit-delta-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.audit-delta-tag.matched {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-chart-legend-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--sim-font-mono);
  font-size: 11px;
}

.sim-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-legend-line {
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.sim-legend-line.user {
  background: var(--sim-blue);
  box-shadow: 0 0 8px var(--sim-blue);
}

.sim-legend-line.benchmark {
  background: repeating-linear-gradient(90deg, #f59e0b, #f59e0b 4px, transparent 4px, transparent 8px);
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & ALL PHONE RATIOS)
   =================================================================== */
@media (max-width: 1080px) {
  .sim-scenario-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-telemetry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sim-brief-grid,
  .sim-arch-layout,
  .sim-code-studio-layout,
  .sim-arena-split {
    grid-template-columns: 1fr;
  }
  .sim-pipeline-stepper {
    overflow-x: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .sim-container {
    padding: 0 16px 60px 16px;
  }
  .sim-hero-section {
    padding: 24px 0 20px 0;
  }
  .sim-scenario-selector {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sim-pipeline-stepper {
    top: 64px;
    padding: 6px;
    gap: 6px;
  }
  .sim-step-btn {
    padding: 9px 12px;
    font-size: 11.5px;
  }
  .sim-telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sim-panel-card {
    padding: 20px 16px;
  }
  .sim-brief-grid {
    grid-template-columns: 1fr;
  }
  .sim-active-problem-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-sim-launch-sandbox {
    width: 100%;
    justify-content: center;
  }
  .sim-signals-brief-grid {
    grid-template-columns: 1fr;
  }
  .sim-download-btns-row {
    grid-template-columns: 1fr;
  }
  .sim-chart-canvas-wrap {
    height: 240px;
  }
  .sim-dossier-verdict-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
  }
  .btn-stamp-dossier {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sim-hero-title {
    font-size: 1.75rem;
  }
  .sim-hero-desc {
    font-size: 13px;
  }
  .sim-step-btn span.sim-step-label {
    display: none; /* keep icons & numbers compact on mobile */
  }
  .sim-telemetry-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sim-controls-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .sim-key-display-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sim-key-header-hint {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .sim-container {
    padding: 0 10px 40px 10px;
  }
  .sim-telemetry-grid {
    grid-template-columns: 1fr;
  }
}



/* ===================================================================
   DEDICATED SANDBOX TOP NAVBAR & SEPARATE PAGE STYLING
   =================================================================== */
.sandbox-page-body {
  background: #000000;
  color: #f1f5f9;
}

.sandbox-top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
}

.sandbox-nav-inner {
  max-width: min(1440px, calc(100% - 16px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sandbox-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sandbox-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-sandbox-back:hover {
  background: rgba(41, 151, 255, 0.15);
  border-color: rgba(41, 151, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.25);
  transform: translateX(-2px);
}

.sandbox-nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.sandbox-mode-pill {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Center Scenario Switcher */
.sandbox-scenario-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 19, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 4px;
}

.sandbox-scenario-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.sandbox-scenario-btn .sim-badge-num {
  font-family: var(--sim-font-mono);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.sandbox-scenario-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sandbox-scenario-btn.active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.25), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(41, 151, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(41, 151, 255, 0.2);
}

.sandbox-scenario-btn.active .sim-badge-num {
  background: #2997ff;
  color: #000000;
}

/* Right Nav items */
.sandbox-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-nav-api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-nav-api-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.sandbox-nav-api-pill code {
  font-family: var(--sim-font-mono);
  color: #fde68a;
  font-size: 11px;
}

.sandbox-nav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sim-font-mono);
  font-size: 10px;
  color: #10b981;
  font-weight: 700;
}

/* ===================================================================
   INSTITUTIONAL DESK CATALOGUE SECTION ON SIMULATIONS.HTML
   =================================================================== */
.sim-catalogue-section {
  margin-top: 50px;
  padding-top: 20px;
}

.sim-catalogue-header,
.sim-comparison-header,
.sim-workflow-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}

.sim-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--sim-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.sim-section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.sim-section-desc {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Desk Showcase Grid */
.sim-desks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}

.sim-desk-card {
  background: rgba(13, 17, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.sim-desk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sim-desk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(41, 151, 255, 0.12);
}

.sim-desk-card:hover::before {
  opacity: 1;
}

.sim-desk-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-desk-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-desk-pill-id {
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(41, 151, 255, 0.15);
  color: #70b4ff;
  border: 1px solid rgba(41, 151, 255, 0.3);
}

.sim-desk-pill-firm {
  font-family: var(--sim-font-mono);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
}

.sim-desk-pill-firm.millennium {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.sim-desk-pill-firm.citadel {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sim-desk-pill-firm.optiver {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.sim-desk-pill-firm.twosigma {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sim-desk-pill-tier {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.sim-desk-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sim-font-mono);
  font-size: 9.5px;
  color: #10b981;
  font-weight: 700;
}

.sim-desk-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.sim-desk-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 18px 0;
  flex: 1;
}

.sim-desk-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.sim-spec-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sim-spec-pill .spec-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sim-spec-pill .spec-val {
  font-family: var(--sim-font-mono);
  font-size: 13px;
  font-weight: 800;
}

.sim-desk-deliverables {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deliverable-item code {
  font-family: var(--sim-font-mono);
  font-size: 11px;
  color: #70b4ff;
  background: rgba(41, 151, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.sim-desk-card-footer {
  margin-top: auto;
}

.btn-desk-solve-primary {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.22), rgba(56, 189, 248, 0.22));
  border: 1px solid rgba(41, 151, 255, 0.55);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(41, 151, 255, 0.15);
}

.btn-desk-solve-primary:hover {
  background: #2997ff;
  color: #000000;
  border-color: #2997ff;
  box-shadow: 0 6px 24px rgba(41, 151, 255, 0.4);
  transform: translateY(-2px);
}

/* ===================================================================
   COMPARISON SECTION
   =================================================================== */
.sim-comparison-section {
  margin-bottom: 70px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sim-comparison-card {
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
}

.sim-comparison-card.trainquants {
  background: rgba(13, 22, 38, 0.85);
  border-color: rgba(41, 151, 255, 0.35);
  box-shadow: 0 0 30px rgba(41, 151, 255, 0.1);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sim-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.comp-badge.generic {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.comp-badge.trainquants {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sim-comparison-card h4 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-list li {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comp-list li i {
  margin-top: 3px;
  font-size: 13px;
}

/* ===================================================================
   WORKFLOW STEPS OVERVIEW GRID
   =================================================================== */
.sim-workflow-overview-section {
  margin-bottom: 70px;
}

.sim-steps-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.sim-step-overview-card {
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.step-num-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.4);
  color: #70b4ff;
  font-family: var(--sim-font-mono);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.sim-step-overview-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.sim-step-overview-card p {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Bottom CTA Banner */
.sim-bottom-cta-banner {
  background: linear-gradient(135deg, rgba(20, 28, 46, 0.95), rgba(12, 17, 30, 0.95));
  border: 1px solid rgba(41, 151, 255, 0.35);
  border-radius: 18px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 0 35px rgba(41, 151, 255, 0.15);
}

.sim-cta-left h3 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.sim-cta-left p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

/* ===================================================================
   RESPONSIVE OVERRIDES FOR CATALOGUE & SANDBOX NAVBAR
   =================================================================== */
@media (max-width: 1024px) {
  .sim-desks-grid {
    grid-template-columns: 1fr;
  }
  .sim-steps-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sandbox-scenario-switcher {
    display: none; /* keep clean on tablets/mobile, use in-page controls */
  }
}

@media (max-width: 768px) {
  .sim-comparison-grid {
    grid-template-columns: 1fr;
  }
  .sim-steps-overview-grid {
    grid-template-columns: 1fr;
  }
  .sim-bottom-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .sim-desk-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sandbox-nav-api-pill {
    display: none;
  }
}


/* ===================================================================
   HERO-STYLED TRADING DESK SIMULATION CATALOGUE
   =================================================================== */
.sim-catalogue-header.hero-styled {
  text-align: center;
  max-width: 860px;
  margin: 20px auto 48px auto;
  padding-top: 10px;
}

.sim-section-hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 14px 0 16px 0;
  line-height: 1.15;
}

.sim-catalogue-header.hero-styled .sim-section-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 760px;
}

/* Category Filter Bar */
.sim-desk-filter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.sim-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sim-filter-btn.active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.25), rgba(56, 189, 248, 0.18));
  border-color: rgba(41, 151, 255, 0.5);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.25);
}

/* Enhanced Desk Cards */
.sim-desk-card {
  cursor: pointer;
}

.sim-desk-card.millennium:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.2);
}

.sim-desk-card.citadel:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.2);
}

.sim-desk-card.optiver:hover {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.2);
}

.sim-desk-card.twosigma:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

@media (max-width: 768px) {
  .sim-desk-filter-bar {
    border-radius: 14px;
    padding: 6px;
    width: 100%;
  }
  .sim-filter-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ===================================================================
   ULTRA-WIDE (21:9 / 32:9) & 16:9 MULTI-RATIO OPTIMIZATION
   ELIMINATE TOP BLANK SPACE & FILL FREE SCREEN WIDTH
   =================================================================== */

/* TIGHT TOP SPACING: Remove blank space above hero on simulations.html */
.sim-container {
  padding-top: 76px !important; /* Hugs floating navbar with clean 12px breathing room */
  max-width: min(1560px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.sim-catalogue-section {
  margin-top: 0 !important;
  padding-top: 6px !important;
}

.sim-catalogue-header.hero-styled {
  text-align: center;
  max-width: min(1360px, 94vw) !important;
  margin: 0 auto 28px auto !important;
  padding-top: 0 !important;
}

.sim-section-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem) !important;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 10px 0 14px 0 !important;
  line-height: 1.15;
}

.sim-catalogue-header.hero-styled .sim-section-desc {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto 20px auto;
  max-width: 820px;
}

/* Hero Live Platform Telemetry Strip */
.sim-hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px auto 26px auto;
  max-width: 1080px;
}

.sim-telem-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: left;
  transition: all 0.25s ease;
}

.sim-telem-chip:hover {
  background: rgba(20, 26, 40, 0.9);
  border-color: rgba(41, 151, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.telem-chip-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.telem-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.telem-chip-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}

.telem-chip-sub {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  font-family: var(--sim-font-mono);
}

/* 16:9 Standard Wide Monitors (1400px - 1679px) */
@media (min-width: 1400px) {
  .sim-container {
    max-width: min(1640px, calc(100% - 56px)) !important;
  }
  .sim-catalogue-header.hero-styled {
    max-width: min(1440px, 94vw) !important;
  }
  .sim-desks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* 16:9 Full HD (1920x1080) & 1440p / Ultrawide Entry (1680px - 2199px) */
@media (min-width: 1680px) {
  .sim-container {
    max-width: min(1900px, calc(100% - 72px)) !important;
  }
  .sim-catalogue-header.hero-styled {
    max-width: min(1560px, 92vw) !important;
  }
  /* Show all 4 flagship desks side-by-side in panoramic 4-column grid! */
  .sim-desks-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }
  .sim-desk-specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    padding: 10px;
  }
  .sim-desk-card {
    padding: 24px 20px;
  }
  .sim-desk-title {
    font-size: 1.15rem;
  }
  .sim-comparison-grid {
    gap: 32px;
  }
  .sim-steps-overview-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }
}

/* Ultrawide 21:9 & 32:9 Panoramic Monitors (2200px+) */
@media (min-width: 2200px) {
  .sim-container {
    max-width: min(2300px, calc(100% - 96px)) !important;
  }
  .sim-catalogue-header.hero-styled {
    max-width: 1720px !important;
  }
  .sim-hero-telemetry-strip {
    max-width: 1400px;
    gap: 20px;
  }
  .sim-desks-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 28px;
  }
  .sim-desk-card {
    padding: 30px 24px;
  }
  .sim-desk-title {
    font-size: 1.3rem;
  }
}

/* Mobile & Tablet Fallbacks for Telemetry Strip */
@media (max-width: 1024px) {
  .sim-hero-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sim-hero-telemetry-strip {
    grid-template-columns: 1fr;
  }
  .sim-telem-chip {
    padding: 8px 14px;
  }
}



/* ===================================================================
   UNIFIED PANORAMIC TRADING FLOOR COCKPIT DESIGN (NO BLANK VOIDS)
   FULL-WIDTH UTILIZATION FOR 16:9 & ULTRAWIDE (1860px - 2400px)
   =================================================================== */

/* Container expansion */
.sim-container.panoramic-container,
.sim-container {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: min(1860px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  padding: clamp(86px, 10vh, 104px) 0 60px 0 !important;
  box-sizing: border-box !important;
}

/* Unified Cockpit Hero Section */
.sim-cockpit-hero {
  position: relative !important;
  z-index: 2 !important;
  margin-bottom: 24px;
  text-align: center;
}

.sim-hero-center-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.sim-hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  background: rgba(41, 151, 255, 0.08) !important;
  border: 1px solid rgba(41, 151, 255, 0.3) !important;
  border-radius: 999px !important;
  font-family: var(--sim-font-mono, monospace) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #70b4ff !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 12px !important;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.15) !important;
}

.sim-hero-badge .badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.sim-hero-title {
  font-family: var(--sim-font-display, -apple-system, sans-serif) !important;
  font-size: clamp(2.2rem, 3.8vw, 3.3rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin: 8px 0 12px 0 !important;
  color: #ffffff !important;
}

.sim-hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #70b4ff 60%, #2997ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.sim-hero-desc {
  font-size: 14.5px !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  max-width: 960px !important;
  margin: 0 auto 20px auto !important;
}

/* High-Density Telemetry Cockpit Strip */
.sim-telemetry-cockpit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.telem-cockpit-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 18, 30, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: left;
  transition: all 0.25s ease;
}

.telem-cockpit-chip:hover {
  border-color: rgba(41, 151, 255, 0.35);
  background: rgba(18, 25, 42, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.telem-chip-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.telem-chip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.telem-chip-val {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.telem-chip-lbl {
  font-size: 10.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Filter Bar */
.sim-desk-filter-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px;
  flex-wrap: wrap;
}

.sim-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sim-filter-btn.active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.28), rgba(56, 189, 248, 0.2));
  border-color: rgba(41, 151, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.25);
}

/* Panoramic Desk Cards Grid */
.sim-panoramic-cards-section {
  margin-bottom: 40px;
}

.sim-desks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.sim-desk-card {
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sim-desk-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(41, 151, 255, 0.16);
}

.sim-desk-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.sim-desk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sim-desk-pill-id {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(41, 151, 255, 0.14);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(41, 151, 255, 0.25);
}

.sim-desk-pill-firm {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.sim-desk-pill-firm.millennium {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.sim-desk-pill-firm.citadel {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.sim-desk-pill-firm.optiver {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.sim-desk-pill-firm.twosigma {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sim-desk-pill-tier {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-desk-online-badge {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.sim-desk-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.sim-desk-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

/* Desk Card Sparkline Graphic Box */
.sim-card-sparkline-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.sparkline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sparkline-title {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

.sparkline-signal {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
}

.sparkline-svg {
  width: 100%;
  height: 38px;
  display: block;
}

/* Mathematical Formula Snippet Box */
.sim-math-formula-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 12px;
}

.math-formula-lbl {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
}

.math-code {
  font-family: var(--sim-font-mono, monospace);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Target Performance Specs Grid */
.sim-desk-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
}

.sim-spec-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-family: var(--sim-font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
}

/* Deliverables Strip */
.sim-desk-deliverables {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.deliverable-item {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverable-item code {
  color: #cbd5e1;
  font-size: 10.5px;
}

/* Card Action Button */
.sim-desk-card-footer {
  margin-top: auto;
}

.btn-desk-solve-primary {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.22) 0%, rgba(56, 189, 248, 0.16) 100%);
  border: 1px solid rgba(41, 151, 255, 0.5);
  border-radius: 10px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-desk-solve-primary:hover {
  background: #2997ff;
  color: #000000;
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.4);
}

/* Deep-Dive Matrix Section */
.sim-deepdive-matrix-section {
  margin-bottom: 40px;
}

.sim-matrix-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.sim-matrix-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 8px 0;
}

.sim-matrix-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.sim-table-container {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(14px);
}

.sim-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.sim-matrix-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-family: var(--sim-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.sim-matrix-table tr:hover td {
  background: rgba(41, 151, 255, 0.04);
}

.matrix-desk-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-pill {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.matrix-pill.millennium {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.matrix-pill.citadel {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.matrix-pill.optiver {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.matrix-pill.twosigma {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-matrix-launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-matrix-launch:hover {
  background: #2997ff;
  color: #000000;
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.3);
}

/* 5-Module System Architecture Pipeline Flowchart */
.sim-pipeline-flow-section {
  margin-bottom: 40px;
}

.sim-pipeline-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.sim-pipeline-flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
}

.pipeline-node-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.pipeline-node-card:hover {
  border-color: rgba(41, 151, 255, 0.4);
  transform: translateY(-2px);
}

.pipeline-node-card.active-matcher {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.node-step-tag {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
}

.node-icon-box {
  font-size: 20px;
  margin: 4px 0;
}

.node-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.node-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

.node-tech-tag {
  font-family: var(--sim-font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #38bdf8;
  margin-top: 4px;
}

.pipeline-flow-arrow {
  color: #3b82f6;
  font-size: 14px;
  opacity: 0.6;
}

/* Comparative Section */
.sim-comparison-section {
  margin-bottom: 40px;
}

.sim-comparison-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.sim-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sim-font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sim-section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 8px 0;
}

.sim-section-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

.sim-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sim-comparison-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
}

.sim-comparison-card.trainquants {
  border-color: rgba(41, 151, 255, 0.4);
  background: rgba(13, 20, 36, 0.9);
  box-shadow: 0 0 24px rgba(41, 151, 255, 0.1);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sim-font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.comp-badge.generic {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.comp-badge.trainquants {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.sim-comparison-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.comp-list li i {
  margin-top: 3px;
  flex-shrink: 0;
}

/* 4-Step Engineering Protocol */
.sim-workflow-overview-section {
  margin-bottom: 40px;
}

.sim-workflow-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 20px auto;
}

.sim-steps-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sim-step-overview-card {
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num-badge {
  font-family: var(--sim-font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
}

.sim-step-overview-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.sim-step-overview-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Bottom Launchpad Section */
.sim-bottom-launchpad-section {
  margin-bottom: 40px;
}

.sim-launchpad-banner {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(11, 15, 25, 0.95));
  border: 1px solid rgba(41, 151, 255, 0.3);
  border-radius: 18px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(41, 151, 255, 0.1);
}

.launchpad-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.launchpad-content p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.btn-launch-flagship {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #000000;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-launch-flagship:hover {
  background: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

/* Screen Width Media Queries */
@media (max-width: 1300px) {
  .sim-pipeline-flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pipeline-flow-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }
}

@media (max-width: 1200px) {
  .sim-desks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-telemetry-cockpit-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .sim-steps-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sim-desks-grid {
    grid-template-columns: 1fr;
  }
  .sim-telemetry-cockpit-strip {
    grid-template-columns: 1fr;
  }
  .sim-comparison-grid {
    grid-template-columns: 1fr;
  }
  .sim-steps-overview-grid {
    grid-template-columns: 1fr;
  }
  .sim-launchpad-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   INSTITUTIONAL HIGH-CONTRAST LIGHT MODE — SIMULATIONS & SANDBOX
   =================================================================== */
html.light-mode {
  --sim-bg-void: #f8fafc;
  --sim-bg-surface: #ffffff;
  --sim-bg-card: rgba(255, 255, 255, 0.96);
  --sim-bg-elevated: #ffffff;

  --sim-border: rgba(0, 0, 0, 0.08);
  --sim-border-bright: rgba(0, 0, 0, 0.16);
  --sim-border-accent: rgba(0, 113, 227, 0.35);
}

html.light-mode .sim-hero-badge,
[data-theme="light"] .sim-hero-badge {
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
  color: #0071e3 !important;
  box-shadow: 0 0 16px rgba(0, 113, 227, 0.08) !important;
}

html.light-mode .sim-hero-title,
[data-theme="light"] .sim-hero-title {
  color: #09090b !important;
}

html.light-mode .sim-hero-title .gradient-text,
[data-theme="light"] .sim-hero-title .gradient-text {
  background: linear-gradient(180deg, #09090b 20%, #0071e3 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light-mode .sim-hero-desc,
[data-theme="light"] .sim-hero-desc {
  color: #475569 !important;
}

html.light-mode .sim-stats-banner,
html.light-mode .sim-telemetry-cockpit-strip,
[data-theme="light"] .sim-stats-banner,
[data-theme="light"] .sim-telemetry-cockpit-strip {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .sim-stat-box .sim-stat-val,
html.light-mode .cockpit-metric-val,
[data-theme="light"] .sim-stat-box .sim-stat-val,
[data-theme="light"] .cockpit-metric-val {
  color: #09090b !important;
}

html.light-mode .sim-stat-box .sim-stat-label,
html.light-mode .cockpit-metric-lbl,
[data-theme="light"] .sim-stat-box .sim-stat-label,
[data-theme="light"] .cockpit-metric-lbl {
  color: #64748b !important;
}

html.light-mode .sim-stat-divider,
[data-theme="light"] .sim-stat-divider {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Scenarios & Desks Grid */
html.light-mode .sim-scenario-tab,
html.light-mode .sim-desk-card,
[data-theme="light"] .sim-scenario-tab,
[data-theme="light"] .sim-desk-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .sim-scenario-tab:hover,
html.light-mode .sim-desk-card:hover,
[data-theme="light"] .sim-scenario-tab:hover,
[data-theme="light"] .sim-desk-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 113, 227, 0.35) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06), 0 0 16px rgba(0, 113, 227, 0.06) !important;
}

html.light-mode .sim-scenario-tab.active,
[data-theme="light"] .sim-scenario-tab.active {
  background: #ffffff !important;
  border-color: #0071e3 !important;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.1) !important;
}

html.light-mode .sim-tab-title,
html.light-mode .sim-desk-title,
[data-theme="light"] .sim-tab-title,
[data-theme="light"] .sim-desk-title {
  color: #09090b !important;
}

html.light-mode .sim-tab-firm,
html.light-mode .sim-desk-firm,
[data-theme="light"] .sim-tab-firm,
[data-theme="light"] .sim-desk-firm {
  color: #0071e3 !important;
}

html.light-mode .sim-tab-desc,
html.light-mode .sim-desk-desc,
[data-theme="light"] .sim-tab-desc,
[data-theme="light"] .sim-desk-desc {
  color: #475569 !important;
}

/* Pipeline Flow & Stages */
html.light-mode .sim-stage-container,
html.light-mode .sim-pipeline-flow-grid,
html.light-mode .sim-steps-overview-grid,
[data-theme="light"] .sim-stage-container,
[data-theme="light"] .sim-pipeline-flow-grid,
[data-theme="light"] .sim-steps-overview-grid {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .sim-step-box,
html.light-mode .sim-step-card,
[data-theme="light"] .sim-step-box,
[data-theme="light"] .sim-step-card {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .sim-step-title,
html.light-mode .sim-step-num,
[data-theme="light"] .sim-step-title,
[data-theme="light"] .sim-step-num {
  color: #09090b !important;
}

html.light-mode .sim-step-desc,
[data-theme="light"] .sim-step-desc {
  color: #475569 !important;
}

html.light-mode .sim-dossier-verdict-box,
[data-theme="light"] .sim-dossier-verdict-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05) !important;
}

html.light-mode .sim-launchpad-banner,
[data-theme="light"] .sim-launchpad-banner {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .sim-launchpad-title,
[data-theme="light"] .sim-launchpad-title {
  color: #09090b !important;
}

html.light-mode .sim-launchpad-desc,
[data-theme="light"] .sim-launchpad-desc {
  color: #475569 !important;
}

/* Simulation Sandbox (simulation-sandbox.html) */
html.light-mode .sandbox-top-nav,
html.light-mode .sandbox-nav-inner,
[data-theme="light"] .sandbox-top-nav,
[data-theme="light"] .sandbox-nav-inner {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

html.light-mode .sandbox-scenario-btn,
[data-theme="light"] .sandbox-scenario-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

html.light-mode .sandbox-scenario-btn:hover,
[data-theme="light"] .sandbox-scenario-btn:hover {
  background: #e2e8f0 !important;
  color: #09090b !important;
}

html.light-mode .sandbox-scenario-btn.active,
[data-theme="light"] .sandbox-scenario-btn.active {
  background: #ffffff !important;
  border-color: #0071e3 !important;
  color: #0071e3 !important;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.12) !important;
}

html.light-mode .sandbox-panel,
html.light-mode .sandbox-grid-card,
[data-theme="light"] .sandbox-panel,
[data-theme="light"] .sandbox-grid-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .sandbox-panel-header,
[data-theme="light"] .sandbox-panel-header {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #09090b !important;
}

html.light-mode .sandbox-metric-card,
[data-theme="light"] .sandbox-metric-card {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .sandbox-metric-val,
[data-theme="light"] .sandbox-metric-val {
  color: #09090b !important;
}

html.light-mode .sandbox-metric-label,
[data-theme="light"] .sandbox-metric-label {
  color: #64748b !important;
}

html.light-mode .sandbox-log-stream,
[data-theme="light"] .sandbox-log-stream {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}

html.light-mode .sandbox-mode-pill,
[data-theme="light"] .sandbox-mode-pill {
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
  color: #0071e3 !important;
}

html.light-mode .sandbox-nav-api-pill,
[data-theme="light"] .sandbox-nav-api-pill {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #09090b !important;
}

html.light-mode .btn-sandbox-back,
[data-theme="light"] .btn-sandbox-back {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #09090b !important;
}

