/* ==========================================================================
   AIRA // QUANT WEB3 DAPP MASTER DESIGN SYSTEM (100% COMPLETE & PRODUCTION)
   Standard: Linear.app / Vercel Dashboard / Hyperliquid / OpenSea Pro
   Design System: Swiss Minimalist & Institutional Trading Desk
   Tokens:
     Canvas:      #090A0F (Matte Deep Obsidian)
     Surfaces:    #0D1017 (Flat Slate) / #121622 (Elevated) / #161B28 (Hover)
     Inputs:      #0E121B (Form field)
     Borders:     1px solid rgba(255, 255, 255, 0.06) (Subtle Hairline)
     Text:        #F8FAFC (Zinc 50) / #94A3B8 (Zinc 400) / #64748B (Zinc 500)
     Accents:     #10B981 (Emerald) / #38BDF8 (Ice Blue) / #F59E0B (Amber) / #F43F5E (Coral)
   Typography:
     Interface:   'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif
     Numbers/Log: 'JetBrains Mono', "Geist Mono", monospace (tabular-nums lining-nums)
   Rules:
     ZERO neon glow, ZERO 2px borders, ZERO shouting uppercase, ZERO layout shift.
   ========================================================================== */

:root {
  /* Surface Layers */
  --bg-canvas: #090A0F;
  --bg-base: #090A0F;
  --bg-surface: #0D1017;
  --bg-surface-elevated: #121622;
  --bg-elevated: #121622;
  --bg-surface-hover: #161B28;
  --bg-input: #0E121B;

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #38BDF8;

  /* Text Hierarchy */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-faint: #475569;

  /* Semantic Accents (Restrained, Muted, Accessible) */
  --color-accent: #10B981;
  --color-accent-dim: rgba(16, 185, 129, 0.08);
  --color-accent-hover: #059669;

  --color-info: #38BDF8;
  --color-info-dim: rgba(56, 189, 248, 0.08);

  --color-warning: #F59E0B;
  --color-warning-dim: rgba(245, 158, 11, 0.08);

  --color-danger: #F43F5E;
  --color-danger-dim: rgba(244, 63, 94, 0.08);

  --color-success: #10B981;

  /* Legacy Backward-Compatibility Aliases */
  --color-bg: var(--bg-canvas);
  --color-surface: var(--bg-surface);
  --color-surface-elevated: var(--bg-elevated);
  --color-surface-hover: var(--bg-surface-hover);
  --color-border: var(--border-medium);
  --color-border-subtle: var(--border-subtle);
  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);

  --accent-neon: var(--color-accent);
  --accent-neon-dim: var(--color-accent-dim);
  --accent-cyan: var(--color-info);
  --accent-cyan-dim: var(--color-info-dim);
  --accent-yellow: var(--color-warning);
  --accent-yellow-dim: var(--color-warning-dim);
  --accent-red: var(--color-danger);
  --accent-red-dim: var(--color-danger-dim);

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', "Geist Mono", monospace;
  --font-pixel-heading: var(--font-sans);
  --font-pixel-body: var(--font-sans);
  --font-pixel-mono: var(--font-mono);
  --font-pixel-screen: var(--font-mono);

  /* Spatial Scales */
  --sidebar-width: 216px;
  --topbar-height: 48px;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* ==========================================================================
   CSS Reset & Accessibility Foundation
   ========================================================================== */

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

/* Minimalist Dark Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Tabular Monospace Typography */
.mono, .address-mono, .hud-coords, .session-stat-val, .summary-val,
.strip-value, .stat-card-val, .bar-meta, .log-timestamp, .node-ping,
.nav-badge, .panel-count, code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums lining-nums;
}

/* Calm Semantic Helpers (No Neon Glow) */
.accent, .neon {
  color: var(--color-accent) !important;
}
.info {
  color: var(--color-info) !important;
}
.warning {
  color: var(--color-warning) !important;
}
.danger {
  color: var(--color-danger) !important;
}

/* ==========================================================================
   App Layout Shell
   ========================================================================== */

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-canvas);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Sidebar (Clean, Restrained Minimalist Rail)
   -------------------------------------------------------------------------- */

.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  height: 100vh;
  background-color: #0A0D14;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  user-select: none;
  z-index: 50;
}

.sidebar-header {
  height: var(--topbar-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-glyph {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s ease;
  border: none;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  color: #FFFFFF;
}

.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.nav-pulse-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

/* Sidebar Footer (Wallet & Auth) */
.sidebar-auth-footer {
  padding: 10px;
  border-top: 1px solid var(--border-subtle);
  background-color: #0A0D14;
}

.account-widget-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.btn-sidebar-signin {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.12s ease;
}

.btn-sidebar-signin:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
}

.signin-btn-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.signin-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.signin-chip {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

.sidebar-user-card {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

.user-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-info-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.user-avatar-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1E293B;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-display-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.user-wallet-compact {
  font-size: 10.5px;
  color: var(--text-muted);
}

.user-auth-badge {
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Main Workspace Layout
   -------------------------------------------------------------------------- */

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-canvas);
}

/* Topbar */
.top-bar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0A0D14;
}

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

.page-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

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

.app-suite-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.app-suite-tab {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.12s ease;
}

.app-suite-tab:hover {
  color: var(--text-primary);
}

.app-suite-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 600;
}

.btn-network-select {
  height: 28px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-network-select:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

.network-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.network-name {
  font-size: 11.5px;
  color: var(--text-primary);
}

.ws-status-chip {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.ws-globe-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.pulse-dot.idle {
  background: #64748B;
}

.pulse-dot.connected {
  background: #10B981;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-social-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.12s ease;
}

.top-social-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.top-social-btn.twitter:hover {
  color: #38BDF8;
}

.top-social-btn.github:hover {
  color: #F8FAFC;
}

.top-social-btn.docs:hover {
  color: #10B981;
}

.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.chevron-icon, .account-chevron-icon {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

/* --------------------------------------------------------------------------
   Workspace Views Container & Grid System
   -------------------------------------------------------------------------- */

.workspace-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--bg-canvas);
}

.view-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.view-panel.active {
  display: flex;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.full-col {
  grid-column: 1 / -1;
  min-width: 0;
}

.sub-nav-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.sub-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sub-tab-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Panels, Stat Cards, & Telemetry Strips
   -------------------------------------------------------------------------- */

.panel-box, .stat-card-box, .session-info-card, .activity-panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
}

.panel-count {
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-muted);
}

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.stat-card-box {
  padding: 12px 14px;
  gap: 4px;
  background: #0C0F16;
}

.stat-card-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.stat-card-val {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card-val.accent { color: #10B981; }
.stat-card-val.info { color: #38BDF8; }
.stat-card-val.warning { color: #F59E0B; }
.stat-card-val.danger { color: #F43F5E; }

.stat-card-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Agent Hero / Status Panel */
.agent-hero-panel {
  background: #0C0F16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.hero-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-brand-glyph {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brand-logo-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-meta-item {
  color: var(--text-secondary);
}

.hero-meta-sep {
  color: var(--text-faint);
}

.hero-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.hero-secondary-actions, .hero-system-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-control-cta-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Horizontal Status Strip */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.status-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strip-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.strip-value {
  font-size: 12px;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   HUD Telemetry Strip (Wireframe Globe & Node Latency Matrix)
   -------------------------------------------------------------------------- */

.terminal-hud-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 12px 16px;
  background: #0A0D14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  align-items: center;
}

.hud-globe-container {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border-subtle);
  padding-right: 14px;
}

.hud-globe-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hud-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

.hud-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.node-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

.hud-node:not(.active) .node-indicator {
  background: #64748B;
}

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

.node-ping {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Latency & Progress Bar Components */
.pipeline-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.pipe-bar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-secondary);
}

.bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* Pipeline Flow Stages */
.pipeline-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #0A0D14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

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

.step-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-detail {
  font-size: 10px;
  color: var(--text-muted);
}

.pipeline-connector {
  width: 20px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Activity & Terminal Logs (Developer Console Layout)
   -------------------------------------------------------------------------- */

.terminal-card, .hud-terminal-logs {
  background: #080A0E;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.terminal-header {
  height: 36px;
  padding: 0 12px;
  background: #0B0E14;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-btn {
  height: 22px;
  padding: 0 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.12s ease;
}

.term-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.terminal-feed, .terminal-body {
  height: 280px;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  background: #080A0E;
  color: var(--text-secondary);
}

.log-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 2px;
  word-break: break-all;
}

.log-line:hover {
  background: rgba(255, 255, 255, 0.02);
}

.log-timestamp {
  color: #475569;
  font-size: 10.5px;
  flex-shrink: 0;
  user-select: none;
}

.log-badge, .log-level {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.log-level-info, .log-info {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
}

.log-level-success, .log-success {
  color: #34D399;
  background: rgba(52, 211, 153, 0.08);
}

.log-level-warn, .log-warn, .log-warning {
  color: #FBBF24;
  background: rgba(251, 191, 36, 0.08);
}

.log-level-error, .log-error {
  color: #F87171;
  background: rgba(248, 113, 113, 0.08);
}

.log-level-trace, .log-system {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.08);
}

.log-content, .log-msg {
  color: #CBD5E1;
  flex: 1;
}

.live-activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
}

/* --------------------------------------------------------------------------
   Data Tables & Summary Lists
   -------------------------------------------------------------------------- */

.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  min-width: 0;
  scrollbar-width: thin;
}

.table-container:not(.compact) .data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.table-container.compact {
  overflow-x: hidden;
}

.table-container.compact .data-table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: left;
}

.table-container.compact th,
.table-container.compact td {
  padding: 8px 8px;
}

.table-container.compact th:nth-child(1),
.table-container.compact td:nth-child(1) {
  width: 44%;
}

.table-container.compact th:nth-child(2),
.table-container.compact td:nth-child(2) {
  width: 22%;
  white-space: nowrap;
}

.table-container.compact th:nth-child(3),
.table-container.compact td:nth-child(3) {
  width: 17%;
  white-space: nowrap;
}

.table-container.compact th:nth-child(4),
.table-container.compact td:nth-child(4) {
  width: 17%;
  white-space: nowrap;
}

.data-table th {
  padding: 8px 12px;
  background: #0A0D14;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: #E2E8F0;
  vertical-align: middle;
}

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

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

.data-table a {
  color: #38BDF8;
  text-decoration: none;
}

.data-table a:hover {
  text-decoration: underline;
}

.table-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.text-right {
  text-align: right;
}

.summary-line, .session-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding: 3px 0;
}

.summary-label, .session-stat-label {
  color: var(--text-muted);
}

.summary-val, .session-stat-val {
  color: var(--text-primary);
}

.scan-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0C0F16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.scanner-search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.header-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Form Controls & Button System
   -------------------------------------------------------------------------- */

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 180px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-helper, .settings-helper-text {
  font-size: 10.5px;
  color: var(--text-muted);
}

.input-control, select.input-control {
  height: 32px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 0.12s ease;
}

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

.checkbox-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.cb {
  accent-color: #10B981;
}

.compact {
  padding: 4px 8px;
  font-size: 11px;
}

.form-add-burner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.burner-wallets-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connected-wallet-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

/* Buttons (Solid, Minimalist, No Glow) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: #10B981;
  color: #0A0D14;
  font-weight: 600;
}

.btn-primary:hover {
  background: #059669;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-secondary-sm, .btn-ghost-sm {
  height: 26px;
  padding: 0 8px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-secondary-sm:hover, .btn-ghost-sm:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-danger, .btn-ghost-danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: #FB7185;
}

.btn-danger:hover, .btn-ghost-danger:hover {
  background: rgba(244, 63, 94, 0.18);
  color: #FFFFFF;
}

.btn-warning-outline, .btn-ghost-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

/* --------------------------------------------------------------------------
   Modals, Popovers, & Dialogs (Strictly Hidden by Default)
   -------------------------------------------------------------------------- */

.modal-overlay,
#disperse-gas-modal,
#wallet-modal,
#add-target-modal,
#inspect-modal,
#add-whale-modal,
#add-chain-modal,
.retro-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-overlay.active,
#disperse-gas-modal.active,
#wallet-modal.active,
#add-target-modal.active,
#inspect-modal.active,
#add-whale-modal.active,
#add-chain-modal.active,
.retro-dialog-overlay.active {
  display: flex !important;
}

.modal-card, .retro-dialog-card, .modal-dialog {
  background: #0F1219;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.modal-compact {
  max-width: 440px;
}

.modal-lg {
  max-width: 640px;
}

.modal-head, .modal-header, .retro-dialog-head {
  padding: 12px 16px;
  background: #0B0E14;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title, .retro-dialog-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

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

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

.modal-btn-close, .modal-close-btn, .retro-dialog-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 3px;
  font-size: 16px;
  line-height: 1;
}

.modal-btn-close:hover, .modal-close-btn:hover, .retro-dialog-btn-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.modal-body, .retro-dialog-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-actions, .retro-dialog-foot {
  padding: 12px 16px;
  background: #0B0E14;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.retro-dialog-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.retro-dialog-badge-icon {
  font-size: 14px;
}

.retro-dialog-message {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.retro-dialog-btn-confirm, .retro-dialog-btn-cancel {
  height: 28px;
  padding: 0 12px;
  font-size: 11.5px;
}

.type-info {
  border-color: rgba(56, 189, 248, 0.2);
}

/* Popover Menus */
.account-menu-popover, .network-dropdown-popover {
  position: absolute;
  background: #0E1218;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.account-menu-popover.active, .network-dropdown-popover.active {
  display: block;
}

.account-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.menu-avatar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1E293B;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-user-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.menu-display-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.menu-email, .menu-username {
  font-size: 10.5px;
  color: var(--text-muted);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.1s ease;
}

.account-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.account-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.dropdown-section-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

.chain-select-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

/* Wallet Provider Grid */
.wallet-provider-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-provider-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: #11141D;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wallet-provider-btn:hover {
  background: #161A25;
  border-color: var(--border-medium);
}

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

.provider-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

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

.provider-badge {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.provider-badge.rabby {
  background: rgba(139, 92, 246, 0.1);
  color: #A78BFA;
}

.provider-badge.evm {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
}

.item-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.wallet-tab-panel, .whale-tab-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opensea-contract-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  font-size: 11px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

/* --------------------------------------------------------------------------
   Responsive Layout & Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .full-col {
    grid-column: 1;
  }
  .terminal-hud-strip {
    grid-template-columns: 1fr;
  }
  .hud-globe-container {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
  }
  .nav-item {
    width: auto;
    height: 30px;
  }
  .workspace-content {
    padding: 12px;
  }
  .stat-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
  .top-bar {
    padding: 0 12px;
  }
  .top-bar-right {
    gap: 6px;
  }
  .app-suite-switcher {
    display: none;
  }
}

/* ==========================================================================
   INSTITUTIONAL VISUAL ENHANCEMENTS (SWISS MINIMALIST & DATA DENSE)
   Strictly Zero Neon, Zero AI Slop, Hairline 1px Borders, Micro Indicators
   ========================================================================== */

/* 1. Header Telemetry Ribbon (Status Strip) */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--color-surface, #181B21);
  border: 1px solid var(--color-border, #2A2F38);
  border-radius: var(--radius-sm, 6px);
  padding: 4px;
  gap: 0;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.status-strip-item {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  border-right: 1px solid var(--color-border-subtle, #22262F);
  transition: background 0.15s ease;
}

.status-strip-item:last-child {
  border-right: none;
}

.status-strip-item:hover {
  background: var(--color-surface-hover, #232832);
}

.strip-header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.strip-icon {
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted, #737C89);
  opacity: 0.85;
}

.strip-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted, #737C89);
}

.strip-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-primary, #E5E7EB);
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-value.accent {
  color: var(--color-accent, #86D9A1);
  font-weight: 600;
}

/* 2. Global Node Latency Signal Matrix */
.hud-nodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

.hud-node {
  background: var(--color-surface, #181B21);
  border: 1px solid var(--color-border, #2A2F38);
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hud-node:hover {
  background: var(--color-surface-hover, #232832);
  border-color: #383F4D;
}

.hud-node .node-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent, #86D9A1);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(134, 217, 161, 0.15);
}

.hud-node:not(.active) .node-indicator {
  background: #64748B;
  box-shadow: none;
}

.hud-node .node-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-node .node-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--color-text-secondary, #A1A8B3);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-node .node-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.node-signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.node-signal-bars span {
  width: 2px;
  border-radius: 0.5px;
  background: #2D333F;
}

.node-signal-bars span:nth-child(1) { height: 3px; }
.node-signal-bars span:nth-child(2) { height: 5px; }
.node-signal-bars span:nth-child(3) { height: 7px; }
.node-signal-bars span:nth-child(4) { height: 9px; }

.node-signal-bars.level-4 span { background: var(--color-accent, #86D9A1); }
.node-signal-bars.level-3 span:nth-child(-n+3) { background: var(--color-info, #38BDF8); }
.node-signal-bars.level-2 span:nth-child(-n+2) { background: var(--color-warning, #FBBF24); }

.hud-node .node-ping {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-text-primary, #E5E7EB);
}

/* 3. Target Contracts Table Visual Styles */
.contract-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

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

.contract-name {
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
  letter-spacing: 0.2px;
}

.contract-symbol {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-info, #38BDF8);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-weight: 600;
}

.chain-tag-chip {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
}

.chain-tag-chip.eth {
  background: rgba(98, 126, 234, 0.15);
  color: #A5B4FC;
  border: 1px solid rgba(98, 126, 234, 0.3);
}

.chain-tag-chip.rh {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chain-tag-chip.base {
  background: rgba(0, 82, 255, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(0, 82, 255, 0.3);
}

.chain-tag-chip.arb {
  background: rgba(40, 160, 240, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(40, 160, 240, 0.3);
}

.contract-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.contract-explorer-link {
  color: var(--color-text-muted, #737C89);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  transition: color 0.12s ease;
}

.contract-explorer-link:hover {
  color: var(--color-text-primary, #E5E7EB);
}

.opensea-link-chip {
  font-size: 9.5px;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.12s ease;
}

.opensea-link-chip:hover {
  background: rgba(56, 189, 248, 0.16);
}

.ext-arrow {
  font-size: 8.5px;
  opacity: 0.8;
}

/* Supply Progress Cell */
.supply-cell {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.supply-track {
  height: 6px;
  background: #12151B;
  border: 1px solid var(--color-border, #2A2F38);
  border-radius: 999px;
  overflow: hidden;
}

.supply-fill {
  height: 100%;
  background: linear-gradient(90deg, #34D399, var(--color-accent, #86D9A1));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.supply-metrics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
}

.supply-minted {
  color: var(--color-text-secondary, #A1A8B3);
}

.supply-minted strong {
  color: #FFFFFF;
  font-weight: 600;
}

.supply-remaining {
  color: var(--color-text-secondary, #A1A8B3);
}

.supply-remaining strong {
  color: #FFFFFF;
  font-weight: 600;
}

.supply-remaining.zero strong {
  color: var(--color-danger, #F87171);
}

.supply-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--color-text-muted, #737C89);
}

.supply-pct {
  color: var(--color-accent, #86D9A1);
  font-weight: 700;
}

/* Price Interactive Cell */
.price-cell-interactive {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.price-cell-interactive:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border, #2A2F38);
}

.price-amount {
  color: var(--color-accent, #86D9A1);
  font-weight: 600;
  font-size: 11.5px;
}

.price-edit-icon {
  font-size: 10px;
  color: var(--color-text-muted, #737C89);
}

/* Eligibility & Schedule */
.eligibility-wrapper {
  cursor: pointer;
  display: inline-block;
  margin-bottom: 3px;
}

.schedule-compact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-datetime {
  font-size: 9.5px;
  color: var(--color-text-secondary, #A1A8B3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.schedule-date {
  color: var(--color-text-primary, #E5E7EB);
  font-weight: 500;
}

.schedule-time {
  color: var(--color-text-muted, #737C89);
}

.live-countdown-badge {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--color-warning, #FBBF24);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
}

.stage-live-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--color-accent, #86D9A1);
  background: rgba(134, 217, 161, 0.1);
  border: 1px solid rgba(134, 217, 161, 0.3);
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
}

.stage-ended-badge {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--color-danger, #F87171);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
}

/* Table Action Buttons */
.table-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-table-action {
  height: 26px;
  padding: 0 8px;
  font-size: 10.5px;
  font-weight: 500;
  border-radius: 4px;
}

.btn-action-icon {
  font-size: 10px;
  margin-right: 2px;
}

/* 4. Execution Pipeline Circuit Stepper */
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 12px 16px;
  background: #12151B;
  border: 1px solid var(--color-border, #2A2F38);
  border-radius: 6px;
  overflow-x: auto;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.step-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface, #181B21);
  border: 1px solid var(--color-border, #2A2F38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--color-text-muted, #737C89);
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-bullet.active {
  border-color: var(--color-accent, #86D9A1);
  background: rgba(134, 217, 161, 0.12);
  color: var(--color-accent, #86D9A1);
}

.pipeline-connector {
  flex: 1;
  height: 1px;
  min-width: 14px;
  background: var(--color-border, #2A2F38);
  margin: 0 4px;
}

.pipeline-step .step-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pipeline-step .step-name {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted, #737C89);
  font-weight: 600;
}

.pipeline-step .step-detail {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-primary, #E5E7EB);
}

/* Chrome DevTools Waterfall Latency Bars */
.pipeline-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px 14px;
  background: #12151B;
  border: 1px solid var(--color-border-subtle, #22262F);
  border-radius: 6px;
}

.pipe-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--color-text-secondary, #A1A8B3);
}

.bar-meta span:first-child {
  font-weight: 500;
}

.bar-meta .mono {
  font-weight: 600;
  color: var(--color-text-primary, #E5E7EB);
}

.bar-track {
  height: 5px;
  background: var(--color-surface, #181B21);
  border: 1px solid var(--color-border, #2A2F38);
  border-radius: 999px;
  overflow: hidden;
}

#bar-detection { background: var(--color-accent, #86D9A1); }
#bar-prep { background: var(--color-info, #38BDF8); }
#bar-broadcast { background: var(--color-warning, #FBBF24); }
#bar-confirm { background: #A78BFA; }

/* 5. Network Health RPC Table */
#rpc-count-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(134, 217, 161, 0.1);
  border: 1px solid rgba(134, 217, 161, 0.25);
  color: var(--color-accent, #86D9A1);
}

.node-host-cell {
  color: var(--color-text-secondary, #A1A8B3);
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.rpc-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.rpc-status-chip.online {
  color: var(--color-accent, #86D9A1);
  background: rgba(134, 217, 161, 0.08);
  border: 1px solid rgba(134, 217, 161, 0.2);
}

.rpc-status-chip.degraded {
  color: var(--color-danger, #F87171);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.rpc-latency-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}

.rpc-latency-cell.fast { color: var(--color-accent, #86D9A1); }
.rpc-latency-cell.med { color: var(--color-info, #38BDF8); }
.rpc-latency-cell.slow { color: var(--color-warning, #FBBF24); }

.ping-signal-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.rpc-latency-cell.fast .ping-signal-pip { background: var(--color-accent, #86D9A1); }
.rpc-latency-cell.med .ping-signal-pip { background: var(--color-info, #38BDF8); }
.rpc-latency-cell.slow .ping-signal-pip { background: var(--color-warning, #FBBF24); }

.rpc-block-cell {
  font-size: 11px;
  color: var(--color-text-muted, #737C89);
}

/* Confirmed Mint Notification Status */
.status-confirmed-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tag-success {
  background: rgba(134, 217, 161, 0.12);
  color: var(--color-accent, #86D9A1);
  border: 1px solid rgba(134, 217, 161, 0.3);
  font-weight: 600;
}

.status-delivered-msg {
  font-size: 10px;
  color: var(--color-accent, #86D9A1);
  font-weight: 500;
}

.tx-link-chip {
  color: var(--color-info, #38BDF8);
  text-decoration: underline;
  font-size: 10px;
}
