:root {
  --bg:        #0b0c10;
  --surface:   #13151c;
  --surface2:  #1c1f2b;
  --border:    #252836;
  --text:      #dde0f0;
  --sub:       #7c80a0;
  --green:     #22c55e;
  --green-dim: #16532d;
  --yellow:    #f59e0b;
  --yellow-dim:#78400b;
  --red:       #ef4444;
  --red-dim:   #6b1c1c;
  --blue:      #6366f1;
  --accent:    #818cf8;
  --radius:    10px;
}

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

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

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.1rem; }
.logo-accent { color: var(--accent); }
.tagline { color: var(--sub); font-size: 0.78rem; }
@media (max-width: 480px) { .tagline { display: none; } }

/* LAYOUT */
main { max-width: 1300px; margin: 0 auto; padding: 16px 12px; overflow-x: hidden; }
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.matches-panel { min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .builder-panel { display: none; }
  main { padding-bottom: 80px; }
}

/* LEAGUE TABS */
.league-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.league-tabs::-webkit-scrollbar { display: none; }
.tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--sub);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.tab-divider {
  width: 1px; height: 24px; background: var(--border);
  flex-shrink: 0; align-self: center; margin: 0 2px;
}

/* LOADING */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--sub);
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ERROR / EMPTY */
.error-msg, .no-matches {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--sub);
}
.error-msg { border-color: var(--red-dim); color: var(--red); }

/* MATCH CARD */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.match-card:hover { border-color: #3a3d54; }

/* MATCH HEAD */
.match-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.team {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.88rem;
}
.team.home { justify-content: flex-end; text-align: right; }
.team.away { justify-content: flex-start; text-align: left; }
.team img {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.team-name {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  max-width: 120px;
}
.team-clickable {
  cursor: pointer;
  transition: color 0.15s;
}
.team-clickable:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 480px) {
  .match-head { padding: 12px 12px 10px; gap: 6px; }
  .team { font-size: 0.82rem; gap: 5px; }
  .team img { width: 22px; height: 22px; }
  .team-name { max-width: 100px; }
}
@media (max-width: 360px) {
  .team-name { max-width: 74px; font-size: 0.76rem; }
}

.vs-block { text-align: center; flex-shrink: 0; }
.vs { display: block; font-size: 0.6rem; color: var(--sub); text-transform: uppercase; letter-spacing: 1px; }
.xg-display {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 3px;
  justify-content: center;
}
.xg-sep { color: var(--sub); font-weight: 400; }
.xg-label { font-size: 0.58rem; color: var(--sub); margin-top: 2px; white-space: nowrap; }

/* FORM STRIP */
.form-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}
.form-strip-label {
  font-size: 0.58rem;
  color: var(--sub);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-row {
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
}
.form-row.home { justify-content: flex-end; }
.form-row.away { justify-content: flex-start; }
.form-badge {
  width: 20px; height: 20px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-badge.W { background: var(--green-dim); color: var(--green); }
.form-badge.D { background: var(--yellow-dim); color: var(--yellow); }
.form-badge.L { background: var(--red-dim); color: var(--red); }

/* MATCH META */
.match-meta {
  padding: 6px 12px 7px;
  background: var(--surface2);
  color: var(--sub);
  font-size: 0.73rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}
.league-badge {
  background: var(--blue);
  color: #fff;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* STATS STRIP */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  background: var(--surface);
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stat-cell.center {
  background: var(--surface2);
  padding: 7px 8px;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 60px;
}
.stat-val { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.62rem; color: var(--sub); white-space: nowrap; }
.stat-center-label { font-size: 0.58rem; color: var(--sub); text-transform: uppercase; letter-spacing: 0.6px; text-align: center; white-space: nowrap; }
.stat-cell.home .stat-val { color: var(--accent); }
.stat-cell.away .stat-val { color: #f472b6; }

/* H2H SECTION */
.h2h-section {
  border-bottom: 1px solid var(--border);
  padding: 8px 14px 10px;
  background: var(--surface);
}
.h2h-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sub);
  margin-bottom: 7px;
}
.h2h-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.h2h-stat {
  background: var(--surface2);
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.h2h-num { font-size: 1.2rem; font-weight: 800; line-height: 1; }
.h2h-stat.hw .h2h-num { color: var(--accent); }
.h2h-stat.dr .h2h-num { color: var(--sub); }
.h2h-stat.aw .h2h-num { color: #f472b6; }
.h2h-lbl { font-size: 0.65rem; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* RECOMMENDATIONS */
.recs-label {
  padding: 10px 16px 5px;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sub);
  font-weight: 600;
}
.rec-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  transition: background 0.1s;
}
.rec-item:hover { background: var(--surface2); }
@media (min-width: 600px) {
  .rec-item {
    flex-direction: row;
    align-items: center;
  }
}

.show-all-btn {
  display: block;
  width: calc(100% - 28px);
  margin: 8px 14px;
  padding: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--blue);
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
}
.show-all-btn:hover { background: var(--border); }

.rec-left { flex: 1; min-width: 0; }
.rec-name { font-size: 0.85rem; font-weight: 500; margin-bottom: 4px; }
.rec-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.prob-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 100px;
}
.prob-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.prob-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  transition: width 0.4s ease;
}
.prob-fill.high  { background: var(--green); }
.prob-fill.med   { background: var(--yellow); }
.prob-fill.low   { background: var(--sub); }
.prob-pct { font-size: 0.8rem; color: var(--text); font-weight: 600; white-space: nowrap; }

.rec-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.rec-tag.excellent { background: #14532d; color: var(--green); }
.rec-tag.good      { background: #1a3520; color: #4ade80; }
.rec-tag.neutral   { background: #1c1408; color: var(--yellow); }

.rec-odds-ev {
  font-size: 0.75rem;
  color: var(--sub);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.odds-val { color: var(--text); font-weight: 600; }
.ev-positive { color: var(--green); }
.ev-neutral  { color: var(--yellow); }
.fair-note   { font-size: 0.65rem; opacity: 0.6; }

.add-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--sub);
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.15s;
  flex-shrink: 0;
  width: 100%;
  text-align: center;
}
@media (min-width: 600px) {
  .add-btn { width: auto; }
}
.add-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.add-btn.added { background: var(--green-dim); border-color: var(--green); color: var(--green); cursor: default; }

.match-error {
  padding: 12px 16px;
  color: var(--sub);
  font-size: 0.83rem;
}

/* BET BUILDER PANEL */
.builder-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: 70px;
  overflow: hidden;
}
.builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.builder-header h2 { font-size: 0.95rem; font-weight: 700; }
.builder-count {
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.builder-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--sub);
}
.empty-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* BUILDER BETS */
.bet-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.bet-info { flex: 1; min-width: 0; }
.bet-match { font-size: 0.75rem; color: var(--sub); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-market { font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }
.bet-meta { display: flex; gap: 6px; font-size: 0.72rem; }
.bet-odds-tag { color: var(--accent); font-weight: 600; }
.bet-prob-tag { color: var(--sub); }
.remove-bet {
  background: transparent;
  border: none;
  color: var(--sub);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}
.remove-bet:hover { color: var(--red); }

/* CALC */
.builder-calc { padding: 14px 16px; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.83rem;
  color: var(--sub);
}
.calc-val { font-weight: 700; color: var(--text); }

.stake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}
.stake-row label { font-size: 0.85rem; font-weight: 600; }
.stake-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.currency {
  padding: 6px 8px;
  color: var(--sub);
  font-size: 0.82rem;
  background: var(--border);
}
.stake-input-wrap input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  width: 72px;
  padding: 6px 8px;
  outline: none;
  text-align: right;
}

.payout-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.payout-label { font-size: 0.8rem; color: var(--sub); }
.payout-val { font-size: 1.1rem; font-weight: 800; color: var(--green); }

.verdict-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.82rem;
}
.verdict-box.excellent { background: #14532d; color: var(--green); }
.verdict-box.good      { background: #1a3520; color: #4ade80; }
.verdict-box.neutral   { background: #1c1408; color: var(--yellow); }
.verdict-box.bad       { background: var(--red-dim); color: var(--red); }
.verdict-icon { font-size: 1rem; }

.clear-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--sub);
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.clear-btn:hover { border-color: var(--red); color: var(--red); }

/* MOBILE BUILDER DRAWER */
.mobile-builder-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
}
.mobile-builder-overlay.open { display: block; }

.mobile-builder-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  z-index: 100;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  display: none;
}
.mobile-builder-drawer.open {
  transform: translateY(0);
  display: block;
}
.drawer-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 4px;
}
.drawer-close {
  background: transparent;
  border: none;
  color: var(--sub);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.drawer-close:hover { color: var(--text); }

/* MOBILE FAB */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 20px; right: 16px;
  background: var(--blue);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 12px 18px;
  cursor: pointer;
  z-index: 50;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mobile-fab:active { transform: scale(0.96); }
.fab-icon { font-size: 1rem; }
.fab-count {
  background: #fff;
  color: var(--blue);
  border-radius: 10px;
  font-size: 0.72rem;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
@media (max-width: 900px) {
  .mobile-fab { display: flex; }
}

/* F1 */
.f1-card { overflow: hidden; }

.f1-header {
  background: linear-gradient(135deg, #1a0a0a 0%, #1c1f2b 100%);
  border-bottom: 2px solid #e8002d;
  padding: 14px 16px;
}
.f1-round {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #e8002d;
  font-weight: 700;
  margin-bottom: 4px;
}
.f1-race-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.f1-circuit {
  font-size: 0.78rem;
  color: var(--sub);
  margin-bottom: 5px;
}
.f1-meta {
  font-size: 0.72rem;
  color: var(--sub);
}

.f1-note {
  padding: 6px 16px;
  font-size: 0.68rem;
  color: var(--sub);
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

.f1-drivers { padding: 4px 0; }

.f1-driver-row {
  display: grid;
  grid-template-columns: 28px 8px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.f1-driver-row:hover { background: var(--surface2); }
.f1-driver-row:last-child { border-bottom: none; }

.f1-pos { font-size: 0.9rem; text-align: center; }
.f1-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; }

.f1-info { min-width: 0; }
.f1-name { display: flex; align-items: baseline; gap: 5px; }
.f1-code { font-size: 0.88rem; font-weight: 800; color: var(--text); }
.f1-full { font-size: 0.7rem; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f1-team { font-size: 0.65rem; color: var(--sub); margin-top: 1px; }

.f1-probs { display: flex; flex-direction: column; gap: 3px; min-width: 110px; }
.f1-prob-row { display: flex; align-items: center; gap: 5px; }
.f1-prob-label { font-size: 0.6rem; color: var(--sub); width: 36px; flex-shrink: 0; }
.f1-bar-wrap { display: flex; align-items: center; gap: 4px; flex: 1; }
.f1-bar { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; min-width: 40px; }
.f1-bar-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.f1-pct { font-size: 0.68rem; font-weight: 700; color: var(--text); white-space: nowrap; width: 30px; text-align: right; }

.f1-btns { display: flex; flex-direction: column; gap: 4px; }
.f1-add {
  padding: 4px 8px !important;
  font-size: 0.7rem !important;
  width: auto !important;
  min-width: 32px;
}

@media (max-width: 480px) {
  .f1-driver-row { grid-template-columns: 24px 6px 1fr auto; gap: 6px; padding: 8px 10px; }
  .f1-btns { display: none; }
  .f1-full { display: none; }
  .f1-probs { min-width: 90px; }
  .f1-pct { width: 26px; }
}

/* RECOMMENDED COMBINATIONS */
#recommendedCombos { margin-bottom: 18px; }
.combos-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sub);
  margin-bottom: 8px;
}
.combo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left-width: 3px;
  overflow: hidden;
}
.combo-green  { border-left-color: var(--green); }
.combo-blue   { border-left-color: var(--accent); }
.combo-yellow { border-left-color: var(--yellow); }
.combo-red    { border-left-color: var(--red); }

.combo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.combo-label { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.combo-desc { font-size: 0.7rem; color: var(--sub); margin-top: 2px; }
.combo-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.combo-total-odds { font-size: 1rem; font-weight: 800; color: var(--text); }
.combo-ev { font-size: 0.72rem; font-weight: 600; }
.ev-neg { color: var(--red); }

.combo-bets {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.combo-bet-row {
  background: var(--surface2);
  border-radius: 6px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.combo-bet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.combo-match { color: var(--text); font-weight: 600; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.combo-odds-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.combo-bet-bottom { display: flex; align-items: center; gap: 8px; }
.combo-market { color: var(--sub); font-size: 0.72rem; flex: 1; }
.combo-prob { color: var(--sub); font-size: 0.7rem; white-space: nowrap; }

.combo-load-btn {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}
.combo-green  .combo-load-btn:hover { border-color: var(--green);  color: var(--green); }
.combo-blue   .combo-load-btn:hover { border-color: var(--accent); color: var(--accent); }
.combo-yellow .combo-load-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.combo-red    .combo-load-btn:hover { border-color: var(--red);    color: var(--red); }

/* Pass probability bar */
.combo-pass-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 0;
}
.combo-pass-label {
  font-size: 0.68rem;
  color: var(--sub);
  white-space: nowrap;
  flex-shrink: 0;
}
.combo-pass-track {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.combo-pass-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.combo-pass-fill.pass-high { background: var(--green); }
.combo-pass-fill.pass-mid  { background: var(--yellow); }
.combo-pass-fill.pass-low  { background: var(--red); }
.combo-pass-pct {
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  min-width: 42px;
  text-align: right;
}
.combo-pass-pct.pass-high { color: var(--green); }
.combo-pass-pct.pass-mid  { color: var(--yellow); }
.combo-pass-pct.pass-low  { color: var(--red); }

/* ===== TIKETI TAB ===== */
.tiketi-view { display: flex; flex-direction: column; gap: 20px; }

.tiketi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 700px) { .tiketi-grid { grid-template-columns: 1fr; } }

.tiket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tiket-card.tiket-green  { border-top: 3px solid var(--green); }
.tiket-card.tiket-blue   { border-top: 3px solid var(--blue); }
.tiket-card.tiket-yellow { border-top: 3px solid var(--yellow); }
.tiket-card.tiket-red    { border-top: 3px solid var(--red); }

.tiket-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 8px;
  flex-wrap: wrap;
}
.tiket-opcija {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tiket-label-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.tiket-badge-green  { background: var(--green-dim);  color: var(--green); }
.tiket-badge-blue   { background: #2a2c5a;            color: var(--accent); }
.tiket-badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.tiket-badge-red    { background: var(--red-dim);    color: var(--red); }

.tiket-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 12px 8px;
  margin-top: -2px;
  font-style: italic;
}

.tiket-chance {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
}
.tiket-chance.pass-high { color: var(--green); }
.tiket-chance.pass-mid  { color: var(--yellow); }
.tiket-chance.pass-low  { color: var(--red); }

.tiket-bets { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.tiket-bet-row {
  background: var(--surface2);
  border-radius: 7px;
  padding: 7px 10px;
}
.tiket-bet-match {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tiket-bet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
}
.tiket-bet-market { color: var(--sub); flex: 1; }
.tiket-bet-odds   { color: var(--accent); font-weight: 700; }
.tiket-bet-prob   { font-weight: 700; }
.tiket-bet-prob.pass-high { color: var(--green); }
.tiket-bet-prob.pass-mid  { color: var(--yellow); }
.tiket-bet-prob.pass-low  { color: var(--red); }

.tiket-pass-bar { padding: 10px 14px 0; }
.tiket-pass-track {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
}
.tiket-pass-fill { height: 100%; border-radius: 2px; transition: width .4s ease; }
.tiket-pass-fill.pass-high { background: var(--green); }
.tiket-pass-fill.pass-mid  { background: var(--yellow); }
.tiket-pass-fill.pass-low  { background: var(--red); }

.tiket-footer {
  padding: 10px 14px 14px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tiket-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.tiket-stat-label { color: var(--sub); }
.tiket-stat-val   { font-weight: 600; }
.tiket-payout-row { margin-top: 3px; }
.tiket-payout-val { font-size: 1rem; font-weight: 800; color: var(--green); }
.ev-neutral { color: var(--sub); }

.tiket-load-btn {
  margin-top: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.tiket-load-btn:hover { background: var(--border); border-color: var(--accent); }

/* Preporuka */
.tiketi-preporuka {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.preporuka-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.preporuka-title {
  font-size: 1rem;
  font-weight: 700;
}
.preporuka-split {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.split-pill {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
}
.split-a { background: var(--green-dim);  color: var(--green); }
.split-b { background: #2a2c5a;           color: var(--accent); }
.split-plus { color: var(--sub); font-weight: 700; font-size: 1rem; }

.preporuka-scenarios { display: flex; flex-direction: column; gap: 6px; }
.scenario {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.84rem;
}
.scenario-bad  { background: rgba(239,68,68,.1);  color: var(--text); }
.scenario-warn { background: rgba(245,158,11,.1); color: var(--text); }
.scenario-ok   { background: rgba(99,102,241,.1); color: var(--text); }
.scenario-best { background: rgba(34,197,94,.1);  color: var(--text); }
.scenario-val  { font-weight: 700; }
.scenario-bad  .scenario-val { color: var(--red); }
.scenario-warn .scenario-val { color: var(--yellow); }
.scenario-ok   .scenario-val { color: var(--accent); }
.scenario-best .scenario-val { color: var(--green); }

/* ── Injury strip ──────────────────────────────────────────────────────────── */
.injury-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 6px;
  padding: 6px 12px 8px;
  background: rgba(239,68,68,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.inj-label {
  font-size: 0.58rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  padding-top: 2px;
  font-weight: 600;
}
.inj-side {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.inj-home { justify-content: flex-end; }
.inj-away { justify-content: flex-start; }
.inj-player {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.inj-out { background: var(--red-dim); color: var(--red); }
.inj-doubtful { background: var(--yellow-dim); color: var(--yellow); }
.inj-none { font-size: 0.62rem; color: var(--sub); font-style: italic; }

.weather-strip {
  text-align: center;
  font-size: 0.7rem;
  color: var(--sub);
  padding: 4px 12px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 480px) {
  .injury-strip { grid-template-columns: 1fr; gap: 4px; padding: 8px 12px; }
  .inj-label { text-align: left; margin-bottom: 2px; }
  .inj-home, .inj-away { justify-content: flex-start; }
}

/* ── Team modal ─────────────────────────────────────────────────────────── */
.team-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.team-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 420px;
  max-height: 80vh; overflow-y: auto;
}
.team-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.95rem;
}
.team-modal-close {
  background: none; border: none; color: var(--sub);
  cursor: pointer; font-size: 1rem; padding: 2px 6px;
}
.team-modal-close:hover { color: var(--text); }
.team-modal-body { padding: 12px 16px 16px; }
.team-modal-loading, .team-modal-empty {
  color: var(--sub); font-size: 0.85rem; text-align: center; padding: 24px 0;
}
.tm-section-label {
  font-size: 0.7rem; font-weight: 600; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.tm-match-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.tm-match-row:last-of-type { border-bottom: none; }
.tm-date { color: var(--sub); min-width: 30px; font-size: 0.75rem; }
.tm-side { font-size: 0.65rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; min-width: 28px; text-align: center; }
.tm-home { background: #1e2f50; color: var(--accent); }
.tm-away { background: #2a1e2e; color: #c084fc; }
.tm-teams { flex: 1; color: var(--text); }
.tm-score { font-weight: 700; color: var(--text); margin: 0 3px; }
.tm-result { font-weight: 700; font-size: 0.82rem; min-width: 18px; text-align: center; }
.tm-w { color: var(--green); }
.tm-d { color: var(--yellow); }
.tm-l { color: var(--red); }
.tm-tournament { font-size: 0.7rem; color: var(--sub); margin-top: 10px; text-align: center; }

/* ── Basketball ─────────────────────────────────────────────────────────── */
.bball-sport-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 14px 0;
}
.bball-winprob { padding: 10px 14px 4px; }
.bball-prob-bar {
  display: flex; height: 22px; border-radius: 6px; overflow: hidden;
  font-size: 0.75rem; font-weight: 700;
}
.bball-prob-home {
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  min-width: 28px;
}
.bball-prob-away {
  background: #3a1f5e; color: #c084fc;
  display: flex; align-items: center; justify-content: center;
  min-width: 28px; flex: 1;
}
.bball-prob-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.7rem; color: var(--sub); margin-top: 4px;
}
.bball-total-exp { color: var(--yellow); font-weight: 600; }

/* ── Best Picks section ─────────────────────────────────────────────────── */
.best-picks-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.best-picks-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.best-picks-icon { font-size: 1.1rem; }
.best-picks-title { font-weight: 700; font-size: 0.95rem; }
.best-picks-sub { font-size: 0.72rem; color: var(--sub); margin-left: auto; }

.best-picks-list { display: flex; flex-direction: column; gap: 2px; }
.bp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface2);
  transition: background 0.15s;
}
.bp-row:hover { background: #1e2130; }
.bp-rank {
  font-size: 0.72rem; font-weight: 700; color: var(--sub);
  min-width: 18px; text-align: center;
}
.bp-info { flex: 1; min-width: 0; }
.bp-match { font-size: 0.8rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-market { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.bp-stats { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bp-odds { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.bp-prob { font-size: 0.78rem; font-weight: 600; }
.bp-ev { font-size: 0.78rem; font-weight: 700; min-width: 60px; text-align: right; }
.bp-ev-great  { color: var(--green); }
.bp-ev-good   { color: #6ee7b7; }
.bp-ev-neutral{ color: var(--yellow); }
.bp-ev-bad    { color: var(--sub); }

.bp-badge { font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.bp-badge-fire { background: rgba(239,68,68,0.2); color: #f87171; }
.bp-badge-good { background: var(--green-dim); color: var(--green); }
.bp-badge-ok   { background: var(--surface); color: var(--sub); }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dashboard-view { max-width: 720px; margin: 0 auto; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.dash-header h2 { margin: 0; font-size: 1.1rem; }
.dash-bankroll { font-size: 0.88rem; color: var(--sub); }
.dash-bankroll strong { color: var(--green); font-size: 1rem; }
.dash-edit-bankroll {
  background: none; border: 1px solid var(--border); color: var(--sub);
  padding: 2px 8px; border-radius: 6px; font-size: 0.72rem; cursor: pointer; margin-left: 6px;
}
.dash-edit-bankroll:hover { color: var(--text); border-color: var(--accent); }

.dash-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 20px;
}
.dash-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; text-align: center;
}
.dash-card-label { font-size: 0.72rem; color: var(--sub); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.dash-card-val { font-size: 1.4rem; font-weight: 800; }
.dash-card-sub { font-size: 0.7rem; color: var(--sub); margin-top: 2px; }
.dash-good { color: var(--green); }
.dash-bad { color: var(--red); }

.dash-section { margin-bottom: 24px; }
.dash-section h3 { font-size: 0.95rem; margin: 0 0 6px; }
.dash-sub { font-size: 0.72rem; color: var(--sub); margin-bottom: 10px; }
.dash-empty { color: var(--sub); font-size: 0.85rem; padding: 16px 0; text-align: center; }

/* Calibration chart */
.calibration-chart { display: flex; flex-direction: column; gap: 6px; }
.cal-row { display: flex; align-items: center; gap: 8px; }
.cal-bin { font-size: 0.72rem; color: var(--sub); min-width: 48px; text-align: right; }
.cal-bars { flex: 1; height: 16px; position: relative; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.cal-bar-predicted { position: absolute; top: 0; left: 0; height: 50%; background: var(--blue); opacity: 0.6; border-radius: 2px 2px 0 0; }
.cal-bar-actual { position: absolute; bottom: 0; left: 0; height: 50%; background: var(--green); opacity: 0.8; border-radius: 0 0 2px 2px; }
.cal-vals { font-size: 0.72rem; color: var(--text); min-width: 100px; }
.cal-n { color: var(--sub); }

/* League stats */
.league-stat-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.ls-name { flex: 1; }
.ls-val { color: var(--sub); font-size: 0.78rem; }
.ls-acc { font-weight: 700; min-width: 40px; text-align: right; }
.ls-good { color: var(--green); }
.ls-bad { color: var(--red); }

/* Signals */
.signals-list { display: flex; flex-direction: column; gap: 4px; }
.signal-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.signal-info { flex: 1; min-width: 0; }
.signal-match { font-size: 0.8rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signal-date { color: var(--yellow); font-size: 0.7rem; font-weight: 600; margin-left: 6px; }
.signal-market { font-size: 0.88rem; font-weight: 600; margin-top: 1px; }
.signal-league { font-size: 0.65rem; color: var(--sub); font-weight: 400; }
.signal-stats { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 0.8rem; }
.signal-prob { font-weight: 600; }
.signal-odds { font-weight: 700; }
.signal-ev { font-weight: 700; }
.signal-stake { color: var(--yellow); font-weight: 700; }
.signal-expected { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.signal-exp-val { font-size: 0.75rem; font-weight: 700; color: var(--green); padding: 2px 8px; background: rgba(76, 175, 80, 0.12); border-radius: 6px; }
.signal-placed { color: var(--green); font-weight: 600; font-size: 0.72rem; padding: 2px 8px; background: rgba(76, 175, 80, 0.12); border-radius: 6px; }
.signal-auto { color: var(--yellow); font-weight: 600; font-size: 0.72rem; padding: 2px 8px; background: rgba(255, 193, 7, 0.12); border-radius: 6px; }

/* ── Projection cards ────────────────────────────────────────────────────── */
.projection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; text-align: center;
}
.proj-card.proj-expected { border-color: var(--accent); }
.proj-card.proj-realistic { border-color: var(--green); }
.proj-label { font-size: 0.7rem; color: var(--sub); text-transform: uppercase; letter-spacing: 0.5px; }
.proj-val { font-size: 1.3rem; font-weight: 800; margin: 4px 0; }
.proj-sub { font-size: 0.65rem; color: var(--sub); }
.proj-note { font-size: 0.72rem; color: var(--sub); text-align: center; padding: 6px 0; border-top: 1px solid var(--border); }

/* ── Paper bet list ────────────────────────────────────────────────────────── */
.paper-bets-list { display: flex; flex-direction: column; gap: 4px; max-height: 500px; overflow-y: auto; }
.paper-bet-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  border-left: 3px solid var(--sub);
}
.paper-bet-row.pb-won { border-left-color: var(--green); background: rgba(76, 175, 80, 0.05); }
.paper-bet-row.pb-lost { border-left-color: var(--red); opacity: 0.65; }
.paper-bet-row.pb-pending { border-left-color: var(--yellow); }
.pb-info { flex: 1; min-width: 0; }
.pb-match { font-size: 0.88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-meta { font-size: 0.72rem; color: var(--sub); margin-top: 2px; }
.pb-numbers { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 0.78rem; flex-wrap: wrap; }
.pb-prob { color: var(--yellow); font-weight: 700; font-size: 0.75rem; padding: 1px 6px; background: rgba(255, 193, 7, 0.12); border-radius: 6px; }
.pb-stake { color: var(--sub); }
.pb-odds { color: var(--accent); font-weight: 600; }
.pb-potential { color: var(--green); font-weight: 700; }
.pb-ep { font-size: 0.68rem; color: var(--accent); font-weight: 600; padding: 1px 6px; background: rgba(96, 165, 250, 0.12); border-radius: 6px; }
.pb-lost .pb-potential { color: var(--red); }
.pb-status-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: 0.3px;
}
.pb-status-badge.pb-status-pb-won { background: rgba(76, 175, 80, 0.15); color: var(--green); }
.pb-status-badge.pb-status-pb-lost { background: rgba(244, 67, 54, 0.15); color: var(--red); }
.pb-status-badge.pb-status-pb-pending { background: rgba(255, 193, 7, 0.15); color: var(--yellow); }
.pb-totals {
  padding: 10px 0; font-size: 0.85rem; color: var(--sub);
  border-top: 1px solid var(--border); margin-top: 8px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.pb-totals strong { color: var(--green); }

/* ── Line movement strip ─────────────────────────────────────────────── */
.line-movement-strip {
  text-align: center; font-size: 0.7rem; color: var(--sub);
  padding: 4px 12px; border-bottom: 1px solid var(--border);
}
.line-item { margin: 0 6px; font-weight: 600; }
.line-up { color: var(--red); }
.line-down { color: var(--green); }

/* ── Manager strip ───────────────────────────────────────────────────── */
.manager-strip {
  text-align: center; font-size: 0.7rem;
  padding: 4px 12px; border-bottom: 1px solid var(--border);
}
.mgr-new { color: var(--yellow); font-weight: 600; }

/* ── Market accuracy ─────────────────────────────────────────────────── */
.market-stats-list { display: flex; flex-direction: column; gap: 3px; }
.market-stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; font-size: 0.8rem;
}
.ms-name { flex: 1; font-weight: 600; }
.ms-record { color: var(--sub); font-size: 0.72rem; }
.ms-acc { font-weight: 700; min-width: 40px; text-align: right; }
.ms-roi { font-weight: 700; min-width: 65px; text-align: right; }
.ms-good { color: var(--green); }
.ms-bad { color: var(--red); }

/* ── Parlay suggestions ──────────────────────────────────────────────── */
.parlays-list { display: flex; flex-direction: column; gap: 8px; }
.parlay-card {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 10px; padding: 12px; overflow: hidden;
}
.parlay-header {
  font-weight: 700; font-size: 0.9rem; color: var(--accent);
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.parlay-legs { display: flex; flex-direction: column; gap: 4px; }
.parlay-leg { font-size: 0.82rem; }
.parlay-market { color: var(--sub); font-size: 0.72rem; margin-left: 4px; }
.parlay-odds { color: var(--accent); font-weight: 700; margin-left: 4px; }
.parlay-footer {
  display: flex; gap: 12px; margin-top: 8px; padding-top: 6px;
  border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--sub);
}
.parlay-footer span:first-child { color: var(--green); font-weight: 700; }

/* ── Bankroll chart ──────────────────────────────────────────────────── */
#bankrollChart {
  width: 100%; max-width: 600px; height: 200px;
  margin: 0 auto; display: block;
}

/* ── Mobile responsive fixes ──────────────────────────────────────────── */
@media (max-width: 480px) {
  /* Signal rows: stack vertically on mobile */
  .signal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }
  .signal-info { width: 100%; }
  .signal-match {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .signal-market { font-size: 0.82rem; }
  .signal-stats {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
  }
  .signal-bet-btn { width: 100%; text-align: center; padding: 8px; }

  /* Best picks rows: stack on mobile */
  .bp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px;
  }
  .bp-rank { position: absolute; top: 10px; right: 10px; }
  .bp-row { position: relative; }
  .bp-info { width: 100%; padding-right: 24px; }
  .bp-match {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .bp-market { font-size: 0.82rem; flex-wrap: wrap; }
  .bp-stats {
    width: 100%;
    gap: 8px;
    font-size: 0.8rem;
  }
  .bp-ev { min-width: auto; text-align: left; }

  /* Match meta: bigger date text */
  .match-meta { font-size: 0.78rem; padding: 7px 12px 8px; }

  /* Team names: allow more space */
  .team-name { max-width: 110px; }

  /* Stats strip: bigger labels */
  .stat-label { font-size: 0.68rem; }
  .stat-center-label { font-size: 0.64rem; }

  /* Dashboard cards */
  .dash-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .dash-card { padding: 10px; }
  .dash-card-val { font-size: 1.2rem; }
  .dash-card-label { font-size: 0.68rem; }

  /* Tracker header */
  .dash-header { flex-direction: column; align-items: flex-start; }

  /* Paper bet rows: stack on mobile */
  .paper-bet-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pb-match { white-space: normal; }
  .pb-numbers { width: 100%; gap: 6px; }
  .pb-totals { flex-direction: column; gap: 4px; }
  .projection-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .proj-val { font-size: 1.1rem; }
  .signal-row { flex-wrap: wrap; }
  .signal-expected { width: 100%; justify-content: flex-end; margin-top: 4px; }

  /* Tiketi grid: already 1fr at 700px, ensure cards read well */
  .tiket-bet-match { white-space: normal; font-size: 0.8rem; line-height: 1.3; }
  .tiket-bet-meta { flex-wrap: wrap; gap: 4px 8px; }
}

@media (max-width: 360px) {
  .signal-stats { font-size: 0.72rem; }
  .bp-stats { font-size: 0.72rem; }
  .team-name { max-width: 80px; font-size: 0.76rem; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
