/* ===================================================================
   TRAINQUANTS QUANT TRAINING & TALENT ACADEMY - MASTER STYLESHEET
   The LeetCode for Institutional Quantitative Finance
   Ultra-Luxury Obsidian Theme • Zero-Lag GPU Transitions • 60fps
   =================================================================== */

:root {
  /* Core Theme Colors */
  --qt-bg-deep: #000000;
  --qt-bg-surface: #0a0e17;
  --qt-bg-panel: #0e1422;
  --qt-bg-card: rgba(16, 23, 38, 0.75);
  --qt-bg-card-hover: rgba(24, 35, 58, 0.85);

  --qt-border-subtle: rgba(255, 255, 255, 0.07);
  --qt-border-medium: rgba(255, 255, 255, 0.12);
  --qt-border-bright: rgba(255, 255, 255, 0.22);
  --qt-border-glow: rgba(99, 102, 241, 0.35);

  --qt-text-primary: #f8fafc;
  --qt-text-secondary: #94a3b8;
  --qt-text-muted: #64748b;

  --qt-cyan: #38bdf8;
  --qt-cyan-glow: rgba(56, 189, 248, 0.35);
  --qt-indigo: #6366f1;
  --qt-indigo-glow: rgba(99, 102, 241, 0.35);
  --qt-purple: #a855f7;
  --qt-emerald: #10b981;
  --qt-emerald-glow: rgba(16, 185, 129, 0.35);
  --qt-amber: #f59e0b;
  --qt-rose: #f43f5e;
  --qt-gold: #fbbf24;

  --qt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --qt-font-mono: 'JetBrains Mono', monospace;

  --qt-radius-sm: 6px;
  --qt-radius-md: 10px;
  --qt-radius-lg: 16px;
  --qt-radius-xl: 24px;

  --qt-transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --qt-transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Institutional High-Contrast Light Mode Token Scale */
:root[data-theme="light"],
html.light-mode {
  --qt-bg-deep: #f8fafc;
  --qt-bg-surface: #ffffff;
  --qt-bg-panel: #f1f5f9;
  --qt-bg-card: rgba(255, 255, 255, 0.96);
  --qt-bg-card-hover: #ffffff;

  --qt-border-subtle: rgba(0, 0, 0, 0.08);
  --qt-border-medium: rgba(0, 0, 0, 0.14);
  --qt-border-bright: rgba(0, 0, 0, 0.22);
  --qt-border-glow: rgba(0, 113, 227, 0.25);

  --qt-text-primary: #09090b;
  --qt-text-secondary: #334155;
  --qt-text-muted: #64748b;

  --qt-cyan: #0071e3;
  --qt-cyan-glow: rgba(0, 113, 227, 0.15);
  --qt-indigo: #4f46e5;
  --qt-indigo-glow: rgba(79, 70, 229, 0.15);
  --qt-purple: #7c3aed;
  --qt-emerald: #059669;
  --qt-emerald-glow: rgba(5, 150, 105, 0.15);
  --qt-amber: #d97706;
  --qt-rose: #e11d48;
  --qt-gold: #b45309;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.qt-body {
  background-color: #000000;
  color: var(--qt-text-primary);
  font-family: var(--qt-font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: none;
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--qt-bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Utility Monospace */
.mono {
  font-family: var(--qt-font-mono);
}

/* Cybernetic Laser Transition Bar */
.cyber-transition-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8 0%, #6366f1 50%, #10b981 100%);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.9);
  z-index: 100000;
  pointer-events: none;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-transition-bar.active {
  width: 100%;
}

/* ===================================================================
   TOP NAVIGATION HEADER
   =================================================================== */
.qt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 1.8vw, 24px);
  height: 64px;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qt-border-subtle);
  transition: border-color var(--qt-transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.qt-header-left {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  min-width: 0;
  flex-shrink: 1;
}

.qt-brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.qt-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent url('../assets/trainquants-tq-mark.png?v=12.0') center/contain no-repeat;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.65)) drop-shadow(0 0 16px rgba(41, 121, 255, 0.35));
  flex-shrink: 0;
  transition: transform var(--qt-transition-fast);
}

.qt-brand-logo i {
  display: none !important;
}

.qt-brand-link:hover .qt-brand-logo {
  transform: scale(1.06);
}

.qt-brand-titles {
  display: flex;
  flex-direction: column;
}

.qt-brand-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
}
.qt-brand-title span {
  color: var(--qt-cyan);
}

.qt-brand-tag {
  font-size: 9.5px;
  font-family: var(--qt-font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav Section Links */
.qt-nav-pills {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.35vw, 5px);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex-shrink: 1;
}

.qt-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px clamp(6px, 0.65vw, 12px);
  border-radius: 8px;
  background: transparent;
  color: var(--qt-text-secondary);
  border: 1px solid transparent;
  font-size: clamp(11.5px, 0.78vw, 13px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap !important;
  flex-shrink: 0;
  transition: all var(--qt-transition-fast);
}
.qt-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--qt-border-subtle);
}
.qt-nav-btn.active {
  color: #fff;
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}
.qt-nav-btn i {
  font-size: 12px;
  color: var(--qt-cyan);
}

/* Header Right Area */
.qt-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qt-hiring-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--qt-transition-fast);
}
.qt-hiring-badge-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.qt-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition: all var(--qt-transition-fast);
}
.qt-user-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--qt-border-medium);
}

.qt-avatar-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  overflow: hidden;
}
.qt-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qt-user-info {
  display: flex;
  flex-direction: column;
}
.qt-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.qt-user-readiness {
  display: none !important;
}

.btn-terminal-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.35);
  transition: all var(--qt-transition-fast);
}
.btn-terminal-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.55);
}

/* ===================================================================
   HERO / VALUE BANNER & METRICS TELEMETRY
   =================================================================== */
.qt-hero-section {
  padding: 48px 24px 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.qt-hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px auto;
}

.qt-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.qt-pill-tag i {
  color: #38bdf8;
}

.qt-hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #fff;
}
.qt-gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qt-hero-subtitle {
  font-size: 16px;
  color: var(--qt-text-secondary);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
}

/* Top Telemetry Stats Grid */
.qt-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.qt-telemetry-card {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-md);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all var(--qt-transition-fast);
}
.qt-telemetry-card:hover {
  background: var(--qt-bg-card-hover);
  border-color: var(--qt-border-medium);
  transform: translateY(-2px);
}
.qt-telemetry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #6366f1), transparent);
  opacity: 0.5;
}

.qt-telemetry-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--qt-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qt-telemetry-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: var(--qt-font-mono);
}
.qt-telemetry-sub {
  font-size: 11px;
  color: var(--qt-text-secondary);
  margin-top: 4px;
}

/* ===================================================================
   MAIN CONTENT TABS (Curriculum, Dual Leaderboards, Chat, Dev Space)
   =================================================================== */
.qt-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--qt-border-subtle);
  padding-bottom: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.qt-main-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.qt-tab-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--qt-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-tab-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.qt-tab-trigger.active {
  color: #fff;
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.qt-tab-trigger.active i {
  color: var(--qt-cyan);
}

.qt-tabs-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qt-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.qt-search-input-wrap i {
  position: absolute;
  left: 12px;
  color: var(--qt-text-muted);
  font-size: 12px;
  pointer-events: none;
}
.qt-search-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 8px;
  padding: 8px 14px 8px 34px;
  color: #fff;
  font-size: 12px;
  width: 220px;
  outline: none;
  transition: all var(--qt-transition-fast);
}
.qt-search-input:focus {
  border-color: var(--qt-cyan);
  background: rgba(255, 255, 255, 0.07);
  width: 260px;
}

/* Tab Panels */
.qt-tab-panel {
  display: none;
  animation: fadeInPanel 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.qt-tab-panel.active {
  display: block;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   SECTION 1: EDUCATIONAL CURRICULUM ("LeetCode for Quants")
   =================================================================== */
.qt-curriculum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.qt-curriculum-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===================================================================
   CURRICULUM FILTER DROPDOWNS TOOLBAR
   =================================================================== */
.qt-curriculum-filter-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(14, 20, 34, 0.7);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.qt-filter-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.qt-filter-dropdowns-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qt-filter-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.qt-filter-select-wrap i.select-icon {
  position: absolute;
  left: 11px;
  font-size: 11px;
  color: var(--qt-cyan);
  pointer-events: none;
  z-index: 2;
}

.qt-filter-select {
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 30px 7px 30px;
  color: #f1f5f9;
  font-family: var(--qt-font-sans);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 12px;
  transition: all var(--qt-transition-fast);
}

.qt-filter-select:hover {
  background-color: #0e1526;
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
}

.qt-filter-select:focus {
  border-color: var(--qt-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.qt-filter-select optgroup {
  background: #060910;
  color: var(--qt-cyan);
  font-weight: 700;
}

.qt-filter-select option {
  background: #090d16;
  color: #f1f5f9;
  padding: 6px 10px;
}

.btn-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}

.btn-filter-reset:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
  border-color: rgba(244, 63, 94, 0.5);
}

.qt-filter-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--qt-font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.qt-filter-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.qt-curriculum-main {
  width: 100%;
  max-width: 100%;
  padding: 24px 32px 48px 32px;
  margin: 0;
}

@media (min-width: 2560px) {
  .qt-curriculum-main {
    padding: 32px 48px 60px 48px;
  }
}

.qt-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qt-filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--qt-text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--qt-transition-fast);
}
.qt-filter-pill:hover, .qt-filter-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
}

/* Problem Cards Bento Grid */
.qt-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.qt-problem-card {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--qt-transition-smooth);
}
.qt-problem-card:hover {
  background: var(--qt-bg-card-hover);
  border-color: var(--qt-border-medium);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.qt-problem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qt-category-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.qt-difficulty-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  padding: 2px 8px;
  border-radius: 4px;
}
.qt-diff-easy {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.qt-diff-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.qt-diff-hard {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.qt-diff-citadel,
.qt-diff-quant {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.qt-scenario-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(99, 102, 241, 0.2));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qt-problem-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.qt-problem-desc {
  font-size: 12px;
  color: var(--qt-text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qt-problem-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.qt-company-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.qt-company-tag {
  font-size: 10px;
  color: var(--qt-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-solve-challenge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.btn-solve-challenge:hover {
  background: var(--qt-indigo);
  color: #fff;
  border-color: var(--qt-indigo);
}

/* ===================================================================
   SECTION 2: DUAL LEADERBOARDS (MANUAL VS ALGO)
   =================================================================== */
.qt-leaderboard-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.qt-lb-type-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.qt-lb-type-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--qt-text-secondary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-lb-type-btn:hover {
  color: #fff;
}
.qt-lb-type-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(56, 189, 248, 0.2));
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.qt-lb-type-btn.active i {
  color: var(--qt-cyan);
}

.qt-timeframe-pills {
  display: flex;
  gap: 6px;
}
.qt-tf-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-family: var(--qt-font-mono);
  font-weight: 600;
  color: var(--qt-text-muted);
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-tf-btn:hover, .qt-tf-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--qt-border-medium);
}

/* Podium Top 3 Cards */
.qt-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.qt-podium-card {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--qt-transition-smooth);
}
.qt-podium-card:hover {
  transform: translateY(-3px);
  border-color: var(--qt-border-medium);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.qt-podium-card.rank-1 {
  border-color: rgba(251, 191, 36, 0.4);
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.12) 0%, rgba(16, 23, 38, 0.8) 70%);
}
.qt-podium-card.rank-2 {
  border-color: rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.08) 0%, rgba(16, 23, 38, 0.8) 70%);
}
.qt-podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.35);
  background: radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.08) 0%, rgba(16, 23, 38, 0.8) 70%);
}

.qt-podium-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--qt-font-mono);
}
.rank-1 .qt-podium-badge { background: #fbbf24; color: #78350f; }
.rank-2 .qt-podium-badge { background: #cbd5e1; color: #1e293b; }
.rank-3 .qt-podium-badge { background: #d97706; color: #451a03; }

.qt-podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: #1e293b;
}
.rank-1 .qt-podium-avatar { border-color: #fbbf24; }
.rank-2 .qt-podium-avatar { border-color: #cbd5e1; }
.rank-3 .qt-podium-avatar { border-color: #d97706; }

.qt-podium-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.qt-podium-sub {
  font-size: 11px;
  color: var(--qt-text-muted);
  font-family: var(--qt-font-mono);
  margin-bottom: 16px;
}

.qt-podium-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.qt-podium-stat {
  display: flex;
  flex-direction: column;
}
.qt-p-stat-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--qt-font-mono);
}
.qt-p-stat-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--qt-text-muted);
}

/* Master Leaderboard Data Table */
.qt-table-container {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.qt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.qt-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--qt-text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--qt-border-subtle);
  font-family: var(--qt-font-mono);
}

.qt-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--qt-text-secondary);
  vertical-align: middle;
}
.qt-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.qt-rank-cell {
  font-weight: 800;
  font-family: var(--qt-font-mono);
  color: #fff;
}

.qt-trader-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qt-sm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.qt-trader-info-block {
  display: flex;
  flex-direction: column;
}
.qt-trader-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* Clickable Trader Profile Links */
.qt-name-link {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.qt-name-link:hover {
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.qt-link-icon {
  font-size: 10px;
  opacity: 0.4;
  transform: translate(0, 0);
  transition: all 0.2s ease;
  color: #38bdf8;
}

.qt-name-link:hover .qt-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.qt-sm-avatar-link,
.qt-podium-profile-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qt-sm-avatar-link:hover .qt-sm-avatar,
.qt-podium-profile-link:hover .qt-podium-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

.qt-trader-meta {
  font-size: 10px;
  font-family: var(--qt-font-mono);
  color: var(--qt-text-muted);
}

.text-emerald { color: var(--qt-emerald); }
.text-rose { color: var(--qt-rose); }
.text-indigo { color: #818cf8; }
.text-cyan { color: var(--qt-cyan); }
.text-gold { color: var(--qt-gold); }

.qt-hire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-hire-badge:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

/* ===================================================================
   SECTION 3: QUANT ALGOS DEV SPACE (LEETCODE FOR QUANTS WORKSTATION)
   =================================================================== */

/* 1. Track Selector Cards Grid (5 Skill Tracks) */
.qt-devspace-tracks-container {
  background: rgba(14, 20, 34, 0.6);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
}

.qt-devspace-tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.qt-devspace-tracks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.qt-dev-track-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--qt-radius-md);
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: all var(--qt-transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.qt-dev-track-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qt-dev-track-card.active {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.06) 100%);
  border-color: var(--qt-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.qt-track-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qt-track-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(56, 189, 248, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qt-cyan);
  font-size: 13px;
}

.qt-dev-track-card.active .qt-track-icon-wrap {
  background: linear-gradient(135deg, var(--qt-indigo), var(--qt-cyan));
  color: #fff;
}

.qt-track-count-badge {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.qt-dev-track-card.active .qt-track-count-badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--qt-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.qt-track-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.qt-track-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #a5b4fc;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: fit-content;
}

.qt-track-card-desc {
  font-size: 11px;
  color: var(--qt-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 2. Active Track Problem Selector Strip */
.qt-devspace-problem-strip-wrap {
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.qt-dev-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qt-track-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--qt-cyan);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-strip-nav {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}

.btn-strip-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.qt-devspace-problem-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.qt-prob-strip-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qt-prob-strip-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.qt-prob-strip-item.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--qt-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

.qt-strip-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qt-strip-id {
  font-family: var(--qt-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--qt-cyan);
}

.qt-strip-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qt-strip-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

.qt-strip-role {
  color: var(--qt-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.qt-strip-acc {
  color: #34d399;
}

/* Full-Width Fluid Workspace for 16:9 and Ultrawide Monitors */
.qt-devspace-main {
  width: 100%;
  max-width: 100%;
  padding: 16px 24px 20px 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

:root {
  --qt-left-panel-width: 380px;
  --qt-sidebar-width: 390px;
}

.qt-devspace-workstation {
  display: grid;
  grid-template-columns: var(--qt-left-panel-width, 380px) minmax(440px, 1fr) var(--qt-sidebar-width, 390px);
  gap: 16px;
  width: 100%;
  height: calc(100vh - 165px);
  min-height: 680px;
  margin-bottom: 20px;
  align-items: stretch;
  transition: grid-template-columns 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.qt-devspace-workstation.sidebar-collapsed {
  grid-template-columns: var(--qt-left-panel-width, 380px) 1fr 44px;
}

/* Left Pane: Problem Specification */
.qt-prob-spec-panel {
  background: #090d16;
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
}

.qt-prob-spec-header {
  border-bottom: 1px solid var(--qt-border-subtle);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.qt-prob-id-badge {
  font-family: var(--qt-font-mono);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

.qt-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.qt-prob-spec-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 8px 0 10px;
}

.qt-prob-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qt-prob-subtabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--qt-border-subtle);
  padding-bottom: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.qt-prob-subtab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--qt-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--qt-transition-fast);
}

.qt-prob-subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.qt-prob-subtab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.qt-prob-tab-content {
  display: none;
  font-size: 13.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.qt-prob-tab-content.active {
  display: block;
}

.qt-prob-section-block {
  margin-bottom: 18px;
}

.qt-prob-h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.qt-prob-p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.65;
}

.qt-code-snippet-box {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  color: #e2e8f0;
  overflow-x: auto;
  line-height: 1.5;
}

.qt-math-formula-box {
  background: #04060a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--qt-font-mono);
  font-size: 12.5px;
  color: var(--qt-cyan);
  overflow-x: auto;
  line-height: 1.5;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.qt-constraints-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #fde68a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.qt-constraints-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #94a3b8;
}

.qt-constraints-list li strong {
  color: #f1f5f9;
}

.qt-hint-callout {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--qt-indigo);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.6;
}

/* Right Pane: Code Editor & Backtest Panel */
.qt-editor-and-results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qt-editor-container {
  background: #090d16;
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
}

.qt-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--qt-border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.qt-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 5px 10px;
  border-radius: 6px;
}

.qt-preset-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 6px;
  padding: 5px 10px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 210px;
}

.qt-preset-select optgroup {
  background: #0b1120;
  color: var(--qt-cyan);
  font-weight: 700;
}

.qt-preset-select option {
  background: #0f172a;
  color: #fff;
  font-weight: 500;
}

.qt-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-editor-tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--qt-transition-fast);
}

.btn-editor-tool:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-run-backtest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: all var(--qt-transition-fast);
}

.btn-run-backtest:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
}

.btn-submit-leaderboard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}

.btn-submit-leaderboard:hover {
  background: var(--qt-indigo);
  color: #fff;
}

/* Code Mirror Area - Full Height & Spacious */
.qt-code-mirror {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: auto;
  font-family: var(--qt-font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 16px 20px;
  background: #04060a;
  color: #e2e8f0;
}

.qt-code-textarea {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: transparent;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-family: var(--qt-font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  resize: none;
  white-space: pre;
}

.qt-editor-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #060911;
  border-top: 1px solid var(--qt-border-subtle);
  font-family: var(--qt-font-mono);
  font-size: 11px;
}

/* Backtest Results Panel */
.qt-results-panel {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qt-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qt-results-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Metrics 6-Box Grid */
.qt-bt-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.qt-bt-metric-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.qt-bt-lbl {
  font-size: 9.5px;
  color: var(--qt-text-muted);
  font-family: var(--qt-font-mono);
  text-transform: uppercase;
}

.qt-bt-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--qt-font-mono);
  margin-top: 2px;
}

/* Canvas Equity Curve */
.qt-canvas-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 150px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.qt-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Console Execution Stream */
.qt-console-box {
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
  height: 105px;
  overflow-y: auto;
  font-family: var(--qt-font-mono);
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

.qt-console-line {
  margin-bottom: 2px;
}

.qt-console-line.success { color: var(--qt-emerald); }
.qt-console-line.info { color: var(--qt-cyan); }
.qt-console-line.warn { color: var(--qt-amber); }

/* ===================================================================
   SECTION 4: COMMUNITY CHAT ROOMS
   =================================================================== */
.qt-chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  height: 600px;
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

/* Chat Channels Sidebar */
.qt-chat-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--qt-border-subtle);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.qt-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qt-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.qt-online-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--qt-emerald);
  font-family: var(--qt-font-mono);
  font-weight: 700;
}
.qt-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--qt-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--qt-emerald);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.qt-channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qt-channel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--qt-text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--qt-transition-fast);
}
.qt-channel-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.qt-channel-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.qt-channel-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qt-channel-badge {
  font-size: 10px;
  font-family: var(--qt-font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--qt-text-muted);
}

/* Chat Main View */
.qt-chat-main {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qt-chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--qt-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qt-chat-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.qt-chat-header-desc {
  font-size: 11px;
  color: var(--qt-text-muted);
}

.qt-chat-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qt-chat-msg {
  display: flex;
  gap: 12px;
  animation: fadeInMsg 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.qt-chat-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qt-chat-body {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.qt-chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.qt-chat-author-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.qt-chat-role-chip {
  font-size: 9px;
  font-family: var(--qt-font-mono);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}
.role-recruiter { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); }
.role-apex { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }
.role-algo { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }

.qt-chat-time {
  font-size: 10px;
  font-family: var(--qt-font-mono);
  color: var(--qt-text-muted);
}

.qt-chat-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #f1f5f9;
}
.qt-chat-bubble code {
  font-family: var(--qt-font-mono);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-size: 11px;
}

/* Chat Input Bar */
.qt-chat-input-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--qt-border-subtle);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 10px;
  align-items: center;
}

.qt-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all var(--qt-transition-fast);
}
.qt-chat-input:focus {
  border-color: var(--qt-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.btn-send-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.btn-send-msg:hover {
  transform: translateY(-1px);
}

/* ===================================================================
   SECTION 5: HIRING CHECKLIST & TALENT PASSPORT
   =================================================================== */
.qt-hiring-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(56, 189, 248, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--qt-radius-xl);
  padding: 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.qt-hiring-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.qt-hiring-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--qt-font-mono);
  margin-bottom: 16px;
}

.qt-hiring-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.qt-hiring-desc {
  font-size: 14px;
  color: var(--qt-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.qt-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qt-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #e2e8f0;
}
.qt-check-item i {
  color: var(--qt-emerald);
  margin-top: 3px;
}

/* Hiring Passport Preview Mockup */
.qt-passport-card {
  background: #090d18;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--qt-radius-lg);
  padding: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  position: relative;
}
.qt-passport-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.qt-passport-score-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--qt-emerald);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.qt-score-num {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--qt-font-mono);
  line-height: 1;
}
.qt-score-sub {
  font-size: 8px;
  color: var(--qt-emerald);
  font-family: var(--qt-font-mono);
}

/* Modal Windows */
.qt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.qt-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.qt-modal-card {
  background: #0c111e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--qt-radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 640px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.qt-modal-backdrop.open .qt-modal-card {
  transform: translateY(0) scale(1);
}

/* ===================================================================
   QUANTIT ARENA & COMPETITIONS STYLING
   =================================================================== */
.qt-quantit-showcase {
  position: relative;
  overflow: hidden;
  background: radial-gradient(100% 120% at 0% 0%, rgba(245, 158, 11, 0.1) 0%, rgba(99, 102, 241, 0.05) 45%, rgba(13, 18, 30, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: var(--qt-radius-xl);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.07);
  padding: 32px 36px;
  margin-bottom: 32px;
}

.qt-quantit-glow-orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(99, 102, 241, 0.08) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.qt-quantit-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}

.qt-quantit-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qt-quantit-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qt-radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: radarPulseAnim 1.8s infinite ease-out;
}
@keyframes radarPulseAnim {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.qt-quantit-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

.qt-quantit-title-sub {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: normal;
}

.qt-quantit-lead {
  font-size: 15px;
  font-weight: 500;
  color: #f1f5f9;
  line-height: 1.55;
}

.qt-quantit-desc {
  font-size: 12.5px;
  color: var(--qt-text-secondary);
  line-height: 1.6;
}

.qt-quantit-formats-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 4px 0 8px 0;
}

.qt-format-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--qt-radius-md);
  padding: 10px 16px;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-format-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}
.qt-format-chip.weekly .qt-format-icon {
  background: rgba(56, 189, 248, 0.15);
  color: var(--qt-cyan);
}
.qt-format-chip.monthly .qt-format-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--qt-gold);
}

.qt-format-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.qt-format-meta {
  display: flex;
  flex-direction: column;
}
.qt-format-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.qt-format-info {
  font-size: 11px;
  color: var(--qt-text-secondary);
}

.qt-quantit-cta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn-quantit-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: all var(--qt-transition-fast);
}
.btn-quantit-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-quantit-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.btn-quantit-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.qt-quantit-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qt-comp-preview-card {
  background: rgba(14, 20, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--qt-radius-lg);
  padding: 16px 18px;
  transition: all var(--qt-transition-fast);
  position: relative;
  overflow: hidden;
}
.qt-comp-preview-card.active-card {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
}
.qt-comp-preview-card.enrolling-card {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}
.qt-comp-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.qt-cpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qt-cpc-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.qt-cpc-tag.live {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--qt-cyan);
}
.qt-cpc-tag.enrolling {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--qt-gold);
}

.qt-cpc-countdown {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qt-cpc-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.qt-cpc-detail {
  font-size: 11.5px;
  color: var(--qt-text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}

.qt-cpc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.qt-cpc-m {
  display: flex;
  flex-direction: column;
}
.qt-cpc-m .lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--qt-text-muted);
}
.qt-cpc-m .val {
  font-size: 12px;
  font-weight: 700;
}

.btn-cpc-join {
  width: 100%;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.btn-cpc-join.outline {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--qt-gold);
}
.btn-cpc-join:hover {
  filter: brightness(1.15);
}

/* ===================================================================
   TAB PANEL: QUANTIT COMPETITION ARENA
   =================================================================== */
.qt-quantit-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

.qt-quantit-tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--qt-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.qt-quantit-tab-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.qt-quantit-tab-sub {
  font-size: 13.5px;
  color: var(--qt-text-secondary);
  max-width: 640px;
  margin-top: 4px;
  line-height: 1.6;
}

.qt-quantit-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.qt-qstat-box {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-md);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.qt-qstat-box .qstat-num {
  font-size: 18px;
  font-weight: 800;
}
.qt-qstat-box .qstat-lbl {
  font-size: 10px;
  color: var(--qt-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Comps Filter Bar */
.qt-comps-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.qt-comps-filters {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--qt-border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
}

.qt-cfilter-pill {
  border: none;
  background: transparent;
  color: var(--qt-text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.qt-cfilter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.qt-cfilter-pill.active {
  color: #fff;
  background: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-quick-register-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--qt-gold);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--qt-transition-fast);
}
.btn-quick-register-all:hover {
  background: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

/* Bento Grid of 4 Competitions */
.qt-comps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.qt-comp-card {
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--qt-transition-fast);
}
.qt-comp-card:hover {
  background: var(--qt-bg-card-hover);
  border-color: var(--qt-border-bright);
  transform: translateY(-2px);
}
.qt-comp-card.live-card {
  border-color: rgba(56, 189, 248, 0.3);
}
.qt-comp-card.enrolling-card {
  border-color: rgba(245, 158, 11, 0.3);
}

.qt-comp-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qt-card-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.qt-card-status-badge.live {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--qt-cyan);
}
.qt-card-status-badge.enrolling {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--qt-gold);
}
.qt-card-status-badge.upcoming {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--qt-text-secondary);
}

.qt-cadence-pill {
  font-size: 10.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.qt-cadence-pill.weekly { color: var(--qt-cyan); }
.qt-cadence-pill.monthly { color: var(--qt-gold); }

.qt-comp-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.qt-comp-desc {
  font-size: 12.5px;
  color: var(--qt-text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.qt-comp-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.qt-cpp-item {
  display: flex;
  flex-direction: column;
}
.qt-cpp-item .lbl {
  font-size: 10px;
  color: var(--qt-text-muted);
  text-transform: uppercase;
}
.qt-cpp-item .val {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.qt-comp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 14px;
}

.qt-comp-timer-meta {
  display: flex;
  flex-direction: column;
}
.qt-comp-timer-meta .t-lbl {
  font-size: 10px;
  color: var(--qt-text-muted);
  text-transform: uppercase;
}
.qt-comp-timer-meta .t-val {
  font-size: 12px;
  font-weight: 700;
}

.btn-comp-action {
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--qt-transition-fast);
}
.btn-comp-action.live-btn {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
}
.btn-comp-action.enroll-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}
.btn-comp-action.outline-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-comp-action:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Format Comparison Section */
.qt-comp-comparison-section {
  margin-top: 16px;
}
.qt-comp-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Leaderboard Quantit Banner */
.qt-lb-quantit-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--qt-radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.qt-lb-qb-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #f1f5f9;
}
.qt-lb-qb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--qt-gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.btn-sm-quantit {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--qt-gold);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--qt-transition-fast);
}
.btn-sm-quantit:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fff;
}

/* ===================================================================
 * LEETCODE TESTCASE & TEST RESULT RUNNER STYLES
 * =================================================================== */
.qt-lc-drawer {
  background: #0f1523;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qt-lc-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 14px;
  height: 42px;
}

.qt-lc-tabs-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qt-lc-tab-btn {
  background: transparent;
  border: none;
  color: var(--qt-text-muted);
  font-family: var(--qt-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.qt-lc-tab-btn:hover {
  color: #fff;
}

.qt-lc-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--qt-cyan);
}

.qt-lc-tab-btn.active.result-tab {
  border-bottom-color: var(--qt-emerald);
}

.qt-lc-cases-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.qt-lc-case-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--qt-text-muted);
  font-family: var(--qt-font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qt-lc-case-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.qt-lc-case-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.45);
  color: var(--qt-cyan);
}

.qt-lc-case-pill.passed {
  border-color: rgba(16, 185, 129, 0.4);
}
.qt-lc-case-pill.passed .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.qt-lc-tab-pane {
  display: none;
  padding: 14px 16px;
  overflow-y: auto;
  max-height: 290px;
}

.qt-lc-tab-pane.active {
  display: block;
}

.qt-lc-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.qt-lc-status-tag {
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.qt-lc-benchmarks {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qt-lc-bench-pill {
  font-family: var(--qt-font-mono);
  font-size: 11px;
  color: var(--qt-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.qt-lc-bench-pill strong {
  color: #fff;
}
.qt-lc-bench-pill .beats {
  color: #34d399;
  font-weight: 600;
}

.qt-lc-io-group {
  margin-bottom: 10px;
}
.qt-lc-io-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--qt-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.qt-lc-io-code {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: var(--qt-font-mono);
  font-size: 11.5px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.5;
}

/* LeetCode Submission Celebration Modal */
.qt-lc-submit-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.qt-lc-submit-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.qt-lc-submit-card {
  background: #0e1526;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
  border-radius: 14px;
  width: 90%;
  max-width: 560px;
  padding: 28px;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.qt-lc-submit-modal.open .qt-lc-submit-card {
  transform: translateY(0);
}

/* ===================================================================
 * RIGHT ADJUSTABLE & COLLAPSIBLE SIDEBAR STYLES
 * =================================================================== */
.qt-dev-sidebar {
  background: #090d16;
  border: 1px solid var(--qt-border-subtle);
  border-radius: var(--qt-radius-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.qt-sidebar-expanded-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.qt-sidebar-collapsed-dock {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
  height: 100%;
  width: 44px;
  background: #060910;
}

.qt-devspace-workstation.sidebar-collapsed .qt-sidebar-expanded-content {
  display: none !important;
}

.qt-devspace-workstation.sidebar-collapsed .qt-sidebar-collapsed-dock {
  display: flex !important;
}

/* Sidebar Top Header */
.qt-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--qt-border-subtle);
  gap: 8px;
}

.qt-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qt-sidebar-adjuster-group {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.btn-sb-width-pill {
  background: transparent;
  border: none;
  color: var(--qt-text-muted);
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-sb-width-pill:hover,
.btn-sb-width-pill.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--qt-cyan);
}

.btn-sb-close {
  background: transparent;
  border: none;
  color: var(--qt-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-sb-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Sidebar Navigation Tabs */
.qt-sidebar-tabs-bar {
  display: flex;
  align-items: center;
  background: #060910;
  border-bottom: 1px solid var(--qt-border-subtle);
  padding: 0 6px;
}

.qt-sb-tab-btn {
  background: transparent;
  border: none;
  color: var(--qt-text-muted);
  font-family: var(--qt-font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.qt-sb-tab-btn:hover {
  color: #fff;
}

.qt-sb-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--qt-cyan);
}

.qt-sb-tab-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.qt-sb-pane {
  display: none;
}
.qt-sb-pane.active {
  display: block;
}

.qt-sb-section-head {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--qt-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qt-sb-count-badge {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Vertical Track Cards inside Sidebar */
.qt-sidebar-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.qt-sb-track-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qt-sb-track-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.35);
}

.qt-sb-track-card.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(56, 189, 248, 0.08));
  border-color: var(--qt-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.qt-sb-track-info {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}

.qt-sb-track-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--qt-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.qt-sb-track-card.active .qt-sb-track-icon {
  background: linear-gradient(135deg, var(--qt-indigo), var(--qt-cyan));
  color: #fff;
}

.qt-sb-track-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qt-sb-track-role {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vertical Problem List in Sidebar */
.qt-sb-problem-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qt-sb-prob-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qt-sb-prob-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.qt-sb-prob-item.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--qt-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.12);
}

.qt-sb-prob-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.qt-sb-prob-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
}

/* Collapsed Dock Icon Buttons */
.btn-dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--qt-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dock-icon:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--qt-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.btn-dock-expand {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .qt-telemetry-grid { grid-template-columns: repeat(2, 1fr); }
  .qt-problems-grid { grid-template-columns: repeat(2, 1fr); }
  .qt-podium-grid { grid-template-columns: 1fr; }
  .qt-devspace-wrapper { grid-template-columns: 1fr; }
  .qt-devspace-tracks-grid { grid-template-columns: repeat(3, 1fr); }
  .qt-devspace-problem-strip { grid-template-columns: repeat(3, 1fr); }
  .qt-devspace-workstation { grid-template-columns: 1fr; }
  .qt-bt-metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .qt-chat-layout { grid-template-columns: 1fr; height: auto; }
  .qt-hiring-grid { grid-template-columns: 1fr; }
  .qt-quantit-inner { grid-template-columns: 1fr; }
  .qt-comps-grid { grid-template-columns: 1fr; }
  .qt-quantit-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Top Sticky Navigation Header Responsive Engine */
@media (max-width: 1360px) {
  .qt-header {
    padding: 0 16px;
  }
  .qt-header-left {
    gap: 16px;
  }
  /* Hide redundant SIMULATIONS launch button on compact laptop screens */
  .qt-header-right .btn-terminal-launch {
    display: none !important;
  }
  .qt-nav-pills li {
    display: inline-flex;
    flex-shrink: 0;
  }
  .qt-nav-btn {
    padding: 5px 8px;
    font-size: 12px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
}

@media (max-width: 1300px) {
  .qt-header {
    padding: 0 14px;
  }
  .qt-brand-tag {
    display: none !important;
  }
  .qt-hiring-badge-btn span {
    display: none !important;
  }
  .qt-hiring-badge-btn {
    padding: 5px 9px;
    white-space: nowrap !important;
  }
  .qt-user-chip .qt-user-readiness {
    display: none !important;
  }
  .qt-user-chip {
    padding: 3px 8px 3px 4px;
    gap: 6px;
    white-space: nowrap !important;
  }
  .qt-header-left {
    gap: 12px;
  }
  .qt-nav-pills {
    gap: 3px;
  }
  .qt-nav-btn {
    padding: 5px 7px;
    font-size: 11.5px;
    gap: 4px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
}

@media (max-width: 992px) {
  .qt-header {
    padding: 0 10px;
  }
  .qt-nav-btn i {
    display: none;
  }
  .qt-nav-btn {
    padding: 5px 6px;
    font-size: 11px;
    white-space: nowrap !important;
    flex-shrink: 0;
  }
  .qt-brand-title {
    font-size: 14.5px;
  }
  .qt-brand-logo {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .qt-header {
    height: auto;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 0;
    position: sticky;
    top: 0;
  }
  .qt-header-left {
    display: contents;
  }
  .qt-brand-link {
    order: 1;
    flex-shrink: 0;
  }
  .qt-header-right {
    order: 2;
    position: static !important;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }
  .qt-header-right .qt-hiring-badge-btn span {
    display: none !important;
  }
  .qt-brand-tag {
    display: none !important;
  }
  .qt-nav-pills {
    order: 3;
    display: flex !important;
    overflow-x: auto;
    width: 100% !important;
    padding: 4px 0 2px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .qt-nav-pills::-webkit-scrollbar {
    display: none;
  }
  .qt-nav-btn {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap !important;
    flex-shrink: 0;
    border-radius: 6px;
  }
  .qt-hero-title { font-size: 26px; }
  .qt-telemetry-grid { grid-template-columns: 1fr; }
  .qt-problems-grid { grid-template-columns: 1fr; }
  .qt-devspace-tracks-grid { grid-template-columns: 1fr; }
  .qt-devspace-problem-strip { grid-template-columns: 1fr; }
  .qt-bt-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .qt-table { font-size: 11px; }
  .qt-table th, .qt-table td { padding: 10px; }
  .qt-main-tabs { width: 100%; overflow-x: auto; }
  .qt-quantit-showcase { padding: 20px; }
  .qt-quantit-title { font-size: 26px; }
  .qt-quantit-stats-strip { grid-template-columns: 1fr; }
}

/* ===================================================================
   WIDESCREEN & ULTRAWIDE DISPLAY OPTIMIZATION (16:9, 1440p, 4K, 21:9 & 32:9)
   Eliminates black letterboxing and maximizes Bloomberg-grade quant workspace
   =================================================================== */
@media (min-width: 1441px) {
  :root {
    --qt-left-panel-width: 400px;
  }
  .qt-devspace-main {
    padding: 16px 28px 20px 28px;
  }
}

@media (min-width: 1920px) {
  :root {
    --qt-left-panel-width: 440px;
    --qt-sidebar-width: 410px;
  }
  .qt-devspace-main {
    padding: 18px 32px 22px 32px;
  }
  .qt-devspace-workstation {
    gap: 18px;
    height: calc(100vh - 165px);
  }
  .qt-code-mirror {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (min-width: 2560px) {
  :root {
    --qt-left-panel-width: 490px;
    --qt-sidebar-width: 460px;
  }
  .qt-devspace-main {
    padding: 22px 40px 26px 40px;
  }
  .qt-devspace-workstation {
    gap: 22px;
    height: calc(100vh - 175px);
  }
  .qt-code-mirror {
    font-size: 15px;
    line-height: 1.7;
    padding: 20px 24px;
  }
  .qt-prob-spec-panel {
    padding: 22px 24px;
  }
  .qt-bt-metrics-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 3440px) {
  :root {
    --qt-left-panel-width: 550px;
    --qt-sidebar-width: 500px;
  }
  .qt-devspace-main {
    padding: 24px 48px 30px 48px;
  }
  .qt-devspace-workstation {
    gap: 26px;
    height: calc(100vh - 180px);
  }
  .qt-code-mirror {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* ===================================================================
   CHOOSE DISCIPLINE SELECTOR & DEDICATED DISCIPLINE PAGES (APPLE FINTECH)
   =================================================================== */
.qt-discipline-selector-section {
  width: 100%;
  margin-bottom: 28px;
}

.qt-discipline-header {
  text-align: left;
  margin-bottom: 20px;
}

.qt-discipline-heading {
  font-family: var(--qt-font-display);
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-top: 8px;
  margin-bottom: 6px;
}

.qt-discipline-desc {
  font-size: 14px;
  color: #94a3b8;
  max-width: 860px;
  line-height: 1.55;
  margin: 0;
}

/* 5 Discipline Interactive Buttons Row / Grid */
.qt-discipline-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 1500px) {
  .qt-discipline-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .qt-discipline-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .qt-discipline-buttons-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual Discipline Button Card */
.qt-discipline-btn-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.qt-discipline-btn-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qt-discipline-btn-card:hover {
  transform: translateY(-4px);
  background: rgba(18, 24, 38, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.15);
}

.qt-discipline-btn-card:hover::before {
  opacity: 1;
}

.qt-disc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qt-disc-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 18px;
  transition: transform 0.25s ease;
}

.qt-discipline-btn-card:hover .qt-disc-icon-badge {
  transform: scale(1.1);
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.qt-disc-count-pill {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.qt-disc-card-body {
  flex: 1;
  margin-bottom: 16px;
}

.qt-disc-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.qt-disc-role {
  display: block;
  font-family: var(--qt-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 8px;
}

.qt-disc-summary {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.qt-disc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 8px;
}

.qt-disc-firm-tags {
  font-family: var(--qt-font-mono);
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.qt-disc-enter-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--qt-font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  transition: all 0.2s ease;
}

.qt-discipline-btn-card:hover .qt-disc-enter-link {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Dedicated Discipline Page Layout Elements */
.qt-discipline-page-hero {
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.qt-discipline-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.qt-back-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--qt-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.qt-back-breadcrumb:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.qt-discipline-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .qt-discipline-hero-grid {
    grid-template-columns: 1fr;
  }
}

.qt-discipline-page-title {
  font-family: var(--qt-font-display);
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 8px 0;
}

.qt-discipline-page-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 14px;
}

.qt-discipline-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-disc-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--qt-radius-md);
  font-family: var(--qt-font-mono);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-disc-hero-action.primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.25);
}

.btn-disc-hero-action.primary:hover {
  background: #f5f5f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.4);
}

.btn-disc-hero-action.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-disc-hero-action.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Discipline Navigation Switcher Tabs */
.qt-discipline-switcher-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.qt-discipline-switch-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #94a3b8;
  text-decoration: none;
  font-family: var(--qt-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.qt-discipline-switch-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.qt-discipline-switch-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}



/* ===================================================================
   NEW COUNTRY-WISE (INDIA) & 3 CATEGORY LEADERBOARD STYLING
   =================================================================== */
.qt-country-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.qt-country-selector-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qt-country-label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qt-country-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qt-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qt-country-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.qt-country-pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.country-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.country-badge {
  font-size: 9px;
  font-family: var(--qt-font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
  color: #94a3b8;
}

.qt-national-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.04em;
}

/* Category Switcher Bar */
.qt-category-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.qt-category-pills {
  display: inline-flex;
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 5px;
  gap: 6px;
  flex-wrap: wrap;
}

.qt-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qt-cat-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.qt-cat-btn.active {
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.22), rgba(56, 189, 248, 0.15));
  border-color: rgba(41, 151, 255, 0.45);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(41, 151, 255, 0.2);
}

.cat-count-pill {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.qt-cat-btn.active .cat-count-pill {
  background: #2997ff;
  color: #000000;
}

/* Active Category Banner */
.qt-active-cat-banner {
  background: linear-gradient(135deg, rgba(16, 22, 36, 0.8), rgba(10, 14, 24, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.qt-cat-badge-id {
  font-family: var(--qt-font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.3);
  color: #70b4ff;
  display: inline-block;
  margin-bottom: 6px;
}

.qt-cat-banner-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.qt-cat-banner-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.qt-cat-banner-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qt-cat-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: right;
}

.qt-cat-stat-lbl {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.qt-cat-stat-val {
  font-family: var(--qt-font-mono);
  font-size: 15px;
  font-weight: 800;
}

/* Podium adjustments */
.qt-podium-avatar-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.qt-podium-flag {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 14px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

.qt-flag-tag {
  font-size: 13px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .qt-country-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .qt-category-switcher-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .qt-category-pills {
    flex-direction: column;
  }
  .qt-active-cat-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .qt-cat-banner-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===================================================================
   INSTITUTIONAL HIGH-CONTRAST LIGHT MODE COMPONENT SYSTEM
   =================================================================== */
html.light-mode body.qt-body,
[data-theme="light"] body.qt-body {
  background-color: #f8fafc !important;
  color: #09090b !important;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 113, 227, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(0, 113, 227, 0.03) 0%, transparent 45%),
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px !important;
}

/* Navigation Header */
html.light-mode .qt-header,
[data-theme="light"] .qt-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .qt-brand-title,
[data-theme="light"] .qt-brand-title {
  color: #09090b !important;
}

html.light-mode .qt-brand-title span,
[data-theme="light"] .qt-brand-title span {
  color: #0071e3 !important;
}

html.light-mode .qt-brand-tag,
[data-theme="light"] .qt-brand-tag {
  color: #64748b !important;
}

html.light-mode .qt-nav-btn,
[data-theme="light"] .qt-nav-btn {
  color: #475569 !important;
}

html.light-mode .qt-nav-btn:hover,
[data-theme="light"] .qt-nav-btn:hover {
  color: #09090b !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-nav-btn.active,
[data-theme="light"] .qt-nav-btn.active {
  color: #0071e3 !important;
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.28) !important;
}

html.light-mode .qt-hiring-badge-btn,
[data-theme="light"] .qt-hiring-badge-btn {
  background: rgba(5, 150, 105, 0.08) !important;
  border-color: rgba(5, 150, 105, 0.25) !important;
  color: #059669 !important;
}

html.light-mode .qt-usp-banner,
[data-theme="light"] .qt-usp-banner {
  background: rgba(0, 113, 227, 0.06) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

html.light-mode .qt-usp-banner span[style*="color: #fff"],
html.light-mode .qt-usp-banner span[style*="color:#fff"],
[data-theme="light"] .qt-usp-banner span[style*="color: #fff"],
[data-theme="light"] .qt-usp-banner span[style*="color:#fff"],
html.light-mode .qt-discipline-selector-section h2[style*="color: #fff"],
[data-theme="light"] .qt-discipline-selector-section h2[style*="color: #fff"],
html.light-mode .qt-problems-section h2[style*="color: #fff"],
[data-theme="light"] .qt-problems-section h2[style*="color: #fff"] {
  color: #09090b !important;
}

html.light-mode .qt-usp-banner p,
[data-theme="light"] .qt-usp-banner p {
  color: #475569 !important;
}

html.light-mode .qt-hiring-badge-btn:hover,
[data-theme="light"] .qt-hiring-badge-btn:hover {
  background: rgba(5, 150, 105, 0.15) !important;
}

html.light-mode .qt-user-chip,
[data-theme="light"] .qt-user-chip {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-user-name,
[data-theme="light"] .qt-user-name {
  color: #09090b !important;
}

html.light-mode .qt-user-readiness,
[data-theme="light"] .qt-user-readiness {
  color: #64748b !important;
}

html.light-mode .btn-terminal-launch,
[data-theme="light"] .btn-terminal-launch {
  background: #09090b !important;
  color: #ffffff !important;
  border-color: #09090b !important;
}

html.light-mode .btn-terminal-launch:hover,
[data-theme="light"] .btn-terminal-launch:hover {
  background: #27272a !important;
}

/* Hero Section */
html.light-mode .qt-hero-title,
[data-theme="light"] .qt-hero-title {
  color: #09090b !important;
}

html.light-mode .qt-gradient-text,
[data-theme="light"] .qt-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 .qt-hero-subtitle,
[data-theme="light"] .qt-hero-subtitle {
  color: #475569 !important;
}

html.light-mode .qt-pill-tag,
[data-theme="light"] .qt-pill-tag {
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
  color: #0071e3 !important;
}

/* Metric & Telemetry Cards */
html.light-mode .qt-telemetry-grid,
html.light-mode .qt-metric-card,
html.light-mode .qt-telemetry-card,
[data-theme="light"] .qt-metric-card,
[data-theme="light"] .qt-telemetry-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .qt-metric-title,
html.light-mode .qt-metric-lbl,
[data-theme="light"] .qt-metric-title,
[data-theme="light"] .qt-metric-lbl {
  color: #64748b !important;
}

html.light-mode .qt-metric-val,
[data-theme="light"] .qt-metric-val {
  color: #09090b !important;
}

html.light-mode .qt-metric-sub,
[data-theme="light"] .qt-metric-sub {
  color: #475569 !important;
}

/* Filters & Search */
html.light-mode .qt-filter-bar,
html.light-mode .qt-filter-wrapper,
[data-theme="light"] .qt-filter-bar,
[data-theme="light"] .qt-filter-wrapper {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02) !important;
}

html.light-mode .qt-filter-btn,
[data-theme="light"] .qt-filter-btn {
  color: #475569 !important;
  background: transparent !important;
}

html.light-mode .qt-filter-btn:hover,
[data-theme="light"] .qt-filter-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #09090b !important;
}

html.light-mode .qt-filter-btn.active,
[data-theme="light"] .qt-filter-btn.active {
  background: rgba(0, 113, 227, 0.08) !important;
  color: #0071e3 !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
}

html.light-mode .qt-search-input,
[data-theme="light"] .qt-search-input {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #09090b !important;
}

html.light-mode .qt-search-input::placeholder,
[data-theme="light"] .qt-search-input::placeholder {
  color: #94a3b8 !important;
}

html.light-mode .qt-search-wrapper i,
[data-theme="light"] .qt-search-wrapper i {
  color: #64748b !important;
}

/* Podiums & Top Ranks */
html.light-mode .qt-podium-card,
[data-theme="light"] .qt-podium-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .qt-podium-card.first,
[data-theme="light"] .qt-podium-card.first {
  background: #ffffff !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.08) !important;
}

html.light-mode .qt-podium-name,
[data-theme="light"] .qt-podium-name {
  color: #09090b !important;
}

html.light-mode .qt-podium-rank,
[data-theme="light"] .qt-podium-rank {
  color: #09090b !important;
}

html.light-mode .qt-podium-stat-val,
[data-theme="light"] .qt-podium-stat-val {
  color: #09090b !important;
}

html.light-mode .qt-podium-stat-lbl,
[data-theme="light"] .qt-podium-stat-lbl {
  color: #64748b !important;
}

/* Leaderboards & Tables */
html.light-mode .qt-table-container,
[data-theme="light"] .qt-table-container {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03) !important;
}

html.light-mode .qt-table th,
[data-theme="light"] .qt-table th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-table td,
[data-theme="light"] .qt-table td {
  color: #0f172a !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .qt-table tr:hover td,
[data-theme="light"] .qt-table tr:hover td {
  background: #f8fafc !important;
}

html.light-mode .qt-user-table-name,
[data-theme="light"] .qt-user-table-name {
  color: #09090b !important;
}

html.light-mode .qt-user-table-handle,
[data-theme="light"] .qt-user-table-handle {
  color: #64748b !important;
}

html.light-mode .qt-rank-cell,
[data-theme="light"] .qt-rank-cell {
  color: #09090b !important;
}

html.light-mode .qt-country-bar,
html.light-mode .qt-category-switcher-bar,
html.light-mode .qt-active-cat-banner,
[data-theme="light"] .qt-country-bar,
[data-theme="light"] .qt-category-switcher-bar,
[data-theme="light"] .qt-active-cat-banner {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02) !important;
}

html.light-mode .qt-cat-pill,
[data-theme="light"] .qt-cat-pill {
  color: #475569 !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .qt-cat-pill:hover,
[data-theme="light"] .qt-cat-pill:hover {
  color: #09090b !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-cat-pill.active,
[data-theme="light"] .qt-cat-pill.active {
  color: #0071e3 !important;
  background: rgba(0, 113, 227, 0.08) !important;
  border-color: rgba(0, 113, 227, 0.25) !important;
}

html.light-mode .qt-cat-title,
[data-theme="light"] .qt-cat-title {
  color: #09090b !important;
}

html.light-mode .qt-cat-desc,
[data-theme="light"] .qt-cat-desc {
  color: #475569 !important;
}

html.light-mode .qt-cat-stat-lbl,
[data-theme="light"] .qt-cat-stat-lbl {
  color: #64748b !important;
}

html.light-mode .qt-cat-stat-val,
[data-theme="light"] .qt-cat-stat-val {
  color: #09090b !important;
}

/* Problem Bank & Cards */
html.light-mode .qt-problem-card,
[data-theme="light"] .qt-problem-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 .qt-problem-card:hover,
[data-theme="light"] .qt-problem-card:hover {
  background: #ffffff !important;
  border-color: rgba(0, 113, 227, 0.35) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06), 0 0 16px rgba(0, 113, 227, 0.06) !important;
}

html.light-mode .qt-problem-title,
[data-theme="light"] .qt-problem-title {
  color: #09090b !important;
}

html.light-mode .qt-problem-desc,
[data-theme="light"] .qt-problem-desc {
  color: #475569 !important;
}

html.light-mode .qt-problem-meta,
[data-theme="light"] .qt-problem-meta {
  color: #64748b !important;
}

html.light-mode .qt-solve-btn,
[data-theme="light"] .qt-solve-btn {
  background: #09090b !important;
  color: #ffffff !important;
}

html.light-mode .qt-solve-btn:hover,
[data-theme="light"] .qt-solve-btn:hover {
  background: #27272a !important;
}

/* Modals */
html.light-mode .qt-modal-card,
[data-theme="light"] .qt-modal-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15) !important;
}

html.light-mode .qt-modal-header,
[data-theme="light"] .qt-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-modal-title,
[data-theme="light"] .qt-modal-title {
  color: #09090b !important;
}

html.light-mode .qt-modal-body,
[data-theme="light"] .qt-modal-body {
  color: #334155 !important;
}

html.light-mode .qt-modal-body p,
[data-theme="light"] .qt-modal-body p {
  color: #334155 !important;
}

html.light-mode .qt-modal-body div[style*="background: #060911"],
html.light-mode .qt-modal-body div[style*="background:#060911"],
[data-theme="light"] .qt-modal-body div[style*="background: #060911"],
[data-theme="light"] .qt-modal-body div[style*="background:#060911"] {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #09090b !important;
}

html.light-mode .qt-modal-body div[style*="background: rgba(255,255,255,0.03)"],
html.light-mode .qt-modal-body div[style*="background:rgba(255,255,255,0.03)"],
[data-theme="light"] .qt-modal-body div[style*="background: rgba(255,255,255,0.03)"],
[data-theme="light"] .qt-modal-body div[style*="background:rgba(255,255,255,0.03)"] {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #09090b !important;
}

html.light-mode .qt-modal-body span[style*="color: #94a3b8"],
html.light-mode .qt-modal-body span[style*="color:#94a3b8"],
[data-theme="light"] .qt-modal-body span[style*="color: #94a3b8"],
[data-theme="light"] .qt-modal-body span[style*="color:#94a3b8"] {
  color: #64748b !important;
}

html.light-mode .qt-modal-footer,
[data-theme="light"] .qt-modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-modal-footer button[style*="color: #cbd5e1"],
html.light-mode .qt-modal-footer button[style*="color:#cbd5e1"],
[data-theme="light"] .qt-modal-footer button[style*="color: #cbd5e1"],
[data-theme="light"] .qt-modal-footer button[style*="color:#cbd5e1"] {
  color: #475569 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

/* DevSpace In-Browser Solver */
html.light-mode .devspace-workspace,
html.light-mode .devspace-sidebar,
html.light-mode .devspace-problem-pane,
[data-theme="light"] .devspace-workspace,
[data-theme="light"] .devspace-sidebar,
[data-theme="light"] .devspace-problem-pane {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

html.light-mode .devspace-problem-pane h1,
html.light-mode .devspace-problem-pane h2,
html.light-mode .devspace-problem-pane h3,
[data-theme="light"] .devspace-problem-pane h1,
[data-theme="light"] .devspace-problem-pane h2,
[data-theme="light"] .devspace-problem-pane h3 {
  color: #09090b !important;
}

html.light-mode .devspace-problem-pane p,
html.light-mode .devspace-problem-pane li,
[data-theme="light"] .devspace-problem-pane p,
[data-theme="light"] .devspace-problem-pane li {
  color: #334155 !important;
}

html.light-mode .devspace-editor-header,
html.light-mode .devspace-terminal-header,
[data-theme="light"] .devspace-editor-header,
[data-theme="light"] .devspace-terminal-header {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #09090b !important;
}

html.light-mode .devspace-editor-tab,
[data-theme="light"] .devspace-editor-tab {
  color: #475569 !important;
}

html.light-mode .devspace-editor-tab.active,
[data-theme="light"] .devspace-editor-tab.active {
  background: #ffffff !important;
  color: #0071e3 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .devspace-terminal-output,
[data-theme="light"] .devspace-terminal-output {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Chat Layout */
html.light-mode .chat-rooms-sidebar,
html.light-mode .chat-main-area,
[data-theme="light"] .chat-rooms-sidebar,
[data-theme="light"] .chat-main-area {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .chat-room-item,
[data-theme="light"] .chat-room-item {
  color: #475569 !important;
}

html.light-mode .chat-room-item:hover,
[data-theme="light"] .chat-room-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #09090b !important;
}

html.light-mode .chat-room-item.active,
[data-theme="light"] .chat-room-item.active {
  background: rgba(0, 113, 227, 0.08) !important;
  color: #0071e3 !important;
}

html.light-mode .chat-message-item,
[data-theme="light"] .chat-message-item {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .chat-author-name,
[data-theme="light"] .chat-author-name {
  color: #09090b !important;
}

html.light-mode .chat-msg-text,
[data-theme="light"] .chat-msg-text {
  color: #1e293b !important;
}

html.light-mode .chat-time,
[data-theme="light"] .chat-time {
  color: #64748b !important;
}

html.light-mode .chat-input-bar,
[data-theme="light"] .chat-input-bar {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .chat-text-input,
[data-theme="light"] .chat-text-input {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #09090b !important;
}

/* Hiring Section */
html.light-mode .hiring-job-card,
[data-theme="light"] .hiring-job-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 .hiring-job-card:hover,
[data-theme="light"] .hiring-job-card:hover {
  border-color: rgba(0, 113, 227, 0.35) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}

html.light-mode .hiring-role-title,
[data-theme="light"] .hiring-role-title {
  color: #09090b !important;
}

html.light-mode .hiring-firm-name,
[data-theme="light"] .hiring-firm-name {
  color: #0071e3 !important;
}

html.light-mode .hiring-role-desc,
[data-theme="light"] .hiring-role-desc {
  color: #475569 !important;
}

html.light-mode .hiring-meta-pill,
[data-theme="light"] .hiring-meta-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}

html.light-mode .hiring-salary-tag,
[data-theme="light"] .hiring-salary-tag {
  background: rgba(5, 150, 105, 0.08) !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
  color: #059669 !important;
}

/* Quantit Showcase & Contest Card in Light Mode */
html.light-mode .qt-quantit-showcase,
[data-theme="light"] .qt-quantit-showcase {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .qt-quantit-title,
[data-theme="light"] .qt-quantit-title {
  color: #09090b !important;
}

html.light-mode .qt-quantit-title-sub,
[data-theme="light"] .qt-quantit-title-sub {
  color: #334155 !important;
}

html.light-mode .qt-quantit-lead,
[data-theme="light"] .qt-quantit-lead {
  color: #09090b !important;
}

html.light-mode .qt-quantit-desc,
[data-theme="light"] .qt-quantit-desc {
  color: #475569 !important;
}

html.light-mode .qt-format-chip,
[data-theme="light"] .qt-format-chip {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .qt-format-chip:hover,
[data-theme="light"] .qt-format-chip:hover {
  background: #f1f5f9 !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

html.light-mode .qt-format-name,
[data-theme="light"] .qt-format-name {
  color: #09090b !important;
}

html.light-mode .qt-format-info,
[data-theme="light"] .qt-format-info {
  color: #475569 !important;
}

html.light-mode .btn-quantit-secondary,
[data-theme="light"] .btn-quantit-secondary {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #09090b !important;
}

html.light-mode .btn-quantit-secondary:hover,
[data-theme="light"] .btn-quantit-secondary:hover {
  background: #e2e8f0 !important;
}


