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

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

/* ── THEME TOKENS ── */
:root {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --surface2:  #f5f5f7;
  --surface3:  #e8e8ed;
  --border:    rgba(0,0,0,.08);
  --border-md: rgba(0,0,0,.14);
  --nav-bg:    rgba(245,245,247,.88);

  --blue:      #0071e3;
  --blue-bg:   #e8f1fc;
  --green:     #1a8a1a;
  --green-bg:  #eaf6ea;
  --amber:     #b45309;
  --amber-bg:  #fef3e2;
  --red:       #c0392b;
  --red-bg:    #fdecea;

  --t1: #1d1d1f;
  --t2: #6e6e73;
  --t3: #aeaeb2;

  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --r:  12px;
  --rs:  8px;
  --rx:  6px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #0d1117;
  --surface:   #161b22;
  --surface2:  #0d1117;
  --surface3:  #21262d;
  --border:    rgba(255,255,255,.08);
  --border-md: rgba(255,255,255,.14);
  --nav-bg:    rgba(13,17,23,.88);

  --blue:      #58a6ff;
  --blue-bg:   rgba(88,166,255,.1);
  --green:     #3fb950;
  --green-bg:  rgba(63,185,80,.1);
  --amber:     #d29922;
  --amber-bg:  rgba(210,153,34,.1);
  --red:       #f85149;
  --red-bg:    rgba(248,81,73,.1);

  --t1: #e6edf3;
  --t2: #8b949e;
  --t3: #6e7681;

  color-scheme: dark;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background .25s, color .25s;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .25s, border-color .25s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-text {
  display: flex; flex-direction: column; gap: 0;
}
.nav-logo-name {
  font-size: 16px; font-weight: 700; color: var(--t1);
  letter-spacing: -.02em; line-height: 1.2;
  transition: color .25s;
}
.nav-logo-sub {
  font-size: 11px; font-weight: 400; color: var(--t2);
  line-height: 1.2; transition: color .25s;
}
.nav-right { display: flex; align-items: center; gap: 8px; }

.nav-chip {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--t2); background: var(--surface);
  border: 1px solid var(--border-md); border-radius: 20px;
  padding: 4px 12px;
  transition: background .25s, color .25s, border-color .25s;
}

/* Theme toggle button */
.btn-theme {
  height: 32px; padding: 0 10px;
  border-radius: 999px;
  background: transparent; border: 1px solid var(--border-md);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: background .15s, border-color .15s, color .15s;
  color: var(--t2);
  font-size: 12px; font-weight: 500; font-family: var(--sans);
  flex-shrink: 0; white-space: nowrap;
}
.btn-theme:hover {
  background: var(--surface3);
  border-color: var(--border-md);
  color: var(--t1);
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-bg); color: var(--blue);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  border-radius: 20px; padding: 4px 12px; margin-bottom: 20px;
  transition: background .25s, color .25s;
}
.hero-badge .blink {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600; letter-spacing: -.02em; line-height: 1.15;
  color: var(--t1); margin-bottom: 14px;
}
.hero h1 span { color: var(--blue); }
.hero p { font-size: 16px; color: var(--t2); max-width: 480px; margin: 0 auto; }

/* ── MAIN CARD ── */
.main-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── SECTION ── */
.section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 12px; overflow: hidden;
  transition: background .25s, border-color .25s;
}
.section-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 0;
  font-size: 11px; font-weight: 600; color: var(--t2);
  letter-spacing: .06em; text-transform: uppercase;
}

textarea {
  display: block; width: 100%; background: transparent; border: none;
  color: var(--t1); font-family: var(--mono); font-size: 12.5px;
  padding: 10px 16px 12px;
  resize: vertical; min-height: 140px; max-height: 280px;
  outline: none; line-height: 1.8;
}
textarea::placeholder { color: var(--t3); font-family: var(--sans); font-size: 13px; }

.input-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid var(--border); background: var(--surface2);
  transition: background .25s, border-color .25s;
}
.count-badge { font-size: 12px; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.count-badge .n { font-weight: 600; color: var(--blue); font-family: var(--mono); font-size: 13px; }

.fmt-pill {
  font-size: 11px; background: var(--green-bg); color: var(--green);
  border-radius: 20px; padding: 2px 8px; font-weight: 500;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.fmt-pill.show { opacity: 1; }

/* ── CONTROLS ── */
.controls { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }

.filter-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--rs); padding: 0 14px; height: 44px;
  font-size: 13px; color: var(--t2); flex: 1;
  transition: border-color .15s, background .25s;
}
.filter-pill:focus-within { border-color: var(--blue); }
.filter-pill label { white-space: nowrap; user-select: none; cursor: default; }
.filter-pill input {
  background: transparent; border: none; color: var(--t1);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  width: 80px; outline: none;
}

/* ── SCAN BUTTON ── */
.btn-scan {
  height: 44px; padding: 0 24px; border: none; border-radius: var(--rs);
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 600; font-family: var(--sans);
  letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s, box-shadow .2s;
  box-shadow: 0 1px 3px rgba(0,113,227,.3);
}
[data-theme="dark"] .btn-scan { box-shadow: 0 1px 3px rgba(88,166,255,.2); }
.btn-scan:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(0,113,227,.35); transform: translateY(-1px); }
[data-theme="dark"] .btn-scan:hover { box-shadow: 0 4px 16px rgba(88,166,255,.25); }
.btn-scan:active { transform: scale(.97); box-shadow: none; }
.btn-scan:disabled { opacity: .4; box-shadow: none; cursor: not-allowed; transform: none; filter: none; }

.btn-scan.ready { animation: readyPulse 2.8s ease-in-out infinite; }
@keyframes readyPulse {
  0%,100% { box-shadow: 0 1px 3px rgba(0,113,227,.3); }
  50%      { box-shadow: 0 0 0 6px rgba(0,113,227,.15), 0 1px 3px rgba(0,113,227,.3); }
}
[data-theme="dark"] .btn-scan.ready {
  animation: readyPulseDark 2.8s ease-in-out infinite;
}
@keyframes readyPulseDark {
  0%,100% { box-shadow: 0 1px 3px rgba(88,166,255,.2); }
  50%      { box-shadow: 0 0 0 6px rgba(88,166,255,.12), 0 1px 3px rgba(88,166,255,.2); }
}
.btn-scan.ready:hover { animation: none; }
.btn-scan.busy {
  background: var(--surface3); color: var(--t2);
  box-shadow: none; cursor: not-allowed; animation: none; filter: none;
}

.btn-text {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 500; color: var(--blue);
  padding: 4px 8px; border-radius: var(--rx);
  transition: background .15s; min-height: 32px;
}
.btn-text:hover { background: var(--blue-bg); }

.btn-secondary {
  height: 44px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: var(--rs); color: var(--t1);
  font-size: 13px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; white-space: nowrap; display: none;
  transition: background .15s, border-color .15s;
}
.btn-secondary:hover { background: var(--surface2); }

/* ── PROGRESS ── */
.progress {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px;
  display: none; transition: background .25s, border-color .25s;
}
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.progress-label { font-size: 14px; font-weight: 500; color: var(--t1); }
.progress-frac  { font-size: 12px; font-family: var(--mono); color: var(--t2); }
.progress-track { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.progress-fill  { height: 100%; background: var(--blue); border-radius: 2px; transition: width .35s cubic-bezier(.4,0,.2,1); width: 0%; }

/* ── STATS ── */
.stats {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rs); padding: 12px 14px;
  transition: background .25s, border-color .25s;
}
.stat-lbl { font-size: 11px; font-weight: 500; color: var(--t3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.stat-val { font-size: 20px; font-weight: 600; color: var(--t1); letter-spacing: -.02em; font-family: var(--mono); }

/* ── WALLET CARDS ── */
.wallet-list { display: flex; flex-direction: column; gap: 8px; }

.wallet-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: box-shadow .15s, border-color .15s, background .25s;
  animation: slideIn .22s ease both;
}
.wallet-card:hover { border-color: var(--border-md); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
[data-theme="dark"] .wallet-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.3); }
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.card-hdr {
  display: flex; align-items: center;
  cursor: pointer; min-height: 52px; user-select: none;
}
.card-hdr:hover .card-chevron { color: var(--blue); }

.card-rank {
  width: 40px; text-align: center; flex-shrink: 0;
  font-size: 11px; font-weight: 500; color: var(--t3); font-family: var(--mono);
}
.card-addr-wrap { flex: 1; min-width: 0; padding: 14px 0; }
.card-addr-row { display: flex; align-items: center; }
.card-addr {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--t2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-copy {
  background: none; border: none; cursor: pointer;
  color: var(--t3); font-size: 12px; padding: 4px 6px;
  border-radius: var(--rx); transition: color .15s, background .15s;
  margin-left: 6px; flex-shrink: 0;
}
.card-copy:hover { color: var(--blue); background: var(--blue-bg); }
.card-copy.copied { color: var(--green); }

.card-total-wrap { padding: 14px 12px 14px 0; text-align: right; flex-shrink: 0; }
.card-total { font-size: 15px; font-weight: 600; letter-spacing: -.01em; font-family: var(--mono); }
.card-subtotal { font-size: 11px; color: var(--t3); margin-top: 1px; }

.card-chevron {
  color: var(--t3); font-size: 11px; padding: 0 14px; flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1), color .15s;
}
.card-chevron.open { transform: rotate(180deg); }

.c-high { color: var(--green); }
.c-mid  { color: var(--amber); }
.c-low  { color: var(--t2); }

/* ── TOKEN PANEL ── */
.token-panel { border-top: 1px solid var(--border); display: none; background: var(--surface2); transition: background .25s, border-color .25s; }
.token-panel.open { display: block; }

.tok-hdr {
  display: grid; grid-template-columns: 1fr 96px 80px 88px;
  padding: 7px 16px;
  font-size: 10px; font-weight: 600; color: var(--t3);
  letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); background: var(--surface3);
  transition: background .25s, border-color .25s;
}
.tok-hdr span:not(:first-child) { text-align: right; }

.tok-row {
  display: grid; grid-template-columns: 1fr 96px 80px 88px;
  padding: 9px 16px; border-bottom: 1px solid var(--border);
  align-items: center; font-size: 13px; transition: background .1s;
}
.tok-row:last-child { border-bottom: none; }
.tok-row:hover { background: rgba(0,0,0,.025); }
[data-theme="dark"] .tok-row:hover { background: rgba(255,255,255,.025); }

.tok-name-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tok-icon {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}
.tok-icon.sol { background: var(--blue-bg); color: var(--blue); }
.tok-icon.spl { background: var(--surface3); color: var(--t2); }

.tok-sym  { font-weight: 600; color: var(--t1); }
.tok-mint-short {
  font-size: 11px; color: var(--t3); font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px;
}
.tok-amt  { font-family: var(--mono); font-size: 12px; color: var(--t2); text-align: right; }
.tok-px   { font-family: var(--mono); font-size: 12px; color: var(--t3); text-align: right; }
.tok-usd  { font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: right; }
.tok-usd.known   { color: var(--green); }
.tok-usd.unknown { color: var(--t3); }

.tok-unknown-note {
  padding: 8px 16px; font-size: 11px; color: var(--t3);
  border-top: 1px solid var(--border);
}

.card-preview { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 40px 10px; }
.preview-chip { font-size: 11px; font-weight: 500; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.preview-chip.v { background: var(--green-bg); color: var(--green); }
.preview-chip.u { background: var(--surface3); color: var(--t3); }

/* ── ERROR CARD ── */
.err-card {
  background: var(--surface); border: 1px solid rgba(192,57,43,.2);
  border-radius: var(--r); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: slideIn .22s ease both;
  transition: background .25s;
}
[data-theme="dark"] .err-card { border-color: rgba(248,81,73,.2); }
.err-icon {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--red-bg); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.err-addr { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--t1); }
.err-msg  { font-size: 12px; color: var(--red); margin-top: 2px; }

/* ── EMPTY STATE ── */
.empty-state { padding: 48px 20px; text-align: center; color: var(--t3); font-size: 14px; }
.empty-state .icon { font-size: 32px; margin-bottom: 8px; }

/* ── BOTTOM BAR ── */

/* ── FOOTER ── */
footer {
  text-align: center; padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--t3);
  transition: border-color .25s;
}
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero { padding: 40px 16px 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tok-hdr, .tok-row { grid-template-columns: 1fr 72px 72px; }
  .tok-hdr span:nth-child(3), .tok-row .tok-px { display: none; }
  .controls { flex-wrap: wrap; }
  .filter-pill { min-width: 120px; }
}

/* ── RESULTS TOOLBAR ── */
.results-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; padding: 0 2px;
}
.results-label {
  font-size: 12px; color: var(--t3);
  font-family: var(--mono);
}
.chip-sort {
  display: flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-md);
  border-radius: 999px;
  color: var(--t2);
  font-size: 12px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
  display: flex; align-items: center; gap: 5px;
}

.chip-sort:hover {
  background: var(--surface3);
  border-color: var(--border-md);
  color: var(--t1);
}
.chip-sort.active {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue);
}



/* ── PAGE HERO ── */
.page-hero {
  padding: 56px 24px 0;
  text-align: center;
}
.page-hero-inner {
  max-width: 560px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--blue); margin-bottom: 20px;
  background: var(--blue-bg); border-radius: 20px;
  padding: 4px 12px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.12;
  color: var(--t1); margin-bottom: 16px;
}
.hero-desc {
  font-size: 15px; color: var(--t2); line-height: 1.6;
  margin-bottom: 0;
}

/* ── LANG TOGGLE ── */
.btn-lang {
  height: 32px; padding: 0 12px;
  background: transparent;
  border: 1px solid var(--border-md);
  border-radius: 999px;
  color: var(--t2);
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; letter-spacing: .03em;
  transition: background .15s, color .15s, border-color .15s;
  display: flex; align-items: center;
}
.btn-lang:hover { background: var(--surface3); color: var(--t1); }
.btn-lang.active { background: var(--blue-bg); border-color: var(--blue); color: var(--blue); }

/* Прибрати стрілки з числових полів */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ── CHIP ICON ── */
.chip-icon {
  font-size: 13px; line-height: 1;
  opacity: .7;
  transition: opacity .15s;
}
.chip-sort.active .chip-icon { opacity: 1; }

/* ── NETWORK BAR ── */
.network-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.net-chip {
  height: 34px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border-md);
  border-radius: 999px; color: var(--t2);
  font-size: 13px; font-weight: 500; font-family: var(--sans);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.net-chip:hover { background: var(--surface3); color: var(--t1); }
.net-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── ACCENT (per network) ── */
:root { --accent: #0071e3; }
[data-net="sol"]     { --accent: #0071e3; }
[data-net="evm"]     { --accent: #627eea; }

/* ── API PANEL ── */
.api-panel {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 24px; transition: background .25s;
}
.api-panel-inner { max-width: 720px; margin: 0 auto; }
.api-panel-title { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 4px; }
.api-panel-desc  { font-size: 12px; color: var(--t2); margin-bottom: 10px; }
.api-panel-desc a { color: var(--blue, #0071e3); text-decoration: none; }
.api-panel-desc a:hover { text-decoration: underline; }
.api-input-row { display: flex; gap: 8px; }
.api-input-row input {
  flex: 1; height: 36px; padding: 0 12px;
  background: var(--surface2); border: 1px solid var(--border-md);
  border-radius: var(--rs); color: var(--t1);
  font-family: var(--mono); font-size: 12px; outline: none;
  transition: border-color .15s;
}
.api-input-row input:focus { border-color: var(--blue, #0071e3); }
.btn-save {
  height: 36px; padding: 0 16px;
  background: var(--blue, #0071e3); border: none; border-radius: var(--rs);
  color: #fff; font-size: 13px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: opacity .15s;
}
.btn-save:hover { opacity: .85; }
.api-status { font-size: 12px; margin-top: 6px; min-height: 16px; }
.api-status.ok  { color: var(--green); }
.api-status.err { color: var(--red); }

.btn-api {
  height: 32px; padding: 0 12px;
  background: transparent; border: 1px solid var(--border-md);
  border-radius: 999px; color: var(--t2);
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: background .15s, color .15s;
}
.btn-api:hover { background: var(--surface3); color: var(--t1); }
.btn-api.has-key { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.nav-btn-hidden { display: none; }
.nav-btn-hidden.visible { display: flex; align-items: center; }

/* ── CHAIN SWITCHER (navbar) ── */
.chain-switcher {
  display: flex; gap: 2px;
  background: var(--surface3);
  border-radius: 999px;
  padding: 3px;
}
.chain-btn {
  height: 26px; padding: 0 14px;
  background: transparent; border: none;
  border-radius: 999px;
  color: var(--t2);
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.chain-btn.active {
  background: var(--surface);
  color: var(--t1);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
[data-theme="dark"] .chain-btn.active {
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ── EVM SUBBAR ── */
.evm-subbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  transition: background .25s, border-color .25s;
}
.evm-subbar-inner {
  max-width: 720px; margin: 0 auto;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.evm-subbar .net-chip {
  height: 28px; padding: 0 12px; font-size: 12px;
}

/* ── MULTI-CHAIN BREAKDOWN ── */
.net-chip[data-net="all"] { font-weight: 600; }
.chain-breakdown {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 0 40px 10px;
}
.chain-pill {
  font-size: 11px; font-weight: 500;
  border-radius: 6px; padding: 3px 8px;
  background: var(--surface3); color: var(--t2);
  white-space: nowrap; border: 1px solid var(--border);
}
.chain-pill.has-balance { background: var(--blue-bg); color: var(--blue); border-color: rgba(98,126,234,.2); }
.chain-pill.zero { opacity: .45; }
