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


/* ── Section heading ── */
.section-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8e8e93;
  margin: 20px 0 8px;
}
.section-heading:first-of-type { margin-top: 0; }

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  opacity: 0.9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card-header:active { background: #f9f9f9; }

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}
.badge-single { background: #e8f4ff; color: #0071e3; }
.badge-double { background: #fff3e0; color: #c85a00; }
.badge-treble { background: #f3e8ff; color: #7c3aed; }
.badge-accum { background: #f3e8ff; color: #7c3aed; }

.header-meta {
  flex: 1;
  min-width: 0;
}
.header-legs {
  font-size: 13px;
  font-weight: 500;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-dates {
  font-size: 11px;
  color: #8e8e93;
  margin-top: 2px;
}

.header-payout { text-align: right; flex-shrink: 0; }
.payout-label  { font-size: 10px; color: #8e8e93; }
.payout-amount { font-size: 17px; font-weight: 700; color: #1c1c1e; line-height: 1.1; }
.payout-stake  { font-size: 11px; color: #8e8e93; }

.chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: #c7c7cc;
  transition: transform 0.2s ease;
}
.card.open .chevron { transform: rotate(180deg); }

.card-body {
  display: none;
  border-top: 1px solid #f2f2f7;
}
.card.open .card-body { display: block; }

/* ── Leg ── */
.leg { padding: 14px 16px; }
.leg + .leg { border-top: 1px solid #f2f2f7; }

.leg-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.leg-number {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f2f2f7;
  font-size: 11px; font-weight: 700;
  color: #636366;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.leg-main { flex: 1; min-width: 0; }

.matchup {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.team-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.team-name { font-size: 14px; font-weight: 500; color: #1c1c1e; white-space: nowrap; overflow: display; text-overflow: ellipsis; }
.vs { font-size: 10px; font-weight: 600; color: #aeaeb2; flex-shrink: 0; }

.leg-meta { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }

.prediction-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: #f2f2f7;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  flex-shrink: 0;
}
.prediction-code { font-weight: 700; color: #1c1c1e; font-variant-numeric: tabular-nums; }
.prediction-sep  { color: #c7c7cc; font-size: 10px; }
.prediction-desc { color: #636366; font-size: 11px; line-height: 1.3; }

.leg-date { font-size: 11px; color: #8e8e93; padding-top: 4px; }

.leg-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px;
  flex-shrink: 0; margin-left: 8px;
}
.odds-chip {
  background: #1c1c1e; color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 3px 8px; border-radius: 7px;
  letter-spacing: -0.01em;
}
.leg-stake { font-size: 11px; color: #8e8e93; text-align: right; }
.leg-stake strong { color: #3a3a3c; font-weight: 600; }

.cascade-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 16px 4px 50px;
  background: #fafafa;
  border-top: 1px solid #f2f2f7;
  border-bottom: 1px solid #f2f2f7;
}
.cascade-arrow { font-size: 13px; color: #aeaeb2; }
.cascade-label { font-size: 11px; color: #636366; }

