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

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e0e0e8;
  --text-muted: #7a7a8e;
  --accent: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
  --blue: #60a5fa;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.cta:hover {
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
}

/* Live Today */
.live-today {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.03) 0%, transparent 100%);
}

.live-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: pulse 2s ease-in-out infinite;
}

.live-dot.connected {
  background: var(--accent);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.live-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-tracks {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.live-stats-bar {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.live-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.live-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.live-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.live-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-style: italic;
}

.live-alert {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.live-alert.alert-win {
  border-left: 3px solid var(--accent);
}

.live-alert.alert-loss {
  border-left: 3px solid var(--red);
}

.live-alert.alert-pending {
  border-left: 3px solid var(--text-muted);
}

.alert-new {
  animation: slideIn 0.5s ease-out, glow 2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0% { border-color: var(--accent); box-shadow: 0 0 12px rgba(74, 222, 128, 0.3); }
  100% { border-color: var(--border); box-shadow: none; }
}

.alert-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.alert-track {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-time {
  color: var(--text-muted);
}

.alert-result {
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.alert-result.result-pending { color: var(--text-muted); }
.alert-result.result-win { color: var(--accent); }
.alert-result.result-loss { color: var(--red); }

.alert-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.alert-horse {
  font-size: 1.05rem;
  font-weight: 700;
}

.alert-odds {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  color: var(--yellow);
}

.alert-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
}

.alert-edge {
  color: var(--accent);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-weight: 600;
}

.alert-bet {
  color: var(--text-muted);
}

.alert-pl {
  margin-left: auto;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* How it works */
.how-it-works {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.how-it-works h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 36px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.method-card h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.method-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Performance */
.performance {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.performance h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 36px;
}

.track-breakdown {
  margin-top: 32px;
}

.track-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.track-breakdown th,
.track-breakdown td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.track-breakdown th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* Tip Log */
.tip-log {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.tip-log h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.log-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.table-wrap {
  overflow-x: auto;
}

#tip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

#tip-table th {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

#tip-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#tip-table tbody tr:hover {
  background: var(--surface);
}

.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0 !important;
}

.result-win {
  color: var(--accent);
  font-weight: 600;
}

.result-loss {
  color: var(--red);
}

.result-pending {
  color: var(--text-muted);
  font-style: italic;
}

.pl-positive {
  color: var(--accent);
}

.pl-negative {
  color: var(--red);
}

/* Signup */
.signup {
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.signup h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.signup p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#signup-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

#signup-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

#signup-form input::placeholder {
  color: var(--text-muted);
}

#signup-form button {
  padding: 12px 24px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

#signup-form button:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.disclaimer {
  color: var(--text-muted);
  font-size: 0.75rem;
  max-width: 500px;
  margin: 0 auto 8px;
  line-height: 1.4;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .stats-row {
    gap: 20px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .live-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .live-tracks {
    margin-left: 0;
  }

  .live-stats-bar {
    gap: 16px;
    padding: 12px 16px;
  }

  .live-stat-value {
    font-size: 1.1rem;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  #signup-form {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* ── New: live odds tracking ── */
.alert-connections {
  font-size: 0.8em;
  color: #8a8a8a;
  padding: 2px 0;
}

.odds-ml {
  color: #8a8a8a;
  text-decoration: line-through;
}

.odds-live {
  color: #00c853;
  font-weight: 600;
}

.edge-improved {
  color: #00c853;
  font-weight: 600;
}

.connections {
  font-size: 0.85em;
  color: #aaa;
}

.condition-cell {
  font-size: 0.8em;
  color: #888;
}

.scratched-row td {
  opacity: 0.4;
  text-decoration: line-through;
}

.scratch-tag {
  color: #f44336;
  font-size: 0.7em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.alert-scratched {
  opacity: 0.5;
}
.alert-scratched .alert-horse {
  text-decoration: line-through;
}

.mtp-imminent { color: #f44336; font-weight: 600; }
.mtp-soon { color: #ff9800; }

.shift-up { color: #00c853; font-weight: 600; }
.shift-down { color: #f44336; font-weight: 600; }

.edge-source {
  font-size: 0.75em;
  color: #666;
  font-weight: 400;
}

.alert-thesis {
  font-size: 0.8em;
  color: #999;
  font-style: italic;
  padding: 6px 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.alert-condition {
  font-size: 0.8em;
  color: #8a8a8a;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 4px;
}
/* v1774628557 */
