/* 聰明注（合併至主頁） */

.combo-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--gb-bg);
  border-bottom: none;
}

.combo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  background: var(--gb-surface);
}

.combo-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-200);
}

.combo-table th {
  padding: 8px 6px;
  font-weight: 600;
  color: var(--gb-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--gb-border-strong);
  white-space: nowrap;
}

.combo-table th:nth-child(3),
.combo-table th:nth-child(4),
.combo-table th:nth-child(5) {
  text-align: right;
}

.combo-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--gb-border);
  color: var(--gb-text);
  vertical-align: middle;
}

.combo-table td:nth-child(3),
.combo-table td:nth-child(4),
.combo-table td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.combo-table-sep td {
  padding: 0;
  height: 6px;
  border-bottom: none;
  background: var(--gb-bg);
}

.smart-controls select optgroup {
  font-weight: 600;
  color: var(--gb-text-muted);
}

.combo-table tbody tr:last-child td {
  border-bottom: none;
}

.combo-pool {
  display: inline-block;
  min-width: 3.2em;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: #fff;
  border: none;
  border-radius: 0;
}

.combo-pool--qin {
  background: var(--gb-pool-qin);
}

.combo-pool--fct {
  background: var(--gb-pool-fct);
}

.combo-pool--qpl {
  background: var(--gb-pool-qpl);
}

.combo-table-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--gb-text-muted);
  font-size: 0.82rem;
}

.smart-panel {
  flex-shrink: 0;
  background: var(--gb-surface);
  border-top: 1px solid var(--gb-border-strong);
}

.bet-panel-section .smart-totals {
  flex-shrink: 0;
  margin: 0;
  border-bottom: none;
}

.bet-panel-section .smart-controls {
  flex-shrink: 0;
  padding: 10px 12px 6px;
  background: var(--gb-surface);
  border-bottom: none;
}

.smart-controls .control-row:first-child .control-field {
  grid-column: 1 / -1;
}

.smart-totals {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 14px;
  margin: 0;
  border-bottom: none;
  background: var(--primary-100);
}

.smart-totals__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.smart-totals__col--left {
  align-items: flex-start;
}

.smart-totals__col--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.smart-totals__col--right {
  align-items: flex-end;
  text-align: right;
}

.smart-pool-summary {
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  white-space: normal;
}

.smart-pool-summary:empty {
  display: none;
}

.smart-total-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
}

.smart-total-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.smart-total-payout-range {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.smart-total-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smart-selected {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gb-border);
}

.smart-selected .selected-header {
  margin-bottom: 6px;
}

.selected-display--editable .sel-chip:hover {
  border-color: var(--primary-100);
}

.selected-display--editable .sel-chip.is-banker:hover {
  border-color: var(--gb-banker);
  filter: brightness(0.97);
}

.smart-controls {
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--gb-border);
}

.smart-controls .control-row {
  margin-bottom: 8px;
}

.smart-controls .control-row:last-of-type {
  margin-bottom: 4px;
}

.smart-bet-hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--gb-text-light);
  text-align: right;
}

.control-field.is-hidden {
  display: none;
}

.control-field--amount {
  min-width: 0;
}

.control-field-inner {
  display: block;
  width: 100%;
}

.flat-stake-input {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--gb-border-strong);
  border-radius: var(--gb-radius);
  background: var(--gb-surface);
}

.flat-stake-prefix {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--gb-text);
  white-space: nowrap;
}

.flat-stake-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gb-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}

.flat-stake-input input::-webkit-outer-spin-button,
.flat-stake-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flat-stake-input:focus-within {
  border-color: var(--primary-100);
}

.flat-stake-input input:focus {
  outline: none;
}

.bet-action-footer .smart-action-btn {
  width: 100%;
}

.smart-action-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gb-border-strong);
  border-radius: var(--gb-radius);
  background: var(--gb-surface);
  color: var(--gb-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.smart-action-btn--primary {
  background: var(--primary-100);
  border-color: var(--primary-100);
  color: #fff;
}

.smart-action-btn--primary:active {
  background: var(--accent-200);
  border-color: var(--accent-200);
}

.smart-action-btn:active {
  background: var(--gb-surface-2);
}
