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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background: #f7f7f7;
  line-height: 1.5;
}

/* ── Nav ── */
nav {
  background: #1a1a2e;
  color: #fff;
  padding: 0 2.5rem;
  border-bottom: 2px solid #2d2d5e;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.9rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-brand .nav-logo { font-size: 2.2rem; line-height: 1; }
.nav-brand .nav-site-name { color: #ffffff; }
.nav-brand .nav-site-accent { color: #7c6fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b0b0d0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: #fff; background: rgba(124,111,255,0.2); }
.nav-links a .nav-icon { font-size: 0.95rem; }
.nav-links a.disabled { opacity: 0.4; pointer-events: none; }

/* Tools dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: 6px;
  color: #b0b0d0; background: none; border: none; cursor: pointer;
  font-size: 0.88rem; font-weight: 500;
  padding: 6px 16px; border-radius: 6px;
  transition: background 0.15s, color 0.15s; white-space: nowrap;
}
.nav-dropdown-btn:hover, .nav-dropdown:hover .nav-dropdown-btn { color: #fff; background: rgba(255,255,255,0.08); }
.nav-dropdown-btn.active { color: #fff; background: rgba(124,111,255,0.2); }
.nav-caret { font-size: 0.6rem; margin-left: 2px; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0 0 8px 8px; padding: 6px 0; min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 18px;
  color: #b0b0d0; text-decoration: none; font-size: 0.86rem;
  white-space: nowrap; transition: background 0.12s, color 0.12s;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ── Headings ── */
h1 { font-size: 1.6rem; margin-bottom: 1.25rem; color: #111; }
h2 { font-size: 1.15rem; margin: 2rem 0 0.75rem; color: #222; border-bottom: 1px solid #ddd; padding-bottom: 0.3rem; }
h3 { font-size: 0.95rem; margin-bottom: 0.5rem; color: #444; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  margin-bottom: 1rem;
}
th {
  background: #f0f0f0;
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  border-bottom: 1px solid #ddd;
}
td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #eee;
  color: #222;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f5f8ff; }
tr.clickable-row { cursor: pointer; }
tr.clickable-row:hover { background: #eef2ff; }

/* ── Match header ── */
.match-header {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.match-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.match-score-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.5rem 0;
}
.team-name { font-size: 1.3rem; font-weight: 600; }
.score-ft {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a2e;
  min-width: 80px;
  text-align: center;
}
.score-ht { font-size: 0.9rem; color: #888; margin-bottom: 0.25rem; }
.match-info { font-size: 0.85rem; color: #666; margin-top: 0.4rem; }

/* ── Status badge ── */
.status { font-weight: 600; }
.status-finished { color: #2d7a2d; }
.status-scheduled { color: #b06000; }
.status-in_play { color: #c00; }

/* ── Score cell ── */
.score-cell { font-weight: 600; text-align: center; }

/* ── League code ── */
.league-code {
  display: inline-block;
  background: #e8e8f5;
  color: #333;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── vs column ── */
.vs { color: #aaa; font-size: 0.85rem; text-align: center; }

/* ── Goals ── */
.goals-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.goal-list { list-style: none; }
.goal-list li { padding: 0.2rem 0; font-size: 0.9rem; }
.goal-min { display: inline-block; width: 3rem; font-weight: 600; color: #555; }

/* ── Scheduled page ── */
.sched-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; table-layout: auto; }
.sched-table th {
  background: #1a1a2e; color: #fff;
  padding: 6px 6px; text-align: center;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}
.sched-table th.sched-home { text-align: right; }
.sched-table th.sched-away { text-align: left; }
.sched-table td { padding: 5px 6px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; white-space: nowrap; }
.sched-row:hover { background: #f8f9ff; cursor: pointer; }

.sched-date-row td {
  background: #f0f2f8; color: #333;
  font-weight: 700; font-size: 0.77rem;
  padding: 4px 6px; letter-spacing: 0.03em;
  white-space: normal;
}
.sched-time   { text-align: center; color: #555; width: 40px; }
.sched-league { text-align: center; width: 46px; }
.sched-home   { text-align: right; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.sched-vs     { text-align: center; color: #bbb; width: 18px; padding: 0 2px; }
.sched-away   { text-align: left;  max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.sched-odds   { text-align: center; white-space: nowrap; }
.sched-swan   { text-align: center; white-space: nowrap; font-weight: 700; color: #444; }
.sched-swan-hdr { background: #2d1a4e !important; }

.swan-highlight {
  background: #fff3e0;
  color: #b85c00 !important;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 3px;
}

.ou-over  { color: #1a6e2e; font-weight: 600; }
.ou-under { color: #8b0000; font-weight: 600; }
.even-badge {
  display: inline-block !important;
  margin-left: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7b3f00 !important;
  background: #ffe0b2 !important;
  border-radius: 3px;
  padding: 1px 4px;
  cursor: default;
  vertical-align: middle;
}

/* ── Odds (scheduled list — legacy class kept) ── */
.odds-schedule-table th.odds-col,
.odds-schedule-table td.odds-col {
  text-align: center;
  font-size: 0.82rem;
  white-space: nowrap;
}
.odds-moneyline { letter-spacing: 0.01em; }
.ml-home  { color: #1a6e2e; font-weight: 600; }
.ml-draw  { color: #666; }
.ml-away  { color: #8b0000; font-weight: 600; }
.ml-sep   { color: #bbb; padding: 0 1px; }
.long-odds { color: #e65c00 !important; font-weight: 700; }
/* scheduled page: override colours — no result yet, neutral is cleaner */
.sched-table .ml-home  { color: #111; font-weight: 600; }
.sched-table .ml-draw  { color: #111; font-weight: 600; }
.sched-table .ml-away  { color: #111; font-weight: 600; }
.sched-table .ou-over  { color: #111; font-weight: 600; }
.sched-table .ou-under { color: #111; font-weight: 600; }
.sched-table .ah-price { color: #111; }
.odds-num { font-weight: 600; color: #1a1a2e; }
.ah-line  { display: inline-block; background: #e8e8f5; border-radius: 3px;
            padding: 0 4px; font-size: 0.78rem; color: #333; margin-right: 3px; }
.ah-price { font-weight: 600; color: #1a1a2e; }
.odds-source-tag { font-size: 0.68rem; color: #aaa; margin-left: 3px; vertical-align: middle; }
.bf-tag { color: #1a6e2e; font-weight: 600; }

/* ── Odds breakdown table (match detail) ── */
.odds-breakdown-table {
  border-collapse: collapse;
  width: 100%;
}
.odds-breakdown-table th, .odds-breakdown-table td {
  padding: 7px 16px;
  border-bottom: 1px solid #eee;
}
.odds-breakdown-table .obd-market {
  font-weight: 700;
  font-size: 0.8rem;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: top;
  padding-top: 0.65rem;
  border-right: 1px solid #eee;
  white-space: nowrap;
  width: 120px;
}
.odds-breakdown-table .obd-sel { color: #555; width: 90px; }
.odds-breakdown-table .obd-avg,
.odds-breakdown-table .obd-pinnacle,
.odds-breakdown-table .obd-bet365 { text-align: right; font-weight: 600; width: 140px; }
.odds-breakdown-table th.obd-val      { text-align: right; font-weight: 700; width: 140px; }
.odds-breakdown-table th.obd-pinnacle { color: #c47d00; text-align: right; font-weight: 700; width: 140px; }
.odds-breakdown-table th.obd-bet365   { color: #006040; text-align: right; font-weight: 700; width: 140px; }
.odds-breakdown-table td.obd-pinnacle { color: #c47d00; }
.odds-breakdown-table td.obd-bet365   { color: #006040; }

/* ── Old odds grid (kept for any remaining usage) ── */
.odds-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.odds-block { min-width: 160px; }
.odds-table { box-shadow: none; margin-bottom: 0; }
.odds-table td { padding: 0.3rem 0.5rem; }

.betfair-market { font-size: 0.9rem; margin-bottom: 0.4rem; line-height: 1.8; }

/* ── Weather ── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
}
.badge-forecast { background: #fff3cd; color: #856404; }
.badge-actual   { background: #d1e7dd; color: #0a4f2e; }

/* ── Form ── */
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-string { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.form-W { color: #2d7a2d; }
.form-D { color: #b06000; }
.form-L { color: #c00; }

/* ── Match Statistics ── */
.stats-table { table-layout: fixed; }
.stats-table .stats-home { text-align: right; font-weight: 600; width: 35%; }
.stats-table .stats-label { text-align: center; color: #555; font-size: 0.85rem; width: 30%; }
.stats-table .stats-away { text-align: left; font-weight: 600; width: 35%; }
.stats-table thead th { text-align: center; font-size: 0.85rem; }

/* ── Utility ── */
.muted { color: #999; font-size: 0.9rem; }
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-link:hover { color: #1a1a2e; }

section { margin-bottom: 0.5rem; }

/* ── Historical selectors ── */
.selector-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.selector-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}
.selector-form select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
  color: #1a1a1a;
  min-width: 260px;
}
.selector-form button {
  padding: 0.4rem 1rem;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}
.selector-form button:hover { background: #2e2e50; }

.match-count { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.hint { font-size: 0.78rem; color: #999; margin-top: 0.3rem; }
.stage-label  { font-size: 0.8rem; color: #888; }

/* ── WC26 page ── */
.wc26-table { font-size: 0.85rem; }
.wc26-table th { white-space: nowrap; }

.wc26-date { white-space: nowrap; width: 80px; }
.wc26-day  { display: block; font-weight: 600; font-size: 0.82rem; }
.wc26-time { display: block; font-size: 0.75rem; color: #888; }

.wc26-home { font-weight: 600; text-align: right; }
.wc26-away { font-weight: 600; }
.wc26-winner { color: #1a6e2e; }

.wc26-score { text-align: center; width: 48px; white-space: nowrap; }
.wc26-ft    { font-weight: 700; font-size: 0.95rem; }

.wc26-stats { text-align: center; width: 60px; font-size: 0.8rem; color: #555; white-space: nowrap; }
.xg-val     { font-weight: 600; color: #1a1a2e; }

.wc26-goals { width: 130px; }
.goal-pill  {
  display: inline-block;
  font-size: 0.72rem;
  padding: 1px 4px;
  border-radius: 3px;
  margin: 1px 1px;
  font-weight: 600;
  white-space: nowrap;
}
.goal-fh { background: #dceeff; color: #004a8f; }
.goal-sh { background: #e8f5e9; color: #1a5c2a; }

.wc26-odds { width: 100px; vertical-align: middle; }
.wc26-odd  {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 4px;
  border-radius: 3px;
  margin: 1px 1px;
  background: #f0f0f0;
  color: #333;
  white-space: nowrap;
}
.wc26-odd.won  { background: #d4edda; color: #155724; font-weight: 700; }
.wc26-odd.lost { background: #f8f8f8; color: #bbb; }
.wc26-under  { background: #fff3e0; color: #7c4000; }
.wc26-over   { background: #e3f0ff; color: #003a7a; }
.wc26-fh     { background: #f3e5ff; color: #4a0080; }
.wc26-odd.won.wc26-under { background: #ffe0b2; color: #7c4000; font-weight: 700; }
.wc26-odd.won.wc26-over  { background: #bbdefb; color: #003a7a; font-weight: 700; }
.wc26-odd.won.wc26-fh    { background: #e1bee7; color: #4a0080; font-weight: 700; }

.wc26-row.wc26-swan { background: #fffef5; }
.wc26-row.wc26-swan:hover { background: #fff9e0; }

.wc26-flags-row td {
  padding: 3px 0.75rem 6px;
  background: #fffef0;
  border-top: none;
}

.swan-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 6px;
}
.swan-under  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.swan-over   { background: #cfe2ff; color: #084298; border: 1px solid #9ec5fe; }
.swan-upset  { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }

/* ── Odds chart popup ── */
.odds-badge {
  cursor: pointer;
  border-bottom: 1px dashed #3498db;
  color: #2c3e50;
}
.odds-badge:hover { color: #3498db; }

#odds-popup {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  padding: 0;
  width: 460px;
}
#odds-popup-inner { padding: 12px 14px 14px; }
#odds-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
#odds-popup-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
#odds-popup-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0 2px;
}
#odds-popup-close:hover { color: #333; }

/* ── Betfair odds table ── */
.bf-odds-table {
  border-collapse: collapse;
  width: 100%;
}
.bf-odds-table th, .bf-odds-table td {
  padding: 6px 14px;
  border-bottom: 1px solid #f0f0f0;
}
.bf-odds-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  border-bottom: 2px solid #ddd;
}
.bf-mkt-col   { width: 130px; font-weight: 700; font-size: 0.85rem; color: #333; vertical-align: top; padding-top: 0.6rem; }
.bf-sel-col   { width: 130px; color: #555; }
.bf-odds-col  { width: 80px; text-align: right; }
.bf-closing-col { width: 70px; text-align: right; }
.bf-new-market td { border-top: 2px solid #eee; }
.bf-new-market:first-child td { border-top: none; }
.bf-closing-tag {
  font-size: 0.7rem;
  background: #e8f4e8;
  color: #2d6a2d;
  border: 1px solid #b8ddb8;
  border-radius: 3px;
  padding: 1px 5px;
}

/* ── Recent matches page ── */
.recent-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.recent-header h1 { margin-bottom: 0; }

.days-filter { display: flex; align-items: center; gap: 0.4rem; }
.days-label  { font-size: 0.85rem; color: #666; }
.days-btn {
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  color: #444;
  text-decoration: none;
  background: #fff;
}
.days-btn:hover { background: #f0f0f0; }
.days-btn.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }

.recent-section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.section-count { font-size: 0.78rem; font-weight: 400; color: #999; }

.recent-table { font-size: 0.84rem; }
.recent-table th { white-space: nowrap; }

.rc-time   { width: 48px; color: #888; white-space: nowrap; }
.rc-league { width: 60px; white-space: nowrap; }
.rc-home   { text-align: right; font-weight: 600; }
.rc-away   { font-weight: 600; }
.rc-winner { color: #1a6e2e; }
.rc-score  { text-align: center; width: 44px; white-space: nowrap; }
.rc-ft     { font-weight: 700; font-size: 0.92rem; }
.rc-stat   { text-align: center; width: 56px; font-size: 0.8rem; color: #555; white-space: nowrap; }
.rc-goals  { width: 140px; }
.rc-odds   { width: 115px; white-space: nowrap; }
.rc-bs     { width: 50px; text-align: center; }

.rc-odd {
  display: inline-block;
  font-size: 0.75rem;
  padding: 1px 4px;
  border-radius: 3px;
  margin: 1px 1px;
  background: #f0f0f0;
  color: #333;
  white-space: nowrap;
}
.rc-odd.won  { background: #d4edda; color: #155724; font-weight: 700; }
.rc-odd.lost { background: #f0f0f0; color: #333; }
.rc-over     { background: #e3f0ff; color: #003a7a; }
.rc-under    { background: #fff3e0; color: #7c4000; }
.rc-odd.won.rc-over  { background: #bbdefb; color: #003a7a; font-weight: 700; }
.rc-odd.won.rc-under { background: #ffe0b2; color: #7c4000; font-weight: 700; }

.league-link {
  display: inline-block;
  background: #e8e8f5;
  color: #1a1a2e;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.league-link:hover { background: #1a1a2e; color: #fff; }

.rc-row.rc-swan { background: #fffef5; }
.rc-row.rc-swan:hover { background: #fff9e0; }

.rc-flags-row td {
  padding: 3px 0.75rem 6px;
  background: #fffef0;
  border-top: none;
}

/* Black swan dot (compact inline indicator in BS column) */
.swan-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 1px;
}
.swan-dot.swan-under  { background: #ffc107; }
.swan-dot.swan-over   { background: #3d88f5; }
.swan-dot.swan-upset  { background: #e74c3c; }

.pens-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: #f3e5ff;
  color: #6a0dad;
  border: 1px solid #d4a8f0;
  margin-left: 3px;
  vertical-align: middle;
}

/* ── Hover tooltip ── */
.tt-trigger { cursor: pointer; text-decoration: underline dotted #aaa; }
.hover-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1a1a2e;
  color: #e8e8ff;
  border: 1px solid #3a3a6e;
  border-radius: 7px;
  padding: 8px 11px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  font-size: 0.72rem;
  pointer-events: auto;
}
.tt-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 6px;
  border-bottom: 1px solid #3a3a6e;
  padding-bottom: 4px;
}
.tt-empty { color: #888; font-style: italic; }
.tt-table { width: 100%; border-collapse: collapse; }
.tt-table tr { border-bottom: 1px solid rgba(255,255,255,0.05); }
.tt-table tr:last-child { border-bottom: none; }
.tt-date   { color: #9090c0; white-space: nowrap; padding: 2px 6px 2px 0; width: 36px; }
.tt-teams  { padding: 2px 6px 2px 0; color: #dde; line-height: 1.4; }
.tt-teams strong { color: #fff; }
.tt-fh     { font-size: 0.66rem; color: #9090c0; margin-left: 4px; }
.tt-flags  { white-space: nowrap; text-align: right; }
.tt-badge  {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
}

/* ── Dutching Tool ── */
.dutch-page { max-width: 960px; }
.dutch-section { background: #fff; border-radius: 8px; padding: 20px 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.dutch-h2 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; }
.dutch-match-select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.9rem; }
.dutch-match-label { font-weight: 400; color: #555; font-size: 0.85rem; }

/* Odds panel */
.odds-group { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.odds-group-label { font-size: 0.75rem; font-weight: 700; color: #666; min-width: 90px; }
.odds-btn { background: #f0f4ff; border: 1px solid #c0caee; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 0.78rem; text-align: center; line-height: 1.3; transition: background .15s; }
.odds-btn:hover { background: #dde4ff; }
.odds-val { font-size: 0.85rem; font-weight: 700; color: #2d2d8e; }

/* Manual add */
.manual-add-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; }
.manual-label { font-size: 0.8rem; font-weight: 600; color: #555; }
.manual-add-row select, .manual-add-row input { padding: 5px 8px; border: 1px solid #ccc; border-radius: 5px; font-size: 0.82rem; }
.manual-odds-input { width: 80px; }

/* Calculator */
.dutch-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 14px; }
.dutch-table th { background: #f5f5f5; padding: 6px 10px; text-align: left; font-weight: 600; border-bottom: 2px solid #e0e0e0; }
.dutch-table td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; }
.dutch-inputs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dutch-inputs label { font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.dutch-inputs input { width: 80px; padding: 5px 8px; border: 1px solid #ccc; border-radius: 5px; }
.dutch-btn { padding: 6px 14px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.82rem; font-weight: 600; background: #e8eaf6; color: #3949ab; transition: background .15s; }
.dutch-btn:hover { background: #c5cae9; }
.dutch-btn-primary { background: #3949ab; color: #fff; padding: 7px 18px; }
.dutch-btn-primary:hover { background: #283593; }
.dutch-btn-save { background: #2e7d32; color: #fff; margin-top: 14px; }
.dutch-btn-save:hover { background: #1b5e20; }
.dutch-btn-save:disabled { background: #9e9e9e; }
.dutch-summary { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 0.88rem; }
.sum-profit { background: #e8f5e9; color: #2e7d32; }
.sum-loss   { background: #ffebee; color: #c62828; }
.dutch-note { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.remove-btn { background: none; border: none; color: #e53935; cursor: pointer; font-size: 1rem; padding: 0 4px; }

/* Profit grid */
.grid-wrap { overflow-x: auto; margin-bottom: 14px; }
.profit-grid { border-collapse: collapse; font-size: 0.8rem; }
.profit-grid th { padding: 4px 8px; font-weight: 700; text-align: center; color: #444; }
.grid-away { color: #1a237e; }
.grid-home { color: #b71c1c; }
.grid-cell { padding: 5px 8px; text-align: center; border: 1px solid #eee; min-width: 52px; font-weight: 600; }
.cell-win  { background: #c8e6c9; color: #1b5e20; }
.cell-loss { background: #ffcdd2; color: #b71c1c; }
.cell-push { background: #f5f5f5; color: #555; }
.dutch-ht-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.85rem; }
.ht-input { width: 44px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; text-align: center; }

/* Staked cards */
.staked-card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.staked-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.staked-match { font-weight: 700; font-size: 0.88rem; }
.staked-meta  { font-size: 0.78rem; color: #666; }
.staked-status { font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.st-open     { background: #fff3e0; color: #e65100; }
.st-finished { background: #e8f5e9; color: #2e7d32; }
.staked-sels { margin-bottom: 10px; }
.staked-footer { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; }
.staked-delete-btn { margin-left: auto; background: none; border: none; color: #bbb; font-size: 1rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.staked-delete-btn:hover { color: #c62828; background: #fdecea; }
.staked-ht-form { display: flex; align-items: center; gap: 6px; }
.pnl-win  { color: #2e7d32; font-weight: 700; }
.pnl-loss { color: #c62828; font-weight: 700; }
.pnl-push { color: #555; }
.manual-confirm { color: #2e7d32; font-weight: 700; font-size: 0.82rem; }

/* ── Odds Movement ─────────────────────────────────────────────── */
.om-subtitle { font-size: 0.82rem; color: #888; margin-bottom: 1rem; }

.om-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.om-table th { background: #f5f5f5; font-weight: 600; padding: 7px 10px; text-align: left; border-bottom: 2px solid #e0e0e0; white-space: nowrap; }
.om-table td { padding: 6px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; white-space: nowrap; }
.om-row:hover td { background: #fafafa; }
.om-row-warm td { background: #fffde7; }
.om-row-warm:hover td { background: #fff9c4; }
.om-row-hot td { background: #fff3e0; }
.om-row-hot:hover td { background: #ffe0b2; }

.om-date { font-size: 0.78rem; }
.om-time { color: #888; margin-left: 4px; }
.om-status-ft { font-size: 0.68rem; background: #e8f5e9; color: #2e7d32; border-radius: 3px; padding: 1px 4px; margin-left: 4px; font-weight: 600; }
.om-team { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.om-odds-cell { text-align: right; }
.om-null { color: #ccc; }
.om-snaps { color: #aaa; font-size: 0.74rem; text-align: right; }
.om-move-col { text-align: right; }
.om-move-low { font-size: 0.74rem; color: #bbb; }

.odds-cell { cursor: pointer; font-weight: 600; padding: 2px 4px; border-radius: 3px; }
.odds-cell:hover { background: #e8eaf6; color: #3949ab; }

.om-badge { font-size: 0.74rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.om-badge-warm { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.om-badge-hot  { background: #fbe9e7; color: #bf360c; border: 1px solid #ffab91; }

/* Tooltip */
.om-tooltip { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12); padding: 10px 14px; min-width: 210px; pointer-events: auto; }
.om-tt-title { font-weight: 700; font-size: 0.8rem; margin-bottom: 6px; color: #333; }
.om-tt-table { border-collapse: collapse; font-size: 0.76rem; width: 100%; }
.om-tt-table th { font-weight: 600; color: #888; padding: 2px 6px; border-bottom: 1px solid #eee; text-align: right; }
.om-tt-table th:first-child { text-align: left; }
.om-tt-table td { padding: 3px 6px; text-align: right; border-bottom: 1px solid #f5f5f5; }
.om-tt-table td:first-child { text-align: left; color: #666; }
.om-tt-short { color: #2e7d32; font-weight: 700; }
.om-tt-drift  { color: #c62828; font-weight: 700; }

/* ── Strategies ──────────────────────────────────────────────────────────── */
.strat-page { max-width: 960px; }
.strat-top-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.strat-top-bar h1 { margin: 0; }

.strat-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.strat-card-title { font-size: 0.95rem; font-weight: 700; color: #1a1a2e; margin-bottom: 14px; border-bottom: 1px solid #eee; padding-bottom: 8px; }

/* Strategy grid (list page) */
.strat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.strat-card-link { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.strat-card-link:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); transform: translateY(-1px); }
.strat-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.strat-card-name { font-weight: 700; font-size: 0.95rem; color: #1a1a2e; }
.strat-card-desc { font-size: 0.8rem; color: #666; margin-bottom: 12px; line-height: 1.45; }

.strat-market-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  background: #e8e8f5; color: #3a3a8e; white-space: nowrap;
}

.strat-card-stats { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.strat-stat { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.strat-stat-val { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.strat-stat-lbl { font-size: 0.68rem; color: #888; text-transform: uppercase; letter-spacing: 0.03em; }
.strat-stat-divider { padding-left: 14px; border-left: 1px solid #eee; }

/* Detail header */
.strat-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.strat-perf-summary { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.strat-perf-stat { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
.strat-perf-val { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }

/* Colours */
.strat-green  { color: #2e7d32; }
.strat-red    { color: #c62828; }
.strat-orange { color: #e65100; }
.strat-muted  { color: #999; }

/* Empty state */
.strat-empty { background: #fff; border-radius: 8px; padding: 3rem 2rem; text-align: center; color: #888; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.strat-empty-inline { color: #888; font-size: 0.9rem; }

/* Buttons */
.strat-btn { padding: 7px 16px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #444; font-size: 0.85rem; cursor: pointer; transition: background .15s; }
.strat-btn:hover { background: #f5f5f5; }
.strat-btn-primary { padding: 7px 18px; border: none; border-radius: 6px; background: #1a1a2e; color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.strat-btn-primary:hover { background: #2e2e50; }

/* Form */
.strat-form { display: flex; flex-direction: column; gap: 12px; }
.strat-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.strat-form-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 160px; }
.strat-field-sm { flex: 0 0 100px; min-width: 80px; }
.strat-field-lg { flex: 2; min-width: 200px; }
.strat-form-field label { font-size: 0.78rem; font-weight: 600; color: #555; }
.strat-form-field input, .strat-form-field select, .strat-form-field textarea {
  padding: 6px 9px; border: 1px solid #ccc; border-radius: 5px;
  font-size: 0.85rem; background: #fff; color: #1a1a1a;
}
.strat-form-field textarea { resize: vertical; font-family: inherit; }
.strat-form-field input:focus, .strat-form-field select:focus, .strat-form-field textarea:focus {
  outline: none; border-color: #5c5ccc; box-shadow: 0 0 0 2px rgba(92,92,204,0.15);
}
.strat-form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* Match search */
.strat-search-wrap { position: relative; }
.strat-search-wrap input { width: 100%; }
.strat-search-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
  background: #fff; border: 1px solid #ccc; border-top: none;
  border-radius: 0 0 6px 6px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  max-height: 280px; overflow-y: auto;
}
.strat-result-item {
  padding: 7px 10px; cursor: pointer; font-size: 0.82rem;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid #f5f5f5;
}
.strat-result-item:hover { background: #f0f4ff; }
.strat-sr-date { color: #888; font-size: 0.75rem; white-space: nowrap; }
.strat-sr-match { color: #1a1a2e; }
.strat-no-result { padding: 10px 14px; color: #888; font-size: 0.82rem; }
.strat-sel-match { margin-top: 6px; font-size: 0.82rem; color: #444; background: #f0f4ff; padding: 5px 9px; border-radius: 5px; }
.strat-auto-tag { font-size: 0.68rem; font-weight: 700; padding: 2px 5px; border-radius: 4px; background: #e8f5e9; color: #2e7d32; }

/* Bets table */
.strat-bets-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.strat-bets-table th { background: #f5f5f5; padding: 6px 8px; font-weight: 600; border-bottom: 2px solid #e0e0e0; white-space: nowrap; text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.03em; color: #555; }
.strat-bets-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.strat-bet-row:hover td { background: #fafbff; }
.strat-bt-date  { white-space: nowrap; color: #666; }
.strat-bt-match { font-weight: 600; min-width: 160px; }
.strat-bt-market { color: #555; font-size: 0.78rem; }
.strat-bt-sel { font-size: 0.78rem; }
.strat-notes-row td { padding: 0 8px 6px; }
.strat-notes-cell { font-size: 0.76rem; color: #888; font-style: italic; }
.strat-del-btn { background: none; border: none; color: #bbb; cursor: pointer; font-size: 1rem; padding: 0 4px; border-radius: 3px; }
.strat-del-btn:hover { color: #c62828; background: #fdecea; }

/* Result badges */
.strat-result { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.strat-r-won     { background: #e8f5e9; color: #2e7d32; }
.strat-r-lost    { background: #fdecea; color: #c62828; }
.strat-r-void    { background: #f5f5f5; color: #555; }
.strat-r-pending { background: #fff3e0; color: #e65100; }
.strat-del-strategy-btn { margin-top: 8px; background: none; border: 1px solid #e0e0e0; border-radius: 5px; color: #aaa; font-size: 0.75rem; padding: 3px 10px; cursor: pointer; }
.strat-del-strategy-btn:hover { border-color: #c62828; color: #c62828; background: #fdecea; }
.strat-card-delete-btn { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #ccc; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 4px; z-index: 1; }
.strat-card-delete-btn:hover { color: #c62828; background: #fdecea; }

/* ── Login ── */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f7f7f7; }
.login-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.10); padding: 2.5rem 2rem; width: 100%; max-width: 360px; }
.login-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.8rem; color: #1a1a2e; }
.login-brand .nav-logo { font-size: 1.8rem; }
.login-error { background: #fdecea; color: #c62828; border-radius: 6px; padding: 0.6rem 1rem; margin-bottom: 1rem; font-size: 0.88rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-field { display: flex; flex-direction: column; gap: 4px; }
.login-field label { font-size: 0.82rem; font-weight: 600; color: #555; }
.login-field input { border: 1.5px solid #ddd; border-radius: 6px; padding: 0.55rem 0.75rem; font-size: 0.95rem; outline: none; transition: border-color 0.15s; }
.login-field input:focus { border-color: #6c3fc5; }
.login-btn { margin-top: 0.5rem; background: #6c3fc5; color: #fff; border: none; border-radius: 7px; padding: 0.65rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.login-btn:hover { background: #5a32a3; }

/* ── Nav logout ── */
.nav-logout { font-size: 0.78rem; color: #aaa !important; margin-left: 0.5rem; }
.nav-logout:hover { color: #fff !important; }
