/* OpusTrader — Multi-Agent Premium Dark Dashboard */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(22, 22, 35, 0.85);
  --bg-card-hover: rgba(30, 30, 48, 0.9);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 255, 255, 0.1);
  --text-primary: #e8e8ef;
  --text-secondary: #8888a0;
  --text-muted: #55556a;
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.15);
  --green-glow: rgba(0, 230, 118, 0.3);
  --red: #ff1744;
  --red-dim: rgba(255, 23, 68, 0.15);
  --red-glow: rgba(255, 23, 68, 0.3);
  --yellow: #ffd600;
  --yellow-dim: rgba(255, 214, 0, 0.12);
  --cyan: #18ffff;
  --cyan-dim: rgba(24, 255, 255, 0.1);
  --purple: #b388ff;
  --purple-dim: rgba(179, 136, 255, 0.1);
  --accent: #5c6bc0;
  --accent-dim: rgba(92, 107, 192, 0.15);
  --spot-color: #00e5ff;
  --spot-dim: rgba(0, 229, 255, 0.15);
  --futures-color: #ff9100;
  --futures-dim: rgba(255, 145, 0, 0.15);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --sidebar-width: 280px;
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(92, 107, 192, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 230, 118, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

/* ═══════════════════════════════════════════
   APP LAYOUT — Sidebar + Content
   ═══════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ─── Agent Sidebar ─── */
.agent-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

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

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .opus { color: var(--yellow); }
.logo .trader { color: var(--text-primary); }
.logo .bolt {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 214, 0, 0.5));
}

.create-agent-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.2), rgba(92, 107, 192, 0.08));
  border: 1px dashed rgba(92, 107, 192, 0.4);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 44px;
}

.create-agent-btn:hover {
  background: linear-gradient(135deg, rgba(92, 107, 192, 0.3), rgba(92, 107, 192, 0.12));
  border-color: var(--accent);
  transform: translateY(-1px);
}

.plus-icon {
  font-size: 18px;
  font-weight: 300;
}

/* ─── Agent List ─── */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.agent-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
  gap: 8px;
}

.agent-empty-icon { font-size: 48px; opacity: 0.6; }
.agent-empty-text { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.agent-empty-hint { color: var(--text-muted); font-size: 12px; line-height: 1.6; }

/* ─── Agent Card ─── */
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.agent-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.agent-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.agent-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.agent-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.agent-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.agent-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
}

.agent-badge.spot {
  background: var(--spot-dim);
  color: var(--spot-color);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.agent-badge.futures {
  background: var(--futures-dim);
  color: var(--futures-color);
  border: 1px solid rgba(255, 145, 0, 0.2);
}

.agent-delete-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 4px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
}

.agent-card:hover .agent-delete-btn { opacity: 0.6; }
.agent-delete-btn:hover { opacity: 1 !important; background: var(--red-dim); }

.agent-card-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
}

.agent-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.agent-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.agent-stat-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.agent-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.agent-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-left: auto;
}

.agent-status-dot.running {
  background: var(--green);
  box-shadow: 0 0 6px var(--green-glow);
  animation: pulse 2s infinite;
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
  overflow-x: hidden;
}

/* ─── Header ─── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  min-height: 52px;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s;
}

.header-pair {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

.header-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  transition: color 0.3s;
}

.header-price.up { color: var(--green); }
.header-price.down { color: var(--red); }
.header-price.neutral { color: var(--text-primary); }

.market-type-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
}

.market-type-badge.spot {
  background: var(--spot-dim);
  color: var(--spot-color);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.market-type-badge.futures {
  background: var(--futures-dim);
  color: var(--futures-color);
  border: 1px solid rgba(255, 145, 0, 0.2);
}

.agent-name-header {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s infinite;
}

.status-disconnected {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Empty State ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: 60vh;
  gap: 16px;
}

.empty-state-icon { font-size: 72px; }
.empty-state h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.create-agent-btn-large {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), rgba(92, 107, 192, 0.7));
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
  min-height: 48px;
}

.create-agent-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 107, 192, 0.3);
}

/* ─── Dashboard ─── */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

/* ─── Main Grid ─── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}

/* ─── Chart ─── */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 16px;
  position: relative;
  min-height: 420px;
}

.chart-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

#chart {
  width: 100%;
  height: calc(100% - 32px);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ─── Info Sidebar ─── */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 16px;
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.card-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-title .icon { font-size: 14px; }

/* ─── Balance Card ─── */
.balance-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.pnl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.pnl-row:last-child { border-bottom: none; }

.pnl-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.pnl-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
}

.profit { color: var(--green); }
.loss { color: var(--red); }
.neutral-val { color: var(--text-primary); }

/* ─── Position Card ─── */
.position-empty {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
}

.position-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}

.position-side.long {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.position-side.short {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

/* ─── Indicators ─── */
.indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.indicator-name {
  color: var(--text-secondary);
  font-size: 11px;
}

.indicator-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
}

/* ─── Signal Badge ─── */
.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
  animation: fadeIn 0.5s;
}

.signal-badge.long {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
}

.signal-badge.short {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(255, 23, 68, 0.3);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.1);
}

.signal-badge.hold {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(179, 136, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Coin Tabs ─── */
.coin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.coin-tabs::-webkit-scrollbar { display: none; }

.coin-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
  flex-shrink: 0;
}

.coin-tab:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.coin-tab.active {
  border-color: var(--accent);
  background: rgba(91, 108, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(91, 108, 255, 0.2) inset;
}

.coin-tab-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  color: var(--text-primary);
}

.coin-tab-price {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* ─── Bottom Grid ─── */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Trades Table ─── */
.trades-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  padding: 16px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.trades-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

.trades-table th {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.trades-table td {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.trade-meta {
  margin-top: 2px;
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

.trades-table tr:last-child td { border-bottom: none; }
.trades-table tr { transition: background 0.2s; }
.trades-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.trades-empty {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 20px 0;
}

/* ─── Momentum Bar ─── */
.momentum-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.momentum-bar span {
  font-size: 10px;
  min-width: 20px;
}

.momentum-fill {
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
  border-radius: 2px;
  transition: width 0.5s;
  flex: 1;
  max-width: 60px;
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--red-dim);
  color: var(--red);
}

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ─── Form ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}

.form-input {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-row {
  display: flex;
  gap: 16px;
}

/* ─── Market Type Selector ─── */
.market-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.market-type-card {
  padding: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 44px;
}

.market-type-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.market-type-card.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.mt-icon { font-size: 28px; margin-bottom: 6px; }
.mt-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.mt-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

/* ─── Buttons ─── */
.btn-cancel {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-cancel:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.btn-create {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), rgba(92, 107, 192, 0.8));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(92, 107, 192, 0.3);
}

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

/* ═══════════════════════════════════════════
   SIDEBAR OVERLAY (Mobile)
   ═══════════════════════════════════════════ */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .chart-container {
    min-height: 350px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .agent-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
    width: 85%;
    max-width: 320px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .agent-sidebar.open {
    left: 0;
  }

  .sidebar-close-btn {
    display: block;
  }

  .hamburger-btn {
    display: flex;
  }

  .main-content {
    padding: 8px;
    gap: 8px;
  }

  .header {
    padding: 8px 12px;
  }

  .header-price {
    font-size: 16px;
  }

  .header-pair {
    font-size: 12px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .chart-container {
    min-height: 280px;
    padding: 12px;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 12px;
  }

  .balance-value {
    font-size: 22px;
  }

  .empty-state-icon {
    font-size: 56px;
  }

  .empty-state h2 {
    font-size: 22px;
  }

  .empty-state p {
    font-size: 13px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: var(--radius-sm);
  }

  .agent-name-header {
    display: none;
  }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}
