/* SOLHYPE — professional dark crypto dashboard.
 * Palette via CSS variables, glassmorphism panels, tabular-nums for numbers,
 * responsive: table -> reduced columns <=1100px -> card list <=640px. */

:root {
  --bg: #0a0d12;
  --bg-soft: #0e1219;
  --panel: rgba(17, 22, 32, 0.72);
  --panel-solid: #11161f;
  --row: rgba(20, 26, 38, 0.55);
  --row-alt: rgba(15, 20, 30, 0.55);
  --row-hover: rgba(30, 39, 56, 0.75);
  --border: rgba(120, 140, 175, 0.14);
  --border-strong: rgba(120, 140, 175, 0.28);
  --text: #dbe2ee;
  --text-dim: #78839a;
  --accent: #f0b90b;
  --accent2: #7c5cff;
  --green: #2ebd85;
  --red: #f6465d;
  --yellow: #f0b90b;
  --lime: #b7f542;
  --cyan: #2ee6d6;
  --blue: #5b8def;
  --grey: #8a93a6;
  --grad-brand: linear-gradient(92deg, #f0b90b 0%, #ff7a45 45%, #7c5cff 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
    radial-gradient(900px 420px at 5% -10%, rgba(240, 185, 11, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  min-height: 100vh;
}

body.modal-open { overflow: hidden; }

.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.hidden { display: none !important; }

.glass {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}

/* ---------- Header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-left: none;
  border-right: none;
  border-top: none;
  padding: 10px 16px;
}

.topbar-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.brand { display: flex; align-items: baseline; gap: 10px; }

.brand-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(240, 185, 11, 0.25);
}

.scan-status { font-size: 11px; color: var(--text-dim); }
.scan-status.status-degraded {
  color: var(--yellow);
  padding: 1px 8px;
  border: 1px solid rgba(240, 185, 11, 0.4);
  border-radius: 20px;
}

.sources { display: flex; gap: 14px; flex-wrap: wrap; }

.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.dot-ok {
  background: var(--green);
  box-shadow: 0 0 8px rgba(46, 189, 133, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

.dot-degraded { background: var(--yellow); box-shadow: 0 0 8px rgba(240, 185, 11, 0.8); }
.dot-unknown { background: #39415a; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(46, 189, 133, 0.5); }
  50% { box-shadow: 0 0 12px rgba(46, 189, 133, 0.95); }
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.refresh-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 170px;
}

.last-scan { font-size: 11px; color: var(--text-dim); }
.next-refresh { font-size: 10px; color: var(--text-dim); opacity: 0.75; }

.refresh-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(120, 140, 175, 0.15);
  overflow: hidden;
}

.refresh-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 1s linear;
}

.btn-scan {
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: #14100a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(240, 185, 11, 0.3);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-scan:hover { filter: brightness(1.12); box-shadow: 0 2px 20px rgba(240, 185, 11, 0.45); }
.btn-scan:active { transform: translateY(1px); }
.btn-scan:disabled { opacity: 0.55; cursor: default; }
.btn-scan.loading { animation: btn-pulse 1.1s ease-in-out infinite; }

@keyframes btn-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

/* ---------- Summary chips ---------- */

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  color: var(--text-dim);
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }

.chip-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.chip-count { font-size: 13px; font-weight: 800; color: var(--text); }

.chip.active { color: var(--text); border-color: var(--border-strong); background: var(--row-hover); }
.chip-all.active { box-shadow: 0 0 0 1px var(--accent), 0 0 16px rgba(240, 185, 11, 0.25); }
.chip-new.active { box-shadow: 0 0 0 1px var(--lime), 0 0 16px rgba(183, 245, 66, 0.25); }
.chip-new.active .chip-label { color: var(--lime); }
.chip-hot.active { box-shadow: 0 0 0 1px var(--red), 0 0 16px rgba(246, 70, 93, 0.3); }
.chip-hot.active .chip-label { color: var(--red); }
.chip-watch.active { box-shadow: 0 0 0 1px var(--yellow), 0 0 16px rgba(240, 185, 11, 0.25); }
.chip-watch.active .chip-label { color: var(--yellow); }
.chip-risky.active { box-shadow: 0 0 0 1px var(--grey), 0 0 14px rgba(138, 147, 166, 0.25); }
.chip-skip.active { box-shadow: 0 0 0 1px #4a5265; }

.chip-hot .chip-count { color: var(--red); }
.chip-watch .chip-count { color: var(--yellow); }
.chip-new .chip-count { color: var(--lime); }
.chip-risky .chip-count { color: var(--grey); }

/* ---------- Filters ---------- */

.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 12px 16px 0;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.filter-search {
  flex: 1 1 220px;
  min-width: 160px;
  background: rgba(10, 13, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 7px 12px;
  font-size: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.18);
}

.filter-field {
  font-size: 11px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-field select,
.filter-field input {
  background: rgba(10, 13, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
}

.filter-field select:focus,
.filter-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.18);
}

.filter-field input { width: 60px; }
.filter-field input.filter-num { width: 96px; }

.shown-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Toggle switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 10px;
  background: rgba(120, 140, 175, 0.25);
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: left 0.2s, background 0.2s;
}

.toggle input:checked + .toggle-track {
  background: rgba(46, 230, 214, 0.25);
  border-color: var(--cyan);
}

.toggle input:checked + .toggle-track .toggle-thumb {
  left: 18px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(46, 230, 214, 0.7);
}

.toggle-label { font-size: 11px; color: var(--text-dim); }
.toggle input:checked ~ .toggle-label { color: var(--cyan); }

.btn-reset {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-reset:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- API banner ---------- */

.api-banner {
  margin: 10px 16px 0;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 70, 93, 0.45);
  background: rgba(246, 70, 93, 0.12);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Table ---------- */

.table-wrap {
  overflow-x: auto;
  padding: 10px 16px 32px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(14, 18, 25, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-strong);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

thead th.num { text-align: right; }
thead th:hover { color: var(--text); }

thead th.sorted-desc::after { content: " ▾"; color: var(--accent); }
thead th.sorted-asc::after { content: " ▴"; color: var(--accent); }

tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  vertical-align: middle;
}

tbody td.num { text-align: right; }

tbody tr {
  background: var(--row);
  cursor: pointer;
  transition: background 0.12s;
}

tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:hover { background: var(--row-hover); }
tbody tr.row-hot { box-shadow: inset 3px 0 0 var(--red); }

@keyframes row-flash-anim {
  0% { background: rgba(183, 245, 66, 0.28); }
  100% { background: transparent; }
}

tbody tr.row-flash { animation: row-flash-anim 2.4s ease-out; }

.pos { color: var(--green); }
.neg { color: var(--red); }

/* ---------- Cells ---------- */

.token-wrap { display: flex; align-items: center; gap: 9px; min-width: 150px; }

.token-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--row-hover);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

.token-icon-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 11px;
}

.token-line { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

.token-symbol {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

a.token-symbol:hover { color: var(--accent); }

.token-name {
  color: var(--text-dim);
  font-size: 10px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Score: number + compact progress bar */
.score-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 52px;
}

.score-wrap-lg { align-items: flex-start; width: 100%; }

.score-num { font-weight: 800; font-size: 13px; }
.score-num.score-hot { color: var(--red); text-shadow: 0 0 10px rgba(246, 70, 93, 0.4); }
.score-num.score-watch { color: var(--yellow); }
.score-num.score-risky { color: var(--grey); }
.score-num.score-skip { color: var(--text-dim); }

.score-bar {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: rgba(120, 140, 175, 0.18);
  overflow: hidden;
}

.score-wrap-lg .score-bar { width: 100%; height: 6px; margin-top: 6px; }

.score-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; }
.score-bar-fill.score-hot { background: linear-gradient(90deg, #ff7a45, var(--red)); box-shadow: 0 0 8px rgba(246, 70, 93, 0.5); }
.score-bar-fill.score-watch { background: var(--yellow); }
.score-bar-fill.score-risky { background: var(--grey); }
.score-bar-fill.score-skip { background: #3a4254; }

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.badge-hot { background: rgba(246, 70, 93, 0.2); color: var(--red); border: 1px solid rgba(246, 70, 93, 0.5); box-shadow: 0 0 10px rgba(246, 70, 93, 0.25); }
.badge-watch { background: rgba(240, 185, 11, 0.15); color: var(--yellow); border: 1px solid rgba(240, 185, 11, 0.45); }
.badge-risky { background: rgba(138, 147, 166, 0.15); color: var(--grey); border: 1px solid rgba(138, 147, 166, 0.35); }
.badge-skip { background: rgba(60, 66, 84, 0.35); color: var(--text-dim); border: 1px solid rgba(90, 100, 125, 0.3); }

.badge-active {
  background: rgba(46, 230, 214, 0.14);
  color: var(--cyan);
  border: 1px solid rgba(46, 230, 214, 0.45);
  box-shadow: 0 0 8px rgba(46, 230, 214, 0.25);
  margin-left: 5px;
}

.badge-new {
  background: rgba(183, 245, 66, 0.15);
  color: var(--lime);
  border: 1px solid rgba(183, 245, 66, 0.5);
  box-shadow: 0 0 8px rgba(183, 245, 66, 0.3);
  margin-left: 5px;
}

.badge-chain {
  background: rgba(91, 141, 239, 0.13);
  color: var(--blue);
  border: 1px solid rgba(91, 141, 239, 0.35);
  margin-left: 5px;
}

.badge-dex {
  background: rgba(124, 92, 255, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(124, 92, 255, 0.4);
  margin-left: 5px;
}

/* Twitter — main column */
.col-twitter-cell { text-align: left !important; }

.tw-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 135px; }

.tw-line1 { display: flex; align-items: center; }

.tw-posts { font-size: 16px; font-weight: 800; color: var(--text); }
.tw-label { font-size: 10px; color: var(--text-dim); margin-left: 3px; }
.tw-line2 { font-size: 10px; color: var(--text-dim); }
.tw-views-ok { color: var(--lime); }

.tw-link { font-size: 10px; color: var(--blue); text-decoration: none; }
.tw-link:hover { text-decoration: underline; }
.tw-na { color: var(--text-dim); font-size: 11px; }

/* ---------- Empty state / toast ---------- */

.empty-state {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  z-index: 300;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 92, 255, 0.08);
  padding: 22px;
  animation: modal-in 0.18s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(10, 13, 18, 0.5);
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

.m-root { display: flex; flex-direction: column; gap: 16px; }

.m-head { display: flex; align-items: center; gap: 12px; }

.m-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--row-hover);
  object-fit: cover;
  flex-shrink: 0;
}

.m-head-text { min-width: 0; flex: 1; }
.m-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.m-symbol { font-size: 18px; font-weight: 800; margin-right: 4px; }
.m-name { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.m-age { font-family: var(--mono); font-size: 10px; color: var(--text-dim); margin-left: 6px; }
.m-head-score { margin-top: 6px; }

.m-mint {
  color: var(--text-dim);
  font-size: 10px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 460px;
  opacity: 0.8;
}

.m-mint-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  min-width: 0;
}

.m-mint-wrap .m-mint { margin-top: 0; }

.m-copy-btn {
  flex-shrink: 0;
  background: rgba(10, 13, 18, 0.5);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.m-copy-btn:hover {
  color: var(--accent);
  border-color: rgba(240, 185, 11, 0.45);
  box-shadow: 0 0 10px rgba(240, 185, 11, 0.2);
}

/* History sparklines */
.m-history-body { display: flex; flex-direction: column; gap: 4px; }

.spark { display: block; width: 100%; }
.spark-price { height: 90px; }
.spark-score { height: 34px; }

.spark-score-title { margin: 6px 0 0; }

.m-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(10, 13, 18, 0.35);
}

.m-sec-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px 14px;
}

.m-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.m-label { font-size: 11px; color: var(--text-dim); }
.m-value { font-size: 12px; font-weight: 600; text-align: right; }

.val-good { color: var(--green); }
.val-warn { color: var(--yellow); }
.val-bad { color: var(--red); }

.m-dim { color: var(--text-dim); font-size: 12px; }

.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.tag-flag { color: var(--cyan); border-color: rgba(46, 230, 214, 0.35); background: rgba(46, 230, 214, 0.08); }
.tag-risk { color: var(--yellow); border-color: rgba(240, 185, 11, 0.35); background: rgba(240, 185, 11, 0.08); }
.tag-reject { color: var(--red); border-color: rgba(246, 70, 93, 0.35); background: rgba(246, 70, 93, 0.08); }

.m-links { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 185, 11, 0.45);
  background: rgba(240, 185, 11, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-link:hover { background: rgba(240, 185, 11, 0.2); box-shadow: 0 0 14px rgba(240, 185, 11, 0.25); }

.btn-link-x {
  border-color: rgba(91, 141, 239, 0.45);
  background: rgba(91, 141, 239, 0.1);
  color: var(--blue);
}

.btn-link-x:hover { background: rgba(91, 141, 239, 0.2); box-shadow: 0 0 14px rgba(91, 141, 239, 0.25); }

.m-meta { font-size: 10px; color: var(--text-dim); }

/* ---------- Modal: token card blocks (reference layout) ---------- */

.m-price-block { display: flex; flex-direction: column; gap: 2px; }

.m-price-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.m-price { font-size: 26px; font-weight: 800; color: var(--text); }
.m-price-native { font-size: 12px; color: var(--text-dim); }

.m-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.m-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 18, 0.35);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.m-box-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.m-box-val { font-size: 15px; font-weight: 800; color: var(--text); }

/* buys/sells split bars (TXNS section) */
.bs-row { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.bs-row:first-of-type { padding-top: 0; }
.bs-row + .bs-row { border-top: 1px solid var(--border); }
.bs-head { display: flex; justify-content: space-between; align-items: baseline; }
.bs-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bs-total { font-size: 11px; color: var(--text); }

.bs-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--row);
}

.bs-fill { height: 100%; }
.bs-buys { background: linear-gradient(90deg, #1f9d6d, var(--green)); box-shadow: 0 0 8px rgba(46, 189, 133, 0.35); }
.bs-sells { background: linear-gradient(90deg, var(--red), #c22e42); }

.bs-legend { display: flex; justify-content: space-between; font-size: 10px; }
.bs-b { color: var(--green); }
.bs-s { color: var(--red); }

.m-comm-grid { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* action buttons rendered as <button> share the .btn-link look */
button.btn-link { cursor: pointer; font-family: inherit; }

.btn-link-ghost {
  border-color: var(--border-strong);
  background: rgba(120, 140, 175, 0.08);
  color: var(--text);
}

.btn-link-ghost:hover { background: rgba(120, 140, 175, 0.16); box-shadow: 0 0 14px rgba(120, 140, 175, 0.2); }

/* ---------- Responsive ---------- */

/* <=1100px: hide secondary columns (Vol24h, %5m, Buys%, Risk, LP burn, Top10) */
@media (max-width: 1100px) {
  thead th:nth-child(8), tbody td:nth-child(8),
  thead th:nth-child(9), tbody td:nth-child(9),
  thead th:nth-child(12), tbody td:nth-child(12),
  thead th:nth-child(14), tbody td:nth-child(14),
  thead th:nth-child(15), tbody td:nth-child(15),
  thead th:nth-child(16), tbody td:nth-child(16)
  { display: none; }
}

/* <=640px: card list view, fullscreen modal */
@media (max-width: 640px) {
  body { font-size: 12px; }

  .topbar { padding: 8px 10px; }
  .topbar-main { gap: 8px 12px; }
  .brand-logo { font-size: 16px; }
  .sources { gap: 8px; }
  .source { font-size: 9px; letter-spacing: 0.4px; }
  .topbar-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .refresh-info { min-width: 130px; flex: 1; }

  .chips { padding: 10px 10px 0; gap: 6px; }
  .chip { padding: 6px 10px; }
  .chip-label { font-size: 10px; }

  .filters { margin: 10px 10px 0; gap: 10px; padding: 8px 10px; }

  .table-wrap { padding: 8px 10px 24px; overflow-x: visible; }

  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }

  tbody tr {
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 12px;
    white-space: normal;
    box-shadow: none !important;
  }

  tbody tr.row-hot { border-left: 3px solid var(--red); }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(120, 140, 175, 0.07);
    padding: 5px 0;
    text-align: right;
  }

  tbody td:last-child { border-bottom: none; }

  tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    text-align: left;
  }

  tbody td.col-token-cell { padding: 2px 0 8px; }
  tbody td.col-token-cell::before { content: none; }
  .token-wrap { min-width: 0; width: 100%; }
  .token-name { max-width: none; }

  tbody td.col-score .score-wrap { flex-direction: row; align-items: center; gap: 8px; }

  tbody td.col-verdict { flex-direction: row; }

  tbody td.col-twitter-cell { text-align: right !important; }
  .tw-wrap { min-width: 0; align-items: flex-end; }
  .tw-line1, .tw-line2 { justify-content: flex-end; }

  .modal-overlay { padding: 0; }
  .modal {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    border: none;
    padding: 18px 14px 28px;
  }
}
