/* ── Variables ────────────────────────────────────────────────────────────────── */
:root {
  --bg:     #050810;
  --panel:  #0a0f1e;
  --border: #1a2540;
  --green:  #00ff88;
  --red:    #ff3355;
  --white:  #e8eaf6;
  --gray:   #4a5568;
  --yellow: #ffd700;
  --orange: #ff8c00;
  --accent: #0af;
  --glow-green:  0 0 12px #00ff8866;
  --glow-red:    0 0 12px #ff335566;
  --glow-orange: 0 0 14px #ff8c0088;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  background-image:
    radial-gradient(ellipse at 20% 50%, #0a1628 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, #080d1a 0%, transparent 50%);
}

/* ── Header ───────────────────────────────────────────────────────────────────── */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.title {
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 0 20px #0aafffff;
}

/* ── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: var(--bg); }

/* ── Scanner filter buttons ───────────────────────────────────────────────────── */
.scan-filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  white-space: nowrap;
}
.scan-filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.scan-filter-active     { border-color: var(--accent) !important; color: var(--accent) !important; }

/* ── Scanner header / meta ────────────────────────────────────────────────────── */
.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.scanner-title {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
}
.scanner-meta { font-size: 0.68rem; color: var(--gray); letter-spacing: 0.08em; }

/* ── Scanner table ────────────────────────────────────────────────────────────── */
.scanner-table { width: 100%; border-collapse: collapse; }

.scanner-table thead tr {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.scanner-table thead th {
  padding: 6px 10px;
  font-size: 0.65rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  font-weight: normal;
  white-space: nowrap;
}

.scanner-table tbody tr {
  border-bottom: 1px solid #0d1525;
  cursor: pointer;
  transition: background 0.15s;
}
.scanner-table tbody tr:hover { background: #0d1a2e; }

.scanner-table td {
  padding: 5px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ── Signal badges ────────────────────────────────────────────────────────────── */
.sig-buy   { color: #00e676; font-weight: 700; letter-spacing: 0.08em; }
.sig-watch { color: #ffdd00; font-weight: 700; letter-spacing: 0.08em; }
.sig-neu   { color: #8b949e; font-weight: 700; letter-spacing: 0.08em; }
.sig-sell  { color: #ff5252; font-weight: 700; letter-spacing: 0.08em; }

/* ── Ticker tags (NEW / CONT / MVR) ──────────────────────────────────────────── */
.ticker-tag {
  font-size: 0.55rem;
  padding: 1px 4px;
  margin-left: 4px;
  border: 1px solid;
  vertical-align: middle;
}
.tag-new  { background: #00bfff25; color: #00bfff; border-color: #00bfff50; }
.tag-cont { background: #ff8c0030; color: #ff8c00; border-color: #ff8c0060; }
.tag-mvr  { background: #ffffff15; color: #aaaaaa; border-color: #ffffff25; }

/* ── Count badge (× column in alert feeds) ───────────────────────────────────── */
.badge-cnt {
  display: inline-block;
  font-size: 0.6rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  padding: 1px 4px;
  min-width: 18px;
  text-align: center;
}

/* ── Alert feed column widths ─────────────────────────────────────────────────── */
table:has(#breakoutBody),
table:has(#hosBody) { table-layout: fixed; width: 100%; }

table:has(#breakoutBody) colgroup col:nth-child(1),
table:has(#hosBody)      colgroup col:nth-child(1) { width: 52px; }

table:has(#breakoutBody) colgroup col:nth-child(2),
table:has(#hosBody)      colgroup col:nth-child(2) { width: 40px; }

table:has(#breakoutBody) colgroup col:nth-child(3),
table:has(#hosBody)      colgroup col:nth-child(3) { width: 16px; }

table:has(#breakoutBody) colgroup col:nth-child(4),
table:has(#hosBody)      colgroup col:nth-child(4) { width: 50px; }

table:has(#breakoutBody) colgroup col:nth-child(5),
table:has(#hosBody)      colgroup col:nth-child(5) { width: 40px; }

table:has(#breakoutBody) colgroup col:nth-child(6),
table:has(#hosBody)      colgroup col:nth-child(6) { width: 35px; }

#breakoutBody tr { border-bottom: 1px solid #0d1525; }

/* ── Hover highlight (cross-panel sym sync) ──────────────────────────────────── */
.sym-hover { background: #1a2e4a !important; outline: 1px solid var(--accent); }

/* ── Flash animations ─────────────────────────────────────────────────────────── */
@keyframes scanFlash {
  0%   { background: #00ff8820; }
  50%  { background: #00ff8840; }
  100% { background: transparent; }
}
.scanner-flash { animation: scanFlash 1.2s ease-out; }

@keyframes paFlashGreen {
  0%, 100% { background-color: rgba(0,220,100,0.55); }
  50%       { background-color: rgba(0,255,120,0.90); }
}
@keyframes paFlashRed {
  0%, 100% { background-color: rgba(255,40,40,0.4); }
  50%       { background-color: rgba(255,60,60,0.85); }
}
.pa-flash-green { animation: paFlashGreen 0.8s ease-in-out infinite !important; }
.pa-flash-red   { animation: paFlashRed   0.6s ease-in-out infinite !important; }

/* ── Scrollbars ───────────────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar       { width: 4px; }
*::-webkit-scrollbar-thumb { background: var(--border); }
