:root {
  --bg: #0a0e17;
  --surface: #131a2b;
  --surface2: #1a2340;
  --text: #e0e6f0;
  --text-muted: #7a8ba8;
  --accent: #4ecdc4;
  --red: #ff6b6b;
  --green: #51cf66;
  --yellow: #ffd43b;
  --border: #1e2d4a;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.logo span { color: var(--accent); }
nav a {
  color: var(--text-muted);
  margin-left: 24px;
  font-size: 0.9rem;
}
nav a:hover { color: var(--text); }

/* Probability hero */
.hero {
  text-align: center;
  padding: 48px 0 32px;
}
.prob-number {
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.prob-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.trend-rising { background: rgba(81, 207, 102, 0.15); color: var(--green); }
.trend-falling { background: rgba(255, 107, 107, 0.15); color: var(--red); }
.trend-stable { background: rgba(255, 212, 59, 0.15); color: var(--yellow); }

.headline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 24px 0 8px;
  padding: 0 20px;
}
.date-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Chart */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}
.chart-section h2 {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Analysis */
.analysis {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
}
.analysis h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--accent);
}
.analysis p { margin-bottom: 16px; color: var(--text); }

/* Key factors */
.factors {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  margin: 24px 0;
}
.factors h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.factors ul { list-style: none; }
.factors li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}
.factors li:last-child { border-bottom: none; }
.factors li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.factors li.positive::before { background: var(--green); }
.factors li.negative::before { background: var(--red); }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
td.probability { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Recent days */
.recent {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 32px;
  margin: 24px 0;
}
.recent h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Articles list */
.articles ul { list-style: none; }
.articles li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.articles li:last-child { border-bottom: none; }
.articles .source { color: var(--text-muted); font-size: 0.85rem; margin-left: 8px; }

/* Navigation between days */
.day-nav {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Page content (about, privacy) */
.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { margin: 24px 0 12px; font-size: 1.1rem; }
.page-content p { margin-bottom: 12px; }
.page-content ul { margin: 0 0 12px 24px; }

/* Ad placeholder */
.ad-slot {
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .prob-number { font-size: 4.5rem; }
  .headline { font-size: 1.2rem; padding: 0; }
  .analysis, .factors, .recent { padding: 20px; }
}
