/* ============================================
   GASYARD SOLVER NODE — Clean Light UI
   ============================================ */

:root {
  --bg-deep: #f5f6f8;
  --bg-base: #ffffff;
  --bg-surface: #f8f9fb;
  --bg-elevated: #eef0f4;
  --bg-hover: #e8eaef;

  --accent: #0d9668;
  --accent-dim: #0d966822;
  --accent-glow: #0d96680d;
  --accent-secondary: #0891b2;

  --text-primary: #1a1d26;
  --text-secondary: #5c6478;
  --text-muted: #9ca3b4;

  --border: #e2e5ec;
  --border-accent: #0d966825;

  --success: #0d9668;
  --warning: #d97706;
  --error: #dc2626;
  --info: #0891b2;

  --font-display: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --font-body: 'Outfit', -apple-system, sans-serif;

  --radius: 8px;
  --radius-lg: 12px;

  --transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.008) 2px,
    rgba(0, 0, 0, 0.008) 4px
  );
}

.hidden { display: none !important; }
.mono { font-family: var(--font-display); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #0b7d57; transform: translateY(-1px); }
.btn-primary:disabled { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; transform: none; }

.btn-accent {
  background: var(--bg-elevated);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}
.btn-accent:hover { background: var(--accent-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn-launch {
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-dim), 0 4px 12px rgba(0,0,0,0.08);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-elevated); color: var(--accent); border-color: var(--accent-dim); }

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.login-logo {
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-block;
}

.login-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

#login-form .field-group {
  margin-bottom: 16px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.login-error {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius);
  color: var(--error);
  font-size: 13px;
}

/* ============================================
   SETUP WIZARD
   ============================================ */

.setup-shell {
  display: flex;
  min-height: 100vh;
}

.setup-sidebar {
  width: 260px;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.logo-icon svg { width: 100%; height: 100%; }

.logo-text { display: flex; flex-direction: column; }

.logo-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

/* Setup Nav */
.setup-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.setup-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: default;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-label { display: flex; flex-direction: column; }

.nav-num {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.nav-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 4px;
  transition: background 0.3s;
}

.setup-nav-item.active .nav-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-dim);
}
.setup-nav-item.active .nav-name { color: var(--text-primary); }
.setup-nav-item.active .nav-num { color: var(--accent); }

.setup-nav-item.completed .nav-dot {
  border-color: var(--accent);
  background: var(--accent);
}
.setup-nav-item.completed .nav-name { color: var(--text-secondary); }
.setup-nav-item.completed + .nav-connector { background: var(--accent); }

.setup-sidebar-footer { margin-top: auto; }

.version-tag {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  display: inline-block;
}

/* Setup Main */
.setup-main {
  flex: 1;
  margin-left: 260px;
  padding: 48px 56px;
  max-width: 720px;
}

.step-content { animation: fadeSlideUp 0.4s ease; }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 32px; }

.step-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.step-header h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.step-desc { color: var(--text-secondary); font-size: 15px; }

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Wallet Option Cards */
.wallet-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.wallet-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
  text-align: left;
}
.wallet-option-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.woc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}
.woc-icon svg { width: 22px; height: 22px; }

.woc-text { display: flex; flex-direction: column; gap: 2px; }
.woc-title { font-weight: 600; font-size: 14px; }
.woc-sub { font-size: 12px; color: var(--text-secondary); }

/* Wallet Card */
.wallet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.wallet-card-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.wallet-card-row:last-child { border-bottom: none; }

.wcr-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wcr-value {
  display: block;
  font-size: 13px;
  word-break: break-all;
  color: var(--text-primary);
  background: var(--bg-elevated);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.warning-row {
  background: rgba(217, 119, 6, 0.05);
  border-left: 3px solid var(--warning);
}

.warning-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--warning);
}

/* Form Fields */
.field-group { margin-bottom: 20px; }

.field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.text-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition);
}
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.text-input.mono { font-family: var(--font-display); font-size: 13px; }

.input-row { display: flex; gap: 10px; }
.input-row .text-input { flex: 1; }

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

/* Execution Mode */
.exec-mode-section { margin-bottom: 28px; }

.exec-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.exec-mode-card { cursor: pointer; }
.exec-mode-card input { display: none; }

.emc-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.exec-mode-card input:checked + .emc-inner {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.emc-title { font-weight: 600; font-size: 14px; }
.emc-desc { font-size: 12px; color: var(--text-secondary); }

/* Chains Grid */
.chains-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.chains-grid::-webkit-scrollbar { width: 4px; }
.chains-grid::-webkit-scrollbar-track { background: transparent; }
.chains-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chain-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.chain-item:hover { border-color: var(--border-accent); }
.chain-item.disabled { opacity: 0.35; pointer-events: none; }

.chain-item input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}
.chain-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.chain-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chain-info { flex: 1; }
.chain-name {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chain-name .coming-soon {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.5px;
  background: var(--warning);
  color: var(--bg-deep);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.chain-tokens {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chain-limits {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}
.chain-limits input {
  width: 72px;
  padding: 6px 8px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 12px;
  text-align: right;
}
.chain-limits input:focus { outline: none; border-color: var(--accent); }

/* Automation Section */
.automation-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
}
.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }
.toggle-title { font-weight: 500; font-size: 14px; display: block; }
.toggle-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: block; }

.toggle-right { display: flex; align-items: center; gap: 14px; }

.threshold-input {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 8px;
}
.threshold-prefix {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}
.threshold-input input {
  width: 64px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 13px;
  text-align: right;
}
.threshold-input input:focus { outline: none; }

/* Toggle Switch */
.toggle-switch {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-switch:checked {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.toggle-switch:checked::after {
  left: 20px;
  background: var(--accent);
}

/* ============================================
   DASHBOARD
   ============================================ */

.dash-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  height: 56px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dash-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.dash-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}

.dash-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.solver-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.solver-name-display {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.solver-addr {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

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

.status-pill.online {
  background: rgba(13, 150, 104, 0.08);
  border-color: rgba(13, 150, 104, 0.25);
  color: var(--success);
}
.status-pill.online .sp-dot {
  background: var(--success);
  box-shadow: 0 0 4px var(--success);
}

.status-pill.offline {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.15);
  color: var(--error);
}
.status-pill.offline .sp-dot { background: var(--error); }

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dashboard Body */
.dash-body {
  padding: 24px 28px;
  max-width: 1360px;
  margin: 0 auto;
}

.tab-content { animation: fadeSlideUp 0.3s ease; }

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.sc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sc-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.sc-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.sc-value.muted { color: var(--text-secondary); }

.sc-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

.earnings-card {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--accent-glow) 100%);
}
.earnings-card .sc-value { color: var(--accent); }

.claim-btn {
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
}
.claim-btn:hover { background: var(--accent); color: #fff; }

/* Panels */
.panels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.full-panel { margin-bottom: 14px; }

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

.panel-head h3 { font-size: 14px; font-weight: 600; }

.panel-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-badge {
  font-family: var(--font-display);
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--text-secondary);
}
.panel-badge.green { color: var(--accent); background: var(--accent-glow); }

.mode-badge {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.panel-body {
  padding: 12px 20px;
  max-height: 340px;
  overflow-y: auto;
}
.panel-body::-webkit-scrollbar { width: 3px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.panel-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.panel-loading {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Liquidity Item */
.liquidity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.liquidity-item:last-child { border-bottom: none; }

.liquidity-chain {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.chain-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.liquidity-amount {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
}

/* Order Item (overview panel) */
.order-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.order-item:last-child { border-bottom: none; }

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.order-id {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}

.order-status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.order-status.completed, .order-status.success, .order-status.attested { background: rgba(13,150,104,0.1); color: var(--success); }
.order-status.executing, .order-status.pending, .order-status.deposited { background: rgba(217,119,6,0.1); color: var(--warning); }
.order-status.failed, .order-status.refunded { background: rgba(220,38,38,0.1); color: var(--error); }

.order-route {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Orders Table (orders tab) */
.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  padding: 10px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.orders-table td {
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.orders-table tr:hover td { background: var(--bg-surface); }

.orders-table .mono { font-size: 12px; }

.empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px !important;
}

/* Bottom Row */
.bottom-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}

.routes-panel .panel-body { min-height: 100px; }

.routes-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.route-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* Executor Card */
.executor-card {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  gap: 24px;
}

.executor-visual {
  position: relative;
  width: 120px;
  height: 120px;
}

.reactor {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all 0.6s ease;
}

.r1 { width: 100%; height: 100%; border-style: dashed; }
.r2 { width: 72%; height: 72%; }
.r3 { width: 44%; height: 44%; border-width: 2px; }

.reactor-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.6s ease;
}

.reactor.active .r1 {
  border-color: var(--accent-dim);
  animation: rotateRing 12s linear infinite;
}
.reactor.active .r2 {
  border-color: var(--accent-dim);
  animation: rotateRing 8s linear infinite reverse;
}
.reactor.active .r3 {
  border-color: var(--accent);
  animation: pulseRing 2s ease-in-out infinite;
}
.reactor.active .reactor-core {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-dim), 0 0 24px var(--accent-glow);
  animation: pulseCore 2s ease-in-out infinite;
}

@keyframes rotateRing { to { transform: rotate(360deg); } }
@keyframes pulseRing {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}
@keyframes pulseCore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.executor-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.executor-btn:hover { background: var(--accent-dim); }
.executor-btn.running {
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--error);
}
.executor-btn.running:hover { background: rgba(220, 38, 38, 0.08); }

/* Earnings Tab */
.earnings-top-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.earnings-card-lg {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--accent-glow) 100%);
  display: flex;
  flex-direction: column;
}
.earnings-card-lg .sc-value {
  color: var(--accent);
  font-size: 36px;
  margin-bottom: 12px;
}

.claim-btn-lg {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: auto;
  width: fit-content;
}
.claim-btn-lg:hover { background: #0b7d57; transform: translateY(-1px); }

/* Credit History Item */
.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.credit-item:last-child { border-bottom: none; }

.credit-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credit-reason {
  font-size: 13px;
  font-weight: 500;
  text-transform: capitalize;
}

.credit-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.credit-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}
.credit-amount.positive { color: var(--success); }
.credit-amount.negative { color: var(--error); }

/* Empty & Loading States */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 1000;
  animation: slideIn 0.3s ease;
  max-width: 380px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .earnings-top-row { grid-template-columns: 1fr; }
  .panels-grid { grid-template-columns: 1fr; }
  .bottom-row { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .setup-sidebar { display: none; }
  .setup-main { margin-left: 0; padding: 24px 20px; }
  .stats-row { grid-template-columns: 1fr; }
  .wallet-options { grid-template-columns: 1fr; }
  .exec-mode-grid { grid-template-columns: 1fr; }
  .dash-nav { padding: 0 16px; }
  .dash-tabs { padding: 0 16px; }
  .dash-body { padding: 16px; }
  .toggle-row { flex-direction: column; gap: 12px; align-items: flex-start; }
  .solver-info { display: none; }
}
