.parlays-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.parlays-header-link {
  width: fit-content;
  color: rgba(255, 122, 122, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.5;
}

.parlays-header-link:hover {
  color: #ffb0a2;
  text-decoration: underline;
}

.parlay-leg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.parlay-leg-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.parlay-leg-bullet {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(49, 227, 154, 0.85);
  box-shadow: 0 0 10px rgba(49, 227, 154, 0.28);
}

.parlay-description {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
}

.parlay-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.parlay-leg-title {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.parlay-option-stack {
  width: min(100%, 280px);
}

.parlay-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.parlay-option:hover {
  transform: translateY(-1px);
}

.parlay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.parlay-option.is-selected,
.parlay-option:has(input:checked) {
  border-color: rgba(49, 227, 154, 0.65);
  background: rgba(8, 39, 28, 0.42);
  box-shadow: inset 0 0 0 1px rgba(49, 227, 154, 0.14);
}

.parlay-option-text {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.parlay-option-odds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 190, 87, 0.22);
  border-radius: 999px;
  background: rgba(255, 190, 87, 0.08);
  color: #ffbe57;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: 1;
  flex: 0 0 auto;
  margin-left: auto;
}

.parlay-option.is-selected .parlay-option-odds,
.parlay-option:has(input:checked) .parlay-option-odds {
  border-color: rgba(49, 227, 154, 0.32);
  background: rgba(49, 227, 154, 0.14);
  color: #31e39a;
}

.parlay-stake-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.parlay-stake-input {
  width: min(240px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.94);
  font: inherit;
  outline: none;
}

input[type="number"].parlay-stake-input {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"].parlay-stake-input::-webkit-outer-spin-button,
input[type="number"].parlay-stake-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.parlay-stake-input:focus {
  border-color: rgba(49, 227, 154, 0.65);
  box-shadow: inset 0 0 0 1px rgba(49, 227, 154, 0.14);
}

.parlay-submit {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(49, 227, 154, 0.22);
  background: rgba(8, 39, 28, 0.42);
  color: #31e39a;
}

.parlay-submit:hover {
  background: rgba(49, 227, 154, 0.1);
}

.summary-card {
  margin-top: 24px;
  border: 1px solid rgba(49, 227, 154, 0.3);
  background: rgba(49, 227, 154, 0.05);
}

.summary-odds-row {
  margin-top: 8px;
  color: #31e39a;
  font-size: 1.25rem;
  font-weight: 600;
}

.parlay-stakes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parlay-stake-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.parlay-stake-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.parlay-stake-meta,
.parlay-stake-values,
.parlay-stake-pick {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.parlay-stake-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.parlay-stake-meta strong {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
}

.parlay-stake-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.parlay-stake-values strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
  font-weight: 600;
}

.parlay-stake-values strong.parlay-stake-value-win {
  color: #31e39a;
}

.parlay-stake-values span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parlay-stake-picks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.parlay-stake-pick {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

.parlay-stake-market {
  color: rgba(255, 255, 255, 0.54);
}

.parlay-stake-selection {
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

@media (max-width: 640px) {
  .parlay-option-stack {
    width: 100%;
  }

  .parlay-stake-head,
  .parlay-stake-pick {
    flex-direction: column;
    gap: 8px;
  }

  .parlay-stake-values,
  .parlay-stake-selection {
    align-items: flex-start;
    text-align: left;
  }
}
