:root {
  --bg: #06080d;
  --bg-2: #0a0e16;
  --panel: rgba(15, 20, 31, 0.86);
  --panel-solid: #0e131e;
  --panel-2: rgba(255, 255, 255, 0.025);
  --hover: rgba(255, 255, 255, 0.045);
  --border: rgba(148, 163, 184, 0.11);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e7ecf6;
  --muted: #8d97ab;
  --faint: #5c667a;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --up: #22c55e;
  --up-soft: rgba(34, 197, 94, 0.12);
  --down: #f43f5e;
  --down-soft: rgba(244, 63, 94, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.13);
  --info: #38bdf8;
  --x: #f1f3f5;
  --tg: #2aabee;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sidebar: 236px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
::selection { background: rgba(139, 92, 246, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.16); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(800px 600px at 60% 120%, rgba(34, 197, 94, 0.06), transparent 60%);
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- layout */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px; border-right: 1px solid var(--border); background: rgba(8, 11, 18, 0.7); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 16px; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04)); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--down); color: #fff; }
.nav .lbl-short { display: none; }
.nav .sep { height: 1px; background: var(--border); margin: 10px 6px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); padding: 10px 8px 0; border-top: 1px solid var(--border); }
.sidebar-foot .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 22px;
  background: rgba(6, 8, 13, 0.72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
}
.search { position: relative; flex: 0 1 380px; min-width: 200px; }
.search input {
  width: 100%; height: 38px; padding: 0 44px 0 38px; border-radius: 11px; border: 1px solid var(--border); background: var(--panel-2); outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search input:focus { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.05); }
.search .i { position: absolute; left: 12px; top: 10px; color: var(--faint); }
.search .i svg { width: 17px; height: 17px; }
.search kbd { position: absolute; right: 10px; top: 9px; font: 11px var(--mono); color: var(--faint); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.search-results {
  position: absolute; top: 44px; left: 0; right: 0; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden; max-height: 420px; overflow-y: auto;
}
.search-results .item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
.search-results .item:hover, .search-results .item.sel { background: var(--hover); }
.search-results .empty { padding: 14px; color: var(--muted); }

.tape { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tape-track { display: inline-flex; gap: 26px; white-space: nowrap; animation: tape 60s linear infinite; padding-left: 20px; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.tape-item b { font-weight: 600; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--panel-2); cursor: pointer; color: var(--muted); transition: all 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--hover); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bell .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--down); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--border); font-size: 12px; color: var(--muted); white-space: nowrap; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.live-pill.on .dot { background: var(--up); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
.live-pill.off .dot { background: var(--down); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.view { padding: 22px 22px 60px; outline: none; max-width: 1680px; width: 100%; }

/* ---------------------------------------------------------------- primitives */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 720px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; display: flex; align-items: center; gap: 8px; }
.card-head h2 svg, .card-head h3 svg { width: 16px; height: 16px; color: var(--accent-2); }
.card-head .sub { color: var(--faint); font-size: 12px; font-weight: 500; }
.card-body { padding: 14px 16px 16px; }
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-main.top { align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.15s; white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: rgba(148, 163, 184, 0.35); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, #8b5cf6, #6d5dfc 55%, #22d3ee); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--hover); }
.btn.danger { color: var(--down); border-color: rgba(244, 63, 94, 0.3); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.seg { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--border); background: var(--panel-2); gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(139, 92, 246, 0.2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35); }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip.k-CALL { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.35); }
.chip.k-MENTION { color: #7dd3fc; background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.28); }
.chip.k-RECAP { color: #fcd34d; background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.3); }
.chip.k-PROMO { color: #f9a8d4; background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.28); }
.chip.k-ALERT { color: #fda4af; background: var(--down-soft); border-color: rgba(244, 63, 94, 0.3); }
.chip.k-NEWS { color: #a5b4fc; background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.3); }
.chip.k-CHATTER { color: var(--faint); }
.chip.ok { color: #86efac; background: var(--up-soft); border-color: rgba(34, 197, 94, 0.3); }
.chip.bad { color: #fda4af; background: var(--down-soft); border-color: rgba(244, 63, 94, 0.3); }
.chip.mid { color: #fcd34d; background: var(--warn-soft); border-color: rgba(245, 158, 11, 0.3); }
.chip.chain { text-transform: capitalize; }
.chip.click { cursor: pointer; }
.chip.click:hover { border-color: var(--border-strong); color: var(--text); }

.pct { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.pct.box { padding: 2px 6px; border-radius: 6px; }
.pct.box.up { background: var(--up-soft); }
.pct.box.down { background: var(--down-soft); }

.input, .select, textarea.input {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.25); outline: none; min-width: 0;
  transition: border-color 0.15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus { border-color: rgba(139, 92, 246, 0.65); }
.select { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--panel-solid); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
label.field .hint { font-size: 11.5px; color: var(--faint); font-weight: 400; }

.switch { position: relative; display: inline-block; vertical-align: middle; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(148, 163, 184, 0.25); cursor: pointer; transition: 0.2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: #1b2232; }
.avatar.sm { width: 22px; height: 22px; }
.avatar.lg { width: 44px; height: 44px; }
.avatar.fallback, .token.fallback {
  display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; letter-spacing: -0.02em; text-transform: uppercase;
}
.token { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: #1b2232; }
.token.sm { width: 24px; height: 24px; font-size: 9px; }
.token.lg { width: 52px; height: 52px; font-size: 15px; }
.stack-av { display: flex; align-items: center; }
.stack-av > * { margin-left: -7px; border: 2px solid var(--panel-solid); }
.stack-av > *:first-child { margin-left: 0; }
.stack-av .more { width: 22px; height: 22px; border-radius: 50%; background: #1b2232; display: grid; place-items: center; font-size: 10px; color: var(--muted); font-weight: 700; }
.plat { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; flex: none; }
.plat svg { width: 12px; height: 12px; }
.plat.x { background: #000; color: #fff; border: 1px solid #333; }
.plat.telegram { background: var(--tg); color: #fff; }
.plat.rss { background: #f97316; color: #fff; }

.empty-state { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty-state svg { width: 34px; height: 34px; color: var(--faint); margin-bottom: 8px; }
.empty-state h3 { margin: 4px 0; color: var(--text); font-size: 15px; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, 0.28); background: var(--warn-soft); color: #fde68a; font-size: 13px; }
.notice.info { border-color: rgba(56, 189, 248, 0.28); background: rgba(56, 189, 248, 0.08); color: #bae6fd; }
.notice.ok { border-color: rgba(34, 197, 94, 0.28); background: var(--up-soft); color: #bbf7d0; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice b { color: #fff; }
code, .code { font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 5px; }

/* ---------------------------------------------------------------- KPI */
.kpi { padding: 15px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.kpi .lbl { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 7px; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi .lbl svg { width: 15px; height: 15px; color: var(--accent-2); }
.kpi .val { font-size: 27px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--mono); }
.kpi .sub { font-size: 12px; color: var(--faint); }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%); }

/* ---------------------------------------------------------------- signal cards */
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.sig {
  position: relative; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; gap: 11px; min-width: 0;
}
.sig:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.sig.hot { border-color: rgba(139, 92, 246, 0.35); }
.sig.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); } }
.sig-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sig-name { min-width: 0; flex: 1; }
.sig-name b { font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.sig-name small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { --v: 50; --c: var(--accent); width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(148, 163, 184, 0.14) 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel-solid); }
.ring span { position: relative; font: 700 14px var(--mono); }
.sig-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sig-price .p { font: 600 17px var(--mono); letter-spacing: -0.02em; }
.sig-changes { display: flex; gap: 6px; flex-wrap: wrap; }
.sig-changes .c { font-size: 11px; color: var(--faint); display: inline-flex; gap: 4px; align-items: baseline; }
.sig-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sig-stats > div { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); border-radius: 9px; padding: 6px 8px; min-width: 0; }
.sig-stats small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 600; }
.sig-stats b { font: 600 13px var(--mono); }
.sig-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.sentbar { height: 4px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); overflow: hidden; position: relative; }
.sentbar i { position: absolute; top: 0; bottom: 0; left: 50%; }
.spark { width: 100%; height: 34px; display: block; }

/* ---------------------------------------------------------------- table */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--panel-solid); z-index: 1; }
table.t th.sortable { cursor: pointer; }
table.t th.sortable:hover { color: var(--text); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tbody tr { transition: background 0.12s; }
table.t tbody tr.click { cursor: pointer; }
table.t tbody tr:hover { background: var(--hover); }
table.t tbody tr:last-child td { border-bottom: 0; }
.coin-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.coin-cell b { display: block; font-size: 13.5px; }
.coin-cell small { color: var(--muted); font-size: 11.5px; display: block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.scorebar .bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.scorebar .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee); }
.scorebar b { font: 700 13px var(--mono); width: 26px; text-align: right; }

/* ---------------------------------------------------------------- feed */
.feed { display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 36px 1fr; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.post:hover { background: rgba(255, 255, 255, 0.018); }
.post:last-child { border-bottom: 0; }
.post.new { animation: newpost 2.2s ease-out; }
@keyframes newpost { from { background: rgba(34, 211, 238, 0.12); } to { background: transparent; } }
.post-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; min-width: 0; }
.post-head b { font-weight: 600; }
.post-head .h { color: var(--muted); }
.post-head .t { color: var(--faint); font-size: 12px; margin-left: auto; white-space: nowrap; }
.post-rt { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.post-rt svg { width: 13px; height: 13px; }
.post-text { margin-top: 4px; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; color: #d4dbe8; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-text a { color: #93c5fd; }
.post-text a:hover { text-decoration: underline; }
.post-text .tag { color: #c4b5fd; font-weight: 600; cursor: pointer; }
.post-text .tag:hover { text-decoration: underline; }
.post-text .ca { font-family: var(--mono); font-size: 12px; color: #67e8f9; background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2); padding: 0 5px; border-radius: 5px; cursor: pointer; }
.post-quote { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); font-size: 12.5px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.post-coins { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 4px; border-radius: 99px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.25); cursor: pointer; font-size: 12px; font-weight: 600; transition: border-color 0.15s; }
.coin-chip:hover { border-color: rgba(139, 92, 246, 0.6); }
.post-meta { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--faint); align-items: center; }
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }
.post-meta svg { width: 13px; height: 13px; }
.sentdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.newbar { position: sticky; top: 70px; z-index: 5; display: flex; justify-content: center; pointer-events: none; height: 0; }
.newbar button { pointer-events: auto; transform: translateY(8px); }

/* ---------------------------------------------------------------- gauge / misc widgets */
.gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.gauge svg { width: 100%; max-width: 230px; }
.gauge .v { font: 700 30px var(--mono); margin-top: -46px; letter-spacing: -0.03em; }
.gauge .l { font-size: 12.5px; font-weight: 600; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mini-stats > div { text-align: center; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border); }
.mini-stats small { display: block; color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.mini-stats b { font: 700 16px var(--mono); }
.kindbars { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.kindbars .kb { display: grid; grid-template-columns: 76px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; }
.kindbars .kb .bar { height: 7px; border-radius: 7px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.kindbars .kb .bar i { display: block; height: 100%; border-radius: 7px; }
.list { display: flex; flex-direction: column; }
.list .li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); min-width: 0; }
.list .li:last-child { border-bottom: 0; }
.list .li .grow { flex: 1; min-width: 0; }
.list .li .grow b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li .grow small { display: block; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .li.click { cursor: pointer; border-radius: 8px; }
.list .li.click:hover { background: var(--hover); }
.chart-box { position: relative; height: 260px; }

/* ---------------------------------------------------------------- drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(2, 4, 8, 0.6); backdrop-filter: blur(3px); z-index: 40; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 41; background: #0a0e17; border-left: 1px solid var(--border-strong);
  transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}
.drawer.open { transform: none; }
.drawer-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(10, 14, 23, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.drawer-head .title { flex: 1; min-width: 0; }
.drawer-head .title b { font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.drawer-head .title small { color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.drawer-body { padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 16px; }
.drawer .section-title svg { width: 14px; height: 14px; }
.drawer .section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.price-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.price-hero .p { font: 700 30px var(--mono); letter-spacing: -0.03em; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.metrics > div { padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); min-width: 0; }
.metrics small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); font-weight: 600; }
.metrics b { font: 600 15px var(--mono); }
.addr { display: inline-flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--muted); padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); cursor: pointer; border: 1px solid var(--border); }
.addr:hover { color: var(--text); border-color: var(--border-strong); }
.addr svg { width: 13px; height: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 7px; }
.links a, .links button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--panel-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.links a:hover, .links button:hover { background: var(--hover); border-color: rgba(139, 92, 246, 0.5); }
.links svg { width: 14px; height: 14px; }
.embed { width: 100%; height: 420px; border: 0; border-radius: 12px; background: #0b0f17; }
.sec-flags { display: flex; flex-direction: column; gap: 6px; }
.sec-flag { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); }
.sec-flag .lv { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.callers { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.caller { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.caller .grow { flex: 1; min-width: 0; }
.caller .grow b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caller .grow small { display: block; color: var(--faint); font-size: 11.5px; }
.score-break { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.score-break .ring { width: 74px; height: 74px; }
.score-break .ring::before { inset: 6px; }
.score-break .ring span { font-size: 22px; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 11px; padding: 12px 14px; border-radius: 14px; background: rgba(14, 19, 30, 0.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: toastin 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; }
.toast.alert { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 10px 40px rgba(139, 92, 246, 0.25); }
.toast .ti { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: #c4b5fd; }
.toast .ti svg { width: 17px; height: 17px; }
.toast b { display: block; font-size: 13.5px; }
.toast small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; word-break: break-word; }
.toast.out { animation: toastout 0.25s forwards; }
@keyframes toastin { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
@keyframes toastout { to { transform: translateX(30px); opacity: 0; } }

/* ---------------------------------------------------------------- tools / steps */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool { display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); transition: border-color 0.15s, transform 0.15s; }
.tool:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-1px); }
.tool .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 15px; color: #fff; }
.tool .grow { min-width: 0; flex: 1; }
.tool b { display: block; }
.tool small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tool .cat { margin-top: 8px; }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13px; color: #cfd6e4; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--mono); background: var(--accent-soft); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: 0; }
.setting-row .txt b { display: block; font-size: 13.5px; font-weight: 600; }
.setting-row .txt small { color: var(--faint); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.ok { background: var(--up); }
.status-dot.err { background: var(--down); }
.status-dot.idle { background: var(--faint); }
.status-dot.run { background: var(--warn); animation: pulse 1.4s infinite; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .g-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tape { display: none; }
}
@media (max-width: 1080px) {
  .g-main, .g-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 30; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--border); background: rgba(8, 11, 18, 0.94);
  }
  .brand, .sidebar-foot, .nav .sep { display: none; }
  .nav .lbl-long { display: none; }
  .nav .lbl-short { display: inline; }
  .nav a svg { width: 19px; height: 19px; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 0; }
  .nav a { position: relative; flex-direction: column; gap: 3px; font-size: 10px; padding: 6px 2px; flex: 1; min-width: 0; text-align: center; box-shadow: none !important; }
  .nav a.active { background: rgba(139, 92, 246, 0.14); }
  .nav .count { position: absolute; margin: -2px 0 0 18px; font-size: 9.5px; padding: 0 5px; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .search { flex: 1; min-width: 0; }
  .search kbd { display: none; }
  .live-pill .txt { display: none; }
  .view { padding: 16px 16px 96px; }
  .g-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .val { font-size: 22px; }
  .page-head h1 { font-size: 20px; }
  .drawer-body, .drawer-head { padding-left: 16px; padding-right: 16px; }
  .embed { height: 340px; }
  .toasts { bottom: 80px; right: 16px; }
}
@media (max-width: 480px) {
  .sig-stats { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .post { grid-template-columns: 30px 1fr; padding: 12px; }
  .post .avatar { width: 30px; height: 30px; }
}

.ai { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: #c4b5fd; flex: none; }
.ai svg { width: 17px; height: 17px; }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 7px; vertical-align: middle; }

/* access control */
.readonly .admin-only { display: none !important; }
.readonly .admin-disable input, .readonly .admin-disable select, .readonly .admin-disable textarea, .readonly .admin-disable .switch { pointer-events: none; opacity: 0.55; }
.login-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 20px 0; }
.login-card { width: min(400px, 100%); padding: 28px; text-align: center; }
.login-card h1 { margin: 12px 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.login-card p { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
.login-card form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.login-card .err { color: var(--down); font-size: 12.5px; min-height: 18px; }
.modal-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(2, 4, 8, 0.65); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; }

/* call chart */
.call-chart { width: 100%; height: 380px; border-radius: 12px; background: rgba(255, 255, 255, 0.015); border: 1px solid var(--border); overflow: hidden; }
.call-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; font-size: 12.5px; }
.call-legend .first { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.call-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.call-list .chip { cursor: default; }
.chart-tools { display: flex; gap: 8px; margin-left: auto; text-transform: none; letter-spacing: 0; flex-wrap: wrap; }
.chart-tools .seg button { height: 24px; padding: 0 8px; font-size: 11.5px; }

.coin-chip.on { border-color: rgba(245, 158, 11, 0.7); background: rgba(245, 158, 11, 0.1); }
button.coin-chip { font: inherit; color: inherit; }

/* leaderboard call charts */
tr.lb-row.open { background: rgba(245, 158, 11, 0.06); }
.lb-caret { display: inline-block; transition: transform 0.15s; color: var(--faint); }
tr.lb-row.open .lb-caret { transform: rotate(90deg); color: #f59e0b; }
tr.lb-expand > td { background: rgba(0, 0, 0, 0.18); padding: 14px 16px 18px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lb-card { border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px 6px; background: rgba(255, 255, 255, 0.02); min-width: 0; }
.lb-card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.lb-card-head:hover b { text-decoration: underline; }
.lb-card-head .lb-perf { margin-left: auto; }
.lb-meta { font-size: 11.5px; margin: 4px 0 6px; min-height: 16px; }
.lb-chart { height: 170px; }

/* call source header, tooltip, post modal, inline feed chart */
.call-src { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, 0.07); border: 1px solid rgba(245, 158, 11, 0.28); }
.call-src .grow { flex: 1; min-width: 0; }
.call-src-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.call-src-time { display: flex; align-items: center; gap: 6px; font: 600 12.5px var(--mono); color: #fde68a; margin-top: 3px; flex-wrap: wrap; }
.call-src-time .faint { font-family: var(--sans); font-weight: 500; }
.call-src-text { margin-top: 5px; font-size: 12.5px; color: #cfd6e4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.call-src-side { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-size: 12.5px; white-space: nowrap; }
.chart-tip { position: absolute; z-index: 5; display: none; pointer-events: none; padding: 7px 9px; border-radius: 9px; background: rgba(10, 14, 23, 0.96); border: 1px solid rgba(245, 158, 11, 0.45); font-size: 12px; box-shadow: var(--shadow); max-width: 280px; }
.chart-tip .faint { font-size: 11px; margin-top: 3px; }
.tweet-card { width: min(560px, 100%); padding: 18px; max-height: calc(100vh - 40px); overflow-y: auto; }
.tweet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.tweet-head .grow { flex: 1; min-width: 0; }
.tweet-time { display: flex; align-items: center; gap: 6px; font: 600 13px var(--mono); color: #fde68a; margin-bottom: 8px; flex-wrap: wrap; }
.tweet-time .faint { font-family: var(--sans); font-weight: 500; }
.tweet-card .post-text { font-size: 14.5px; line-height: 1.55; }
.tweet-price { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.tweet-price > div { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.tweet-price small { display: block; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 2px; }
.post-chart { margin-top: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); }
.post-chart .call-legend { margin-bottom: 8px; }
.btn.on { border-color: rgba(245, 158, 11, 0.7); color: #fde68a; }
@media (max-width: 640px) {
  .call-src { flex-wrap: wrap; }
  .call-src-side { align-items: flex-start; width: 100%; }
  .tweet-price { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- whale screener */
.whale-kpis { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
.whale-gauge .gauge svg { max-width: 190px; }
.whale-gauge .gauge .v { font-size: 26px; margin-top: -40px; }
.whale-gauge .kindbars .kb { grid-template-columns: 86px 1fr 34px; }
.flowbar { height: 8px; border-radius: 8px; background: var(--down); overflow: hidden; opacity: 0.85; }
.flowbar i { display: block; height: 100%; background: var(--up); }
.netbar { height: 5px; border-radius: 5px; background: rgba(148, 163, 184, 0.1); overflow: hidden; margin-bottom: 3px; }
.netbar i { display: block; height: 100%; border-radius: 5px; }
.netbar i.pos { background: var(--up); }
.netbar i.neg { background: var(--down); }
.whale-feed { max-height: 720px; overflow-y: auto; }
.whale-ev { display: flex; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.whale-ev:last-child { border-bottom: 0; }
.whale-ev-icon { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: rgba(148, 163, 184, 0.1); color: var(--muted); }
.whale-ev-icon.ok { background: var(--up-soft); color: var(--up); }
.whale-ev-icon.bad { background: var(--down-soft); color: var(--down); }
.whale-ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.whale-ev-top b.mono { font-size: 14.5px; }
.whale-ev-time { margin-left: auto; font-size: 12px; }
.whale-ev-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; }
.whale-ev-sub a { display: inline-flex; align-items: center; gap: 3px; }
.whale-ev-sub a svg { width: 11px; height: 11px; }
.whale-ev-note { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.wallet-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font: 500 11.5px var(--mono); background: rgba(56, 189, 248, 0.1); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.25); cursor: pointer; white-space: nowrap; }
.wallet-tag:hover { background: rgba(56, 189, 248, 0.18); }
.whale-pill { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 99px; font: 600 11.5px var(--mono); white-space: nowrap; }
.whale-pill.up { background: var(--up-soft); }
.whale-pill.down { background: var(--down-soft); }
.whale-sum { width: 100%; font-size: 12px; padding: 6px 10px; border-radius: 9px; background: rgba(56, 189, 248, 0.07); border: 1px solid rgba(56, 189, 248, 0.18); }
@media (max-width: 1080px) {
  .whale-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .whale-kpis { grid-template-columns: minmax(0, 1fr); }
  .whale-ev { padding: 10px 12px; }
}
#drawerRest { display: contents; }

/* ---------------------------------------------------------------- early-caller discovery */
.disc-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; }
.disc-prog { width: 160px; height: 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.disc-prog i { display: block; height: 100%; background: var(--accent, #8b5cf6); }
.disc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.disc-cand { align-items: flex-start; }
.disc-cand .chip { font-size: 11px; }
@media (max-width: 1080px) { .disc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- entry signals */
.ent-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ent-kpi .val.up { color: var(--up); }
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.ent-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.ent-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.ent-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #38bdf8; }
.ent-card.grade-A::before { background: linear-gradient(180deg, #22c55e, #16a34a); }
.ent-head { display: flex; gap: 12px; align-items: center; }
.ent-title { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ent-title b { font-size: 18px; letter-spacing: -0.01em; }
.ent-sub { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.ent-grade { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font: 700 11.5px var(--mono); letter-spacing: .02em; background: rgba(56, 189, 248, .14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, .35); white-space: nowrap; }
.ent-grade.g-A { background: rgba(34, 197, 94, .15); color: #86efac; border-color: rgba(34, 197, 94, .4); }
.ent-grade.g-C { background: rgba(148, 163, 184, .12); color: var(--muted); border-color: var(--border); }
.ent-grade.sm { padding: 0 7px; font-size: 10.5px; }
.ent-ringbox { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ent-ring { --v: 0; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--up) calc(var(--v) * 1%), rgba(148, 163, 184, .13) 0); position: relative; }
.ent-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--card, #0f1522); }
.ent-ring > div { position: relative; z-index: 1; text-align: center; line-height: 1; }
.ent-ring b { font: 700 17px var(--mono); }
.ent-ring small { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.ent-mult { font-size: 10.5px; color: var(--up); font-weight: 600; white-space: nowrap; }
.ent-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ent-prices > div { background: rgba(0, 0, 0, .22); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ent-prices small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
.ent-prices b { font-size: 14px; }
.ent-prices span { font-size: 11.5px; }
.up.strong { color: #4ade80; font-weight: 700; }
.ent-prog { position: relative; height: 8px; border-radius: 8px; background: rgba(148, 163, 184, .12); margin: 6px 0 14px; }
.ent-prog .peak { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, #16a34a, #4ade80); }
.ent-prog .mk { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.ent-prog .mk em { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); font: 600 9.5px var(--mono); font-style: normal; color: var(--faint); white-space: nowrap; }
.ent-prog .now { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.ent-spark .spark { width: 100%; height: 54px; display: block; }
.ent-summary { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); padding: 10px 12px; border-radius: 10px; background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(56, 189, 248, .06)); border: 1px solid rgba(34, 197, 94, .18); }
.ent-reasons { display: flex; flex-direction: column; gap: 6px; }
.ent-r { display: flex; align-items: flex-start; gap: 8px; font-size: 12.8px; line-height: 1.45; }
.ent-r svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ent-r.ok svg { color: var(--up); }
.ent-r.risk svg { color: var(--warn); }
.ent-r.risk span { color: var(--muted); }
.ent-r span { flex: 1; }
.ent-r em { font: 600 11px var(--mono); font-style: normal; color: var(--faint); padding: 1px 6px; border-radius: 6px; background: rgba(148, 163, 184, .1); }
.ent-r.ok em { color: #86efac; background: rgba(34, 197, 94, .1); }
.ent-foot { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; }
.ent-foot .faint { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; margin: 18px 0 0; }
.ent-disclaimer svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.ent-hist-top, .ent-model-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ent-gstat { display: grid; grid-template-columns: 36px repeat(4, minmax(0, 1fr)); align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); }
.ent-gstat b { font: 700 16px var(--mono); display: block; }
.ent-gstat small { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.ent-bar { height: 5px; border-radius: 5px; background: rgba(148, 163, 184, .1); overflow: hidden; margin-bottom: 3px; }
.ent-bar i { display: block; height: 100%; background: #38bdf8; border-radius: 5px; }
.ent-bar i.win { background: var(--up); }
.ent-mstats, .ent-bt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ent-mstats > div, .ent-bt > div { padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.ent-bt > div.hl { border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .07); }
.ent-mstats small, .ent-bt small { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.ent-mstats b, .ent-bt b { font: 700 20px var(--mono); }
.ent-mstats span, .ent-bt span { font-size: 11.5px; }
.ent-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.ent-feat { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, .18); border: 1px solid var(--border); }
.ent-feat-h { margin-bottom: 8px; font-size: 13px; }
.ent-bin { display: grid; grid-template-columns: 112px 1fr 50px 34px; gap: 8px; align-items: center; font-size: 12px; padding: 3px 0; }
.ent-bin .lbl { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-bin .bar { position: relative; height: 7px; border-radius: 7px; background: rgba(148, 163, 184, .1); }
.ent-bin .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.ent-bin .bar i.pos { background: linear-gradient(90deg, #16a34a, #4ade80); }
.ent-bin .bar i.neg { background: #f43f5e; opacity: .75; }
.ent-bin .bar .one { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.ent-bin b { text-align: right; }
.ent-bin .n { text-align: right; font-size: 10.5px; }
@media (max-width: 1280px) { .ent-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .ent-hist-top, .ent-model-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ent-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ent-ring { width: 56px; height: 56px; }
  .ent-bin { grid-template-columns: 90px 1fr 44px 28px; }
}
.ent-head > .grow, .ent-foot > .grow { flex: 1; min-width: 0; }
.wallet-pair { display: inline-flex; align-items: center; gap: 2px; }
.wallet-tag { text-decoration: none; }
.wallet-tag svg { width: 11px; height: 11px; opacity: .7; }
.wallet-info { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; flex: none; }
.wallet-info:hover { background: rgba(148, 163, 184, .12); color: var(--text); }
.wallet-info svg { width: 13px; height: 13px; }
.links .arkham-btn { background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .4); color: #7dd3fc; font-weight: 600; }
.toast { position: relative; padding-right: 38px; }
.toast .tb { min-width: 0; flex: 1; }
.toast-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--faint); cursor: pointer; }
.toast-x:hover { background: rgba(148, 163, 184, 0.14); color: var(--text); }
.toast-x svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- top 10 majors */
.mj-market { display: flex; gap: 10px; flex-wrap: wrap; }
.mj-market > div { padding: 8px 12px; border-radius: 12px; background: var(--card, rgba(15, 21, 34, .9)); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; min-width: 120px; font-size: 12px; }
.mj-market small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
.mj-market b { font-size: 16px; }
.mj-table tr.sel td { background: rgba(139, 92, 246, .1); }
.mj-table tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent, #8b5cf6); }
.bias-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.bias-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.bias-pill b { font-family: var(--mono); }
.mj-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mj-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.mj-chart-card .card-head h2 { display: flex; align-items: center; gap: 8px; }
.mj-pricebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 0 16px 8px; font-size: 12.5px; }
.mj-price { font-size: 24px; letter-spacing: -.02em; }
.mj-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--faint); font-size: 11.5px; }
.mj-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 6px; }
.mj-chart { height: 440px; position: relative; }
.mj-kv { display: grid; grid-template-columns: 120px auto 1fr; gap: 10px; align-items: baseline; font-size: 12.5px; }
.mj-kv > span:first-child { color: var(--muted); }
.mj-kv > span:last-child { text-align: right; font-size: 12px; }
.mj-meter { position: relative; height: 7px; border-radius: 7px; background: rgba(148, 163, 184, .12); margin-top: 6px; overflow: visible; }
.mj-meter .z { position: absolute; top: 0; bottom: 0; border-radius: 7px; }
.mj-meter i { position: absolute; top: -4px; width: 4px; height: 15px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .45); }
.mj-split { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 6px; background: rgba(148, 163, 184, .12); flex: 1; }
.mj-split .l { background: var(--up); }
.mj-split .s { background: var(--down); }
.mj-sent { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.mj-sent .mj-split { margin-top: 0; }
.mj-posts { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.mj-post { display: flex; gap: 9px; padding: 8px 6px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 12.5px; }
a.mj-post:hover { background: rgba(148, 163, 184, .07); }
.mj-post > svg { width: 18px; height: 18px; flex: none; color: #7dd3fc; margin-top: 2px; }
.mj-post-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mj-post-h a { display: inline-flex; align-items: center; gap: 3px; }
.mj-post-h svg { width: 11px; height: 11px; }
.mj-post-t { color: var(--muted); margin-top: 3px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mj-whale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mj-whale-grid > div { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.mj-whale-grid small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
.mj-whale-grid b { font-size: 15px; }
@media (max-width: 1080px) { .mj-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .mj-chart { height: 340px; } .mj-kv { grid-template-columns: 96px auto 1fr; } .mj-legend { margin-left: 0; } }
.mj-top .kindbars .kb { grid-template-columns: minmax(130px, 38%) 1fr 40px; }
.mj-strip-card { margin-bottom: 14px; }
.mj-strip-card .card-head a.sub { text-decoration: none; }
.mj-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 4px 16px 16px; }
.mj-mini { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border); text-align: left; color: inherit; font: inherit; cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s; }
button.mj-mini:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.mj-mini-h { display: flex; align-items: center; gap: 7px; }
.mj-mini-h b { font-size: 14px; }
.mj-mini-h .faint { margin-left: auto; font-size: 11px; }
.mj-mini-p { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; }
.mj-mini-p b { font-size: 14px; }
.mj-mini .spark { width: 100%; height: 26px; display: block; }
.mj-mini-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; }
.mj-mini-f .bias-pill { font-size: 11px; padding: 1px 7px; }
@media (max-width: 1280px) { .mj-strip { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 640px) { .mj-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; } .mj-mini { flex: 0 0 160px; scroll-snap-align: start; } }
.listed-tag { color: #7dd3fc; font-weight: 600; }

/* whale coin table search */
.wh-coins-head { flex-wrap: wrap; }
.wh-coins-head h2 { flex: 0 0 auto; }
.wh-search { position: relative; flex: 1 1 260px; max-width: 380px; margin: 0 auto 0 8px; }
.wh-search input {
  width: 100%; height: 34px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); outline: none;
  color: inherit; font: inherit; font-size: 13px; transition: border-color 0.15s, background 0.15s;
}
.wh-search input:focus { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.05); }
.wh-search .i { position: absolute; left: 11px; top: 9px; color: var(--faint); pointer-events: none; }
.wh-search .i svg { width: 15px; height: 15px; }
.wh-sum { margin: 12px 16px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.wh-sum-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.wh-sum-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.wh-sum-cols div { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; }
.wh-sum-cols small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.wh-sum-cols b { font-size: 16px; }
@media (max-width: 640px) {
  .wh-search { flex-basis: 100%; max-width: none; margin: 4px 0 0; order: 3; }
  .wh-sum-cols b { font-size: 14px; }
}

/* ---------------------------------------------------------------- team brief: modes, narratives, AI, watchlist */
.mode-switch { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.3); gap: 2px; }
.mode-switch button { border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; border-radius: 9px; height: 30px; padding: 0 14px; font-size: 13px; }
.mode-switch button:hover { color: var(--text); }
.mode-switch button.on { color: #fff; background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35); }
.mode-switch button[data-mode="dex"].on { background: linear-gradient(135deg, #0ea5e9, #0369a1); box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35); }
.mode-switch.big button { height: 38px; padding: 0 20px; font-size: 14px; }
.mode-switch.compact button { height: 26px; padding: 0 10px; font-size: 12px; }
.dash-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; }
.scope-seg button { min-width: 64px; }
.seg.xs button { height: 22px; padding: 0 8px; font-size: 11.5px; }
.select.xs { height: 28px; font-size: 12.5px; padding: 0 8px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 4px; }

.star-btn { border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; border-radius: 6px; transition: color 0.15s, transform 0.15s; }
.star-btn:hover { color: #fbbf24; transform: scale(1.12); }
.star-btn.on { color: #fbbf24; text-shadow: 0 0 10px rgba(251, 191, 36, 0.45); }
.star-btn.big { font-size: 22px; margin-left: auto; }
.star-btn.card { font-size: 15px; margin-left: auto; margin-right: 4px; }
.star-btn.mini { font-size: 12px; padding: 0 0 0 2px; }
.star-mini { color: #fbbf24; font-size: 11px; }
tr.wl-row td { background: rgba(251, 191, 36, 0.035); }
.sent-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sent-badge.bull { color: var(--up); background: var(--up-soft); }
.sent-badge.bear { color: var(--down); background: var(--down-soft); }
.sent-badge.neu { color: var(--muted); background: rgba(148, 163, 184, 0.12); }
.ta-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; color: #c4b5fd; background: rgba(139, 92, 246, 0.16); border: 1px solid rgba(139, 92, 246, 0.35); }

/* AI news cards */
.aifeed { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.aifeed.big { padding: 0; }
.aipost { border: 1px solid var(--border); background: var(--panel-2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.aifeed.big .aipost { background: var(--panel); }
.aipost.new { animation: flashIn 1.2s ease; border-color: rgba(139, 92, 246, 0.5); }
.aipost-head { display: flex; align-items: center; gap: 7px; font-size: 12.5px; min-width: 0; }
.aipost-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.aipost-head .h { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aipost-head .t { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.aipost-coins { display: flex; flex-wrap: wrap; gap: 6px; }
.aipost-sum { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.aipost-foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.aipost-foot svg { width: 13px; height: 13px; vertical-align: -2px; }
.ai-wait { font-size: 12px; }
@keyframes flashIn { from { background: rgba(139, 92, 246, 0.14); } to { background: var(--panel-2); } }
.grow { flex: 1; }

/* narratives */
.nv-list { display: flex; flex-direction: column; gap: 6px; }
.nv-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 58px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }
.nv-list.full .nv-row { grid-template-columns: 26px minmax(0, 1.2fr) minmax(0, 1.4fr) auto 64px; }
.nv-row:hover { border-color: rgba(139, 92, 246, 0.45); background: var(--hover); }
.nv-rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.14); color: #c4b5fd; font-weight: 800; font-size: 12.5px; }
.nv-main { min-width: 0; display: flex; flex-direction: column; }
.nv-main b { font-size: 14px; }
.nv-main small { color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv-parts { display: flex; flex-direction: column; gap: 4px; }
.nv-part { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.nv-part .bar { height: 6px; border-radius: 6px; background: rgba(148, 163, 184, 0.12); overflow: hidden; }
.nv-part .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #22d3ee); border-radius: 6px; }
.nv-stat { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; white-space: nowrap; }
.nv-stat small { color: var(--faint); font-size: 11px; }
.nv-hype { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; padding: 6px 0; background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.nv-hype b { font-size: 18px; color: var(--c); line-height: 1.1; }
.nv-hype small { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.nv-hype.inline { display: inline-flex; flex-direction: row; gap: 6px; padding: 2px 10px; vertical-align: middle; }
.nv-hype.inline b { font-size: 16px; }
.nv-note { font-size: 11.5px; margin: 10px 0 0; }
.nv-chips .chip.on { color: var(--text); border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.18); }
#catChips .chip.on { color: var(--text); border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.18); }

/* AI assistant */
.ai-card { background: linear-gradient(160deg, rgba(139, 92, 246, 0.09), rgba(34, 211, 238, 0.03) 60%), var(--panel); border-color: rgba(139, 92, 246, 0.25); }
.ai-pick .coin-chip.on { border-color: rgba(139, 92, 246, 0.8); background: rgba(139, 92, 246, 0.18); }
.ai-search { position: relative; margin: 10px 0 12px; }
.ai-search .input { width: 100%; }
.ai-search .search-results { top: 40px; }
.ai-loading { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 18px 0; }
.ai-loading svg { width: 16px; height: 16px; color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.ai-brief { display: flex; flex-direction: column; gap: 12px; }
.ai-top { display: flex; align-items: center; gap: 10px; }
.ai-top small { display: block; color: var(--faint); font-size: 11.5px; }
.ai-pair { font-size: 16px; }
.ai-bias { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 6px 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.ai-bias b { font-size: 22px; color: var(--c); line-height: 1.1; }
.ai-bias small { font-size: 11px; color: var(--c); font-weight: 700; white-space: nowrap; }
.ai-text { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); }
.ai-text svg { width: 16px; height: 16px; flex: none; color: var(--accent); margin-top: 2px; }
.ai-text p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.ai-reasons { display: flex; flex-direction: column; gap: 4px; }
.ai-r { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ai-r span { flex: none; width: 12px; color: var(--faint); }
.ai-r.pos span { color: var(--up); }
.ai-r.neg span { color: var(--down); }
.ai-secs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-sec { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-sec-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.ai-sec-h svg { width: 13px; height: 13px; }
.ai-kv { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ai-news { display: flex; flex-direction: column; gap: 6px; }
.ai-n { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); }
.ai-n:hover { border-color: var(--border-strong); }
.ai-n .faint { font-size: 11px; }
.ai-disc { font-size: 11px; margin: 0; }

/* sidebar subscription card */
.pro-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid rgba(139, 92, 246, 0.35); background: radial-gradient(120% 120% at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%), linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.05)); color: var(--text); }
.pro-card b { font-size: 13.5px; }
.pro-card p { margin: 0 0 4px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.pro-card .btn { justify-content: center; }
.pro-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(139, 92, 246, 0.3); }
.pro-ic svg { width: 17px; height: 17px; }
.pro-tag { display: inline-block; padding: 0 6px; border-radius: 6px; font-weight: 800; font-size: 10.5px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.foot-access { justify-content: center !important; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 820px; }
.plan { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.hot { border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), var(--shadow); }
.plan h2 { margin: 0; font-size: 18px; }
.plan-price { font-size: 26px; font-weight: 800; }
.plan ul { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; color: var(--up); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-tag { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; }

/* coin drawer whale summary */
.whale-sum-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.whale-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 4px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); font-size: 12px; }
.whale-legend .wl-title { font-weight: 700; }
.whale-legend .wl-pill { padding: 2px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.whale-legend .wl-pill.up { color: var(--up); background: var(--up-soft); }
.whale-legend .wl-pill.down { color: var(--down); background: var(--down-soft); }
.whale-legend .wl-net { font-weight: 700; white-space: nowrap; }
.whale-legend .flowbar { flex: 1 1 120px; min-width: 90px; height: 6px; }
.whale-legend .faint { flex-basis: 100%; font-size: 11px; }
.ws-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ws-top small { display: block; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ws-top b { font-size: 20px; }
.ws-verdict { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(148, 163, 184, 0.12); color: var(--muted); }
.ws-verdict.up { color: var(--up); background: var(--up-soft); }
.ws-verdict.down { color: var(--down); background: var(--down-soft); }
.flowbar.big { height: 10px; }
.ws-legend { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; margin-top: -4px; }
.ws-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ws-col { border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.ws-col.buy { background: var(--up-soft); border: 1px solid rgba(34, 197, 94, 0.25); }
.ws-col.sell { background: var(--down-soft); border: 1px solid rgba(244, 63, 94, 0.25); }
.ws-col small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); }
.ws-col b { font-size: 17px; }
.ws-big { font-size: 11.5px; margin-top: 2px; }
.ws-trades { margin-top: 10px; }
.ws-trades summary { cursor: pointer; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.status-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.status-grid small { color: var(--faint); font-size: 11px; }
.status-grid .chip { align-self: flex-start; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 16px; }
.mobile-pro { display: none; }

@media (max-width: 1080px) {
  .ai-secs { grid-template-columns: minmax(0, 1fr); }
  .nv-list.full .nv-row { grid-template-columns: 26px minmax(0, 1fr) auto 58px; }
  .nv-list.full .nv-parts { display: none; }
}
@media (max-width: 900px) {
  .nav-label { display: none; }
  #topMode .mode-switch button { padding: 0 8px; font-size: 11.5px; }
  .dash-mode { justify-content: flex-start; width: 100%; }
  .mobile-pro { display: block; margin-top: 16px; }
}
@media (max-width: 480px) {
  .nv-row { grid-template-columns: 22px minmax(0, 1fr) 52px; gap: 8px; }
  .nv-row .nv-stat { display: none; }
  .ws-cols { grid-template-columns: minmax(0, 1fr); }
  .ai-top { flex-wrap: wrap; }
  #topMode { display: none; }
}

/* ---------------------------------------------------------------- Tahap 2: readability for users 30+ (bigger text) */
body { font-size: 15px; }
table.t { font-size: 14px; }
.card-head h2, .card-head h3 { font-size: 15.5px; }
.card-head .sub { font-size: 12.5px; }
.coin-cell b { font-size: 14.5px; }
.coin-cell small, .list .li small, .li small { font-size: 12.5px; }
.btn { font-size: 13.5px; }
.btn.xs { font-size: 12.5px; }
.chip { font-size: 12.5px; }
.seg button { font-size: 13.5px; height: 30px; }
.page-head h1 { font-size: 26px; }
.page-head p { font-size: 14.5px; line-height: 1.6; max-width: 880px; }
.nav a { font-size: 14px; }
.faint { color: #6b7589; }
.block { display: block; }

/* header: search · mode switch · bell · plan · profile */
.topbar { gap: 16px; }
.topbar .search { flex: 1 1 420px; max-width: 560px; }
.topbar .search input { height: 42px; font-size: 14px; }
.topbar .search kbd { top: 11px; }
.top-mode { flex: 0 0 auto; margin: 0 auto; }
.search-results .item.topic { color: var(--muted); border-top: 1px solid var(--border); }
.search-results .item.topic svg { width: 16px; height: 16px; }
.plan-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-decoration: none; border: 1px solid var(--border-strong); color: var(--muted); }
.plan-badge.pro { color: #fff; background: linear-gradient(135deg, #8b5cf6, #22d3ee); border-color: transparent; }
.plan-badge.vvip { color: #1a1300; background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: transparent; }
.plan-badge.admin { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.12); }
.profile-btn { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 99px; text-decoration: none; color: var(--text); border: 1px solid transparent; }
.profile-btn:hover { border-color: var(--border-strong); background: var(--hover); }
.pf-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; color: #fff; background: linear-gradient(135deg, #22c55e, #0ea5e9); flex: none; }
.pf-av.lg { width: 56px; height: 56px; font-size: 18px; }
.pf-txt { display: flex; flex-direction: column; line-height: 1.2; }
.pf-txt b { font-size: 13.5px; white-space: nowrap; }
.pf-txt small { font-size: 11.5px; color: var(--muted); }
.pf-big { display: flex; align-items: center; gap: 14px; }
.pf-big b { display: block; font-size: 17px; }
.pf-big small { color: var(--muted); }
.pf-big .plan-badge { margin-left: auto; }

/* sidebar groups */
.nav-label { padding: 6px 12px 4px; }
.nav a.soon { opacity: 0.6; }
.soon-tag { margin-left: auto; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); }
h1 .soon-tag { margin-left: 8px; font-size: 12px; vertical-align: middle; }

/* toasts */
.toast-closeall { align-self: flex-end; border: 1px solid var(--border-strong); background: rgba(14, 19, 30, 0.96); color: var(--text); border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.toast-closeall:hover { border-color: rgba(139, 92, 246, 0.6); }

/* dashboard */
.home-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.hero { padding: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 55%), radial-gradient(100% 120% at 100% 100%, rgba(14, 165, 233, 0.14), transparent 55%), var(--panel); border-color: rgba(139, 92, 246, 0.3); }
.hero-date { color: var(--muted); font-size: 13.5px; }
.hero h1 { margin: 4px 0 14px; font-size: 26px; letter-spacing: -0.01em; }
.ask-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.ask-label svg { width: 17px; height: 17px; color: #c4b5fd; }
.ask-label .faint { font-weight: 500; font-size: 12.5px; }
.ask-form { display: flex; gap: 8px; }
.ask-form .input { flex: 1; height: 46px; font-size: 15px; }
.ask-form .btn { height: 46px; padding: 0 18px; font-size: 14.5px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-chips .chip { height: 30px; font-size: 13px; }
.ask-out { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.ask-q { color: var(--muted); font-size: 13.5px; font-style: italic; }
.ask-a { margin: 0; font-size: 15.5px; line-height: 1.65; }
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; }
.ask-foot details { flex: 1 1 100%; order: 3; }
.ask-foot summary { cursor: pointer; color: var(--muted); }
.ask-foot ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.ask-foot .btn { margin-left: auto; }
.w-card { display: flex; flex-direction: column; min-width: 0; }
.w-body { flex: 1; }
.w-note { font-size: 12px; margin: 10px 0 0; }
.w-note svg { width: 13px; height: 13px; vertical-align: -2px; }
.dom-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dom-row small { display: block; color: var(--muted); font-size: 12.5px; }
.dom-row b { font-size: 22px; }
.dom-ch { font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.dom-row .spark { width: 110px; height: 30px; }
.fng { position: relative; text-align: center; }
.fng svg { width: 100%; max-width: 190px; }
.fng-v { position: absolute; left: 0; right: 0; top: 46%; font-size: 30px; font-weight: 800; }
.fng-l { font-weight: 700; margin-top: -4px; }
.fng-legend { display: grid; gap: 3px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.fng-legend span { display: flex; align-items: center; gap: 7px; }
.fng-legend i { width: 8px; height: 8px; border-radius: 50%; }
.fng-legend b { margin-left: auto; font-weight: 600; font-family: var(--mono); font-size: 11.5px; }
.tick-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.tick { padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, transform 0.15s; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tick:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-1px); }
.tick.on { border-color: rgba(139, 92, 246, 0.8); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3); }
.tick-h { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tick-h b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick-h .star-btn { margin-left: auto; }
.tick-p { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 15px; font-weight: 700; }
.tick .spark { width: 100%; height: 30px; }
.home-chart { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.main-chart { display: flex; flex-direction: column; padding-bottom: 12px; }
.mc-title { display: flex; align-items: center; gap: 10px; }
.mc-title b { font-size: 17px; }
.mc-price { display: flex; align-items: baseline; gap: 8px; font-size: 22px; font-weight: 800; }
.mc-price .faint { font-size: 12.5px; font-weight: 500; }
.mc-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 16px 0; }
.mc-chart { height: 330px; margin: 8px 8px 0; }
.follow-btn.on { color: #fbbf24; border-color: rgba(251, 191, 36, 0.5); }
.qs-list { display: flex; flex-direction: column; gap: 10px; }
.qs-list.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.qs { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel-2); }
.qs-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; }
.qs small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.qs-card { padding: 12px; }
.qs-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.qs-badge.up { color: var(--up); background: var(--up-soft); }
.qs-badge.down { color: var(--down); background: var(--down-soft); }
.qs-badge.warn { color: var(--warn); background: var(--warn-soft); }
.qs-badge.neutral { color: var(--muted); background: rgba(148, 163, 184, 0.12); }
.home-3 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.home-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.w-tabs { display: flex; gap: 4px; padding: 10px 16px 0; overflow-x: auto; }
.w-tabs button { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 99px; height: 28px; padding: 0 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.w-tabs button.on { color: #fff; background: rgba(139, 92, 246, 0.25); border-color: rgba(139, 92, 246, 0.55); }
.mini-news { display: flex; flex-direction: column; gap: 8px; }
.mn { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.mn:hover { border-color: var(--border-strong); background: var(--hover); }
.mn p { margin: 0; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-top { display: flex; align-items: center; gap: 5px; }
.mn-coin { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.mn small { font-size: 12px; }
.risk-list { display: flex; flex-direction: column; }
.rk { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); cursor: help; }
.rk-l { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.rk-l svg { width: 13px; height: 13px; opacity: 0.6; }
.rk-v { font-size: 13.5px; }
.rank-list { display: flex; flex-direction: column; gap: 4px; }
.rl { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); cursor: pointer; }
.rl:hover { background: var(--hover); }
.rl-n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.w-table td, .w-table th { padding: 8px 10px; }
.ev-list, .al-list { display: flex; flex-direction: column; gap: 6px; }
.ev { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev .grow b { display: block; font-size: 14px; }
.ev .grow small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ev-date { width: 44px; flex: none; text-align: center; border-radius: 10px; padding: 4px 0; background: rgba(139, 92, 246, 0.12); }
.ev-date b { display: block; font-size: 17px; line-height: 1.1; }
.ev-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.ev.big { padding: 12px 6px; }
.ev-time { width: 54px; flex: none; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.ev-day { padding: 6px 14px 4px; margin-bottom: 12px; }
.ev-day-h { font-weight: 800; font-size: 14.5px; padding: 8px 0 4px; border-bottom: 1px solid var(--border); }
.al { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--border); }
.al .grow b { display: block; font-size: 13.5px; }
.al .grow small { display: block; color: var(--muted); font-size: 12.5px; }
.al-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: #c4b5fd; }
.al-ic svg { width: 16px; height: 16px; }
.al-ic.whale, .al-ic.whale_kol { background: rgba(14, 165, 233, 0.14); color: #38bdf8; }
.al-ic.price { background: var(--up-soft); color: var(--up); }
.al-ic.unlock { background: var(--warn-soft); color: var(--warn); }
.al-ic.funding { background: var(--down-soft); color: var(--down); }
.empty-state.small { padding: 18px 10px; }
.empty-state.small h3 { font-size: 14.5px; }

/* coin ranking, risk monitor, events */
.rank-t td { padding-top: 10px; padding-bottom: 10px; }
.rm-level { display: flex; align-items: center; gap: 18px; padding: 16px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.rm-level small { display: block; color: var(--muted); font-size: 12.5px; }
.rm-level b { font-size: 26px; }
.rm-level p { margin: 0; flex: 1; min-width: 240px; color: var(--muted); }
.rm-level.up b { color: var(--up); } .rm-level.warn b { color: var(--warn); } .rm-level.down b { color: var(--down); }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 10px; }
.rm-card { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.rm-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-h b { font-size: 15px; }
.rm-v { font-size: 24px; font-weight: 800; margin-top: 4px; }
.rm-note { margin: 8px 0 0; font-size: 14px; }
.rm-tip { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rm-tip svg { width: 13px; height: 13px; vertical-align: -2px; }
.cal { padding: 14px; }
.cal-h { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--faint); padding-bottom: 4px; }
.cal-cell { min-height: 92px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 6px; display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer; color: var(--text); font: inherit; overflow: hidden; }
.cal-cell.empty { background: transparent; border-style: dashed; cursor: default; }
.cal-cell.today { border-color: rgba(139, 92, 246, 0.7); }
.cal-cell.sel { box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.6); }
.cal-d { font-weight: 800; font-size: 13px; }
.cal-ev { font-size: 11px; padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.down { background: var(--down-soft); color: #fda4af; } .cal-ev.warn { background: var(--warn-soft); color: #fde68a; } .cal-ev.neutral { background: rgba(148, 163, 184, 0.12); color: var(--muted); }
.cal-more { font-size: 11px; }

/* coin detail fundamentals */
.fund { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.fund h4 { margin: 10px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); }
.fund-desc p { margin: 0; font-size: 14px; line-height: 1.65; color: #d4dbe8; white-space: pre-line; }
.fund-links, .fund-tags, .fund-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--border-strong); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600; }
.fund-link:hover { border-color: rgba(139, 92, 246, 0.6); }
.fund-link svg { width: 14px; height: 14px; }
.fund-link.off { color: var(--faint); border-style: dashed; }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.fund-grid > div { padding: 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); }
.fund-grid small { display: block; color: var(--muted); font-size: 12px; }
.fund-grid b { font-size: 14.5px; }
.fund-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.fund-team > div { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); }
.fund-team b { display: block; font-size: 13.5px; }
.fund-team small { color: var(--muted); font-size: 12px; }
.fund-unlock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fund-unlock > div { padding: 10px; border-radius: 10px; background: var(--warn-soft); border: 1px solid rgba(245, 158, 11, 0.25); }
.fund-unlock small { display: block; font-size: 12px; color: var(--muted); }
.fund-unlock b { font-size: 15px; }
.fund-ex .chip { text-decoration: none; }
.fund-src { font-size: 12px; margin: 6px 0 0; }

@media (max-width: 1280px) {
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { grid-column: 1 / -1; }
  .tick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-3 > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .home-chart, .home-2 { grid-template-columns: minmax(0, 1fr); }
  .pf-txt { display: none; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; }
  .topbar .search { order: 1; flex: 1 1 100%; max-width: none; }
  .top-mode { order: 2; margin: 0; }
  .top-actions { order: 3; margin-left: auto; }
  .topbar .search kbd { display: none; }
  .home-top, .home-3 { grid-template-columns: minmax(0, 1fr); }
  .tick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 21px; }
  .mc-chart { height: 260px; }
  .nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav a { flex: 0 0 66px; }
  .nav .soon-tag { display: none; }
  .cal-cell { min-height: 60px; }
  .cal-ev { display: none; }
  .cal-cell:has(.cal-ev)::after { content: '•'; color: var(--accent); font-size: 18px; line-height: 1; }
  .fund-unlock { grid-template-columns: minmax(0, 1fr); }
  .plan-badge { display: none; }
}

.topbar .search input { padding-right: 72px; text-overflow: ellipsis; }

/* Coin Ranking: every column header sorts */
.rank-t th.sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color 0.15s; }
.rank-t th.sortable:hover, .rank-t th.sortable:focus-visible { color: var(--text); outline: none; }
.rank-t th.sortable.on { color: #c4b5fd; }
.rank-t .sort-ic { font-size: 12px; margin-left: 2px; }
.rank-t .sort-ic.idle { opacity: 0.35; }
.rank-t th.sortable:hover .sort-ic.idle { opacity: 0.8; }
#rkSort { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
#rkSort button { white-space: nowrap; flex-shrink: 0; }
table.t.rank-t th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.rank-t td small { display: block; font-size: 11.5px; margin-top: 2px; white-space: nowrap; }
.rank-t .th-ch { opacity: 0.75; border-bottom: 1px dotted currentColor; }
.rank-t .th-ch:hover, .rank-t .th-ch.on { opacity: 1; color: #c4b5fd; }
.rank-t .rsi-v { display: inline-block; min-width: 46px; text-align: center; padding: 2px 7px; border-radius: 6px; font-family: var(--mono, ui-monospace, monospace); background: var(--surface-2, rgba(148, 163, 184, 0.12)); }
.rank-t .rsi-v.hot { background: rgba(244, 63, 94, 0.16); color: #fb7185; }
.rank-t .rsi-v.cold { background: rgba(34, 197, 94, 0.16); color: #4ade80; }

.ent-adx { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 12.5px; margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; background: var(--panel-2, rgba(148, 163, 184, 0.08)); }
.ent-adx b { font-family: var(--mono); font-weight: 600; }
