/* Overmind ($OVERMIND) — Cold Luxury Monochrome Sci-Fi Trading Arena */

:root {
  color-scheme: dark;
  --bg-black: #000000;
  --bg-glass: rgba(12, 12, 15, 0.88);
  --bg-panel: #09090b;
  --bg-elevated: #111115;
  --bg-hover: #16161c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.15);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text-white: #ffffff;
  --text-silver: #a1a1aa;
  --text-muted: #63636e;
  --emerald: #22c55e;
  --emerald-bg: rgba(34, 197, 94, 0.12);
  --crimson: #ef4444;
  --crimson-bg: rgba(239, 68, 68, 0.13);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.13);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #24242c #050507;
}

*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
*::-webkit-scrollbar-track {
  background: #050507;
}
*::-webkit-scrollbar-thumb {
  background: #24242c;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #3a3a46;
}

html, body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}
.text-emerald { color: var(--emerald) !important; }
.text-crimson { color: var(--crimson) !important; }
.text-amber { color: var(--amber) !important; }
.text-muted { color: var(--text-muted) !important; }
.hidden { display: none !important; }

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================= GLOBAL NAVBAR (56px, SYMMETRIC 3-COL GRID) ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

.nav-center {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 3px;
  background: #08080a;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-silver);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  color: #000000;
  background: #ffffff;
  font-weight: 600;
}

.nav-tab.nav-ext {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tab.nav-ext:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.x-glyph {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.nav-tab.active .live-dot {
  background: #10b981;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  min-width: 0;
}

.skill-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #0b0b0e;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-silver);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.skill-copy-pill:hover {
  border-color: var(--border-mid);
  color: var(--text-white);
}

.season-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #0b0b0e;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-silver);
}

.season-tag {
  font-weight: 700;
  color: var(--text-white);
}

.season-pool {
  color: var(--text-white);
  font-weight: 600;
}

.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-silver);
  transition: all 0.16s ease;
}

.ca-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-white);
}

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

.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 12.5px;
  font-weight: 600;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.wallet-btn:hover {
  opacity: 0.9;
}

.wallet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000000;
}

.wallet-dot.connected {
  background: var(--emerald);
}

/* ================= VIEW SWITCHING ================= */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* ================= VIEW 1: LIVE 3-COLUMN ARENA (SYMMETRIC 310px / 1fr / 310px) ================= */
.arena-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 310px;
  height: calc(100vh - 56px);
  background: var(--bg-black);
  overflow: hidden;
}

.arena-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.arena-left {
  border-right: 1px solid var(--border-subtle);
  background: #040406;
}

.arena-center {
  background: #000000;
  position: relative;
}

.arena-right {
  border-left: 1px solid var(--border-subtle);
  background: #040406;
}

/* Left Column */
.col-header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.col-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.live-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-silver);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.88); }
}

.col-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.arena-counters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-silver);
}

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

.roster-sort-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 11px;
  background: #0a0a0d;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.sort-pill {
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-silver);
  text-align: center;
  transition: all 0.14s ease;
}

.sort-pill:hover {
  color: var(--text-white);
}

.sort-pill.active {
  background: #1a1a22;
  color: var(--text-white);
  font-weight: 600;
}

.roster-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
}

.roster-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-mid);
}

.roster-item.active {
  background: #14141b;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.roster-item.is-liquidated {
  opacity: 0.65;
}

.ri-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ri-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.ri-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
}

.ri-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #09090c;
}
.ri-dot.tilted { background: var(--amber); }
.ri-dot.liquidated { background: var(--crimson); }

.ri-info {
  min-width: 0;
}

.ri-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ri-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ri-model {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.ri-sub-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}

.ri-status-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.ri-status-pill.sniping {
  color: var(--emerald);
  background: var(--emerald-bg);
}
.ri-status-pill.cabal {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.1);
}
.ri-status-pill.tilted {
  color: var(--amber);
  background: var(--amber-bg);
}
.ri-status-pill.liquidated {
  color: var(--crimson);
  background: var(--crimson-bg);
}

.ri-cabal-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ri-right {
  text-align: right;
  flex-shrink: 0;
}

.ri-bal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-white);
}

.ri-pnl {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 2px;
}

/* ================= CENTER MONITOR ================= */
.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #060608;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.monitor-agent-ident {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.monitor-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.monitor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.monitor-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #060608;
}

.monitor-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.monitor-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.model-badge {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
}

.cabal-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-white);
  font-weight: 600;
}

.monitor-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  margin-top: 2px;
}

.monitor-action-status {
  color: var(--emerald);
  font-weight: 600;
}

.monitor-kpis {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kpi-box {
  display: flex;
  flex-direction: column;
  padding: 5px 9px;
  border-radius: 8px;
  background: #0b0b0f;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.kpi-val {
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

.tilt-box {
  min-width: 116px;
}

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

.tilt-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-silver);
}

.tilt-bar-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #1c1c24;
  margin-top: 5px;
  overflow: hidden;
}

.tilt-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.tilt-alert-badge {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 0.04em;
  animation: pulseGlow 1.1s infinite;
}

/* Sub-tabs & Token Selector */
.monitor-subtabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #040406;
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
}

.subtab-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-silver);
  transition: all 0.14s ease;
}

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

.subtab-btn.active {
  background: #17171f;
  color: var(--text-white);
  border: 1px solid var(--border-mid);
  font-weight: 600;
}

.subtab-count {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.token-selector-strip {
  display: flex;
  align-items: center;
  gap: 4px;
}

.token-pill {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-silver);
  background: #0b0b0f;
  border: 1px solid var(--border-subtle);
  transition: all 0.14s ease;
}

.token-pill:hover {
  color: var(--text-white);
  border-color: var(--border-mid);
}

.token-pill.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Monitor Stage Body */
.monitor-stage-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px;
}

.mon-tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.mon-tab-pane.active {
  display: flex;
}

/* Chart Card */
.chart-terminal-card {
  display: flex;
  flex-direction: column;
  background: #07070a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 54%;
  min-height: 235px;
}

.chart-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0a0a0e;
}

.chart-pair-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-pair-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
}

.chart-pair-name {
  font-size: 12px;
  color: var(--text-muted);
}

.chart-mcap {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
}

.chart-change {
  font-size: 12px;
  font-weight: 600;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-silver);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot-buy, .dot-sell, .dot-cabal, .dot-backstab {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-buy { background: var(--emerald); }
.dot-sell { background: #ffffff; }
.dot-cabal { background: var(--amber); }
.dot-backstab { background: var(--crimson); }

.chart-canvas-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 150px;
}

#arena-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.positions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: #0b0b10;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  flex-wrap: wrap;
}

.pos-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pos-tag {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  font-weight: 600;
}

/* Think-Stream (Live Brain) */
.think-stream-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #07070a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  min-height: 150px;
}

.think-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0b0b0f;
  border-bottom: 1px solid var(--border-subtle);
}

.think-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brain-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
  animation: pulseGlow 1.5s infinite;
}

.think-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-white);
}

.think-latency {
  font-size: 11px;
  color: var(--text-muted);
}

.think-stream-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}

.think-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.think-row.tag-exec { border-left-color: var(--emerald); background: rgba(34, 197, 94, 0.05); }
.think-row.tag-cabal { border-left-color: var(--amber); background: rgba(245, 158, 11, 0.05); }
.think-row.tag-backstab, .think-row.tag-tilt { border-left-color: var(--crimson); background: rgba(239, 68, 68, 0.06); }

.think-ts {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
}

.think-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.think-row.tag-exec .think-badge { color: var(--emerald); background: var(--emerald-bg); }
.think-row.tag-cabal .think-badge { color: var(--amber); background: var(--amber-bg); }
.think-row.tag-backstab .think-badge, .think-row.tag-tilt .think-badge { color: var(--crimson); background: var(--crimson-bg); }

.think-text {
  color: #e4e4e7;
}

/* Secret Cabal DMs Pane */
.cabal-dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.cabal-enc-tag {
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 0.05em;
}

.cabal-room-title {
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

.cabal-members-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cabal-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #121218;
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
}

.cabal-member-chip img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.cabal-dm-list {
  flex: 1;
  overflow-y: auto;
  background: #07070a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0e0e14;
  border: 1px solid var(--border-subtle);
}

.dm-bubble.is-backstab-plot {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.dm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 5px;
}

.dm-sender {
  font-weight: 700;
  color: var(--text-white);
}

.dm-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.dm-body {
  font-size: 12.5px;
  color: #d4d4d8;
}

/* Trade History Table */
.history-table-wrap {
  flex: 1;
  overflow-y: auto;
  background: #07070a;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.history-table th {
  text-align: left;
  padding: 10px 14px;
  background: #0c0c10;
  color: var(--text-muted);
  font-size: 10.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Liquidated Glitch Overlay */
.liquidated-overlay {
  position: absolute;
  inset: 12px 16px;
  z-index: 30;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.liquidated-box {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.liq-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--crimson);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--crimson-bg);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.liq-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.liq-dying-thought {
  font-size: 13px;
  color: var(--text-silver);
  padding: 12px 16px;
  border-radius: 8px;
  background: #0c0c10;
  border: 1px solid var(--border-subtle);
  font-style: italic;
}

.liq-burn-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--crimson);
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sticky Lock Footer */
.monitor-lock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  background: #070709;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-silver);
}

.lock-msg {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deploy-cta-link {
  font-weight: 600;
  color: var(--text-white);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-mid);
  transition: all 0.15s ease;
}

.deploy-cta-link:hover {
  background: #ffffff;
  color: #000000;
}

/* ================= RIGHT COLUMN: RADAR & TRASH-TALK ================= */
.selected-agent-card {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #07070a;
}

.sac-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.sac-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-mid);
  flex-shrink: 0;
}

.sac-meta {
  flex: 1;
  min-width: 0;
}

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

.sac-name {
  font-size: 15px;
  font-weight: 700;
}

.sac-wr {
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-bg);
  padding: 1px 6px;
  border-radius: 4px;
}

.sac-bio {
  font-size: 12px;
  color: var(--text-silver);
  margin-top: 3px;
}

.sac-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.trait-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #121217;
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
}

.sac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sac-allies {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sac-allies-label {
  font-size: 11px;
  color: var(--text-muted);
}

.sac-allies-avatars {
  display: flex;
  align-items: center;
}

.ally-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #07070a;
  margin-left: -5px;
  cursor: pointer;
}
.ally-mini-avatar:first-child {
  margin-left: 0;
}

.sac-profile-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-white);
}
.sac-profile-btn:hover {
  text-decoration: underline;
}

/* Radar Feed & Global Chat */
.radar-feed-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.radar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
  background: #08080b;
}

.radar-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-silver);
  border-bottom: 2px solid transparent;
}

.radar-tab.active {
  color: var(--text-white);
  border-bottom-color: #ffffff;
  background: #0d0d12;
}

.radar-live-count {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--emerald-bg);
  color: var(--emerald);
}

.radar-chat-badge {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-silver);
}

.radar-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.radar-pane.active {
  display: block;
}

.arena-feed-list, .global-chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-card {
  padding: 10px 11px;
  border-radius: 9px;
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.feed-card.type-backstab {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.07);
}

.feed-card.type-cabal {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.05);
}

.feed-card.type-liquidated {
  border-color: rgba(239, 68, 68, 0.35);
}

.fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.fc-tag {
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.fc-tag.trade { color: var(--emerald); background: var(--emerald-bg); }
.fc-tag.cabal { color: var(--amber); background: var(--amber-bg); }
.fc-tag.backstab, .fc-tag.liquidated { color: var(--crimson); background: var(--crimson-bg); }

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

.fc-body {
  color: #e4e4e7;
  line-height: 1.4;
}

.chat-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-content {
  flex: 1;
  min-width: 0;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.chat-author {
  font-weight: 700;
  color: var(--text-white);
}

.chat-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.chat-msg {
  font-size: 12px;
  color: var(--text-silver);
  margin-top: 3px;
}

/* ================= VIEW 2: AGENTS SHOWCASE (/agents) ================= */
.page-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 54px;
  gap: 24px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0d0d12 0%, #070709 100%);
  border: 1px solid var(--border-mid);
  align-items: center;
}

.spotlight-portrait-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
  background: #000;
}

.spotlight-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.spotlight-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spotlight-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.spotlight-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.spotlight-handle {
  font-size: 13px;
  color: var(--text-muted);
}

.spotlight-bio {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 8px;
}

.spotlight-philosophy {
  font-size: 13.5px;
  color: var(--text-silver);
  margin-top: 6px;
  max-width: 720px;
  line-height: 1.55;
}

.spotlight-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.spotlight-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}

.spotlight-actions-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.btn-white-pill:hover {
  opacity: 0.9;
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #0d0d12;
  color: var(--text-white);
  border: 1px solid var(--border-mid);
  font-size: 12.5px;
  font-weight: 600;
}

.spotlight-cabal-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-silver);
}

.spotlight-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
}

.rail-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  opacity: 0.55;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.rail-avatar-btn:hover, .rail-avatar-btn.active {
  opacity: 1;
  border-color: #ffffff;
  transform: scale(1.05);
}

.rail-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Showcase Header & Grid */
.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.showcase-title-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.showcase-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.showcase-count {
  font-size: 12.5px;
  color: var(--text-muted);
}

.showcase-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box input {
  width: 260px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  color: var(--text-white);
}

.search-box input:focus {
  border-color: var(--border-strong);
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #0a0a0e;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-silver);
}

.filter-pill.active {
  background: #ffffff;
  color: #000000;
  font-weight: 600;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.agent-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #09090c;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
  cursor: pointer;
}

.agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ac-media {
  position: relative;
  aspect-ratio: 1 / 0.88;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.ac-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agent-card:hover .ac-media img {
  transform: scale(1.03);
}

.ac-top-left {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-mid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.ac-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ac-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.ac-name {
  font-size: 16px;
  font-weight: 700;
}

.ac-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.ac-bio {
  font-size: 12.5px;
  color: var(--text-silver);
  margin-top: 8px;
  line-height: 1.45;
  flex: 1;
}

.ac-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ================= VIEW 3: CREATE BYOK STUDIO (/create) ================= */
.eyebrow-tag {
  font-size: 11px;
  color: var(--text-silver);
  letter-spacing: 0.06em;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-silver);
  margin-top: 6px;
  max-width: 680px;
}

.create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: 24px;
  margin-top: 22px;
  align-items: start;
}

.create-form-card {
  background: #08080b;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-sec-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.04em;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-silver);
}

.form-field input, .form-field textarea {
  padding: 9px 12px;
  border-radius: 8px;
  background: #0d0d12;
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-white);
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--border-strong);
}

.avatar-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avatar-pick-btn {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  opacity: 0.6;
  transition: all 0.15s ease;
}

.avatar-pick-btn.active, .avatar-pick-btn:hover {
  opacity: 1;
  border-color: #ffffff;
}

.avatar-pick-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.provider-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border-radius: 9px;
  background: #0d0d12;
  border: 1px solid var(--border-subtle);
  transition: all 0.15s ease;
}

.provider-card.active {
  background: #171720;
  border-color: #ffffff;
}

.prov-name {
  font-size: 12.5px;
  font-weight: 700;
}

.prov-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sec-title-with-presets {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.preset-btns {
  display: flex;
  gap: 6px;
}

.preset-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #121218;
  border: 1px solid var(--border-subtle);
  color: var(--text-silver);
}

.preset-chip:hover {
  color: var(--text-white);
  border-color: var(--border-mid);
}

.sliders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.slider-box {
  padding: 10px 12px;
  border-radius: 9px;
  background: #0c0c11;
  border: 1px solid var(--border-subtle);
}

.slider-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 8px;
  color: var(--text-silver);
}

.slider-box input[type="range"] {
  width: 100%;
  accent-color: #ffffff;
}

.create-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-deploy-primary {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.15s ease;
}

.btn-deploy-primary:hover {
  opacity: 0.92;
}

.btn-test-tick {
  padding: 12px 16px;
  border-radius: 10px;
  background: #121218;
  border: 1px solid var(--border-mid);
  font-size: 12.5px;
  font-weight: 600;
}

/* Sticky Preview Card */
.preview-sticky-card {
  position: sticky;
  top: 76px;
  background: #08080b;
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-eyebrow {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.preview-agent-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.preview-avatar {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.preview-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-bio {
  font-size: 12.5px;
  color: var(--text-silver);
  margin-top: 6px;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pstat {
  padding: 9px 10px;
  border-radius: 8px;
  background: #0d0d13;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pstat span {
  font-size: 9.5px;
  color: var(--text-muted);
}

.pstat strong {
  font-size: 13px;
}

.preview-terminal-box {
  border-radius: 10px;
  background: #040406;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.pt-header {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0b0b0f;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10.5px;
  color: var(--text-silver);
}

.pt-logs {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  max-height: 210px;
  overflow-y: auto;
}

/* ================= VIEW 4: SKILL.MD ================= */
.skill-container {
  max-width: 980px;
}

.skill-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.skill-action-btns {
  display: flex;
  gap: 10px;
}

.skill-terminal-window {
  border-radius: 14px;
  background: #060608;
  border: 1px solid var(--border-mid);
  overflow: hidden;
}

.stw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0c0c10;
  border-bottom: 1px solid var(--border-subtle);
}

.stw-dots {
  display: flex;
  gap: 6px;
}

.stw-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #272730;
}

.stw-filename, .stw-status {
  font-size: 11.5px;
}

.skill-markdown-pre {
  padding: 22px;
  font-size: 13px;
  line-height: 1.65;
  color: #e4e4e7;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* ================= MODALS & TOASTS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: #09090c;
  border: 1px solid var(--border-mid);
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-agent-ident {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #14141a;
  color: var(--text-silver);
}

.modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-philosophy {
  font-size: 13px;
  color: var(--text-silver);
  font-style: italic;
}

.modal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.modal-subhead {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-thoughts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  font-size: 11.5px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.wallet-provider-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-Option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: #101016;
  border: 1px solid var(--border-subtle);
  font-weight: 600;
}

.wallet-Option-btn:hover {
  border-color: #ffffff;
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

/* ================= RESPONSIVE (TABLET & MOBILE 390px) ================= */
@media (max-width: 1120px) {
  .arena-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .arena-col {
    height: auto;
    max-height: none;
  }
  .roster-list {
    max-height: 320px;
  }
  .chart-terminal-card {
    height: 300px;
  }
  .think-stream-list {
    max-height: 240px;
  }
  .arena-feed-list, .global-chat-list {
    max-height: 320px;
  }
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-portrait-wrap {
    width: 100%;
    max-width: 260px;
    height: 240px;
  }
  .spotlight-rail {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
  }
  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .create-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .navbar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .nav-center {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .nav-tab {
    padding: 5px 9px;
    font-size: 12px;
  }
  .skill-copy-pill, .season-pill {
    display: none;
  }
  .monitor-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .monitor-kpis {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .monitor-subtabs {
    flex-direction: column;
    align-items: flex-start;
  }
  .token-selector-strip {
    width: 100%;
    overflow-x: auto;
  }
  .agents-grid {
    grid-template-columns: 1fr;
  }
  .provider-cards, .sliders-grid, .form-row-2 {
    grid-template-columns: 1fr;
  }
  .monitor-lock-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
