/* —— Betting account UI —— */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid rgba(229, 57, 53, 0.45);
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.2), rgba(20, 20, 20, 0.95));
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  max-width: 140px;
}
.account-chip.logged-in {
  border-color: rgba(76, 175, 80, 0.5);
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.25), rgba(20, 20, 20, 0.95));
}
.account-chip-icon {
  font-size: 16px;
  line-height: 1;
}
.account-chip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  min-width: 0;
}
.account-chip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 88px;
}
.account-chip-balance {
  font-size: 10px;
  color: #81c784;
  font-weight: 700;
}
.account-chip-balance.hidden {
  display: none;
}

body.bet-sheet-open {
  overflow: hidden;
}
body.bet-sheet-open .bottom-nav {
  display: none;
}

.bet-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.bet-sheet.hidden {
  display: none !important;
}
.bet-sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #141414, #0a0a0a);
}
.bet-sheet-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.bet-sheet-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.bet-sheet-brand strong {
  display: block;
  font-size: 15px;
}
.bet-sheet-sub {
  font-size: 11px;
  color: var(--muted);
}
.bet-sheet-icon {
  font-size: 28px;
}

.bet-login {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}
.bet-login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  max-width: 400px;
  margin: 0 auto;
}
.bet-login-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.bet-login-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.bet-login label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: var(--muted);
}

.bet-dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.bet-dashboard.hidden {
  display: none !important;
}

.bet-balance-card {
  margin: 12px 14px 0;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 40%, #141414 100%);
  border: 1px solid rgba(229, 57, 53, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}
.bet-balance-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bet-balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.bet-balance-user {
  font-size: 13px;
  color: #ef9a9a;
}
.bet-logout-link {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.bet-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.bet-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bet-tab.active {
  background: linear-gradient(135deg, #c62828, #e53935);
  border-color: transparent;
  color: #fff;
}

.bet-tab-panels {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 24px;
  -webkit-overflow-scrolling: touch;
}
.bet-tab-panel.hidden {
  display: none !important;
}
.bet-tab-panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: var(--muted);
}
.bet-panel-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 10px;
}
.bet-input,
.bet-select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 4px;
}
.bet-primary-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.bet-secondary-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.bet-match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.bet-match-pick {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.bet-match-pick.active {
  border-color: var(--red);
  background: rgba(229, 57, 53, 0.12);
}
.bet-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px 8px;
}
.bet-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bet-slip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.bet-slip-card.win {
  border-color: rgba(76, 175, 80, 0.5);
}
.bet-slip-card.lost {
  border-color: rgba(120, 120, 120, 0.4);
  opacity: 0.85;
}
.bet-slip-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bet-type-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(229, 57, 53, 0.2);
  color: #ef9a9a;
}
.bet-status-pill {
  font-size: 11px;
  color: var(--muted);
}
.bet-slip-match {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.bet-slip-pick {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bet-slip-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aaa;
}
