/* ═══════════════════════════════════════════════════════════════════════
   dashboard.css — Institutional Financial Trading Desk Terminal Theme
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg-darkest: #070a10;
  --bg-navbar: #0c101a;
  --bg-card: #111624;
  --bg-box: #161c2d;
  --bg-hover: #1c2338;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.2);

  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --cyan: #38bdf8;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-cyan { color: var(--cyan); }
.text-profit { color: var(--emerald); }
.text-loss { color: var(--rose); }
.text-amber { color: var(--amber); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.7rem; }

/* ── Top Navigation Bar ─────────────────────────────────────────────────── */
.terminal-nav {
  background-color: var(--bg-navbar);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.brand-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-white);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ── Center: Prominent LIVE / PAPER Switcher ─────────────────────────────── */
.nav-center {
  display: flex;
  align-items: center;
}

.mode-switcher {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.03);
}

.mode-indicator {
  font-size: 0.65rem;
  line-height: 1;
}

.mode-btn.active-paper {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.mode-btn.active-live {
  background: rgba(244, 63, 94, 0.22);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

/* ── Nav Right ──────────────────────────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.broker-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.green {
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.dot.cyan {
  background-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.ist-clock {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.btn-power {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.3);
}

.btn-power:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.5);
}

.btn-power.running {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.4);
}

/* ── Mode Alert Banner ──────────────────────────────────────────────────── */
.mode-banner {
  padding: 0.45rem 1.75rem;
  font-size: 0.75rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.mode-banner.paper {
  background-color: rgba(245, 158, 11, 0.08);
  border-bottom-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.mode-banner.live {
  background-color: rgba(244, 63, 94, 0.1);
  border-bottom-color: rgba(244, 63, 94, 0.3);
  color: #f87171;
}

.banner-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.banner-tag {
  font-weight: 800;
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}

.mode-banner.paper .banner-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.mode-banner.live .banner-tag {
  background: rgba(244, 63, 94, 0.25);
  color: #f87171;
}

.banner-text {
  color: var(--text-primary);
}

/* ── Main Layout Container ──────────────────────────────────────────────── */
.terminal-container {
  flex: 1;
  padding: 1.25rem 1.75rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Row 1: 4 Cards Grid ────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.desk-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 105px;
}

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

.card-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.card-pill.cyan { background: rgba(56, 189, 248, 0.12); color: var(--cyan); }
.card-pill.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.card-pill.rose { background: rgba(244, 63, 94, 0.12); color: var(--rose); }
.card-pill.green { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }

.spot-val, .timer-val, .st-val, .pnl-val {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0;
  color: var(--text-white);
}

.card-footer {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dim { color: var(--text-muted); }

/* ── Row 2: Split Workspace (Left Scanner vs Right Positions) ────────────── */
.split-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.desk-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.panel-top {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.015);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.heading-icon { font-size: 0.95rem; }

.heading-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-white);
}

.engine-state-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-box);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.engine-state-tag.active {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.panel-content {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Schedule Notice Box */
.schedule-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
}

.schedule-icon { font-size: 1.1rem; line-height: 1; }

.schedule-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #fbbf24;
}

.schedule-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Section Group */
.section-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.section-count {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Pivots Table */
.pivots-table {
  background-color: var(--bg-box);
  border: 1px solid var(--border-inner);
  border-radius: 6px;
  overflow: hidden;
}

.pivot-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-inner);
  font-size: 0.78rem;
}

.pivot-line:last-child { border-bottom: none; }

.p-name { font-weight: 600; width: 140px; color: var(--text-primary); }
.p-desc { font-size: 0.7rem; }

.p-data {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dist-badge {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* Triggers Grid */
.triggers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.trigger-card {
  background-color: var(--bg-box);
  border: 1px solid var(--border-inner);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.trigger-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trigger-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.trigger-badge.red { background: rgba(244, 63, 94, 0.15); color: var(--rose); }
.trigger-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }

.trigger-score { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; }

.cond-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.cond-check {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.cond-check.green { color: var(--emerald); font-weight: 800; }

.cond-name { font-size: 0.72rem; font-weight: 500; color: var(--text-primary); }
.cond-val { font-size: 0.68rem; color: var(--text-muted); }

/* Exit Chips */
.exit-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.e-chip {
  background-color: var(--bg-box);
  border: 1px solid var(--border-inner);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.e-lbl { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); }
.e-txt { font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }

/* ── Right Panel: Positions & Blotter ───────────────────────────────────── */
.empty-pos-card {
  background-color: var(--bg-box);
  border: 1px dashed var(--border-medium);
  border-radius: 8px;
  padding: 2rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.empty-icon { font-size: 1.85rem; opacity: 0.7; }
.empty-title { font-size: 0.85rem; font-weight: 700; color: var(--text-white); }
.empty-sub { font-size: 0.72rem; max-width: 440px; line-height: 1.4; }

.active-pos-card {
  background: var(--bg-box);
  border: 1px solid var(--emerald);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.act-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act-sym {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
}

.act-side {
  background: rgba(244, 63, 94, 0.2);
  color: var(--rose);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.btn-exit {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-exit:hover { background: rgba(244, 63, 94, 0.3); }

.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background-color: var(--bg-card);
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-inner);
}

.act-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

/* Blotter Table */
.table-wrap {
  border: 1px solid var(--border-inner);
  border-radius: 6px;
  background-color: var(--bg-box);
  overflow-x: auto;
}

.blotter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.blotter-table th {
  padding: 0.6rem 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  border-bottom: 1px solid var(--border-inner);
  background: rgba(255, 255, 255, 0.02);
}

.blotter-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-inner);
  color: var(--text-primary);
}

.blotter-table tr:last-child td { border-bottom: none; }

.table-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem !important;
}

/* Reset Card */
.reset-card {
  background-color: var(--bg-box);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reset-title { font-weight: 700; font-size: 0.78rem; color: var(--text-white); }
.reset-sub { font-size: 0.68rem; }

.btn-danger-outline {
  background: transparent;
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.5);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover { background: rgba(244, 63, 94, 0.15); }

/* ── Row 3: Log Terminal ────────────────────────────────────────────────── */
.log-terminal-panel {
  overflow: hidden;
}

.terminal-logs {
  height: 140px;
  overflow-y: auto;
  background-color: #06080e;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.73rem;
}

.terminal-logs::-webkit-scrollbar { width: 4px; }
.terminal-logs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }

.t-log-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  line-height: 1.35;
}

.t-time { color: var(--text-muted); white-space: nowrap; width: 90px; }
.t-msg { color: #cbd5e1; }
.t-msg.amber { color: var(--amber); }
.t-msg.green { color: var(--emerald); font-weight: 600; }
.t-msg.white { color: var(--text-white); }

/* ── High-Level Secure Auth Gate Modal & Operator Session ────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: 440px;
  max-width: 100%;
  background: linear-gradient(180deg, #0e1524 0%, #080c14 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 12px;
  padding: 2.2rem 2rem;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9), 0 0 50px rgba(14, 165, 233, 0.12);
  text-align: center;
  position: relative;
}

.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-shield {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
}

.auth-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.auth-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.auth-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.auth-alert {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  color: #fda4af;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  text-align: left;
}

.auth-alert.hidden {
  display: none !important;
}

.form-group {
  margin-top: 1.1rem;
  text-align: left;
}

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

.form-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.label-hint {
  font-size: 0.62rem;
  color: var(--text-dim);
}

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

.input-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.5rem;
  background: #05070d;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  background: #070a12;
}

.pin-input {
  letter-spacing: 0.32em;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-toggle-pw {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem;
}

.btn-toggle-pw:hover {
  color: var(--text-white);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.95rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.btn-unlock-terminal {
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: all 0.2s ease;
}

.btn-unlock-terminal:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
}

.btn-unlock-terminal:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.sec-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

/* ── Top Navbar Operator & Logout Elements ────────────────────────────── */
.operator-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a5f3fc;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 4px;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fb7185;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .split-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .terminal-nav { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .triggers-grid { grid-template-columns: 1fr; }
  .exit-chips { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem 1.25rem; }
}

