/* ============================================================
   NirmalX DexScan — dark terminal theme
   Tokens
   ============================================================ */
:root {
  --bg-0: #0A0C0F;
  --bg-1: #0F1217;
  --bg-2: #151921;
  --bg-3: #1B2129;
  --border: #232A34;
  --border-soft: #1A2028;

  --text-1: #ECEEF2;
  --text-2: #8A93A3;
  --text-3: #57606E;

  --accent: #21B583;
  --accent-dim: rgba(33, 181, 131, 0.12);
  --accent-glow: rgba(33, 181, 131, 0.35);

  --up: #21B583;
  --down: #E5563D;
  --amber: #DDA63B;
  --blue: #3D8BFD;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

html, body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }
.icon { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }
.icon.accent { color: var(--accent); }
.up { color: var(--up) !important; }
.down { color: var(--down) !important; }

a { color: inherit; text-decoration: none; }

/* Signature element: a faint scanning glow line crossing the very top of
   the viewport, evoking a block being read off the chain in real time. */
.scan-line {
  position: fixed;
  top: 0; left: -30%;
  width: 30%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  z-index: 999;
  animation: scan 5.5s linear infinite;
  pointer-events: none;
}
@keyframes scan { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .scan-line { display: none; } }

/* ============================================================
   Layout shell
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), #0E7A57);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px; color: #06150F;
  box-shadow: 0 0 0 1px rgba(33,181,131,0.3), 0 4px 14px -4px rgba(33,181,131,0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--text-1); }
.brand-sub { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }

.chain-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-2);
}
.chain-id { color: var(--text-3); font-family: var(--font-mono); font-size: 11px; }
.chain-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.chain-dot.offline { background: var(--down); box-shadow: 0 0 8px rgba(229,86,61,0.4); animation: none; }

.nav-tabs { display: flex; gap: 2px; }
.nav-tab {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: none; border: none; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-tab:hover { color: var(--text-1); }
.nav-tab.active { background: var(--bg-3); color: var(--text-1); }

.search-wrap { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.search-wrap .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.search-wrap input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--text-3); }

.explorer-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  transition: border-color 0.15s, color 0.15s;
}
.explorer-link:hover { color: var(--text-1); border-color: var(--accent); }

/* Ticker strip */
.ticker-strip {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-soft);
  padding: 7px 20px;
  display: flex; gap: 22px;
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.ticker-item { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.ticker-item strong { color: var(--text-1); font-weight: 600; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Main grid */
.main { display: grid; grid-template-columns: 252px 1fr; flex: 1; min-height: 0; }

.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border-soft);
  padding: 14px 0;
  overflow-y: auto;
}
.sidebar-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-3);
  padding: 0 16px 8px;
}
.pool-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.12s;
}
.pool-row:hover { background: var(--bg-2); }
.pool-row.active { background: var(--bg-2); border-left-color: var(--accent); }
.pair-icons { position: relative; width: 38px; height: 24px; flex-shrink: 0; }
.tok-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700; font-family: var(--font-mono);
  border: 2px solid var(--bg-1);
  position: absolute;
}
.tok-icon.b { border-color: var(--bg-2); }
.tok-a { left: 0; top: 0; z-index: 2; }
.tok-b { left: 13px; top: 1px; }
.pool-info { flex: 1; min-width: 0; }
.pool-name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.pool-vol { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }
.pool-change { font-size: 12px; font-weight: 600; font-family: var(--font-mono); }

.content { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}
.stat-label { font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.stat-val { font-size: 21px; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; }
.stat-sub { font-size: 11.5px; margin-top: 5px; font-family: var(--font-mono); }

/* Pair header */
.pair-header {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.pair-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text-1); }
.pair-meta { display: flex; gap: 14px; margin-top: 4px; }
.meta-item { font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.pill {
  display: inline-flex; align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px; color: var(--text-2);
}
.pill.accent { color: var(--accent); border-color: rgba(33,181,131,0.3); background: var(--accent-dim); }
.pair-price-block { margin-left: auto; text-align: right; }
.pair-price { font-family: var(--font-mono); font-size: 23px; font-weight: 600; color: var(--text-1); }
.pair-price small { font-size: 13px; color: var(--text-3); font-weight: 400; }
.pair-change { font-size: 13px; font-family: var(--font-mono); margin-top: 2px; }

/* Panels */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.panel-flush { padding: 0; overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.panel-title { font-size: 13px; font-weight: 600; color: var(--text-1); }
.panel-title.sm { font-size: 12px; color: var(--text-2); }
.panel-head {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; gap: 8px;
}

.time-btns { display: flex; gap: 3px; margin-left: auto; }
.time-btn {
  padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 11.5px; font-family: var(--font-mono); font-weight: 500;
  border: none; background: none; color: var(--text-3); cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.time-btn:hover { color: var(--text-1); }
.time-btn.active { background: var(--bg-3); color: var(--accent); }

.chart-box { position: relative; width: 100%; }
.chart-box-lg { height: 230px; }
.chart-box-md { height: 170px; }
.chart-box-sm { height: 130px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  padding: 10px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: 0.03em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.data-table td {
  padding: 9px 16px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }
.side-buy { color: var(--up) !important; font-weight: 600; }
.side-sell { color: var(--down) !important; font-weight: 600; }
.row-link { cursor: pointer; }

.tx-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.tx-link:hover {
    text-decoration: underline;
    color: #4da3ff;
}

/* Liquidity panel */
.liq-list { padding: 6px 0; }
.liq-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  font-size: 12px;
}
.liq-addr { color: var(--text-2); width: 92px; font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; }
.liq-bar-wrap { flex: 1; height: 5px; background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.liq-bar { height: 100%; background: var(--accent); border-radius: 3px; }
.liq-pct { color: var(--text-1); width: 36px; text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.liq-pie-wrap { padding: 14px 16px; border-top: 1px solid var(--border-soft); }

/* Scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--border); }

/* Responsive */
@media (max-width: 880px) {
  .main { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-tabs { display: none; }
}

























.side-buy{

color:#21c87a;

font-weight:700;

}

.side-sell{

color:#ff5b5b;

font-weight:700;

}



.mono{

font-family:JetBrains Mono, monospace;

}