:root {
  color-scheme: dark;
  --bg: #0e1117;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #334155;
  --link: #93c5fd;
  --green: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 6.5rem;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
}

nav.markets a {
  color: var(--link);
  margin-right: 1rem;
  font-weight: 600;
  text-decoration: none;
}

h1 { font-size: 2.4rem; margin: 0.4rem 0 0.6rem; }

.summary, .how, .sentiment, .status, .updated {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.how, .sentiment {
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin: 0.8rem 0;
}

.gate {
  margin: 1.2rem 0;
  font-size: 1.15rem;
}

.picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.pick {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.pick .label { color: var(--muted); font-size: 1rem; }
.pick .price { font-size: 1.8rem; font-weight: 700; }
.pick .delta { color: var(--green); font-weight: 600; }
.pick .name { font-weight: 700; font-size: 1.25rem; margin-top: 0.4rem; }

.full-results-wrap { overflow-x: auto; }

table.full-results-table {
  width: 100%;
  border-collapse: collapse;
  background: #111827;
}

.full-results-table th,
.full-results-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.full-results-table th { color: var(--muted); }

.headlines-tip { position: relative; display: inline-block; }
.hl-tip-count {
  color: var(--link);
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
}
.tip-text {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  top: 1.6rem;
  width: min(28rem, 70vw);
  max-height: 16rem;
  overflow: auto;
  background: #020617;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.headlines-tip.open .tip-text { display: block; }
.hl-tip-line { margin: 0.35rem 0; }
.hl-tip-line a { color: var(--link); }

.why { margin-top: 1.5rem; }
.why table { width: 100%; border-collapse: collapse; }
.why td, .why th { border-bottom: 1px solid var(--line); padding: 0.45rem 0.3rem; text-align: left; }

.disclaimer-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #020617;
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  text-align: center;
  color: #e2e8f0;
  z-index: 30;
}
.disclaimer-footer a { color: var(--link); font-weight: 600; }

body.app-home {
  display: flex;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #31333f;
}
.side {
  width: 18.5rem;
  flex: 0 0 18.5rem;
  background: #f0f2f6;
  padding: 1rem 0.9rem 2rem;
  border-right: 1px solid #e6e9ef;
}
.side-logo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0.4rem auto 0.6rem;
  background: #fff;
  border-radius: 12px;
}
.side h1 {
  margin: 0 0 0.8rem;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #31333f;
}
#theme {
  width: 100%;
  margin-bottom: 0.8rem;
  border: 0;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  text-align: left;
}
.side nav { display: flex; flex-direction: column; gap: 0.45rem; }
.side a.m {
  display: block;
  text-decoration: none;
  background: #fff;
  color: #31333f;
  border: 1px solid #d0d5dd;
  border-radius: 0.55rem;
  padding: 0.55rem 0.75rem;
  font-weight: 650;
}
.side a.nyse { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.side a.nasdaq { border-color: #93c5fd; }
.side a.crypto { border-color: #fdba74; }
.side a.cme { border-color: #86efac; }
.side a.ice { border-color: #93c5fd; }
.side a.terms { border-color: #fdba74; }
.stage { flex: 1; padding: 1.2rem 1.5rem 2rem; }
.stage h2 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.stage p { font-size: 1.05rem; line-height: 1.45; }
.info {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0;
}
.gate {
  background: #f3f4e8;
  border-radius: 0.4rem;
  padding: 0.8rem 1rem;
}
.gate a { color: #b45309; font-weight: 650; }
.terms-link { display: block; margin-top: 0.7rem; color: #2563eb; }
.open-note { color: #6b7280; }

@media (max-width: 900px) {
  .picks { grid-template-columns: 1fr; }
}
