* {
  box-sizing: border-box;
}

:root {
  --bg: #101318;
  --panel: #1b2028;
  --text: #e8e9ed;
  --muted: #a0a6b2;
  --accent: #d6a95a;
  --accent-2: #f0c77a;
  --border: #2b313a;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body.light {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --border: #f1f5f9;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

a {
  color: #cfd8dc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:root {
  --nav-bg: #020617;
  --nav-border: #111827;
  --nav-link: #e5e7eb;
  --nav-link-muted: #9ca3af;
  --nav-pill-border: #4b5563;
}

.site-navbar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.7);
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.site-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
  color: #f9fafb !important;
}

.site-navbar .navbar-brand img {
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.site-navbar .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 14px;
  padding: 0.3rem 0.9rem;
  color: var(--nav-link-muted) !important;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.site-navbar .nav-link:hover {
  color: var(--nav-link) !important;
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-navbar .nav-link.active {
  color: var(--nav-link) !important;
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  opacity: 0;
  transition: width 0.15s ease, opacity 0.15s ease;
}

.site-navbar .nav-link.active::after {
  width: 70%;
  opacity: 1;
}

.site-navbar .badge-primary {
  background: var(--accent);
  color: #1b2028;
  font-size: 10px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.site-navbar .btn-outline-light,
.site-navbar .btn-light {
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.8rem;
  border-color: var(--nav-pill-border);
  color: var(--nav-link) !important;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.site-navbar .btn-outline-light:hover,
.site-navbar .btn-light:hover {
  background: #f9fafb;
  color: #020617 !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.65);
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-nav {
    text-align: center;
  }

  .site-navbar .navbar-nav.ml-auto {
    margin-top: 0.5rem;
  }
}

.site-footer {
  padding: 18px 14px 28px;
  text-align: center;
  color: var(--text);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer__brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer__social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.site-footer__social a {
  color: var(--text);
  font-size: 20px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer__social a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

:root{
      --bg:#f7f9fc; --card:#fff; --ink:#1f2733; --muted:#6b7686; --grid:#e9eef4;
      --pos-bg:#e9fbf3; --pos-br:#b6eed7; --pos-tx:#11895b;
      --neg-bg:#ffe9ea; --neg-br:#ffc6c9; --neg-tx:#be3b40;
    }
    body{margin:0;background:var(--bg);color:var(--ink);font:13px/1.35 "Segoe UI",Inter,system-ui,Roboto,Arial,sans-serif}
    .container{max-width:1280px;margin:18px auto 28px;padding:0 16px}
    h2{display:flex;align-items:center;justify-content:space-between;font-size:20px;margin:0 0 10px}
    .upd{font-size:12px;color:var(--muted)}

    .panel{background:var(--card);border:1px solid var(--grid);border-radius:12px;padding:10px;margin-bottom:10px}
    .toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
    .toolbar .form-control{height:30px}
    .token{width:200px}
    .num-inp{width:110px}
    .btn-chip{border-radius:999px}

    .dropdown-menu.p-3{width:320px;max-height:60vh;overflow:auto}
    .chain-pill{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border:1px solid var(--grid);border-radius:999px;background:#f1f4fa;font-weight:600}

    .table-wrap{overflow:auto;border:1px solid var(--grid);border-radius:12px;background:var(--card);padding:0 12px 12px}
    table{width:100%;min-width:1120px;border-collapse:separate;border-spacing:0}
    thead th{position:sticky;top:0;background:#f4f6fb;border-bottom:1px solid var(--grid);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.3px;padding:8px;white-space:nowrap}
    tbody td{padding:8px;border-bottom:1px solid var(--grid);vertical-align:middle}
    tbody tr:nth-child(even){background:transparent}
    tbody tr:hover{background:#f4f8ff}
    .sticky{position:sticky;left:0;background:var(--card);z-index:2;border-right:1px solid var(--grid)}
    .num{font-variant-numeric:tabular-nums;text-align:right}

    
    .badge-ex{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border:1px solid var(--grid);border-radius:999px;background:#eef3ff;font-weight:700;line-height:1;white-space:nowrap}
    .badge-ex.cex{background:#ecf5ff}
    .badge-ex.dex{background:#eef9f2}
    .badge-ex a{color:inherit;text-decoration:none}
    .muted{color:var(--muted)}

    .pill{display:inline-block;border-radius:999px;padding:3px 8px;font-weight:800}
    .pill.pos{background:var(--pos-bg);border:1px solid var(--pos-br);color:var(--pos-tx)}
    .pill.neg{background:var(--neg-bg);border:1px solid var(--neg-br);color:var(--neg-tx)}

    
    .exchange-cell{display:flex;flex-direction:column;gap:6px;min-width:200px}
    .exchange-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 6px;border-radius:8px;background:#fafafa}
    .exchange-name{display:flex;align-items:center;gap:6px}
    .exchange-price{font-variant-numeric:tabular-nums;min-width:74px;text-align:right}
    .bg-long{background:#e9fbf3}
    .bg-short{background:#ffe9ea}

    
    .links{display:flex;gap:8px;align-items:center;justify-content:flex-start}
    .links a{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--grid);border-radius:8px;background:#f7f9ff}
    .links a:hover{filter:brightness(0.96)}

    .flash-up{animation:flashUp .6s}
    .flash-down{animation:flashDown .6s}
    @keyframes flashUp{from{background:rgba(17,137,91,.18)} to{background:transparent}}
    @keyframes flashDown{from{background:rgba(190,59,64,.18)} to{background:transparent}}

    
    body.dark{--bg:#0d1117; --card:#0f141b; --ink:#dbe2ee; --muted:#9aa5b1; --grid:#1d2633}
    body.dark thead th{background:#121a27;border-color:#1d2633}
    body.dark tbody tr:nth-child(even){background:transparent}
    body.dark tbody tr:hover{background:#142134}
    body.dark .badge-ex{border-color:#22314a;background:#142134;color:#d6e1ff}
    body.dark .badge-ex.dex{background:#13271a}
    body.dark .exchange-row{background:#121a27}
    body.dark .bg-long{background:#10281d}
body.dark .bg-short{background:#2a1416}
body.dark .links a{background:#121a27;border-color:#22314a}

.page-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.page-info-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.45);
  color:rgba(226,232,240,.9);
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}
.page-info-icon:hover,
.page-info-icon:focus{
  color:#fff;
  border-color:rgba(59,130,246,.6);
  text-decoration:none;
}
.page-info-sheet{
  position:relative;
  margin-top:10px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(10,16,24,.88);
  box-shadow:0 16px 32px rgba(0,0,0,.28);
  border-radius:10px;
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height .2s ease, opacity .2s ease;
}
.page-info-sheet[open]{
  max-height:70vh;
  opacity:1;
}
.page-info-sheet summary{
  display:none;
}
.page-info-sheet .dex-seo-disclosure-body{
  max-height:70vh;
  overflow:auto;
  padding:22px 24px 26px;
}
.page-info-sheet .page-info-sheet__close{
  position:absolute;
  top:12px;
  right:16px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  background:transparent;
  color:rgba(226,232,240,.9);
  font-size:16px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.page-info-sheet .page-info-sheet__close:hover,
.page-info-sheet .page-info-sheet__close:focus{
  color:#fff;
  border-color:rgba(59,130,246,.6);
}
