/* ==========================================================================
   ASTRO QUANT // SCALPER PRO — NEXT-GEN INSTITUTIONAL TRADING TERMINAL
   High-Octane Cyber-Fintech Visual Identity & 3-Column Cockpit Architecture
   ========================================================================== */

/* ── Custom Design Tokens ─────────────────────────────────────────────────── */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;

  /* Deep Space Obsidian Surfaces */
  --bg-void: #05070b;
  --bg-primary: #080c14;
  --bg-card: rgba(13, 18, 29, 0.88);
  --bg-card-hover: rgba(18, 25, 40, 0.95);
  --bg-subtle: rgba(22, 31, 48, 0.7);
  --bg-input: rgba(10, 14, 23, 0.9);
  --bg-glass: rgba(13, 18, 29, 0.75);

  /* Borders & Grid Overlays */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(0, 240, 255, 0.5);
  --border-glow-cyan: rgba(0, 240, 255, 0.35);
  --border-glow-violet: rgba(168, 85, 247, 0.4);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* High-Tech Neons */
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.25);
  --accent-cyan: #38bdf8;
  --neon-emerald: #10b981;
  --neon-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-emerald: #10b981;
  --neon-rose: #ff2a5f;
  --neon-rose-glow: rgba(255, 42, 95, 0.3);
  --accent-rose: #f43f5e;
  --neon-amber: #f59e0b;
  --neon-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-amber: #f59e0b;
  --neon-violet: #a855f7;
  --neon-violet-glow: rgba(168, 85, 247, 0.25);
  --neon-blue: #3b82f6;

  /* Radii & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px -1px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.22);
  --shadow-neon-emerald: 0 0 20px rgba(16, 185, 129, 0.25);
  --shadow-neon-rose: 0 0 20px rgba(255, 42, 95, 0.25);
  --shadow-neon-violet: 0 0 20px rgba(168, 85, 247, 0.22);
}

/* ── Reset & Baseline ─────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-void);
  background-image: 
    radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 14, 23, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}

/* ==========================================================================
   TOP EXECUTIVE HUD HEADER
   ========================================================================== */
.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Terminal Brand */
.terminal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-orbital-beacon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beacon-core {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), #3b82f6);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
}

.beacon-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1.5px dashed rgba(0, 240, 255, 0.6);
  border-radius: 50%;
  animation: beacon-spin 8s linear infinite;
}

@keyframes beacon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.brand-astro {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: -0.5px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.brand-quant {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
}

.accent-glow {
  color: var(--neon-cyan);
}

/* Segmented Instrument Picker */
.instrument-segmented-wrapper {
  position: relative;
}

.hud-instrument-select {
  background: rgba(13, 18, 29, 0.95);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 30px 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px 13px;
  box-shadow: var(--shadow-neon-cyan);
  transition: all 0.2s ease;
}

.hud-instrument-select:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
}

.hud-instrument-select option {
  background: #0d121d;
  color: #ffffff;
  font-weight: 700;
}

/* Active Contract Chip */
.active-contract-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.contract-live-radar {
  width: 8px;
  height: 8px;
  background-color: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: radar-pulse 2s infinite;
}

@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.contract-symbol-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

/* HUD Right Elements */
.hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-hud-auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--neon-cyan);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-hud-auth:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.35));
  box-shadow: var(--shadow-neon-cyan);
}

.hud-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px 4px 10px;
  border-radius: var(--radius-md);
}

.user-avatar-dot {
  width: 7px;
  height: 7px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-cyan);
}

.user-id-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hud-logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}

.hud-logout-btn:hover {
  color: var(--neon-rose);
  background: rgba(255, 42, 95, 0.15);
}

.hud-stream-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--neon-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.stream-ping-dot, .pulse-indicator {
  width: 7px;
  height: 7px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-emerald);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 1; }
  70% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

/* ==========================================================================
   SLOT WORKBENCH SELECTOR DECK
   ========================================================================== */
.slot-workbench-deck {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 24px;
  background: rgba(6, 9, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.deck-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

.slot-tab-strip, .slot-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* Base button styling for slot buttons */
.slot-tab-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #0d121d !important;
  background: rgba(13, 18, 29, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm, 6px);
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 148px;
  text-align: left;
  position: relative;
  color: var(--text-primary, #f8fafc) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.35);
  outline: none;
}

.slot-tab-btn:hover {
  background: rgba(22, 31, 48, 0.95) !important;
  border-color: rgba(0, 240, 255, 0.45) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 240, 255, 0.18);
}

.slot-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.16), rgba(13, 18, 29, 0.95)) !important;
  border-color: var(--neon-cyan, #00f0ff) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), inset 0 0 12px rgba(0, 240, 255, 0.12);
}

.slot-tab-btn.tab-buy.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(13, 18, 29, 0.95)) !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.slot-tab-btn.tab-sell.active {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(13, 18, 29, 0.95)) !important;
  border-color: #f43f5e !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35), inset 0 0 10px rgba(244, 63, 94, 0.1);
}

.slot-tab-btn.running {
  border-color: rgba(16, 185, 129, 0.7) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Tab Header Line */
.tab-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tab-slot-badge {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.tab-slot-badge.badge-call {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.tab-slot-badge.badge-put {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.tab-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.tab-status-dot.pulse {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-glow 1.5s infinite;
}

/* Tab Content Line */
.tab-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.tab-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: #94a3b8;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.slot-tab-btn.active .tab-label {
  color: #f8fafc;
}

.tab-pnl {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.2px;
}

.tab-pnl.pos {
  color: #34d399;
  text-shadow: 0 0 6px rgba(52, 211, 153, 0.35);
}

.tab-pnl.neg {
  color: #f87171;
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.35);
}

/* Legacy .slot-tab compatibility */
.slot-tab {
  background: rgba(13, 18, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #f8fafc;
}

.slot-tab:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.35);
}

.slot-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.slot-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.slot-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.slot-running-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-emerald);
  animation: pulse-glow 1.6s infinite;
}

.slot-tab-pnl-badge {
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-left: 2px;
  letter-spacing: 0.2px;
}

.slot-tab-pnl-badge.slot-pnl-pos {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.slot-tab-pnl-badge.slot-pnl-neg {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.slot-tab-pnl-badge.slot-pnl-zero {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.08);
}


/* ==========================================================================
   EXECUTIVE TELEMETRY HUD (7 GLOWING METRIC PODS)
   ========================================================================== */
.telemetry-hud-banner, .metrics-banner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 14px 20px 8px 20px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1600px) {
  .telemetry-hud-banner, .metrics-banner {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .telemetry-hud-banner, .metrics-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

.telemetry-pod, .metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pod-slot-pnl {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.08);
}

.pod-slot-pnl .slot-pill {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan, #00f0ff);
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.6rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.telemetry-pod::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.telemetry-pod:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.pod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pod-tag, .m-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pod-icon-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 3px;
}

.pod-icon-pill.danger-pill {
  background: rgba(255, 42, 95, 0.15);
  color: var(--neon-rose);
  border: 1px solid rgba(255, 42, 95, 0.3);
}

.pod-beacon-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse-glow 1.5s infinite;
}

.pod-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pod-big-value, .m-value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.pod-primary-ltp .pod-big-value, .ltp-highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

.pod-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.pod-sub-label, .m-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-trend-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.loss-text {
  color: var(--neon-rose);
  text-shadow: 0 0 12px rgba(255, 42, 95, 0.3);
}

/* ==========================================================================
   MAIN 3-COLUMN QUANT COCKPIT WORKSTATION
   ========================================================================== */
.cockpit-workstation-grid, .main-layout {
  display: grid;
  grid-template-columns: 350px 1fr 370px;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
  align-items: start;
}

.cockpit-column, .sidebar, .center-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Base Neon Card Style */
.neon-card, .card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-headline, .card-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}

.headline-left, .card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.headline-icon-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.headline-icon-box.cyan-glow {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
}

.headline-icon-box.amber-glow {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--neon-amber);
}

.headline-icon-box.blue-glow {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--neon-blue);
}

.headline-icon-box.emerald-glow {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--neon-emerald);
}

.headline-icon-box.violet-glow {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--neon-violet);
}

.card-headline h2, .card-header h2 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  line-height: 1.15;
}

.headline-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
}

.hud-badge-tag, .badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.hud-badge-tag.amber-badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--neon-amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.hud-badge-tag.blue-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--neon-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.hud-badge-tag.emerald-badge, .count-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--neon-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.hud-badge-tag.violet-badge, .badge-astro {
  background: rgba(168, 85, 247, 0.12);
  color: var(--neon-violet);
  border-color: rgba(168, 85, 247, 0.35);
}

.card-interior-content, .spot-panel-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   FORM & CYBER INPUT CONTROLS
   ========================================================================== */
.form-cyber-group, .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-cyber-group.full-span, .form-group.full-width {
  grid-column: 1 / -1;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.micro-hint {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.cyber-input-combo, .input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cyber-input-combo:focus-within, .cyber-input-wrap:focus-within, .input-wrapper:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.cyber-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 8px 0 0;
}

.cyber-input-wrap.danger-border {
  border-color: rgba(255, 42, 95, 0.35);
}

.cyber-input-wrap.danger-border:focus-within {
  border-color: var(--neon-rose);
  box-shadow: 0 0 12px rgba(255, 42, 95, 0.25);
}

input[type="number"], input[type="text"], input[type="password"], input[type="time"] {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
}

.unit-tag, .unit {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-cyber-action, .btn-auto {
  background: rgba(0, 240, 255, 0.12);
  border: none;
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cyber-action:hover, .btn-auto:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cyber-select-input, select.select-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--neon-cyan);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cyber-select-input:focus, select.select-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.cyber-select-input option {
  background: #0d121d;
  color: #ffffff;
  font-weight: 600;
}

/* Strike Resolution Matrix */
.strike-resolution-matrix, .strike-resolution-card {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-row, .resolution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-label, .res-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.matrix-value-strike, .res-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neon-violet);
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.manual-override-block, .manual-strike-wrapper {
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.override-header, .strike-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.override-title {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.strike-source-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.strike-source-tag.auto {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.strike-source-tag.manual {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.matrix-row-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.matrix-premium-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--neon-cyan);
}

.matrix-contract-desc, .resolution-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Strategy Grid */
.cyber-fields-grid, .input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Computed Step Hologram */
.computed-step-hologram, .dynamic-step-box {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.05);
}

.hologram-label-row, .step-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hologram-title, .step-calc-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--neon-cyan);
  letter-spacing: 0.4px;
}

.hologram-value, .step-calc-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hologram-formula, .step-calc-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* EOD Group */
.eod-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.badge-eod-mini, .badge-eod {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.12);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 6px;
  border-radius: 3px;
}

.eod-controls-flex, .eod-cutoff-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}

.cyber-time-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 10px;
}

/* Execution Button Cluster */
.execution-button-cluster, .run-slicer-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.btn-cyber-launch, .btn-run-slicer {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.6);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(3, 105, 161, 0.4);
  transition: all 0.2s ease;
}

.btn-cyber-launch:hover, .btn-run-slicer:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.6);
  transform: translateY(-1px);
}

.btn-cyber-launch.running, .btn-run-slicer.running {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: rgba(244, 63, 94, 0.8);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.5);
}

.btn-cyber-eod, .btn-eod-squareoff {
  width: 100%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--neon-amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cyber-eod:hover, .btn-eod-squareoff:hover {
  background: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   COLUMN 2: LADDER VISUALIZER DECK & ACTIVE SLICES
   ========================================================================== */
.ladder-container-deck, .ladder-container {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  background: rgba(8, 12, 20, 0.75);
}

.ladder-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* 3-Column Structured Ladder Table */
.ladder-table-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ladder-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(13, 18, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted, #64748b);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ladder-th-status {
  flex: 1.1;
  text-align: left;
}

.ladder-th-price {
  flex: 1;
  text-align: center;
}

.ladder-th-target {
  flex: 1.2;
  text-align: right;
}

.ladder-levels-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Individual Ladder Rung Row */
.ladder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: rgba(13, 18, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm, 6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 2px 5px rgba(0, 0, 0, 0.25);
}

.ladder-row:hover {
  background: rgba(22, 31, 48, 0.92);
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 10px rgba(0, 240, 255, 0.12);
}

.ladder-row.near-ltp-row {
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(13, 18, 29, 0.88));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.2), inset 3px 0 0 var(--neon-cyan, #00f0ff);
}

.ladder-row.filled-row {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(13, 18, 29, 0.9));
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25), inset 3px 0 0 #10b981;
}

.ladder-row.used-row {
  opacity: 0.45;
  background: rgba(13, 18, 29, 0.4);
  border-color: rgba(255, 255, 255, 0.04);
}

/* Columns */
.ladder-col-status {
  flex: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ladder-col-price {
  flex: 1;
  text-align: center;
}

.ladder-col-target {
  flex: 1.2;
  text-align: right;
}

/* Sub-elements */
.rung-label-chip {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.35);
  letter-spacing: 0.3px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.rung-status-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.4px;
}

.rung-status-badge.status-unused {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.rung-status-badge.status-filled {
  background: rgba(16, 185, 129, 0.22);
  color: #10b981;
  border: 1px solid #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  font-weight: 800;
}

.rung-status-badge.status-used {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.rung-price {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f8fafc;
}

.buy-rung-price {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.sell-rung-price {
  color: #fb7185;
  text-shadow: 0 0 10px rgba(251, 113, 133, 0.35);
}

.rung-target {
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.rung-target .target-icon {
  font-size: 0.78rem;
}

.rung-muted {
  color: #64748b;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
}

.ladder-loss-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 42, 95, 0.12);
  border: 1px dashed rgba(255, 42, 95, 0.5);
  border-radius: var(--radius-sm);
  color: var(--neon-rose);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 6px;
}

/* Cyber Data Tables */
.cyber-table-viewport, .table-wrapper {
  overflow-x: auto;
  max-height: 280px;
}

.max-h-ledger, .max-h-history {
  max-height: 260px;
}

.cyber-data-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.cyber-data-table th, .data-table th {
  padding: 10px 12px;
  background: rgba(10, 14, 23, 0.85);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.cyber-data-table td, .data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.cyber-data-table tr:hover td, .data-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.empty-table-row td, .empty-row td {
  text-align: center;
  padding: 36px 12px;
  color: var(--text-muted);
  font-style: italic;
}

.pnl-pos {
  color: var(--neon-emerald) !important;
  font-weight: 800;
}

.pnl-neg {
  color: var(--neon-rose) !important;
  font-weight: 800;
}

.btn-exit-slice {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: #ff4b7a;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-exit-slice:hover {
  background: rgba(255, 42, 95, 0.3);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}

/* ==========================================================================
   COLUMN 3: ASTRO SIGNAL INTELLIGENCE STATION (ZONE C)
   ========================================================================== */
.card-astro-deck {
  border-color: rgba(168, 85, 247, 0.35);
}

.astro-dropzone-wrapper, .astro-upload-container {
  width: 100%;
}

.astro-quantum-dropzone, .astro-file-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px dashed rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.astro-quantum-dropzone:hover, .astro-file-dropzone:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--neon-violet);
  box-shadow: var(--shadow-neon-violet);
}

.dropzone-icon-ring {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-violet);
  flex-shrink: 0;
}

.dropzone-caption-group, .dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-title-text, .dropzone-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dropzone-sub-text, .dropzone-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.astro-upload-feedback {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.astro-upload-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.astro-upload-feedback.error {
  background: rgba(255, 42, 95, 0.15);
  color: var(--neon-rose);
  border: 1px solid rgba(255, 42, 95, 0.35);
}

.astro-upload-feedback.loading {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.astro-upload-feedback.info {
  background: rgba(168, 85, 247, 0.15);
  color: var(--neon-violet);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.astro-quantum-dropzone.drag-active, .astro-file-dropzone.drag-active {
  border-color: var(--neon-cyan) !important;
  background: rgba(0, 240, 255, 0.12) !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4) !important;
}

.astro-file-active-strip, .astro-active-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.btn-replace-report {
  background: rgba(0, 240, 255, 0.12);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-replace-report:hover {
  background: rgba(0, 240, 255, 0.25);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.btn-delete-report, .btn-delete-file {
  background: rgba(255, 42, 95, 0.12);
  color: var(--neon-rose);
  border: 1px solid rgba(255, 42, 95, 0.35);
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-report:hover, .btn-delete-file:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: var(--neon-rose);
  box-shadow: 0 0 8px rgba(255, 42, 95, 0.4);
}

.file-strip-left, .file-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.file-doc-icon {
  font-size: 1.1rem;
}

.file-title-text, .file-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--neon-violet);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.file-meta-text, .file-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.btn-delete-report, .btn-delete-file {
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.3);
  color: var(--neon-rose);
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.btn-delete-report:hover, .btn-delete-file:hover {
  background: rgba(255, 42, 95, 0.25);
  border-color: var(--neon-rose);
}

/* 3-Row Cluster Radar */
.astro-radar-deck, .astro-cluster-box {
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-header, .cluster-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-title, .cluster-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.radar-time-pill, .cluster-time-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.cluster-trio-grid, .cluster-rows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cluster-node, .cluster-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.node-slot, .chip-pos {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
}

.node-time, .chip-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.node-tag, .chip-dir {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.dir-upside {
  background: rgba(16, 185, 129, 0.2);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.dir-downside {
  background: rgba(255, 42, 95, 0.2);
  color: var(--neon-rose);
  border: 1px solid rgba(255, 42, 95, 0.45);
}

.dir-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dir-empty {
  background: rgba(255, 255, 255, 0.03);
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

/* Consensus Banner */
.consensus-banner, .cluster-consensus-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.consensus-banner.consensus-ce, .cluster-consensus-banner.consensus-ce,
.consensus-banner.consensus-buy, .cluster-consensus-banner.consensus-buy {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--neon-emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.consensus-banner.consensus-pe, .cluster-consensus-banner.consensus-pe,
.consensus-banner.consensus-sell, .cluster-consensus-banner.consensus-sell {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.5);
  color: var(--neon-rose);
  box-shadow: 0 0 16px rgba(255, 42, 95, 0.3);
}

.consensus-banner.consensus-neutral, .cluster-consensus-banner.consensus-neutral {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.consensus-banner.consensus-no-file, .cluster-consensus-banner.consensus-no-file {
  background: rgba(15, 23, 42, 0.4);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.badge-astro.no-file {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

/* Entry Sentinel Checklist */
.entry-sentinel-checklist, .astro-filters-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.sentinel-row, .filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sentinel-name, .filter-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.sentinel-badge, .filter-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.pill-pass {
  background: rgba(16, 185, 129, 0.15);
  color: var(--neon-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-blocked {
  background: rgba(255, 42, 95, 0.15);
  color: var(--neon-rose);
  border: 1px solid rgba(255, 42, 95, 0.4);
}

.pill-neutral {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Auto Switch Deck */
.astro-auto-switch-deck, .astro-auto-toggle-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.switch-meta, .toggle-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-title, .toggle-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.switch-sub, .toggle-sub {
  font-size: 0.66rem;
  color: var(--text-muted);
}

.cyber-switch, .toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cyber-switch input, .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cyber-slider, .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cyber-slider:before, .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cyber-slider, input:checked + .slider {
  background-color: var(--neon-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

input:checked + .cyber-slider:before, input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
}

/* ==========================================================================
   BOTTOM CLOSED TRADES LEDGER (AUDIT HISTORY)
   ========================================================================== */
.closed-trades-ledger-deck, .history-card {
  padding: 8px 24px 24px 24px;
  max-width: 1920px;
  margin: 0 auto;
  width: 100%;
}

.btn-clear-ledger, .btn-clear-history {
  background: rgba(255, 42, 95, 0.12);
  border: 1px solid rgba(255, 42, 95, 0.35);
  color: var(--neon-rose);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-ledger:hover, .btn-clear-history:hover {
  background: rgba(255, 42, 95, 0.25);
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.3);
}

.btn-delete-trade {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--accent-rose, #f43f5e);
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-delete-trade:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
  transform: scale(1.03);
}

.btn-delete-trade:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   AUTHENTICATION / LOGIN MODAL
   ========================================================================== */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.login-quantum-card, .login-modal-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 20px 60px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo-ring, .login-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.login-title, .login-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.login-title .cyan-text, .login-modal-title .accent-text {
  color: var(--neon-cyan);
}

.login-sub, .login-modal-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.login-input-group, .login-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.login-input-group label, .login-field-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input-group input, .login-field-group input {
  background: rgba(10, 14, 23, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-group input:focus, .login-field-group input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.login-error-pill, .login-error-badge {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid rgba(255, 42, 95, 0.4);
  color: var(--neon-rose);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.btn-login-launch, .btn-login-submit {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #00f0ff);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #060910;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-login-launch:hover, .btn-login-submit:hover {
  box-shadow: 0 6px 28px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1440px) {
  .cockpit-workstation-grid, .main-layout {
    grid-template-columns: 330px 1fr 340px;
    gap: 14px;
    padding: 10px 16px;
  }
  .telemetry-hud-banner, .metrics-banner {
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 16px 6px 16px;
  }
}

@media (max-width: 1100px) {
  .cockpit-workstation-grid, .main-layout {
    grid-template-columns: 1fr;
  }
  .telemetry-hud-banner, .metrics-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .telemetry-hud-banner, .metrics-banner {
    grid-template-columns: 1fr;
  }
  .hud-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   EXPLICIT TRADING MODE (PAPER vs. LIVE REAL-MONEY) SYSTEM STYLES
   ========================================================================== */

/* 1. Persistent Top Mode Banner */
.top-mode-banner {
  width: 100%;
  padding: 8px 24px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  position: relative;
}

.mode-banner-content {
  width: 100%;
  max-width: 1720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mode-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-beacon-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.mode-banner-title {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.mode-banner-sub {
  font-size: 0.76rem;
  opacity: 0.85;
}

/* Paper Banner Style */
.mode-banner-paper {
  background: linear-gradient(90deg, #0b1329 0%, #15203b 50%, #0b1329 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
}

.mode-banner-paper .mode-banner-title {
  color: #34d399;
}

/* Live Banner Style - Prominent Crimson Red */
.mode-banner-live {
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 50%, #7f1d1d 100%);
  border-bottom: 2px solid #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 25px rgba(220, 38, 38, 0.5);
  animation: pulse-live-glow 3s infinite ease-in-out;
}

@keyframes pulse-live-glow {
  0%, 100% {
    box-shadow: 0 4px 25px rgba(220, 38, 38, 0.5);
  }
  50% {
    box-shadow: 0 4px 35px rgba(239, 68, 68, 0.8);
  }
}

.mode-banner-live .mode-banner-title {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Banner Switch Button */
.btn-mode-toggle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-mode-toggle.to-live {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.btn-mode-toggle.to-live:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.btn-mode-toggle.to-paper {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #ffffff;
}

.btn-mode-toggle.to-paper:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* 2. HUD Mode Pill */
.hud-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hud-mode-pill.paper {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.hud-mode-pill.paper .mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hud-mode-pill.live {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
  animation: pulse-live-pill 2s infinite ease-in-out;
}

@keyframes pulse-live-pill {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.7);
  }
}

.hud-mode-pill.live .mode-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* 3. Separated Telemetry Pods (Paper vs Live P&L) */
.pod-split-body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding-top: 4px;
}

.pod-split-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.pod-split-divider {
  width: 1px;
  background: var(--border-subtle);
  margin: 0 4px;
  align-self: stretch;
}

.split-mode-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.split-mode-label.paper-label {
  color: #34d399;
}

.split-mode-label.live-label {
  color: #f87171;
}

.pod-split-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

/* 4. Closed Trades Ledger Mode Badges & Filters */
.badge-mode-live {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-mode-paper {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ledger-mode-filter-group {
  display: inline-flex;
  gap: 3px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.btn-filter-mode {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-mode:hover {
  color: var(--text-primary);
}

.btn-filter-mode.active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

/* 5. Live Confirmation Modal */
.live-confirm-card {
  max-width: 500px;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 45px rgba(220, 38, 38, 0.35);
}

.live-modal-header {
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding-bottom: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-warning-icon {
  font-size: 2rem;
  line-height: 1;
}

.live-warning-body {
  font-size: 0.85rem;
  line-height: 1.5;
}

.live-warning-alert-box {
  background: rgba(220, 38, 38, 0.12);
  border-left: 3px solid #ef4444;
  padding: 10px 14px;
  border-radius: 4px;
  color: #fecaca;
  margin-bottom: 14px;
}

.live-warning-alert-box p {
  margin: 0 0 6px 0;
}

.live-warning-alert-box ul {
  margin: 0;
  padding-left: 18px;
}

.live-warning-alert-box li {
  margin-bottom: 4px;
}

.btn-confirm-live {
  flex: 1;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid #ef4444;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm-live:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

.btn-confirm-live:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-cancel-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* ==========================================================================
   FIXED 4-SLOT SYSTEM & BASKET RISK CONTROL MATRIX
   ========================================================================== */
.fixed-slots-matrix-deck {
  margin-top: 14px;
  padding: 14px;
  background: rgba(13, 17, 23, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md, 8px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matrix-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.matrix-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.matrix-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.matrix-title {
  font-family: var(--font-display, sans-serif);
  font-size: 0.88rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan, #00f0ff);
  box-shadow: 0 0 8px var(--neon-cyan, #00f0ff);
}

.matrix-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.btn-slot-ledger-link {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-slot-ledger-link:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.basket-risk-scope-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 10px;
  border-radius: 6px;
  gap: 8px;
}

.risk-scope-label {
  font-size: 0.70rem;
  color: #cbd5e1;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.segmented-scope-group {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
}

.btn-scope-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-scope-toggle:hover {
  color: #ffffff;
}

.btn-scope-toggle.active {
  background: rgba(14, 165, 233, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.live-signal-indicator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.signal-tag-pill {
  font-family: var(--font-display, monospace);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.signal-tag-pill.sig-upside {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.signal-tag-pill.sig-downside {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.signal-tag-pill.sig-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.signal-action-hint {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.3;
}

/* 2x2 Fixed Slots Grid */
.fixed-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.slot-inst-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 4px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
  gap: 8px;
}

.inst-divider-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inst-divider-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.inst-divider-step {
  font-size: 0.64rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.inst-divider-pnl-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-pnl-tag {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.2px;
}

.inst-pnl-tag strong {
  font-size: 0.72rem;
  font-weight: 800;
  margin-left: 2px;
}

.slot-matrix-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.slot-matrix-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(26, 38, 66, 0.85);
  box-shadow: 0 6px 18px rgba(0, 240, 255, 0.15);
}

.slot-matrix-card.selected-slot,
.slot-matrix-card.slot-card-active {
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  background: rgba(18, 32, 58, 0.9);
}

.slot-matrix-card.eligible-glow,
.slot-matrix-card.slot-card-eligible {
  border-color: #10b981;
  animation: pulse-eligible 2s infinite ease-in-out;
}

@keyframes pulse-eligible {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
  50% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.6); }
}

.slot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.slot-badge-id {
  font-family: var(--font-display, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.slot-badge-id.badge-call {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.slot-badge-id.badge-put {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.45);
}

.slot-status-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-status-pill.status-empty {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.slot-status-pill.status-open {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.slot-status-pill.status-closed {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.slot-auto-pill {
  font-size: 0.60rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-auto-pill.auto-on {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.25);
}

.slot-auto-pill.auto-off {
  background: rgba(148, 163, 184, 0.1);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.slot-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slot-card-name {
  font-size: 0.80rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.slot-card-symbol {
  font-size: 0.70rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slot-card-stats .stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.slot-card-stats .stat-k {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.slot-card-stats .stat-v {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  text-align: right;
}

.slot-card-stats .stat-v-pnl {
  font-size: 0.75rem;
}

.slot-card-footer {
  margin-top: 1px;
  display: flex;
  align-items: center;
}

.slot-eligibility-tag {
  font-size: 0.63rem;
  color: #94a3b8;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-matrix-card.eligible-glow .slot-eligibility-tag,
.slot-matrix-card.slot-card-eligible .slot-eligibility-tag {
  color: #34d399;
  font-weight: 700;
  font-style: normal;
}

/* ==========================================================================
   LIVE FEED ERROR & HEALTH BANNER
   ========================================================================== */
.feed-error-banner {
  width: 100%;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(245, 158, 11, 0.18));
  border-bottom: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.2);
  transition: all 0.3s ease;
  z-index: 99;
}

.feed-error-banner.escalated {
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.38), rgba(185, 28, 28, 0.3));
  border-bottom: 2px solid #ef4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
  animation: feed-error-pulse 2s infinite ease-in-out;
}

@keyframes feed-error-pulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 32px rgba(239, 68, 68, 0.65);
  }
}

.feed-error-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.feed-error-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-error-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.feed-error-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-error-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fecaca;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.2px;
}

.feed-error-sub {
  font-size: 0.78rem;
  color: #fca5a5;
  opacity: 0.9;
}

.btn-feed-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fff;
  border-radius: var(--radius-sm, 6px);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-feed-retry:hover {
  background: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Ladder Standby & Gated View */
.ladder-standby-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.06), transparent 70%);
  border-radius: var(--radius-md, 8px);
}

.standby-badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.standby-badge-tag.tag-buy {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.standby-badge-tag.tag-sell {
  background: rgba(251, 113, 133, 0.12);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.35);
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.2);
}

.standby-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 8px 0;
  font-family: var(--font-sans, sans-serif);
  letter-spacing: 0.2px;
}

.standby-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  max-width: 480px;
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.standby-desc strong {
  color: #f1f5f9;
}

.standby-meta-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hud-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono, monospace);
}

.hud-stat-chip .chip-label {
  color: #64748b;
  font-weight: 600;
}

.hud-stat-chip .chip-val {
  color: #e2e8f0;
  font-weight: 700;
}

.hud-stat-chip .chip-live-ltp {
  color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

/* Slice Table Action Buttons */
.btn-slice-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
  border-radius: var(--radius-sm, 4px);
  padding: 4px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.15);
  text-transform: uppercase;
}

.btn-slice-exit:hover {
  background: rgba(244, 63, 94, 0.35);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
  transform: translateY(-1px);
}

.btn-slice-exit:active {
  transform: translateY(0) scale(0.96);
  background: rgba(244, 63, 94, 0.5);
}

.btn-history-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  border-radius: var(--radius-sm, 4px);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-history-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}

/* ──────────────────────────────────────────────────────────────────────────
   LADDER VISUALIZER DECK (MATCHING REFERENCE UI)
   ────────────────────────────────────────────────────────────────────────── */
.ladder-deck-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ladder-deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(13, 19, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.ladder-deck-row.row-filled {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.ladder-deck-row.row-used {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.2);
  opacity: 0.8;
}

.ladder-deck-row.row-unused:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(18, 26, 46, 0.95);
}

.ladder-deck-row.row-near-ltp {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}

.deck-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rung-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rung-bullet.bullet-filled {
  background: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 14px rgba(16, 185, 129, 0.6);
}

.rung-bullet.bullet-unused {
  background: #64748b;
  box-shadow: 0 0 4px rgba(100, 116, 139, 0.5);
}

.rung-bullet.bullet-used {
  background: #475569;
}

.deck-price {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.price-filled {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.price-unused {
  color: #f1f5f9;
}

.price-used {
  color: #94a3b8;
}

.deck-fill-info {
  font-size: 0.84rem;
  font-weight: 600;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
  margin-left: 6px;
}

.deck-exit-info {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 6px;
}

.deck-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-badge.badge-filled {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #10b981;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.deck-badge.badge-used {
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.deck-status-text {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.range-stop-loss-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 63, 94, 0.08);
  border: 1px dashed rgba(244, 63, 94, 0.55);
  border-radius: 6px;
  padding: 10px 18px;
  margin-top: 8px;
  font-family: var(--font-mono, monospace);
}

.sl-deck-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-title {
  color: #fb7185;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.sl-price-val {
  color: #fb7185;
  font-size: 0.95rem;
  font-weight: 800;
  text-shadow: 0 0 8px rgba(251, 113, 133, 0.4);
}

.btn-depth-deck {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   USER PROFILE HUD WIDGET & MULTI-TENANT AUTH MODAL
   ========================================================================== */
.hud-user-profile-widget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full, 9999px);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hud-user-pill:hover {
  background: linear-gradient(135deg, rgba(38, 52, 75, 0.85) 0%, rgba(20, 30, 52, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.user-avatar-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.user-meta-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--neon-cyan, #00f0ff);
  letter-spacing: 0.4px;
}

.user-db-scope {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.2px;
}

.user-switch-arrow {
  font-size: 0.6rem;
  color: var(--text-muted, #94a3b8);
  margin-left: 2px;
  transition: transform 0.2s;
}

.hud-user-pill:hover .user-switch-arrow {
  color: var(--neon-cyan, #00f0ff);
  transform: translateY(1px);
}

.btn-sign-in-hud {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sign-in-hud:hover {
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4);
  transform: translateY(-1px);
}

/* Auth Modal Styles */
.auth-modal-card {
  max-width: 480px !important;
  width: 92% !important;
}

.auth-header-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  position: relative;
}

.btn-modal-close {
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-quick-select-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.8px;
  margin: 16px 0 8px 0;
}

.auth-user-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-user-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.auth-user-card:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.auth-user-card.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(59, 130, 246, 0.2) 100%);
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2), inset 0 0 8px rgba(0, 240, 255, 0.1);
}

.user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.user-card-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.user-card-badge.role-admin {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.user-card-badge.role-trader {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.user-card-name {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
}

.user-card-scope {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: #38bdf8;
  margin-top: 2px;
}

.user-card-pw-hint {
  font-size: 0.64rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 5px;
}

.user-card-pw-hint code {
  color: #facc15;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 3px;
}

.pw-quick-fill-hint {
  font-size: 0.7rem;
  color: #38bdf8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.pw-quick-fill-hint:hover {
  color: #00f0ff;
}

.pw-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input-wrapper input {
  width: 100%;
  padding-right: 36px;
}

.btn-toggle-pw {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-toggle-pw:hover {
  opacity: 1;
}

.login-success-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  text-align: center;
}

.btn-auth-submit {
  flex: 2;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  box-shadow: 0 0 18px rgba(14, 165, 233, 0.4);
}

.btn-logout-modal {
  flex: 1;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout-modal:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}