/* ═══════════════════════════════════════════════════
   components.css — Ticker, Nav, Modals, Toast
═══════════════════════════════════════════════════ */

/* ── TICKER ── */
.ticker-bar {
  height: 30px;
  background: rgba(224,247,255,0.95);
  border-bottom: 1px solid rgba(99,179,237,0.25);
  overflow: hidden;
  display: flex; align-items: center;
  position: relative; z-index: 50;
}
.ticker-pin {
  position: absolute; left: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(240,249,255,0.98) 58%, transparent);
  padding: 0 20px 0 12px; height: 100%;
  display: flex; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 700; color: var(--gold);
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.ticker-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px var(--gold);
  animation: pulse 1.8s infinite;
}
.ticker-scroll {
  display: flex; animation: tickerMove 40s linear infinite;
  white-space: nowrap; padding-left: 155px;
}
.ticker-scroll:hover { animation-play-state: paused; }
.t-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 22px; font-size: .68rem; color: var(--muted);
  border-right: 1px solid rgba(240,185,11,0.09);
}
.t-item b { color: var(--text); }
.t-item .up { color: var(--green); }
.t-item .dn { color: var(--red); }

/* ── NAV ── */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; height: 66px;
  background: rgba(240,249,255,0.96);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(99,179,237,0.2);
  position: sticky; top: 0; z-index: 100;
}
nav::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,185,11,0.3), transparent);
}

.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-width: 68px; }
.nav-logo-img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 14px rgba(240,185,11,0.3);
  overflow: hidden;
  background: #0a1929;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-img img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }
.nav-logo-text { font-size: .64rem; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; text-align: center; }
.nav-logo-text span { color: var(--gold); }
.nav-logo-sub { font-size: .42rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 0; white-space: nowrap; text-align: center; line-height: 1; }

.nav-tabs {
  display: flex; gap: 1px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px; padding: 3px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: calc(100vw - 200px);
  flex-shrink: 1;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 8px; border-radius: 7px;
  font-size: .62rem; font-weight: 600;
  cursor: pointer; transition: var(--t);
  color: var(--muted); border: none; background: none;
  letter-spacing: .01em; white-space: nowrap; flex-shrink: 0;
}
.nav-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-tab.active { background: var(--gold); color: #000; }
.nav-tab.active .nt-icon { filter: brightness(0); }
.nt-icon { display: flex; align-items: center; flex-shrink: 0; }

/* ── SIDEBAR ── */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 199; opacity: 0; pointer-events: none; transition: opacity .25s; }
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.sidebar {
  position: fixed; top: 0; left: -260px; width: 250px; height: 100vh;
  background: rgba(240,249,255,0.98); backdrop-filter: blur(20px);
  border-right: 1px solid rgba(99,179,237,0.2);
  z-index: 200; transition: left .25s ease;
  overflow-y: auto; padding: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.08);
}
.sidebar.open { left: 0; }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid rgba(99,179,237,0.15);
}
.sidebar-close { background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.sidebar-close:hover { background: rgba(0,0,0,0.05); color: var(--text); }
.sidebar-section {
  font-size: .56rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; padding: 14px 18px 4px; margin-top: 2px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 18px; border: none; background: none;
  font-size: .78rem; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all .15s; text-align: left; font-family: var(--font);
}
.sidebar-item:hover { background: rgba(240,185,11,0.06); color: var(--gold); }
.sidebar-item.active { background: rgba(240,185,11,0.1); color: var(--gold); border-right: 3px solid var(--gold); }
.sidebar-item .nt-icon { width: 18px; display: flex; justify-content: center; }
.sb-ico { font-size: 1.2rem; width: 24px; text-align: center; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15)); }

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

/* Chain switcher */
.chain-sw { position: relative; }
.chain-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  background: rgba(240,185,11,0.07);
  border: 1px solid rgba(240,185,11,0.22);
  border-radius: 10px; cursor: pointer;
  font-size: .76rem; font-weight: 700; color: var(--text);
  transition: var(--t); font-family: var(--font);
}
.chain-btn:hover { border-color: rgba(240,185,11,0.44); box-shadow: 0 0 11px var(--goldglow); }
.chain-icon-wrap { display: flex; align-items: center; }
.chain-live {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green);
  animation: pulse 2s infinite;
}
.chain-caret { font-size: 9px; color: var(--muted); }

.chain-drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(240,249,255,0.99);
  border: 1px solid rgba(240,185,11,0.18);
  border-radius: 18px; padding: 10px; width: 272px;
  z-index: 200; box-shadow: 0 22px 64px rgba(0,0,0,0.65);
  display: none;
}
.chain-drop.open { display: block; animation: popIn .18s var(--spring); }
.cd-head {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(99,179,237,0.2); margin-bottom: 6px;
}
.cd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
  transition: var(--ts); font-size: .8rem;
}
.cd-item:hover { background: rgba(240,185,11,0.07); }
.cd-item.active-chain { background: rgba(240,185,11,0.11); color: var(--gold); }
.cd-chain-ico { display: flex; align-items: center; width: 24px; flex-shrink: 0; }
.cd-name { font-weight: 700; flex: 1; }
.cd-id { font-size: .6rem; color: var(--muted); font-family: var(--mono); }
.cd-por { font-size: .58rem; font-weight: 700; color: var(--green); padding: 1px 5px; border-radius: 4px; background: rgba(0,200,150,0.1); }
.add-net-btn {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 8px 10px; border-radius: 8px; background: none;
  border: 1px dashed rgba(240,185,11,0.22); color: var(--muted);
  font-size: .74rem; cursor: pointer; transition: var(--ts); margin-top: 6px;
}
.add-net-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Connect button */
.connect-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px;
  background: var(--gold); color: #000;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: .82rem;
  transition: var(--t);
}
.connect-btn:hover { background: #ffd026; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(240,185,11,0.4); }
.connect-btn.connected {
  background: rgba(0,200,150,0.14); color: var(--green);
  border: 1px solid rgba(0,200,150,0.28);
  font-family: var(--mono); font-size: .73rem;
}

/* ── MODAL OVERLAY ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(224,242,254,0.88);
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: rgba(240,249,255,0.99);
  border: 1px solid rgba(240,185,11,0.18);
  border-radius: 20px; padding: 22px;
  width: 400px; max-width: 96vw;
  transform: translateY(12px) scale(.97);
  transition: all .22s var(--spring);
  box-shadow: 0 28px 72px rgba(0,0,0,0.62);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.net-modal { width: 430px; }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-title { font-size: .95rem; font-weight: 700; }
.modal-close {
  width: 27px; height: 27px; border-radius: 7px;
  background: rgba(255,255,255,0.05); border: none;
  color: var(--muted); font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ts);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.modal-search {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 9px 12px;
  color: var(--text); font-size: .82rem; outline: none;
  margin-bottom: 10px; transition: border .18s;
}
.modal-search:focus { border-color: rgba(240,185,11,0.3); }

.common-label {
  font-size: .62rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px; font-weight: 700;
}
.common-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ctok {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  cursor: pointer; font-size: .74rem; font-weight: 700; transition: var(--ts);
}
.ctok:hover { background: rgba(240,185,11,0.08); border-color: rgba(240,185,11,0.25); }

.token-list { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.token-option {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; cursor: pointer; transition: var(--ts);
}
.token-option:hover { background: rgba(255,255,255,0.04); }
.tok-icon {
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; flex-shrink: 0;
}
.to-sym  { font-size: .84rem; font-weight: 700; }
.to-name { font-size: .68rem; color: var(--muted); }
.to-bal  { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); font-weight: 600; }
.unverified-tag { font-size: .58rem; color: var(--amber); margin-left: 5px; }

/* Import section */
.import-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--panelborder); }
.import-label {
  font-size: .64rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.import-input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 9px;
  padding: 9px 12px; color: var(--text); font-family: var(--mono);
  font-size: .76rem; outline: none; margin-bottom: 8px; transition: border .18s;
}
.import-input:focus { border-color: rgba(240,185,11,0.3); }
.import-warn {
  font-size: .7rem; color: var(--amber);
  background: rgba(255,184,0,0.07);
  border: 1px solid rgba(255,184,0,0.2);
  border-radius: 8px; padding: 8px 11px; margin-bottom: 8px;
  display: none;
}
.import-warn.show { display: block; }
.import-preview {
  display: none; align-items: center; gap: 10px;
  padding: 9px 11px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--panelborder); border-radius: 10px; margin-bottom: 8px;
}
.import-preview.show { display: flex; }
.import-confirm-btn {
  width: 100%; padding: 9px;
  background: rgba(255,75,110,0.1); color: var(--red);
  border: 1px solid rgba(255,75,110,0.25); border-radius: 9px;
  font-weight: 700; font-size: .8rem; transition: var(--ts);
  display: none;
}
.import-confirm-btn.show { display: block; }
.import-confirm-btn:hover { background: rgba(255,75,110,0.18); }

/* Add Network form */
.net-form { display: flex; flex-direction: column; gap: 10px; }
.net-field label {
  display: block; font-size: .64rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 4px;
}
.net-field input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 9px;
  padding: 9px 12px; color: var(--text); font-size: .82rem; outline: none;
  transition: border .18s;
}
.net-field input:focus { border-color: rgba(240,185,11,0.3); }
.net-save-btn {
  padding: 11px; background: var(--gold); color: #000;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: .84rem; transition: var(--t);
}
.net-save-btn:hover { background: #ffd026; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 600;
  background: rgba(240,249,255,0.99);
  border: 1px solid rgba(240,185,11,0.2);
  border-radius: 14px; padding: 13px 16px; min-width: 280px;
  transform: translateY(70px) scale(.95); opacity: 0;
  transition: all .3s var(--spring);
  box-shadow: 0 14px 44px rgba(0,0,0,0.52);
  backdrop-filter: blur(12px);
}
.toast.show { transform: none; opacity: 1; }
.toast-inner { display: flex; align-items: flex-start; gap: 10px; }
.toast-ico { display: flex; align-items: center; flex-shrink: 0; margin-top: 1px; }
.toast-title { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.toast-body  { font-size: .7rem; color: var(--muted); font-family: var(--mono); line-height: 1.4; }






/* USDW: bright nav + ticker */
.ticker-bar{background:rgba(224,247,255,0.97)!important;border-bottom:1px solid rgba(99,179,237,0.25)!important}
nav{background:rgba(240,249,255,0.97)!important;border-bottom:1px solid rgba(99,179,237,0.2)!important}
.ticker-pin{background:linear-gradient(90deg,rgba(224,247,255,0.99) 58%,transparent)!important}
.chain-drop,.modal,.toast{background:rgba(248,252,255,0.99)!important}
.modal-overlay{background:rgba(186,230,255,0.75)!important}
