/* ═══ EDGE FINDER CSS — Bloomberg Terminal Aesthetic ═══ */

/* ── PREVENT HORIZONTAL OVERFLOW ─────────────────────────── */
.main { max-width: 100%; overflow-x: hidden; padding-bottom: 58px; }
.live-section  { min-width: 0; }
.live-card     { min-width: 0; }

/* ── COIN ICONS ────────────────────────────────────────────── */
.coin-icon {
  width: 15px; height: 15px;
  border-radius: 50%; display: inline-block;
  vertical-align: middle; flex-shrink: 0; margin-right: 1px;
}
.coin-icon-svg {
  width: 16px; height: 16px;
  display: inline-block; vertical-align: middle;
  flex-shrink: 0; margin-right: 1px;
}

/* ── HELP ICONS ─────────────────────────────────────────────── */
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(99,120,255,0.12); color: rgba(99,120,255,0.7);
  font-size: 9px; font-weight: 700; cursor: pointer;
  margin-left: 4px; transition: all .15s; vertical-align: middle;
  border: 1px solid rgba(99,120,255,0.22); font-family: var(--mono);
}
.help-icon:hover {
  background: rgba(99,120,255,0.28); color: rgba(99,120,255,1);
  border-color: rgba(99,120,255,0.5);
}

/* ── LIVE SECTION ─────────────────────────────────────────── */
.live-section {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 10px; margin-bottom: 12px;
}

.live-card {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 18px 20px;
  position: relative; overflow: hidden;
}
.current-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, rgba(99,120,255,0.5), rgba(99,120,255,0.1), transparent);
}
.next-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, rgba(148,163,255,0.3), transparent);
}
.live-card-label {
  font-size: 9px; color: rgba(255,255,255,0.3); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 6px; font-family: var(--mono);
}
.live-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 1.5s infinite; flex-shrink: 0; display: inline-block;
}
.live-slot-name {
  font-family: var(--head); font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 12px;
}

/* ── CARD HEADER ────────────────────────────────────────────── */
.cc-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.cc-slot-info { display: flex; flex-direction: column; gap: 2px; }
.cc-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: rgba(255,255,255,0.28);
  letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono);
}
.cc-slot-name {
  font-family: var(--head); font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.cc-timer-compact {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.cc-timer-val {
  font-family: var(--mono); font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,0.7); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.cc-timer-label { font-size: 9px; color: rgba(255,255,255,0.2); }
.cc-progress {
  width: 80px; height: 2px;
  background: rgba(255,255,255,0.06); border-radius: 1px; overflow: hidden;
}
.cc-progress-fill {
  height: 100%; background: rgba(99,120,255,0.4);
  border-radius: 1px; transition: width 1s linear;
}

/* ═══════════════════════════════════════════════════════════
   DECISION BODY — 2 column layout
   LEFT (primary): Signal Strength + Direction
   RIGHT (secondary): Edge, Z-Score, n=, Vol
════════════════════════════════════════════════════════════ */
.cc-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 140px;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 10px;
}

/* ── LEFT: Primary ──────────────────────────────────────────── */
.cc-primary {
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px 14px 0;
  border-right: 1px solid rgba(255,255,255,0.05);
  gap: 12px;
}

/* Signal Strength zone */
.cc-ss-zone { display: flex; flex-direction: column; gap: 6px; }

.cc-ss-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.cc-ss-numwrap {
  display: flex; align-items: baseline; gap: 2px; line-height: 1;
}
.cc-ss-num {
  font-family: var(--head); font-size: 52px; font-weight: 800;
  letter-spacing: -3px; color: rgba(255,255,255,0.92);
  font-variant-numeric: tabular-nums;
  transition: color .35s ease;
}
/* Always bright — color tint only changes at strong/exceptional */
.cc-ss-num.weak        { color: rgba(255,255,255,0.92); }
.cc-ss-num.moderate    { color: rgba(255,255,255,0.92); }
.cc-ss-num.strong      { color: rgba(74,222,128,0.95); }
.cc-ss-num.exceptional { color: rgba(74,222,128,1); }

.cc-ss-denom {
  font-family: var(--mono); font-size: 18px;
  color: rgba(255,255,255,0.45); padding-bottom: 5px;
}

.cc-ss-label {
  font-size: 12px; font-weight: 600; font-family: var(--head);
  letter-spacing: .01em; color: rgba(255,255,255,0.2);
  transition: color .35s;
}
.cc-ss-label.weak        { color: rgba(255,255,255,0.2); }
.cc-ss-label.moderate    { color: rgba(251,191,36,0.5); }
.cc-ss-label.strong      { color: rgba(74,222,128,0.6); }
.cc-ss-label.exceptional { color: rgba(74,222,128,0.82); }

.cc-ss-bar-track {
  height: 2px; background: rgba(255,255,255,0.05);
  border-radius: 1px; overflow: hidden;
}
.cc-ss-bar-fill {
  height: 100%; width: 0%; border-radius: 1px;
  background: rgba(255,255,255,0.15);
  transition: width .6s ease, background .35s ease;
}
.cc-ss-bar-fill.moderate    { background: rgba(251,191,36,0.45); }
.cc-ss-bar-fill.strong      { background: rgba(74,222,128,0.52); }
.cc-ss-bar-fill.exceptional { background: rgba(74,222,128,0.75); }

/* Direction zone */
.cc-dir-zone {
  display: flex; flex-direction: column; gap: 4px;
}
.cc-dir-tag {
  font-family: var(--head); font-size: 20px; font-weight: 700;
  letter-spacing: .07em; color: rgba(255,255,255,0.2);
  line-height: 1; transition: color .3s;
}
.cc-dir-tag.up      { color: rgba(74,222,128,0.95); }
.cc-dir-tag.dn      { color: rgba(248,113,113,0.95); }
.cc-dir-tag.notrade { color: rgba(255,255,255,0.85); }
.cc-dir-tag.neu     { color: rgba(255,255,255,0.6); }

.cc-dir-hist {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.3); transition: color .3s;
}
.cc-dir-hist.up { color: rgba(74,222,128,0.6); }
.cc-dir-hist.dn { color: rgba(248,113,113,0.6); }

/* ── CONFIDENCE BADGE ───────────────────────────────────────── */
.cc-confidence {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 4px;
  font-size: 12px; font-weight: 600; font-family: var(--mono);
  letter-spacing: .04em;
  white-space: nowrap; flex-shrink: 0;
}
.cc-confidence::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.cc-confidence.low {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.cc-confidence.low::before { background: rgba(255,255,255,0.4); }
.cc-confidence.medium {
  background: rgba(251,191,36,0.1); color: rgba(251,191,36,0.92);
  border: 1px solid rgba(251,191,36,0.22);
}
.cc-confidence.medium::before { background: rgba(251,191,36,0.85); }
.cc-confidence.high {
  background: rgba(74,222,128,0.1); color: rgba(74,222,128,0.95);
  border: 1px solid rgba(74,222,128,0.22);
}
.cc-confidence.high::before { background: rgba(74,222,128,0.85); }

/* ── RIGHT: Supporting metrics ──────────────────────────────── */
.cc-secondary {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 0 14px 16px; gap: 3px;
}
.cc-sec-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.cc-sec-row:last-of-type { border-bottom: none; }
.cc-sec-dim { opacity: 0.5; }
.cc-sec-lbl {
  font-size: 9px; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,0.2); white-space: nowrap;
}
.cc-sec-val {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6); text-align: right;
}
.cc-sec-stars {
  font-size: 12px; color: rgba(251,191,36,0.75);
  text-align: right; padding-top: 4px;
  letter-spacing: 2px;
}

/* ── EDGE BAR (thin, secondary) ─────────────────────────────── */
.cc-edge-strip { margin-bottom: 8px; }
.edge-meter-track {
  position: relative; height: 3px;
  background: linear-gradient(90deg,#3d0e0e 0%,#1e1111 38%,rgba(255,255,255,0.04) 50%,#121e12 62%,#0d3828 100%);
  border-radius: 2px;
}
.edge-meter-fill {
  position: absolute; top: 0; height: 100%;
  border-radius: 2px; opacity: 0.6;
  transition: all .5s ease;
}
.edge-meter-center {
  position: absolute; left: 50%; top: -2px;
  width: 1px; height: 7px; background: rgba(255,255,255,0.1);
}
.edge-meter-needle {
  position: absolute; top: -4px; width: 2px; height: 11px;
  background: rgba(255,255,255,0.75); border-radius: 1px;
  transform: translateX(-50%); box-shadow: 0 0 4px rgba(255,255,255,0.25);
  transition: left .5s ease;
}
.edge-meter-labels {
  display: flex; justify-content: space-between;
  font-size: 8px; color: rgba(255,255,255,0.16); margin-top: 3px;
  font-family: var(--mono);
}

/* ── PRICE SECTION ──────────────────────────────────────────── */
.cc-price-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 4px;
}
.cc-price-col {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 16px;
}
.cc-price-col:first-child {
  border-right: 1px solid rgba(255,255,255,0.05);
}
.cc-price-top {
  display: flex; align-items: center; gap: 8px;
}
.cc-price-lbl {
  font-size: 10px; font-family: var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,0.28); white-space: nowrap;
}
.cc-price-beat {
  font-family: var(--mono); font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.42); letter-spacing: -.5px;
}
.cc-price-now {
  font-family: var(--mono); font-size: 20px; font-weight: 600;
  color: rgba(255,255,255,0.5); letter-spacing: -.5px;
  transition: color .3s ease;
}
.cc-price-now.up { color: rgba(74,222,128,0.92); }
.cc-price-now.dn { color: rgba(248,113,113,0.92); }
.cc-price-delta {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
}
.cc-price-delta.up {
  color: rgba(74,222,128,0.9);
  background: rgba(74,222,128,0.1);
}
.cc-price-delta.dn {
  color: rgba(248,113,113,0.9);
  background: rgba(248,113,113,0.1);
}

/* ── DIVERGENCE ─────────────────────────────────────────────── */
.cc-divergence { margin-top: 2px; }
.live-divergence {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 3px; display: inline-block;
  font-family: var(--mono); letter-spacing: .04em;
}
.live-divergence.under { background: rgba(0,229,160,.09); color: rgba(0,229,160,0.8); border: 1px solid rgba(0,229,160,.18); }
.live-divergence.over  { background: rgba(255,77,109,.08); color: rgba(255,77,109,0.8); border: 1px solid rgba(255,77,109,.18); }


/* ── NEXT SLOT CARD ────────────────────────────────────────── */
.live-slot-name {
  font-family: var(--head); font-size: 15px; font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 10px;
}
.next-timer {
  font-size: 11px; color: rgba(255,255,255,0.3);
  margin-bottom: 12px; font-family: var(--mono);
}
.next-timer-val { color: rgba(251,191,36,0.85); font-weight: 600; }

.next-stats {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 5px; margin-bottom: 10px;
}
.next-stat {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; padding: 6px 8px; text-align: center;
}
.next-stat-label {
  font-size: 8px; color: rgba(255,255,255,0.25); letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 3px; font-family: var(--mono);
}
.next-stat-val {
  font-family: var(--head); font-size: 15px;
  font-weight: 600; color: rgba(255,255,255,0.7);
}
.next-stat-val.green { color: rgba(74,222,128,0.85); }
.next-stat-val.blue  { color: rgba(99,120,255,0.85); }
.next-stat-val.amber { color: rgba(251,191,36,0.85); }

.next-edge-label {
  font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: .07em;
  text-transform: uppercase; font-family: var(--mono); margin-bottom: 6px;
}
.next-edge-val {
  font-size: 12px; font-weight: 600; margin-top: 4px; font-family: var(--mono);
}
.next-best-day {
  font-size: 10px; color: rgba(167,139,250,0.75); margin-top: 8px;
  font-family: var(--mono);
}
.edge-meter-wrap { margin: 6px 0; }

/* ── UPCOMING SLOTS ────────────────────────────────────────── */
.upcoming-section {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.upcoming-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}
.upcoming-title {
  font-size: 11px; font-weight: 600; font-family: var(--head);
  color: rgba(255,255,255,0.5); letter-spacing: .04em;
}
.upcoming-hint { font-size: 10px; color: rgba(255,255,255,0.2); font-family: var(--mono); }
.upcoming-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.upcoming-scroll::-webkit-scrollbar { height: 3px; }
.upcoming-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08); border-radius: 2px;
}
.upcoming-loading { font-size: 11px; color: rgba(255,255,255,0.2); padding: 8px 0; }

.upc-card {
  flex-shrink: 0; width: 148px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 9px 11px;
  cursor: pointer; transition: all 150ms ease;
  position: relative; overflow: hidden;
}
.upc-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.upc-card.upc-now { border-color: rgba(99,120,255,0.3); background: rgba(99,120,255,0.06); }
.upc-card.upc-now::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: rgba(99,120,255,0.6);
}
.upc-now-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 8px; font-family: var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(99,120,255,0.8); margin-bottom: 4px;
}
.upc-time {
  font-size: 11px; font-weight: 600; font-family: var(--head);
  color: rgba(255,255,255,0.75); margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upc-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 3px; }
.upc-edge { font-size: 12px; font-weight: 700; font-family: var(--head); }
.upc-pct  { font-size: 11px; color: rgba(255,255,255,0.4); }
.upc-stars { font-size: 10px; color: rgba(251,191,36,0.7); }
.upc-rec { font-size: 9px; font-family: var(--mono); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.upc-rec.up  { color: rgba(74,222,128,0.7); }
.upc-rec.dn  { color: rgba(248,113,113,0.7); }
.upc-rec.neu { color: rgba(255,255,255,0.2); }
.upc-timer { font-size: 9px; color: rgba(255,255,255,0.2); font-family: var(--mono); margin-top: 3px; }

/* ── FILTERS ───────────────────────────────────────────────── */
.filters-section {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(8,8,14,0.96);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  padding: 8px 24px;
  display: flex; align-items: center; gap: 14px;
  flex-wrap: nowrap;
  margin: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.45);
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label {
  font-size: 10px; color: rgba(255,255,255,0.3); white-space: nowrap;
  letter-spacing: .05em; font-family: var(--mono);
}
.filter-btns { display: flex; gap: 3px; }
.fb {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px; color: rgba(255,255,255,0.35);
  font-family: var(--mono); font-size: 11px; padding: 4px 10px;
  cursor: pointer; transition: all .15s;
}
.fb:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.fb.active { background: rgba(99,120,255,0.12); border-color: rgba(99,120,255,0.3); color: rgba(99,120,255,0.9); }
.filter-count { font-size: 11px; color: rgba(255,255,255,0.25); font-family: var(--mono); }

.day-filter { display: flex; gap: 2px; }
.d-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px; color: rgba(255,255,255,0.3);
  font-family: var(--mono); font-size: 10px; padding: 3px 7px;
  cursor: pointer; transition: all .15s;
}
.d-btn.active { background: rgba(99,120,255,0.12); border-color: rgba(99,120,255,0.28); color: rgba(99,120,255,0.85); }

/* ── TOP SECTION ───────────────────────────────────────────── */
.top-section {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 280px;
  gap: 10px; margin-bottom: 12px;
}
.top-col {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px;
}
.up-col   { border-top: 2px solid rgba(74,222,128,0.4); }
.dn-col   { border-top: 2px solid rgba(248,113,113,0.4); }
.stat-col { border-top: 2px solid rgba(167,139,250,0.4); }
.top-col-title {
  font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
  font-weight: 600; font-family: var(--mono);
}
.top-list { display: flex; flex-direction: column; gap: 4px; }
.top-item {
  display: grid; grid-template-columns: 16px 1fr 50px 50px 40px;
  gap: 6px; align-items: center; padding: 6px 8px;
  background: rgba(255,255,255,0.025); border: 1px solid transparent;
  border-radius: 6px; cursor: pointer; transition: all .15s;
}
.top-item:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
.top-rank  { font-size: 10px; color: rgba(255,255,255,0.2); text-align: center; font-family: var(--mono); }
.top-slot  { font-size: 11px; color: rgba(255,255,255,0.65); }
.top-pct   { font-size: 12px; font-weight: 700; text-align: right; }
.top-pct.up { color: rgba(74,222,128,0.85); }
.top-pct.dn { color: rgba(248,113,113,0.85); }
.top-z     { font-size: 10px; color: rgba(255,255,255,0.3); text-align: right; font-family: var(--mono); }
.top-stars { font-size: 10px; color: rgba(251,191,36,0.75); text-align: right; }
.top-n     { font-size: 10px; color: rgba(255,255,255,0.2); text-align: right; font-family: var(--mono); }

/* ── SUMMARY ───────────────────────────────────────────────── */
.edge-summary { display: flex; flex-direction: column; gap: 5px; }
.es-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.es-label { color: rgba(255,255,255,0.3); font-family: var(--mono); font-size: 10px; }
.es-val   { font-weight: 600; }

/* ── HEATMAP ───────────────────────────────────────────────── */
.heatmap-section {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.heatmap-outer { overflow-x: auto; }
.hm-head { display: flex; min-width: 500px; margin-bottom: 3px; }
.hm-sc   { width: 90px; flex-shrink: 0; }
.hm-d    {
  flex: 1; text-align: center; font-size: 9px;
  color: rgba(255,255,255,0.25); letter-spacing: .05em;
  text-transform: uppercase; font-family: var(--mono);
}
.heatmap-body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 500px; max-height: 380px; overflow-y: auto;
}
.hm-row  { display: flex; align-items: center; gap: 2px; }
.hm-slot-lbl {
  width: 90px; flex-shrink: 0; font-size: 9px;
  color: rgba(255,255,255,0.25); text-align: right;
  padding-right: 6px; white-space: nowrap; font-family: var(--mono);
}
.hm-cell {
  flex: 1; height: 16px; border-radius: 2px;
  cursor: pointer; transition: opacity .12s; position: relative;
}
.hm-cell:hover { opacity: .7; outline: 1px solid rgba(255,255,255,.4); }
.hm-tooltip {
  display: none; position: absolute; z-index: 200;
  background: rgba(12,12,20,0.98); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 4px 8px; font-size: 10px; white-space: nowrap;
  bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.hm-cell:hover .hm-tooltip { display: block; }
.hm-legend { display: flex; gap: 10px; margin-left: auto; font-size: 9px; color: rgba(255,255,255,0.3); }
.hml { display: flex; align-items: center; gap: 3px; }
.hmd { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* ── TABLE ─────────────────────────────────────────────────── */
.table-section {
  background: rgba(12,12,16,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 14px;
}
.table-outer { overflow-x: auto; }
.e-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.e-table th {
  font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: .07em;
  text-transform: uppercase; padding: 6px 8px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06); white-space: nowrap;
  background: rgba(12,12,16,0.95); position: sticky; top: 0; z-index: 2;
  font-family: var(--mono);
}
.e-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: nowrap; vertical-align: middle; }
.e-table tr { cursor: pointer; transition: background .1s; }
.e-table tr:hover { background: rgba(255,255,255,0.03); }
.e-table tr.dimmed { opacity: .35; }
.load-cell { text-align: center; padding: 40px; color: rgba(255,255,255,0.2); }

.ebadge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 2px 8px; border-radius: 4px;
  font-weight: 700; font-size: 11px; font-family: var(--mono);
}
.ep3 { background: rgba(0,184,122,.25); color: #00e5a0; border: 1px solid rgba(0,184,122,.4); }
.ep2 { background: rgba(0,184,122,.15); color: #00b87a; border: 1px solid rgba(0,184,122,.25); }
.ep1 { background: rgba(0,184,122,.08); color: #00b87a; border: 1px solid rgba(0,184,122,.15); }
.en3 { background: rgba(204,34,68,.25);  color: #ff4d6d; border: 1px solid rgba(204,34,68,.4); }
.en2 { background: rgba(204,34,68,.15);  color: #ff4d6d; border: 1px solid rgba(204,34,68,.25); }
.en1 { background: rgba(204,34,68,.08);  color: #cc2244; border: 1px solid rgba(204,34,68,.15); }
.en0 { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.06); }
.stars-badge { color: rgba(251,191,36,0.8); font-size: 11px; }
.spark { display: flex; gap: 2px; align-items: center; }
.sp { width: 8px; height: 8px; border-radius: 50%; }
.sp-u { background: rgba(74,222,128,0.7); }
.sp-d { background: rgba(248,113,113,0.7); }
.vol-tag { font-size: 10px; padding: 2px 5px; border-radius: 3px; font-family: var(--mono); }
.vhigh { background: rgba(255,77,109,.1);  color: rgba(248,113,113,0.8); }
.vmid  { background: rgba(255,187,68,.1);  color: rgba(251,191,36,0.8); }
.vlow  { background: rgba(0,229,160,.08);  color: rgba(74,222,128,0.8); }
.best-day-tag { font-size: 13px; padding: 3px 9px; border-radius: 4px; background: rgba(167,139,250,.16); color: rgba(167,139,250,0.95); font-weight: 600; }
.up-pct   { color: rgba(74,222,128,0.85); font-weight: 600; }
.down-pct { color: rgba(248,113,113,0.85); font-weight: 600; }
.neut     { color: rgba(255,255,255,0.5); }

/* ── SECTION TITLES ────────────────────────────────────────── */
.section-title {
  font-family: var(--head); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; color: rgba(255,255,255,0.7);
}
.sort-info {
  font-size: 10px; font-weight: 400; color: rgba(255,255,255,0.2);
  margin-left: auto; font-family: var(--mono);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(99,120,255,0.6); flex-shrink: 0; }
.live-dot-small {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 5px var(--green); animation: pulse 2s infinite;
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 500; display: flex; align-items: center; justify-content: center; }
.modal-box { background: rgba(12,12,20,0.98); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; width: min(800px,95vw); max-height: 88vh; overflow-y: auto; }
.help-box { width: min(500px,95vw); }
.modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.modal-title { font-family: var(--head); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.85); }
.modal-close { background: transparent; border: none; color: rgba(255,255,255,0.3); font-size: 16px; cursor: pointer; padding: 4px 8px; transition: color .15s; }
.modal-close:hover { color: rgba(255,255,255,0.7); }
.modal-body { padding: 14px 16px; }
.help-body { line-height: 1.7; font-size: 13px; color: rgba(255,255,255,0.5); }
.help-body h3 { color: rgba(255,255,255,0.8); font-size: 13px; margin: 10px 0 4px; }
.help-body code { background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 3px; font-size: 11px; color: rgba(99,120,255,0.9); font-family: var(--mono); }
.mm-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.mm { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 7px; padding: 8px 10px; }
.mm-l { font-size: 9px; color: rgba(255,255,255,0.25); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 3px; font-family: var(--mono); }
.mm-v { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.75); }
.mm-v.green  { color: rgba(74,222,128,0.85); }
.mm-v.red    { color: rgba(248,113,113,0.85); }
.mm-v.blue   { color: rgba(99,120,255,0.85); }
.mm-v.amber  { color: rgba(251,191,36,0.85); }
.mm-v.purple { color: rgba(167,139,250,0.85); }
.day-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-top: 10px; }
.dg { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 6px 4px; text-align: center; }
.dg-d { font-size: 9px; color: rgba(255,255,255,0.25); margin-bottom: 3px; font-family: var(--mono); }
.dg-p { font-size: 13px; font-weight: 600; }
.dg-n { font-size: 9px; color: rgba(255,255,255,0.2); margin-top: 1px; font-family: var(--mono); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media(max-width:1200px) {
  .cc-signal { grid-template-columns: 150px minmax(0,1fr) 150px; }
}
@media(max-width:1100px) {
  .live-section { grid-template-columns: 1fr; }
  .next-card { display: none; }
}
@media(max-width:900px) {
  .cc-signal { grid-template-columns: 130px minmax(0,1fr); }
  .cc-context { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.04); border-right: none; padding: 10px 0 0; flex-direction: row; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
  .top-section { grid-template-columns: 1fr 1fr; }
  .stat-col { display: none; }
}
@media(max-width:700px) {
  .cc-header { flex-wrap: wrap; }
  .cc-price-context { order: 3; width: 100%; }
  .cc-signal { grid-template-columns: 1fr 1fr; }
}
@media(max-width:600px) {
  .top-section { grid-template-columns: 1fr; }
  .cc-signal { grid-template-columns: 1fr; }
}
