/* BTC Predict - vanilla CSS, no build step.
 *
 * Same dark idiom as the trading dashboard so it reads as the same family of
 * tools, but a violet accent instead of the dashboard's blue: these two sites
 * must never be mistaken for each other, since one shows predictions and the
 * other shows real money.
 */
:root {
  --bg: #0b0f14;
  --panel: #131a22;
  --panel-2: #18212b;
  --border: #24303d;
  --text: #e6edf3;
  --muted: #8b9bab;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --violet-dim: #6d4bb8;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.45;
}

a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 16px 18px 60px; }

/* ------------------------------- header ------------------------------- */
header.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
header.top h1 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: .2px; }
header.top h1 span { color: var(--muted); font-weight: 400; }
.spacer { flex: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.ok .dot { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.7); }
.pill.bad .dot { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,.7); }
.pill.ok { color: #b9f0cd; border-color: #1e4530; }
.pill.bad { color: #ffc9c9; border-color: #4a2226; }

.error-bar {
  background: #3a1d20; border: 1px solid #5b2a30; color: #ffd5d5;
  padding: 10px 12px; border-radius: var(--radius); margin-bottom: 14px;
}
.notice {
  background: #161a2b; border: 1px solid #2c3157; color: #c8ccf0;
  padding: 11px 13px; border-radius: var(--radius); margin-bottom: 18px; font-size: 13px;
}

/* ------------------------------- layout ------------------------------- */
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 16px;
}
h2.section {
  font-size: 14px; font-weight: 650; margin: 26px 0 10px;
  letter-spacing: .3px; text-transform: uppercase; color: #cbd5e1;
}
h2.section .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }

.hint { color: var(--muted); font-size: 12px; }
.prose p { margin: 0 0 10px; font-size: 13px; color: #cbd5e1; }
.prose p:last-child { margin-bottom: 0; }

/* -------------------------------- card -------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px; position: relative; overflow: hidden;
}
.card.act { border-color: var(--violet-dim); }
.card.weak { opacity: .96; }
.card.down { border-color: #5b2a30; }
.card.up { border-color: #1e4530; }

.card .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.card .tf { font-size: 19px; font-weight: 700; letter-spacing: .4px; }
.card .when { color: var(--muted); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }

.side {
  font-size: 26px; font-weight: 750; letter-spacing: .5px; margin: 8px 0 2px;
}
.side.up { color: var(--green); }
.side.down { color: var(--red); }
.side .pct { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 8px; }

.bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; display: flex; margin: 12px 0 10px; }
.bar .up { background: var(--green); }
.bar .down { background: var(--red); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel-2); color: var(--muted);
}
.chip.act { color: #ddd6fe; border-color: var(--violet-dim); background: #241c3d; }
.chip.skip { color: #f4d7a1; border-color: #4a3a20; background: #2a2114; }
.chip.danger { color: #ffc9c9; border-color: #5b2a30; background: #2a1719; }
.chip.hc { color: #d1fae5; border-color: #1e4530; background: #10261a; font-weight: 600; }

.countdown { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.prog { height: 3px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--violet); }

.reasons { margin-top: 11px; border-top: 1px solid var(--border); padding-top: 9px; }
.reasons .title { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.reason { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.reason .name { color: #cbd5e1; flex: 0 0 118px; }
.reason .track { flex: 1; height: 6px; background: var(--panel-2); border-radius: 999px; overflow: hidden; position: relative; }
.reason .track i { display: block; height: 100%; position: absolute; top: 0; }
.reason .val { color: var(--muted); font-variant-numeric: tabular-nums; width: 62px; text-align: right; }

.card .foot-note { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

/* -------------------------------- table -------------------------------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--panel-2); }
.good { color: var(--green); }
.bad { color: var(--red); }
.warn { color: var(--amber); }
.stat .label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; }
.stat .value { font-size: 22px; font-weight: 700; margin: 2px 0; }
.stat .sub { color: var(--muted); font-size: 12px; }

.tfbar { display: flex; gap: 6px; margin-bottom: 12px; }
.tfbar button {
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.tfbar button.on { background: #241c3d; color: #ddd6fe; border-color: var(--violet-dim); }

.downloads { display: flex; gap: 8px; flex-wrap: wrap; }
a.dl {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--violet-dim); background: #241c3d; color: #ddd6fe;
  font-size: 12px;
}
a.dl:hover { text-decoration: none; border-color: var(--violet); }

/* -------------------------------- footer -------------------------------- */
footer.foot {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 12px;
}

@media (max-width: 640px) {
  .reason .name { flex-basis: 92px; }
  header.top h1 { font-size: 16px; }
}
